/* ============================================================
   Halo Dental, Highland Park
   Palette: warm ivory + trust teal + a "halo" of warm gold light
   Type:    Fraunces (display) / Figtree (body)
   ============================================================ */

:root {
  --ivory:      #F7F4EC;
  --ivory-2:    #FDFBF6;
  --ink:        #14302E;
  --ink-soft:   #3D5551;
  --teal:       #0C4A44;
  --teal-deep:  #0A3A35;
  --teal-line:  #1F6A62;
  --gold:       #F3B54A;
  --gold-deep:  #E19E2E;
  --white:      #FFFFFF;

  --maxw: 1120px;
  --pad: clamp(1.25rem, 5vw, 3rem);

  --r-lg: 22px;
  --r-md: 14px;

  --shadow-sm: 0 1px 2px rgba(20,48,46,.06), 0 4px 16px rgba(20,48,46,.05);
  --shadow-md: 0 10px 40px rgba(12,74,68,.12);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

.sr-only, .skip-link {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; top: 12px; left: 12px; width: auto; height: auto;
  clip: auto; z-index: 100; background: var(--teal); color: #fff;
  padding: .6rem 1rem; border-radius: 8px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; font-family: var(--sans); font-weight: 600; font-size: 1rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-deep); box-shadow: var(--shadow-md); }
.btn-gold { background: var(--gold); color: var(--teal-deep); }
.btn-gold:hover { background: var(--gold-deep); }
.btn-ghost { background: transparent; color: var(--teal); border-color: rgba(12,74,68,.28); }
.btn-ghost:hover { border-color: var(--teal); background: rgba(12,74,68,.04); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); border-color:#fff; }
.btn-outline { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-outline:hover { background: var(--teal); color: #fff; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,244,236,.82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.site-header.scrolled {
  border-bottom-color: rgba(20,48,46,.08);
  box-shadow: 0 4px 20px rgba(20,48,46,.05);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--teal); text-decoration: none; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.32rem; color: var(--ink); letter-spacing: -.01em; }
.brand-sub { font-family: var(--sans); font-weight: 600; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); }

