/* Princeton Meadows Dental
   Layout: one large navy hero panel (headline left, glossy tooth right, round waitlist badge),
   then quiet light sections on a pale gradient, closing with a second navy panel for the form. */

:root {
  /* Brand palette from the Princeton Meadows Dental brand board */
  --teal: #2f5561;          /* Primary teal: logo, headlines, key elements */
  --teal-2: #3f6b79;        /* lighter step of the primary, for hover and glow */
  --sage: #8da8a3;          /* Secondary sage: accents, buttons, highlights */
  --fog: #c9d9dd;           /* Light blue: backgrounds, sections, subtle accents */
  --mist: #e8eff0;          /* Very light tint of the light blue */
  --stone: #d9d9d6;         /* Warm gray: surfaces, dividers */
  --paper: #f4f6f5;         /* Form field fill */
  --white: #ffffff;
  --ivory: #fafaf8;         /* Ivory white: main background */
  --ink: #4a4a4a;           /* Charcoal: body text */
  --ink-2: #5d6567;         /* Charcoal, softened (still 5:1+ on ivory) */
  --line: #d9d9d6;
  --error: #b3261e;

  --serif: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --script: "Pinyon Script", "Snell Roundhand", "Apple Chancery", cursive;

  --gutter: clamp(16px, 3vw, 32px);
  --radius-panel: clamp(28px, 4vw, 48px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ivory);
  background-image: linear-gradient(180deg, #fafaf8 0%, #eef3f3 55%, #e6eef0 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--teal-2); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 16px;
  background: var(--teal); color: var(--white); border-radius: 999px; text-decoration: none;
}
.skip:focus { top: 12px; }

.shell { width: min(100%, 1360px); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Hero panel ---------- */
.hero-wrap { padding-block: var(--gutter) 0; }
.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  border-radius: var(--radius-panel);
  background:
    radial-gradient(120% 90% at 78% 42%, #4f808d 0%, rgba(79, 128, 141, 0) 62%),
    radial-gradient(70% 60% at 6% 100%, #3a6573 0%, rgba(58, 101, 115, 0) 70%),
    var(--teal);
  padding: clamp(20px, 3vw, 36px) clamp(20px, 4vw, 56px) clamp(28px, 4vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  grid-template-areas:
    "nav nav"
    "copy art";
  column-gap: clamp(8px, 3vw, 48px);
  min-height: min(760px, 92vh);
}

.nav { grid-area: nav; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand img { width: 40px; height: auto; flex: none; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.1;
  white-space: nowrap;
}
.nav-links { display: flex; gap: clamp(16px, 2.4vw, 36px); list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none; font-size: 0.975rem; color: rgba(255, 255, 255, 0.78);
  padding: 8px 2px; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--white); }

.pill {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--white); color: var(--teal);
  border: 0; border-radius: 999px; cursor: pointer;
  padding: 10px 10px 10px 22px;
  font: 600 0.975rem/1 var(--sans); text-decoration: none; white-space: nowrap;
}
.pill .dot {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--sage); transition: transform 0.25s;
}
.pill:hover .dot { transform: rotate(45deg); }
.pill svg { width: 14px; height: 14px; }

.copy { grid-area: copy; align-self: center; padding-block: clamp(28px, 5vw, 64px) 0; position: relative; z-index: 2; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 8.4vw, 7.4rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
  text-wrap: balance;
  font-variation-settings: "opsz" 72;
}
.hero-sub {
  margin-top: clamp(20px, 2.6vw, 32px);
  max-width: 34rem;
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  color: rgba(255, 255, 255, 0.82);
}
.hero-sub strong { color: var(--white); font-weight: 600; }


.art { grid-area: art; position: relative; align-self: end; min-height: 380px; display: grid; place-items: center; }
.tooth { width: min(100%, 440px); height: auto; margin-top: 8px; animation: float 8s ease-in-out infinite; }
.wiggle { transform-box: fill-box; transform-origin: 0 50%; animation: wiggle 1.6s ease-in-out infinite; }
@keyframes wiggle { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.badge {
  position: absolute; right: 0; bottom: 6%; z-index: 3;
  width: clamp(124px, 14vw, 176px); aspect-ratio: 1; border-radius: 50%;
  background: var(--fog); color: var(--teal); text-decoration: none;
  display: grid; place-items: center;
  box-shadow: 0 18px 40px rgba(14, 36, 43, 0.35);
}
.badge svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.badge .ring text { font: 700 11.2px/1 var(--sans); letter-spacing: 0.17em; fill: var(--teal); text-transform: uppercase; }
.badge .arrow { width: 34%; height: 34%; position: relative; transition: transform 0.3s; }
.badge:hover .arrow { transform: translate(3px, -3px); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Light sections ---------- */
section { scroll-margin-top: 24px; }
.band { padding-block: clamp(56px, 8vw, 112px) 0; }
.section-head { display: grid; gap: 14px; max-width: 46rem; }
h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: 1.04; letter-spacing: -0.028em;
  color: var(--teal); text-wrap: balance;
}
.lede { color: var(--ink-2); font-size: 1.125rem; max-width: 40rem; }

.glance { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.facts { margin: 0; display: grid; }
.facts > div {
  display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr); gap: 16px;
  padding-block: 18px; border-top: 1px solid var(--line);
}
.facts > div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { color: var(--ink-2); font-size: 0.975rem; }
.facts dd { margin: 0; font-weight: 500; color: var(--teal); }
.facts a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

.services { margin-top: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 6vw, 96px); list-style: none; padding: 0; }
.services li {
  display: grid; gap: 4px; align-content: start; padding-block: 20px; border-top: 1px solid var(--line);
}
.services h3 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; letter-spacing: -0.015em; color: var(--teal); }
.services p { color: var(--ink-2); max-width: 30rem; }
.note { margin-top: 20px; color: var(--ink-2); font-size: 0.975rem; }

/* ---------- Waitlist panel ---------- */
.signup {
  margin-top: clamp(56px, 8vw, 112px);
  border-radius: var(--radius-panel);
  color: var(--white);
  background:
    radial-gradient(90% 120% at 100% 0%, #4f808d 0%, rgba(79, 128, 141, 0) 60%),
    var(--teal);
  padding: clamp(28px, 5vw, 72px);
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 80px); align-items: center;
}
.signup h2 { color: var(--white); }
.signup .lede { color: rgba(255, 255, 255, 0.82); margin-top: 16px; }

.form { background: var(--white); color: var(--ink); border-radius: 32px; padding: clamp(22px, 3vw, 36px); display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.975rem; color: var(--teal); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"] {
  width: 100%; font: inherit; color: var(--ink);
  padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--paper);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus { outline: none; border-color: var(--teal-2); box-shadow: 0 0 0 4px rgba(47, 85, 97, 0.18); background: var(--white); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field .err { color: var(--error); font-size: 0.9rem; min-height: 0; }
.field .err:empty { display: none; }
.consent { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 0.9rem; color: var(--ink-2); line-height: 1.5; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--teal); }
.submit {
  appearance: none; border: 0; cursor: pointer; width: 100%;
  background: var(--teal); color: var(--white);
  font: 600 1.0625rem/1 var(--sans); padding: 18px 24px; border-radius: 999px;
  display: inline-flex; justify-content: center; align-items: center; gap: 12px;
  transition: background 0.2s;
}
.submit:hover { background: var(--teal-2); }
.submit[disabled] { opacity: 0.6; cursor: progress; }
.submit .dot { color: var(--teal); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--sage); }
.submit .dot svg { width: 12px; height: 12px; }
.status { font-size: 0.975rem; padding: 14px 16px; border-radius: 14px; background: var(--mist); color: var(--teal); }
.status[hidden] { display: none; }
.status.ok { background: #dfeae7; }
.status.bad { background: #fbe4e1; color: #7a1710; }
.script { font-family: var(--script); font-size: clamp(2rem, 3.4vw, 2.75rem); line-height: 1.1; color: var(--sage); margin-top: 20px; }
.signup .script { color: var(--fog); }
.tagline { letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.8rem; color: var(--teal); }
.fine { font-size: 0.85rem; color: var(--ink-2); }

/* ---------- FAQ ---------- */
.faq { margin-top: clamp(28px, 4vw, 48px); max-width: 52rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding-block: 22px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  font-family: var(--serif); font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.25; letter-spacing: -0.012em; color: var(--teal);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%;
  background:
    linear-gradient(var(--teal), var(--teal)) center / 12px 2px no-repeat,
    linear-gradient(var(--teal), var(--teal)) center / 2px 12px no-repeat,
    var(--white);
  border: 1px solid var(--line); transition: transform 0.25s, background-color 0.25s;
}
.faq details[open] summary::after {
  background:
    linear-gradient(var(--teal), var(--teal)) center / 12px 2px no-repeat,
    var(--sage);
}
.faq .answer { padding: 0 0 24px; color: var(--ink-2); max-width: 44rem; }
.faq .answer a { color: var(--teal); }

/* ---------- Visit ---------- */
.visit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.visit address { font-style: normal; font-family: var(--serif); font-size: clamp(1.5rem, 2.8vw, 2.1rem); line-height: 1.25; color: var(--teal); letter-spacing: -0.015em; }
.visit .actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }
.pill.outline { background: transparent; color: var(--teal); border: 1.5px solid var(--teal); }
.pill.solid { background: var(--teal); color: var(--white); }

footer { margin-top: clamp(56px, 8vw, 112px); padding-block: 40px 56px; border-top: 1px solid var(--line); }
.foot { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; color: var(--ink-2); font-size: 0.95rem; }
.foot img { width: 120px; }
.foot p { max-width: 34rem; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "nav" "copy" "art"; min-height: 0; }
  .nav-links { display: none; }
  .art { min-height: 0; margin-top: 8px; }
  .tooth { width: min(86%, 380px); margin-top: 0; }
  .badge { right: 2%; bottom: 3%; }
  .glance, .visit, .signup { grid-template-columns: minmax(0, 1fr); }
  .services { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .brand-name { font-size: 0.95rem; letter-spacing: 0.1em; white-space: normal; }
  .brand img { width: 32px; }
  .pill { padding-left: 16px; font-size: 0.9rem; }
  .facts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .nav .pill .label-long { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tooth, .wiggle, .badge svg.ring { animation: none; }
  * { transition: none !important; }
}
