/* Old Town Family Care — clean, warm, trustworthy */
:root {
  --navy: #16374a;
  --navy-deep: #0f2a3a;
  --teal: #2f9db8;
  --teal-dark: #237f96;
  --teal-soft: #e7f4f8;
  --bg: #f7fafb;
  --white: #ffffff;
  --ink: #24404f;
  --muted: #5d7684;
  --line: #dde8ec;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(22, 55, 74, 0.08);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 0.6em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
img { max-width: 100%; height: auto; }
.container { width: min(1120px, 92%); margin: 0 auto; }
.container.narrow { width: min(760px, 92%); }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff;
  padding: 0.6em 1em; border-radius: 0 0 8px 0; z-index: 100;
}
.skip-link:focus { left: 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; padding: 0.7rem 0; }
.brand img { display: block; }
.main-nav { display: flex; gap: 1.4rem; margin-left: auto; }
.main-nav a {
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem;
}
.main-nav a:hover { color: var(--teal-dark); }
.header-actions { display: flex; align-items: center; gap: 0.8rem; }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  padding: 0.7em 1.4em; border-radius: 999px; border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer; font-size: 0.95rem;
}
.btn-lg { padding: 0.85em 1.8em; font-size: 1rem; }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 6px 18px rgba(47, 157, 184, 0.35); }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-dark); }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer; padding: 0.5rem;
}
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--navy); border-radius: 2px; margin: 5px 0; }

/* Hero */
.hero {
  background: linear-gradient(180deg, #ffffff 0%, var(--teal-soft) 100%);
  padding: 4.5rem 0 5rem;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-size: 0.85rem; font-weight: 600; color: var(--teal-dark);
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 0.45em 1em; margin-bottom: 1.2rem;
}
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: #2fbf71; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(47, 191, 113, 0.5); } 50% { box-shadow: 0 0 0 7px rgba(47, 191, 113, 0); } }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 34rem; }
.lede strong { color: var(--navy); }
.hero-ctas { display: flex; gap: 0.9rem; flex-wrap: wrap; margin: 1.8rem 0 2.2rem; }
.trust-row { list-style: none; display: flex; gap: 1.6rem; flex-wrap: wrap; padding: 0; margin: 0; }
.trust-row li { display: flex; align-items: center; gap: 0.5em; font-size: 0.9rem; font-weight: 600; color: var(--navy); }
.trust-row svg { width: 20px; height: 20px; fill: var(--teal); color: var(--teal); flex: none; }

/* Hero art — stylized video visit card */
.hero-art { display: flex; justify-content: center; }
.video-card {
  position: relative; width: min(360px, 100%);
  background: #fff; border-radius: 22px; box-shadow: var(--shadow);
  border: 1px solid var(--line); padding: 1rem;
}
.video-screen {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-radius: 14px; padding: 2.2rem 1rem; text-align: center; color: #fff;
}
.video-screen img { border-radius: 18px; background: #fff; padding: 6px; }
.video-name { font-weight: 700; margin: 0.8rem 0 0.1rem; color: #fff; }
.video-sub { font-size: 0.85rem; opacity: 0.75; margin: 0; }
.video-bar { display: flex; justify-content: center; gap: 0.9rem; padding: 1rem 0 0.4rem; }
.vdot { width: 14px; height: 14px; border-radius: 50%; background: var(--line); }
.vdot-live { background: #e05252; animation: pulse 2s infinite; }
.rx-chip {
  position: absolute; right: -14px; bottom: 34px;
  display: flex; align-items: center; gap: 0.5em;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 0.55em 1em; font-size: 0.8rem; font-weight: 600; color: var(--navy);
  box-shadow: var(--shadow); white-space: nowrap;
}
.rx-chip svg { width: 18px; height: 18px; color: var(--teal); }

/* Sections */
.section { padding: 4.5rem 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-eyebrow {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem;
  font-weight: 700; color: var(--teal-dark); margin-bottom: 0.6rem;
}
.section-sub { color: var(--muted); font-size: 1.1rem; max-width: 40rem; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.5rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(22, 55, 74, 0.12); }
.card-icon {
  width: 48px; height: 48px; border-radius: 14px; background: var(--teal-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;
}
.card-icon svg { width: 24px; height: 24px; color: var(--teal-dark); }
.card p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.5rem; }
.step { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--teal); color: #fff; font-weight: 800; margin-bottom: 1rem;
}
.step p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* About */
.about-grid { display: grid; grid-template-columns: 240px 1fr; gap: 3rem; align-items: start; }
.about-art {
  background: #fff; border: 1px solid var(--line); border-radius: 24px;
  padding: 2rem; box-shadow: var(--shadow); display: flex; justify-content: center;
}
.about-points { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 0.6rem; }
.about-points li { position: relative; padding-left: 1.8rem; font-weight: 500; color: var(--navy); }
.about-points li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 1.3em; height: 1.3em; border-radius: 50%; background: var(--teal-soft);
  color: var(--teal-dark); font-weight: 800; font-size: 0.85em;
  display: inline-flex; align-items: center; justify-content: center;
}

/* FAQ */
.faq { margin-top: 2rem; display: grid; gap: 0.8rem; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 1.1rem 1.4rem;
}
.faq summary { font-weight: 600; color: var(--navy); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--teal-dark); font-weight: 400; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 0.8rem 0 0; font-size: 0.96rem; }

/* CTA / Contact */
.section-cta { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; }
.section-cta h2, .section-cta .section-eyebrow { color: #fff; }
.section-cta .section-eyebrow { color: #9fd4e2; }
.section-cta .section-sub { color: rgba(255, 255, 255, 0.8); }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2rem 0; }
.contact-card {
  display: flex; align-items: center; gap: 1rem;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius); padding: 1.2rem 1.4rem;
  text-decoration: none; color: #fff; transition: background 0.15s ease, transform 0.15s ease;
}
.contact-card:hover { background: rgba(255, 255, 255, 0.14); transform: translateY(-2px); }
.contact-card svg { width: 30px; height: 30px; fill: #fff; color: #fff; flex: none; }
.contact-card strong { display: block; font-size: 1rem; }
.contact-card span { font-size: 0.85rem; opacity: 0.7; }
.service-area { text-align: center; font-size: 0.9rem; opacity: 0.7; margin: 0; }

/* Footer */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, 0.75); padding: 2.2rem 0; }
.footer-inner { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }
.footer-inner img { background: #fff; border-radius: 10px; padding: 6px 10px; }
.footer-inner p { margin: 0; font-size: 0.9rem; }
.footer-inner small { opacity: 0.7; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .cards, .steps { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-art { max-width: 240px; }
}
@media (max-width: 640px) {
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 1rem 4%;
    border-bottom: 1px solid var(--line); gap: 0.2rem; margin: 0;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
  .main-nav a:last-child { border-bottom: none; }
  .nav-toggle { display: block; }
  .header-actions .btn { display: none; }
  .cards, .steps, .contact-cards { grid-template-columns: 1fr; }
  .section { padding: 3rem 0; }
  .hero { padding: 3rem 0; }
  .rx-chip { right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse-dot, .vdot-live { animation: none; }
}