.nav-links { list-style: none; display: flex; align-items: center; gap: .35rem; margin: 0; padding: 0; }
.nav-links a {
  display: inline-block; padding: .55rem .8rem; border-radius: 8px;
  font-weight: 500; color: var(--ink-soft); text-decoration: none; font-size: .98rem;
  transition: color .18s ease, background .18s ease;
}
.nav-links a:hover { color: var(--teal); background: rgba(12,74,68,.06); }
.nav-call { color: var(--teal) !important; font-weight: 700 !important; border: 1.5px solid rgba(12,74,68,.25); }
.nav-call:hover { border-color: var(--teal); }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(4rem, 12vw, 8.5rem) 0 clamp(3.5rem, 9vw, 6.5rem); }
.hero-inner { position: relative; z-index: 2; max-width: 760px; }
.halo {
  position: absolute; z-index: 1; top: -18%; left: 50%; transform: translateX(-50%);
  width: min(900px, 130vw); aspect-ratio: 1;
  background: radial-gradient(circle at center,
              rgba(243,181,74,.55) 0%,
              rgba(243,181,74,.22) 34%,
              rgba(243,181,74,0) 64%);
  filter: blur(6px);
  animation: breathe 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes breathe {
  0%, 100% { opacity: .85; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1;   transform: translateX(-50%) scale(1.06); }
}

.eyebrow {
  font-weight: 600; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-deep); margin: 0 0 1.1rem;
}
.hero-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.6rem, 7vw, 4.7rem); line-height: 1.02; letter-spacing: -.02em;
  margin: 0 0 1.3rem; color: var(--ink);
}
.hero-title em { font-style: italic; color: var(--teal); font-weight: 600; }
.hero-lede { font-size: clamp(1.1rem, 2.3vw, 1.35rem); color: var(--ink-soft); max-width: 34ch; margin: 0 0 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 9vw, 7rem) 0; }
.section-eyebrow {
  font-weight: 600; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-deep); margin: 0 0 .8rem;
}
.section-eyebrow.on-dark { color: var(--gold); }
.section-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.08; letter-spacing: -.015em;
  margin: 0; color: var(--ink);
}
.section-title.on-dark { color: #fff; }

/* ---------- About ---------- */
.about { background: linear-gradient(180deg, var(--ivory) 0%, var(--ivory-2) 100%); }
.about-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about-lead { position: sticky; top: 110px; }
.about-body p { margin: 0 0 1.3rem; font-size: 1.12rem; color: var(--ink-soft); }
.about-body p:last-child { margin-bottom: 0; }

/* ---------- Services ---------- */
.services { background: var(--ivory-2); }
.services-head { max-width: 40ch; margin: 0 0 clamp(2rem, 5vw, 3.5rem); }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card {
  background: var(--white); border: 1px solid rgba(20,48,46,.07);
  border-radius: var(--r-lg); padding: 2rem 1.8rem; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-mark {
  display: inline-grid; place-items: center; width: 54px; height: 54px; margin-bottom: 1.1rem;
  border-radius: 14px; background: rgba(243,181,74,.16); color: var(--teal);
}
.card-mark svg { width: 28px; height: 28px; }
.card h3 { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; margin: 0 0 .5rem; color: var(--ink); letter-spacing: -.01em; }
.card p { margin: 0; color: var(--ink-soft); font-size: 1rem; }

/* ---------- Book (teal band) ---------- */
.book { background: var(--teal); position: relative; overflow: hidden; }
.book::after {
  content: ""; position: absolute; right: -8%; top: -40%; width: 480px; height: 480px;
  border-radius: 50%; background: radial-gradient(circle, rgba(243,181,74,.28), transparent 65%);
  pointer-events: none;
}
.book-inner { position: relative; z-index: 2; max-width: 620px; }
.book-lede { color: rgba(255,255,255,.85); font-size: 1.15rem; margin: 1rem 0 2rem; }
.book-cta { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Location ---------- */
.location { background: var(--ivory-2); }
.location-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.loc-details { font-style: normal; margin: 1.4rem 0 1.8rem; }
.loc-line { margin: 0 0 1.1rem; color: var(--ink-soft); }
.loc-line strong { color: var(--ink); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.location-map {
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md);
  border: 1px solid rgba(20,48,46,.08); aspect-ratio: 4 / 3; background: #dfe6e3;
}
.location-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(180deg, var(--ivory-2) 0%, var(--ivory) 100%); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact-intro p { color: var(--ink-soft); font-size: 1.08rem; margin-top: 1.1rem; }
.contact-intro .section-title { margin-top: .2rem; }

.contact-form {
  background: var(--white); border: 1px solid rgba(20,48,46,.08);
  border-radius: var(--r-lg); padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .4rem; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  padding: .8rem .95rem; border: 1.5px solid rgba(20,48,46,.16); border-radius: var(--r-md);
  background: var(--ivory-2); transition: border-color .18s ease, box-shadow .18s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(12,74,68,.12); background: #fff;
}
.field textarea { resize: vertical; }
.contact-form .btn { width: 100%; margin-top: .3rem; }
.form-status { margin: 1rem 0 0; font-weight: 600; min-height: 1.2em; }
.form-status.ok { color: var(--teal); }
.form-status.err { color: #b23a2e; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-deep); color: rgba(255,255,255,.82); padding: 3.5rem 0; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem 2.5rem; align-items: center; }
.footer-brand { display: inline-flex; align-items: center; gap: .65rem; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: var(--gold); }
.footer-contact { font-style: normal; font-size: .96rem; text-align: center; }
.footer-contact a, .footer-copy a { color: #fff; }
.footer-copy { margin: 0; font-size: .86rem; color: rgba(255,255,255,.6); text-align: right; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .about-grid, .location-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-lead { position: static; }
  .cards { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer-contact, .footer-copy { text-align: center; }

  .nav-toggle {
    display: inline-grid; place-items: center; width: 44px; height: 44px;
    background: transparent; border: 0; cursor: pointer; position: relative; z-index: 60;
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    content: ""; display: block; width: 24px; height: 2px; background: var(--ink);
    border-radius: 2px; transition: transform .25s ease, opacity .2s ease;
  }
  .nav-toggle-bar::before { position: absolute; transform: translateY(-7px); }
  .nav-toggle-bar::after  { position: absolute; transform: translateY(7px); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after  { transform: rotate(-45deg); }

  .nav-links {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--ivory-2); padding: .5rem var(--pad) 1.5rem;
    border-bottom: 1px solid rgba(20,48,46,.1); box-shadow: var(--shadow-md);
    transform: translateY(-120%); transition: transform .3s ease; visibility: hidden;
  }
  .nav-links.open { transform: translateY(0); visibility: visible; }
  .nav-links a { padding: .9rem .4rem; border-radius: 0; border-bottom: 1px solid rgba(20,48,46,.07); font-size: 1.1rem; }
  .nav-call { margin-top: .8rem; text-align: center; border-radius: 999px !important; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .halo { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover { transform: none; }
}
