/* ============================================================
   BRIGHTSIDE — fictional family dental practice template
   Warm, welcoming, easy. Cream + sky + coral, rounded corners,
   friendly serif headlines. All art is hand-written inline SVG.
   Effects budget: transform/opacity only, IO-gated reveals.
   No inline styles/scripts — CSP has no 'unsafe-inline'.
   ============================================================ */

:root {
  --cream:     #f8f5ef;
  --cream-2:   #f1ece1;
  --card:      #fffdf9;
  --ink:       #2b3a44;
  --ink-soft:  #64707a;
  --night:     #2b4a5e;
  --sky:       #8ec3d8;
  --sky-soft:  #dcedf3;
  --teal:      #4f8fa8;
  --coral:     #e8896b;
  --coral-deep:#cf6a4a;
  --sun:       #f2c94c;
  --line:      rgba(43, 58, 68, 0.14);
  --line-soft: rgba(43, 58, 68, 0.08);
  --shadow:    0 1px 2px rgba(43, 58, 68, .05), 0 14px 34px -14px rgba(43, 58, 68, .2);
  --serif:     "Fraunces", Georgia, serif;
  --sans:      "Nunito Sans", system-ui, sans-serif;
  --ease:      cubic-bezier(.22, .8, .3, 1);
  --wrap:      1160px;
  --r:         18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(232, 137, 107, .3); }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.skip-link {
  position: fixed; top: -3rem; left: 1rem; z-index: 100;
  background: var(--night); color: var(--cream);
  padding: .6rem 1rem; border-radius: 0 0 12px 12px;
  text-decoration: none; transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

:focus-visible { outline: 2.5px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 550; line-height: 1.12; letter-spacing: -.01em; }
h1 em, h2 em { font-style: normal; color: var(--coral-deep); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.1rem;
}
.dot-sep { width: 5px; height: 5px; border-radius: 50%; background: var(--coral); display: inline-block; }

.section { padding: clamp(4.5rem, 9vw, 7.5rem) clamp(1.25rem, 5vw, 4rem); }
.section-alt { background: var(--cream-2); }
.section-head { max-width: var(--wrap); margin: 0 auto clamp(2.2rem, 4.5vw, 3.8rem); }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); max-width: 20em; }
.section-sub { max-width: 36em; margin-top: 1.1rem; color: var(--ink-soft); }
.section-sub a { color: var(--coral-deep); font-weight: 700; }

/* ---------- reveal ---------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 700; font-size: 1rem; line-height: 1;
  padding: 1rem 1.7rem; border-radius: 999px;
  text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }
.btn-sm { padding: .68rem 1.2rem; font-size: .92rem; }

.btn-solid { background: var(--coral); color: #fff; box-shadow: 0 6px 18px -6px rgba(207, 106, 74, .55); }
.btn-solid:hover { background: var(--coral-deep); }

.btn-ghost { border: 2px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  background: transparent;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.nav.is-scrolled {
  background: rgba(248, 245, 239, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line-soft);
}

.nav-inner {
  max-width: calc(var(--wrap) + 4rem);
  margin: 0 auto;
  display: flex; align-items: center; gap: 2rem;
  padding: .9rem clamp(1.25rem, 4vw, 2rem);
}

.logo {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--serif); font-weight: 600; font-size: 1.22rem;
  text-decoration: none; color: var(--ink);
}
.logo em { font-style: normal; color: var(--teal); }
.logo-mark { width: 34px; height: 34px; color: var(--night); }

.nav-links { display: flex; gap: 1.7rem; margin-left: auto; }
.nav-links a {
  font-size: .97rem; font-weight: 600; text-decoration: none; color: var(--ink-soft);
  background-image: linear-gradient(var(--coral), var(--coral));
  background-repeat: no-repeat; background-size: 0% 2px; background-position: 0 100%;
  padding-bottom: 3px;
  transition: color .25s var(--ease), background-size .3s var(--ease);
}
.nav-links a:hover { color: var(--ink); background-size: 100% 2px; }

.nav-actions { display: flex; align-items: center; gap: 1.1rem; }
.nav-phone { font-size: .97rem; font-weight: 700; text-decoration: none; color: var(--night); font-variant-numeric: tabular-nums; }
.nav-phone:hover { color: var(--coral-deep); }

.nav-burger { display: none; flex-direction: column; gap: 5px; padding: .6rem .2rem; }
.nav-burger i { display: block; width: 22px; height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease); }
.nav-burger[aria-expanded="true"] i:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-burger[aria-expanded="true"] i:last-child { transform: translateY(-3.75px) rotate(-45deg); }

@media (max-width: 480px) {
  /* logo + CTA + burger must fit 375px: tighten every gap in the row */
  .nav-inner { gap: .8rem; padding-left: 1rem; padding-right: 1rem; }
  .nav-actions { gap: .6rem; }
  .logo { font-size: 1.05rem; gap: .45rem; }
  .logo-mark { width: 28px; height: 28px; }
  .btn-sm { padding: .6rem .95rem; font-size: .86rem; }
}

