/* ============================================================
   HAPPY CARE DENTAL & SKIN CLINIC — design tokens
   Palette: clinical pine + porcelain + dusty-rose "glow" accent
   Type: Fraunces (display) + Inter (body/UI)
   Signature: "the arc" — a single curved line that reads as a
   smile in dental contexts and a glow-ring in skin contexts
   ============================================================ */

:root {
  --ink: #16332E;         /* deep pine — headings, nav */
  --ink-soft: #3C554F;    /* body text on light */
  --paper: #F7F4EE;       /* warm porcelain background */
  --paper-raised: #FFFFFF;
  --line: #DDD6C8;        /* hairline borders */
  --mint: #7FA79A;        /* dental / fresh accent */
  --mint-deep: #4C7A6C;
  --glow: #C97B6E;        /* skin / warmth accent (dusty rose-terracotta, distinct) */
  --glow-soft: #F1DDD5;
  --gold: #B9924B;        /* sparing premium highlight */
  --ink-inverse: #F7F4EE;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --radius: 2px;
  --radius-lg: 6px;
  --container: 1180px;
  --nav-h: 78px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 0.5em;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.05; font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.15; }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint-deep);
  font-weight: 600;
  margin-bottom: 0.9em;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--mint-deep);
  display: inline-block;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--alt { background: var(--paper-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--ink { background: var(--ink); color: #CFE0DA; }
.section--ink h2, .section--ink h3 { color: var(--ink-inverse); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 15px 30px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color .18s ease;
}
.btn-primary { background: var(--ink); color: var(--ink-inverse); }
.btn-primary:hover { background: var(--mint-deep); transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--ink-inverse); }
.btn-glow { background: var(--glow); color: #fff; }
.btn-glow:hover { background: #B36357; transform: translateY(-1px); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 600;
  color: var(--ink);
}
.brand small {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--glow);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 0.94rem;
  font-weight: 500;
}
.nav-links a {
  position: relative;
  padding: 6px 0;
  color: var(--ink-soft);
}
.nav-links a.active, .nav-links a:hover { color: var(--ink); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--glow);
  border-radius: 2px;
}
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone { font-size: 0.9rem; font-weight: 600; display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); display: block; }

@media (min-width: 860px) { .nav-phone { display: inline; } }

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--paper-raised);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 28px 20px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
  }
  .nav-links.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: flex; }
  .nav-cta .btn span.label { display: none; }
}

/* ---------- Hero / signature arc ---------- */
.hero {
  position: relative;
  padding-top: 72px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero-copy p.lede {
  font-size: 1.15rem;
  max-width: 46ch;
}
.hero-actions { display: flex; gap: 16px; margin-top: 30px; flex-wrap: wrap; }
.hero-trust {
  margin-top: 46px;
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
}
.hero-trust div { border-left: 2px solid var(--glow); padding-left: 14px; }
.hero-trust strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); }
.hero-trust span { font-size: 0.82rem; color: var(--ink-soft); }

.hero-art { position: relative; }
.arc-svg { width: 100%; height: auto; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 320px; margin: 0 auto 12px; }
}

/* ---------- Service cards ---------- */
.pillar-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  background: var(--paper-raised);
  margin-bottom: 40px;
}
.pillar-toggle button {
  border: none;
  background: transparent;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--ink-soft);
}
.pillar-toggle button.is-active.pillar-dental { background: var(--mint-deep); color: #fff; }
.pillar-toggle button.is-active.pillar-skin { background: var(--glow); color: #fff; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 900px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(22,51,46,0.35); }
.card .icon { width: 44px; height: 44px; margin-bottom: 18px; }
.card h3 { margin-bottom: 8px; font-size: 1.15rem; }
.card p { font-size: 0.94rem; margin-bottom: 0; }
.card[data-pillar="dental"] .icon { color: var(--mint-deep); }
.card[data-pillar="skin"] .icon { color: var(--glow); }
.card { display: none; }
.card.is-visible { display: block; }

/* ---------- Divider arc ---------- */
.divider {
  display: flex;
  justify-content: center;
  padding: 4px 0 0;
}
.divider svg { width: 140px; height: auto; opacity: 0.7; }

/* ---------- Two column feature ---------- */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 860px) { .feature-split { grid-template-columns: 1fr; gap: 30px; } }
.feature-list { list-style: none; margin: 0; padding: 0; }
.feature-list li {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.feature-list li:first-child { padding-top: 0; }
.feature-list .num {
  font-family: var(--font-display);
  color: var(--glow);
  font-size: 1.1rem;
  min-width: 28px;
}

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 860px) { .testimonial-grid { grid-template-columns: 1fr; } }
.testimonial {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  padding: 28px;
  border-radius: var(--radius-lg);
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
}
.testimonial cite {
  display: block;
  margin-top: 18px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-weight: 600;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: var(--ink-inverse);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: #CFE0DA; margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #A9C2BB;
  padding: 70px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-grid a, .footer-grid p { color: #A9C2BB; font-size: 0.92rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 26px;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: 60px 0 70px;
  border-bottom: 1px solid var(--line);
}
.page-hero .eyebrow { margin-bottom: 14px; }
.page-hero p.lede { max-width: 62ch; font-size: 1.05rem; }
.breadcrumb { font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 18px; }
.breadcrumb a { color: var(--mint-deep); }

/* ---------- Services page detail ---------- */
.service-detail {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 26px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}
.service-detail:first-of-type { padding-top: 0; }
.service-detail .icon-wrap {
  width: 68px; height: 68px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper);
  border: 1px solid var(--line);
}
.service-detail .icon-wrap svg { width: 32px; height: 32px; }
.service-detail[data-pillar="dental"] .icon-wrap svg { color: var(--mint-deep); }
.service-detail[data-pillar="skin"] .icon-wrap svg { color: var(--glow); }
.service-detail h3 { margin-bottom: 6px; }
.service-detail .tags { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.service-detail .tags span {
  font-size: 0.76rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}
@media (max-width: 620px) { .service-detail { grid-template-columns: 1fr; } }

.section-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

/* ---------- About page ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 860px) { .value-grid { grid-template-columns: repeat(2, 1fr); } }
.value-card { padding: 4px; }
.value-card .num { font-family: var(--font-display); color: var(--glow); font-size: 1.8rem; display:block; margin-bottom: 10px; }

.team-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: center;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.team-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--mint), var(--glow));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  font-size: 2.4rem;
}
@media (max-width: 640px) { .team-card { grid-template-columns: 1fr; text-align: center; } .team-photo { width: 160px; margin: 0 auto; } }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 20px;
}
.contact-info-card h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mint-deep);
  margin-bottom: 8px;
}
.contact-info-card p { margin-bottom: 0; font-size: 1.02rem; color: var(--ink); }

.form-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--ink);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--mint-deep);
  outline-offset: 1px;
}
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-two { grid-template-columns: 1fr; } }
.form-note { font-size: 0.8rem; color: var(--ink-soft); margin-top: 14px; }
#form-status { margin-top: 16px; font-size: 0.9rem; font-weight: 600; display: none; }
#form-status.ok { color: var(--mint-deep); display: block; }
#form-status.err { color: var(--glow); display: block; }

.map-embed {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 20px;
}
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ---------- Focus visibility (a11y) ---------- */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--mint-deep);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
