/*
  Comfort Care @ Home
  Mobile-first, one-page layout
  Light / healthcare-inspired palette
*/

:root {
  /* Healthcare-inspired palette */
  --bg: #f6fbff;
  --surface: #ffffff;
  --surface2: #f0f7ff;
  --card: rgba(255, 255, 255, 0.92);
  --text: #0f1b2d;
  --muted: #49627a;

  /* Brand accents */
  --brand: #0ea5a8;  /* teal */
  --brand2: #2563eb; /* blue */

  /* UI */
  --line: rgba(15, 27, 45, 0.12);
  --shadow: 0 14px 28px rgba(15, 27, 45, 0.10);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html {
  background: linear-gradient(
    180deg,
    #f6fbff 0%,
    #f1f8ff 35%,
    #ffffff 70%,
    #ffffff 100%
  );
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: transparent;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand2);
}

a:hover {
  color: #1d4ed8;
}

/* Layout helpers */
main {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0 34px;
}

section {
  padding: 22px 0;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid var(--line);
}

.brand {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between; /* logo left, contact right */
  gap: 16px;
}

/* Logo scaling for readability */
.brand .site-logo {
  width: 140px; /* readable but not overwhelming */
  height: auto;
  max-width: 100%;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 10px 18px rgba(15, 27, 45, 0.08);
}

/* Header contact (right side) */
.header-contact {
  margin-left: auto; /* safety */
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 6px;
  white-space: nowrap;
}

.header-top,
.header-bottom {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.header-top a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(14, 165, 168, 0.28);
  background: rgba(14, 165, 168, 0.08);
}

.header-top a:hover {
  background: rgba(14, 165, 168, 0.12);
}

.header-bottom {
  font-size: 13px;
  color: var(--muted);
}

.header-bottom a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px dashed rgba(37, 99, 235, 0.35);
}

.header-bottom a:hover {
  border-bottom-color: rgba(37, 99, 235, 0.75);
}

.header-contact .divider {
  color: rgba(15, 27, 45, 0.35);
}

/* Hero */
.hero {
  display: grid;
  gap: 14px;
  align-items: start;
  padding-top: 26px;
}

.hero-content {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 247, 255, 0.85));
  box-shadow: var(--shadow);
  padding: 16px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(14, 165, 168, 0.25);
  border-radius: 999px;
  background: rgba(14, 165, 168, 0.08);
  color: #0b5d60;
  font-size: 13px;
  width: fit-content;
}

h1 {
  margin: 10px 0 10px;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.6px;
}

.lead {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 60ch;
}

.checklist {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.checklist li {
  margin: 7px 0;
}

.hero-card {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 14px;
}

.photos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.photo {
  border-radius: 16px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--surface2);
  aspect-ratio: 16 / 10;
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Section headings */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.section-head h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.2px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  max-width: 72ch;
}

/* Two-column layout (Services + Request More Info) */
.two-col {
  display: grid;
  grid-template-columns: 1fr; /* mobile: stacked */
  gap: 16px;
  margin-top: 16px;
}

@media (min-width: 900px) {
  .two-col {
    grid-template-columns: 1fr 1fr; /* desktop: side-by-side */
    align-items: start;
  }
}

/* Cards + grid */
.grid {
  display: grid;
  gap: 12px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 10px 22px rgba(15, 27, 45, 0.08);
  padding: 14px;
}

/* Highlight the Request More Information card (form) */
.two-col > .card:nth-child(2),
#request {
  background: linear-gradient(
    135deg,
    rgba(14, 165, 168, 0.10),
    rgba(37, 99, 235, 0.08)
  );
  border-color: rgba(14, 165, 168, 0.25);
}

/* ------------------------------
   Request More Information form
   (polished + aligned)
--------------------------------- */
#request .form-intro {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

#request .contact-form {
  margin-top: 12px;
}

#request .form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 12px;
}

#request .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#request .field label {
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
}

#request .input {
  width: 100%;
  display: block;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 27, 45, 0.18);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
}

#request .input:focus {
  outline: 2px solid rgba(14, 165, 168, 0.35);
  outline-offset: 2px;
}

#request .field-wide {
  grid-column: 1 / -1;
}

#request .fieldset {
  margin-top: 14px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(15, 27, 45, 0.14);
  background: rgba(255, 255, 255, 0.72);
}

#request .fieldset legend {
  padding: 0 6px;
  font-weight: 800;
  font-size: 13px;
  color: var(--text);
}

#request .options {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

#request .option {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 27, 45, 0.14);
  background: rgba(255, 255, 255, 0.75);
  color: var(--text);
  font-size: 14px;
  line-height: 1.3;
}

#request .option input {
  width: 18px;
  height: 18px;
}

#request .checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

#request .checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

#request .checkbox span {
  display: block;
}

#request .submit {
  margin-top: 14px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 14px;
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 12px 22px rgba(37, 99, 235, 0.18);
  cursor: pointer;
}

#request .submit:hover {
  filter: brightness(1.03);
}

/* Two columns for fields only when there's room inside the card */
@media (min-width: 1100px) {
  #request .form-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

@media (max-width: 520px) {
  #request .option {
    width: 100%;
    justify-content: flex-start;
  }
}

.card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

.pill {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  background: rgba(37, 99, 235, 0.06);
  color: #1f4fbf;
  font-size: 12px;
  margin-top: 10px;
}

/* Image under Our In-Home Caregivers list */
.service-image {
  margin-top: 14px;
}

.service-image img {
  width: 100%;
  border-radius: 14px; /* soft rounded corners */
  border: 1px solid var(--line);
}

/* Testimonials */
.quote {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}

.who {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

/* Contact */
.contact-card {
  border: 1px solid rgba(14, 165, 168, 0.25);
  border-radius: calc(var(--radius) + 8px);
  background: linear-gradient(135deg, rgba(14, 165, 168, 0.10), rgba(37, 99, 235, 0.08));
  padding: 16px;
  box-shadow: var(--shadow);
}

.contact-card h2 {
  margin: 0 0 8px;
}

.business-name {
  font-weight: 750;
  margin-bottom: 8px;
}

.contact-details {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.contact-details a {
  text-decoration: none;
  border-bottom: 1px dashed rgba(37, 99, 235, 0.35);
}

.contact-details a:hover {
  border-bottom-color: rgba(37, 99, 235, 0.75);
}

/* Focus */
:focus-visible {
  outline: 2px solid rgba(14, 165, 168, 0.95);
  outline-offset: 3px;
  border-radius: 10px;
}

/* Tablet and up */
@media (min-width: 768px) {
  .brand .site-logo {
    width: 190px;
  }

  .hero {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
  }

  .grid {
    grid-template-columns: repeat(3, 1fr);
  }

  #about .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  #testimonials .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Larger desktops */
@media (min-width: 1024px) {
  main {
    padding: 34px 0 44px;
  }
}

@media (max-width: 680px) {
  .header-top a {
    font-size: 13px;
    padding: 7px 9px;
  }

  .header-bottom {
    font-size: 12px;
  }
}

@media (max-width: 430px) {
  .header-top {
    flex-wrap: wrap;
    gap: 6px;
  }

  .header-contact .divider {
    display: none;
  }

  .header-bottom {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
  }
}


/* Align footer content with main container */
footer p {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}