@media (max-width: 900px) {
  .nav-phone { display: none; }
  .nav-burger { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--card);
    border-bottom: 1px solid var(--line-soft);
    box-shadow: var(--shadow);
    padding: .5rem 1.25rem 1rem;
    opacity: 0; transform: translateY(-8px); pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  .nav.menu-open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav.menu-open { background: var(--card); }
  .nav-links a { padding: .85rem 0; border-bottom: 1px solid var(--line-soft); }
  .nav-links a:last-child { border-bottom: 0; }
}

/* ============================================================
   HERO
   ============================================================ */

.hero { padding: clamp(6.5rem, 13vh, 8.5rem) clamp(1.25rem, 5vw, 4rem) 0; overflow: hidden; }

.hero-inner {
  max-width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.hero-copy h1 { font-size: clamp(2.5rem, 5.6vw, 4.3rem); max-width: 11em; text-wrap: balance; }
.hero-sub { margin-top: 1.4rem; max-width: 30em; font-size: 1.14rem; color: var(--ink-soft); }

.hero-cta { margin-top: 2rem; display: flex; gap: .9rem; flex-wrap: wrap; }

.hero-proof {
  list-style: none; margin-top: 1.8rem;
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem;
}
.hero-proof li {
  font-size: .93rem; font-weight: 600; color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: .45rem;
}
.hero-proof li::before {
  content: ""; width: 15px; height: 15px; flex-shrink: 0;
  background-color: var(--teal);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round' d='M4 12.5l5.5 5.5L20 7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round' d='M4 12.5l5.5 5.5L20 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* hero children stagger */
.hero-copy .reveal:nth-child(1) { transition-delay: .04s; }
.hero-copy .reveal:nth-child(2) { transition-delay: .1s; }
.hero-copy .reveal:nth-child(3) { transition-delay: .17s; }
.hero-copy .reveal:nth-child(4) { transition-delay: .24s; }
.hero-copy .reveal:nth-child(5) { transition-delay: .3s; }
.hero-art.reveal { transition-delay: .2s; }

.hero-svg { width: 100%; height: auto; }
.sparkles path { animation: twinkle 3.2s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.sparkles path:nth-child(2) { animation-delay: 1.1s; }
.sparkles path:nth-child(3) { animation-delay: 2.2s; }
@keyframes twinkle { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.72); } }
@media (prefers-reduced-motion: reduce) { .sparkles path { animation: none; } }

/* ---------- trust bar ---------- */

.trustbar { border-top: 2px dashed var(--line); }
.trust-grid {
  max-width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: clamp(1.6rem, 3.2vw, 2.4rem) 0;
  gap: 1.4rem;
}
.trust-item { display: flex; flex-direction: column; }
.trust-item dt { font-size: .88rem; color: var(--ink-soft); order: 2; }
.trust-item dd {
  font-family: var(--serif); font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.1;
  color: var(--night); font-variant-numeric: tabular-nums;
  margin-bottom: .15rem;
}
.trust-item:nth-child(2) { transition-delay: .07s; }
.trust-item:nth-child(3) { transition-delay: .14s; }
.trust-item:nth-child(4) { transition-delay: .21s; }
/* the "9 in 10" stat is literal text, not a counter */
.trust-item .count[data-prefix] { display: none; }
.trust-lit { font-family: var(--serif); }

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { max-width: 460px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   COMFORT MENU
   ============================================================ */

.comfort-grid {
  max-width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.comfort-copy h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }

.comfort-note {
  margin-top: 1.4rem;
  padding: .9rem 1.1rem;
  background: var(--card); border: 1.5px dashed var(--line);
  border-radius: var(--r);
  font-size: .95rem; color: var(--ink-soft);
}

.comfort-list {
  list-style: none;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: .8rem;
}
.comfort-list li:nth-child(2) { transition-delay: .05s; }
.comfort-list li:nth-child(3) { transition-delay: .1s; }
.comfort-list li:nth-child(4) { transition-delay: .15s; }
.comfort-list li:nth-child(5) { transition-delay: .2s; }
.comfort-list li:nth-child(6) { transition-delay: .25s; }

.comfort-chip {
  width: 100%;
  display: flex; align-items: center; gap: .8rem;
  padding: 1.05rem 1.15rem;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  font-weight: 600; font-size: .98rem; text-align: left;
  transition: border-color .25s var(--ease), background-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.comfort-chip svg { width: 24px; height: 24px; color: var(--teal); flex-shrink: 0; transition: color .25s var(--ease); }
.comfort-chip:hover { border-color: var(--teal); transform: translateY(-2px); box-shadow: var(--shadow); }
.comfort-chip[aria-pressed="true"] {
  border-color: var(--coral); background: rgba(232, 137, 107, .1);
}
.comfort-chip[aria-pressed="true"] svg { color: var(--coral-deep); }
@media (prefers-reduced-motion: reduce) { .comfort-chip:hover { transform: none; } }

@media (max-width: 900px) {
  .comfort-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .comfort-list { grid-template-columns: 1fr; }
}

/* ============================================================
   SERVICES
   ============================================================ */

.service-grid {
  max-width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.6rem);
}
.service:nth-child(3n+2) { transition-delay: .07s; }
.service:nth-child(3n+3) { transition-delay: .14s; }

.service {
  background: var(--card);
  border: 1.5px solid var(--line-soft);
  border-radius: var(--r);
  padding: 1.8rem 1.6rem 1.5rem;
  display: flex; flex-direction: column; gap: .65rem;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line); }
@media (prefers-reduced-motion: reduce) { .service:hover { transform: none; } }

.service-icon {
  width: 58px; height: 58px;
  border-radius: 16px;
  background: var(--sky-soft);
  display: grid; place-items: center;
  color: var(--night);
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
.service-icon svg { width: 34px; height: 34px; }
.service:hover .service-icon { background: var(--coral); color: #fff; }

.service h3 { font-size: 1.38rem; }
.service p { font-size: .96rem; color: var(--ink-soft); flex: 1; }
.service-price {
  font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--teal);
  padding-top: .7rem; margin-top: .2rem;
  border-top: 1.5px dashed var(--line-soft);
  align-self: stretch;
}

@media (max-width: 980px) { .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px)  { .service-grid { grid-template-columns: 1fr; } }

/* ============================================================
   FIRST VISIT
   ============================================================ */

.visit-grid {
  max-width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: .85fr 1.15fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.visit-copy h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }

.steps { list-style: none; display: grid; gap: clamp(1.5rem, 3vw, 2.4rem); }
.step { display: grid; grid-template-columns: 3.4rem 1fr; gap: 1.1rem; position: relative; }
.step:nth-child(2) { transition-delay: .08s; }
.step:nth-child(3) { transition-delay: .16s; }

.step-num {
  width: 3.4rem; height: 3.4rem;
  border-radius: 50%;
  background: var(--card); border: 2px solid var(--sky);
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.5rem; color: var(--teal);
}
.step h3 { font-size: 1.4rem; margin-bottom: .4rem; }
.step p { color: var(--ink-soft); max-width: 32em; }
.step:not(:last-child)::after {
  content: ""; position: absolute; left: 1.65rem; top: 3.8rem; bottom: -1.6rem;
  width: 2px; background: var(--line-soft); border-radius: 2px;
}

@media (max-width: 900px) { .visit-grid { grid-template-columns: 1fr; } }

/* ============================================================
   TEAM
   ============================================================ */

.team-grid {
  max-width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.2rem, 2.5vw, 2rem);
}
.member:nth-child(2) { transition-delay: .07s; }
.member:nth-child(3) { transition-delay: .14s; }

.member { text-align: center; }
.member-art {
  border-radius: var(--r); overflow: hidden;
  max-width: 260px; margin: 0 auto 1.1rem;
  transition: transform .4s var(--ease);
}
/* Portraits are square; pin the ratio so a slow load cannot collapse the row. */
.member-art img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.member:hover .member-art { transform: translateY(-4px) rotate(-1deg); }
@media (prefers-reduced-motion: reduce) { .member:hover .member-art { transform: none; } }

.member h3 { font-size: 1.42rem; }
.member-role { font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--coral-deep); margin: .3rem 0 .6rem; }
.member-bio { font-size: .95rem; color: var(--ink-soft); max-width: 30em; margin: 0 auto; }

@media (max-width: 860px) { .team-grid { grid-template-columns: 1fr; } }

/* ============================================================
   TESTIMONIALS
   ============================================================ */

.voices-head { text-align: center; }
.voices-head h2 { margin: 0 auto; }

.quote-stage { max-width: 760px; margin: 0 auto; position: relative; text-align: center; display: grid; }
.quote {
  grid-area: 1 / 1;
  opacity: 0; transform: translateY(14px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  pointer-events: none;
  padding-bottom: 4.5rem;
}
.quote.is-active { opacity: 1; transform: none; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .quote { transition: none; } }

.quote blockquote {
  font-family: var(--serif); font-weight: 550;
  font-size: clamp(1.4rem, 2.9vw, 2rem); line-height: 1.4;
  text-wrap: balance;
}
.quote figcaption {
  margin-top: 1.3rem;
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  font-size: .9rem; font-weight: 700; color: var(--ink-soft);
}

.quote-nav {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center; gap: 1.2rem;
}
.q-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--card);
  transition: border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.q-btn:hover { border-color: var(--coral); color: var(--coral-deep); }
.q-btn:active { transform: scale(.94); }
.q-btn svg { width: 18px; height: 18px; }

.q-dots { display: flex; gap: .55rem; }
.q-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--line); padding: 0;
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.q-dot[aria-selected="true"] { background: var(--coral); transform: scale(1.25); }

/* ============================================================
   FAQ + INSURANCE
   ============================================================ */

.faq-grid {
  max-width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: .85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.faq-copy h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }

.insurance {
  margin-top: 1.8rem;
  background: var(--card);
  border: 1.5px solid var(--line-soft);
  border-radius: var(--r);
  padding: 1.5rem 1.5rem 1.2rem;
}
.insurance h3 { font-size: 1.2rem; margin-bottom: .8rem; }
.ins-list { list-style: none; display: grid; gap: .55rem; }
.ins-list li {
  font-size: .95rem; color: var(--ink-soft);
  display: flex; align-items: baseline; gap: .55rem;
}
.ins-list li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sky); flex-shrink: 0; transform: translateY(-1px); }
.ins-list li:last-child { color: var(--coral-deep); font-weight: 700; }

.faq-list { display: grid; gap: .8rem; }
.faq-item {
  background: var(--card);
  border: 1.5px solid var(--line-soft);
  border-radius: var(--r);
  padding: 0 1.4rem;
  transition: border-color .3s var(--ease);
}
.faq-item[open] { border-color: var(--line); }
.faq-item summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 0;
  font-weight: 700; font-size: 1.05rem;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-toggle { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.faq-toggle::before, .faq-toggle::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  background: var(--teal); border-radius: 2px;
  transition: transform .3s var(--ease);
}
.faq-toggle::before { width: 14px; height: 2.5px; }
.faq-toggle::after { width: 2.5px; height: 14px; }
.faq-item[open] .faq-toggle::after { transform: rotate(90deg); }
.faq-item p { padding: 0 0 1.25rem; color: var(--ink-soft); max-width: 42em; }

@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } }

/* ============================================================
   BOOKING
   ============================================================ */

.book-grid {
  max-width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.book-copy h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }

.hours {
  margin-top: 1.8rem;
  background: var(--card);
  border: 1.5px solid var(--line-soft);
  border-radius: var(--r);
  padding: 1.5rem 1.5rem 1rem;
}
.hours h3 { font-size: 1.2rem; margin-bottom: .8rem; }
.hours dl > div {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .5rem 0;
  border-bottom: 1.5px dashed var(--line-soft);
  font-size: .96rem;
}
.hours dl > div:last-child { border-bottom: 0; }
.hours dt { font-weight: 700; }
.hours dd { color: var(--ink-soft); }

.book-card {
  background: var(--card);
  border: 1.5px solid var(--line-soft);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 3vw, 2.2rem);
}
.book-card .bk-field legend, .bk-field label {
  display: block;
  font-size: .88rem; font-weight: 700; margin-bottom: .5rem;
}
.bk-field { border: 0; margin-bottom: 1.05rem; }
.bk-field .opt { font-weight: 400; color: var(--ink-soft); }

.slot-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.slot {
  padding: .8rem .9rem; border-radius: 12px;
  border: 1.5px solid var(--line);
  font-size: .95rem; font-weight: 600;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.slot:hover { border-color: var(--teal); }
.slot.is-picked { border-color: var(--coral); background: rgba(232, 137, 107, .12); color: var(--coral-deep); }

.bk-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }

.bk-field input {
  width: 100%; font: inherit; font-size: .98rem; color: var(--ink);
  background: var(--cream); border: 1.5px solid var(--line); border-radius: 12px;
  padding: .8rem .95rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.bk-field input::placeholder { color: rgba(100, 112, 122, .6); }
.bk-field input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3.5px rgba(79, 143, 168, .16); }
.bk-field input.is-invalid { border-color: #c65b3d; box-shadow: 0 0 0 3.5px rgba(198, 91, 61, .14); }

.bk-error { font-size: .88rem; color: #c65b3d; font-weight: 600; margin: -.2rem 0 .7rem; }

.bk-submit { width: 100%; margin-top: .3rem; }
.bk-fine { margin-top: 1rem; font-size: .82rem; color: var(--ink-soft); text-align: center; }

.book-done { text-align: center; padding: 1.5rem 0; }
.done-mark { width: 54px; height: 54px; color: var(--teal); margin: 0 auto 1rem; }
.book-done h3 { font-size: 1.7rem; margin-bottom: .6rem; }
.book-done p { color: var(--ink-soft); max-width: 28em; margin: 0 auto; }

@media (max-width: 900px) { .book-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .bk-row, .slot-grid { grid-template-columns: 1fr; } }

/* ============================================================
   FOOTER
   ============================================================ */

.footer { background: var(--night); color: rgba(248, 245, 239, .85); }
.footer-inner {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 4rem);
  display: grid; grid-template-columns: 1.2fr .8fr 1.4fr;
  gap: clamp(2rem, 4vw, 3.5rem);
}
.logo-footer { color: var(--cream); }
.logo-footer em { color: var(--sky); }
.logo-footer .logo-mark { color: var(--cream); }
.footer-brand p { margin-top: 1.1rem; font-size: .95rem; line-height: 1.75; }
.footer-brand a { color: var(--cream); text-decoration: none; font-weight: 700; }
.footer-brand a:hover { color: var(--sky); }

.footer-links { display: flex; flex-direction: column; gap: .65rem; }
.footer-links a { text-decoration: none; font-size: .95rem; transition: color .2s var(--ease); }
.footer-links a:hover { color: var(--sky); }

.footer-note { font-size: .84rem; line-height: 1.65; color: rgba(248, 245, 239, .6); }
.footer-note p { margin-bottom: .8rem; }
.footer-note strong { color: rgba(248, 245, 239, .85); }
.footer-copy { padding-top: .5rem; }

@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr; } }
