﻿/*
Theme Name: Opalign Orthodontics
Theme URI: https://opalignorthodontics.com
Author: Mehedi Hasan Sajal
Author URI: https://opalignorthodontics.com
Description: Boutique orthodontics WordPress theme for Opalign Orthodontics — luxury Invisalign and braces in Kingwood, TX. Fully mobile responsive. Auto-creates all pages, menu, front page and loads media on activation. Ready to use.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: opalign
*/
/* ===== Tokens (extracted from original site) ===== */
:root {
  --navy: #0d1b2a;
  --gold: #c9a96e;
  --gold-light: #dfc08a;
  --cream: #faf7f2;
  --cream-2: #e5e2db;
  --cream-3: #d6d2c8;
  --ink: #1c2430;
  --ink-soft: #5a6573;
  --white: #ffffff;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --maxw: 1500px;
  --radius: 10px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 44px; }
.section { padding: 110px 0; }

/* ===== Typography ===== */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: clamp(2.7rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h3 { font-size: 1.35rem; }
em { font-style: italic; color: var(--gold); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 40px; height: 1px; background: var(--gold); flex-shrink: 0; }
.eyebrow-center { justify-content: center; }

.section-head { text-align: center; max-width: 700px; margin: 0 auto 64px; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 16px 34px;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  border: 1px solid transparent;
}
.btn-sm { padding: 12px 24px; font-size: 0.72rem; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-navy { background: #0D1B2A; color: var(--cream); border-color: #0D1B2A; }
.btn-navy:hover { background: #162331; border-color: #162331; }
.btn-text { color: var(--ink); padding-left: 6px; padding-right: 6px; letter-spacing: 0.12em; }
.btn-text:hover { color: var(--gold); }
.btn-outline-light { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-light:hover { background: #162331; border-color: #162331; color: var(--cream); }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 60;
  background: #1B2836;
  border-bottom: 1px solid rgba(201,169,110,0.18);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 24px; }

.brand { display: flex; align-items: center; }
.brand-logo { height: 50px; width: auto; object-fit: contain; }

.nav { display: flex; gap: 26px; }
.nav a {
  font-size: 0.78rem; font-weight: 400; color: rgba(250,247,242,0.78);
  text-transform: uppercase; letter-spacing: 0.12em; transition: color 0.2s;
}
.nav a:hover { color: var(--gold); }

.header-actions { display: flex; align-items: center; gap: 16px; }
.nav-toggle { display: none; background: none; border: none; color: var(--cream); cursor: pointer; padding: 4px; }

/* ===== Hero ===== */
.hero { background: var(--cream); position: relative; overflow: hidden; }

/* Full-bleed image on the right that fades into the cream background */
.hero-media { position: absolute; top: 0; right: 0; bottom: 0; width: 60%; z-index: 1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-fade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to right, var(--cream) 0%, rgba(250,247,242,0.75) 14%, rgba(250,247,242,0) 42%),
    linear-gradient(to bottom, rgba(250,247,242,0.5) 0%, rgba(250,247,242,0) 18%),
    linear-gradient(to top, var(--cream) 0%, rgba(250,247,242,0) 16%);
}

.hero-grid { position: relative; z-index: 2; min-height: 640px; display: flex; align-items: center; }
.hero-copy { width: 52%; padding: 80px 0; }
.hero h1 { margin-bottom: 28px; }
.hero-sub { font-size: 1.08rem; color: var(--ink-soft); max-width: 520px; margin-bottom: 38px; font-weight: 300; }
.hero-cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-bottom: 52px; }

.hero-stats { display: flex; gap: 44px; flex-wrap: wrap; padding-top: 36px; border-top: 1px solid var(--cream-3); max-width: 680px; }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-num { font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--ink); line-height: 1; }
.stat-label { font-size: 0.7rem; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.14em; }

/* ===== Marquee ===== */
.marquee { background: var(--gold); overflow: hidden; padding: 18px 0; }
.marquee-track {
  display: inline-flex; align-items: center; gap: 26px; white-space: nowrap;
  animation: scroll 38s linear infinite;
}
.marquee-track span {
  font-family: var(--sans); font-style: normal; font-size: 13px; color: var(--navy); font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.14em;
}
.marquee-track i { color: var(--navy); font-style: normal; opacity: 0.6; font-size: 0.7rem; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== Difference ===== */
.difference { background: var(--cream); text-align: center; padding: 100px 0; }
.difference .section-head { margin: 0 auto 52px; }
.difference-card {
  position: relative;
  width: 300px; margin: 0 auto; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--cream-3); box-shadow: 0 30px 70px -36px rgba(13,27,42,0.45);
  background: var(--navy);
}
.difference-card img,
.difference-card video { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.video-sound {
  position: absolute; bottom: 14px; right: 14px;
  width: 46px; height: 46px; padding: 0;
  display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.28); border-radius: 50%;
  background: rgba(13,27,42,0.55); color: #fff;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px -6px rgba(0,0,0,0.5);
  transition: transform 0.2s ease, background 0.25s ease, border-color 0.25s ease;
}
.video-sound:hover { background: rgba(13,27,42,0.78); border-color: rgba(255,255,255,0.5); transform: scale(1.06); }
.video-sound:active { transform: scale(0.96); }
.video-sound svg { grid-area: 1 / 1; }
.video-sound .icon-sound { display: none; }
.video-sound.is-on .icon-muted { display: none; }
.video-sound.is-on .icon-sound { display: block; }

/* ===== Quote (navy) ===== */
.quote-section { background: var(--navy); color: var(--cream); }
.quote-grid { display: grid; grid-template-columns: 1fr 1.15fr; align-items: stretch; }
.quote-media { position: relative; }
.quote-media img { width: 100%; height: 100%; min-height: 460px; object-fit: cover; }
.quote-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to right, transparent 58%, rgba(13,27,42,0.55) 82%, var(--navy) 100%),
    linear-gradient(to bottom, rgba(13,27,42,0.35) 0%, transparent 12%, transparent 88%, rgba(13,27,42,0.35) 100%);
}
.quote-body { padding: 90px clamp(28px, 6vw, 90px); align-self: center; }
.quote-mark { font-family: var(--serif); font-size: 9rem; color: #3C3E3B; line-height: 0.8; display: block; margin-bottom: 8px; }
.quote-body blockquote {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  line-height: 1.35; color: var(--cream); margin-bottom: 28px;
}
.quote-name { font-family: var(--sans); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--gold); }
.quote-role { font-size: 0.85rem; color: rgba(250,247,242,0.6); margin-top: 6px; }
.cred-row { display: flex; gap: 48px; flex-wrap: wrap; margin-top: 40px; padding-top: 32px; border-top: 1px solid rgba(201,169,110,0.25); }
.cred-row > div { font-family: var(--serif); font-size: 1.15rem; color: var(--cream); }
.cred-row span { display: block; font-family: var(--sans); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--gold); margin-bottom: 8px; font-weight: 400; }

/* ===== First Visit (navy) ===== */
.first-visit { background: var(--navy); color: var(--cream); }
.first-grid { display: grid; grid-template-columns: 1fr 1.15fr; align-items: stretch; }
.first-media img,
.first-media video { width: 100%; height: 100%; min-height: 520px; object-fit: cover; display: block; }
.first-body { padding: 100px clamp(28px, 6vw, 90px); align-self: center; }
.first-body h2 { color: var(--cream); margin-bottom: 44px; }
.steps { display: grid; gap: 4px; margin-bottom: 44px; }
.steps li { display: flex; align-items: center; gap: 26px; padding: 22px 0; border-bottom: 1px solid rgba(201,169,110,0.2); }
.steps li:first-child { border-top: 1px solid rgba(201,169,110,0.2); }
.step-num { font-family: var(--serif); font-size: 1.5rem; color: var(--gold); min-width: 40px; }
.steps h3 { color: var(--cream); font-weight: 400; font-size: 1.5rem; }

/* ===== Treatments ===== */
.treatments { background: var(--cream); }
.treatment-list { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.treatment {
  position: relative; padding: 54px 56px 58px;
  border: 1px solid var(--cream-2); overflow: hidden;
}
.treatment::before {
  content: ""; position: absolute; top: 56px; left: 56px;
  width: 38px; height: 1px; background: var(--gold);
}
.treatment-num {
  position: absolute; top: 32px; right: -8px;
  font-family: var(--serif); font-size: 6rem; color: #e8e0d0; line-height: 1; font-weight: 400;
}
.treatment h3 { margin: 0 0 18px; padding-top: 58px; font-size: 1.9rem; font-weight: 400; color: var(--ink); }
.treatment p { color: var(--ink-soft); margin-bottom: 30px; font-weight: 300; font-size: 0.98rem; max-width: 360px; }
.learn { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--gold); font-weight: 500; transition: letter-spacing 0.25s ease; }
.learn:hover { letter-spacing: 0.26em; }
.treatment::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--gold); transform: scaleX(0); transform-origin: left center;
  transition: transform 0.5s ease;
}
.treatment:hover::after { transform: scaleX(1); }

/* ===== Image band ===== */
.image-band { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
.image-band img { width: 100%; height: auto; display: block; }

/* ===== Reviews (navy) ===== */
.reviews { background: var(--navy); }
.reviews .eyebrow { color: var(--gold); }
.reviews h2 { color: var(--cream); font-size: 64px; line-height: 67px; }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.review {
  background: #0D1B2A; border: 1px solid #c9a96e26;
  border-radius: 0; padding: 40px 34px;
}
.stars { color: var(--gold); letter-spacing: 0.2em; margin-bottom: 20px; font-size: 1.1rem; }
.review blockquote { font-family: "Cormorant Garamond", serif; font-weight: 300; font-style: italic; font-size: 20px; line-height: 30px; color: rgba(250,247,242,0.9); margin-bottom: 24px; }
.review figcaption { font-family: var(--sans); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--gold); }

/* ===== Insurance ===== */
.insurance { background: #FFFFFF; }
.insurance-grid { display: grid; grid-template-columns: 560px 1fr; gap: 120px; align-items: start; }
.insurance-copy h2 { margin-bottom: 40px; font-size: 48px; line-height: 52px; color: var(--ink); font-weight: 400; }
.insurance-copy p { color: var(--ink-soft); font-weight: 300; font-size: 0.94rem; line-height: 1.7; max-width: 480px; }
.insurance-pills { display: flex; flex-wrap: wrap; gap: 11px; padding-top: 8px; }
.insurance-pills span {
  background: #ffffffe6; border: 1px solid #0d1b2a40; border-radius: 100px;
  padding: 10px 20px; font-size: 0.82rem; color: #3c4654; font-weight: 400;
  cursor: default; transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.insurance-pills span:hover {
  background: var(--gold); border-color: var(--gold); color: var(--navy);
}

/* ===== CTA (navy) ===== */
.cta {
  position: relative; overflow: hidden;
  background: var(--navy);
  text-align: center; padding: 120px 0; color: var(--cream);
}
.cta-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.cta-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(900px 420px at 82% 30%, rgba(201,169,110,0.10), transparent 60%),
    rgba(13,27,42,0.42);
}
.cta-inner { position: relative; z-index: 2; }
.cta .eyebrow { color: #ffffff; font-weight: 400; }
.cta .eyebrow::before { display: none; }
.cta-inner { max-width: 1100px; margin: 0 auto; }
.cta h2 { color: var(--cream); font-size: clamp(3rem, 5.5vw, 5rem); margin-bottom: 40px; font-weight: 400; white-space: nowrap; }
.cta-actions { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

/* ===== Footer ===== */
.footer { background: var(--navy); color: var(--cream); padding: 84px 0 34px; border-top: 1px solid rgba(201,169,110,0.18); }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1.1fr 1.3fr; gap: 44px; padding-bottom: 54px; }
.footer-logo { height: 46px; width: auto; margin-bottom: 22px; }
.footer-brand p { color: rgba(250,247,242,0.6); font-size: 0.92rem; max-width: 300px; font-weight: 300; }
.footer-col h4 { font-family: var(--sans); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--gold); margin-bottom: 22px; font-weight: 500; }
.footer-col a, .footer-col p { display: block; color: rgba(250,247,242,0.7); font-size: 0.9rem; margin-bottom: 13px; transition: color 0.2s; font-weight: 300; }
.footer-col a:hover { color: var(--gold); }
.contact-list { display: flex; flex-direction: column; gap: 16px; }
.footer-col .contact-item { display: flex; align-items: flex-start; gap: 10px; margin: 0; color: rgba(250,247,242,0.7); font-size: 0.9rem; font-weight: 300; line-height: 1.55; transition: color 0.2s; }
.footer-col a.contact-item:hover,
.footer-col a.contact-item:hover .contact-icon { color: var(--gold); }
.contact-icon { flex-shrink: 0; display: inline-flex; align-items: center; height: calc(0.9rem * 1.55); color: var(--gold); }
.contact-icon svg { display: block; width: 16px; height: 16px; }
.contact-text { display: block; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  padding-top: 30px; border-top: 1px solid rgba(201,169,110,0.18);
  font-size: 0.82rem; color: rgba(250,247,242,0.5);
}
.footer-links { display: flex; gap: 24px; align-items: center; }
.footer-links a { transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }

/* ===== Scroll Reveal ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .nav { gap: 18px; }
  .nav a { font-size: 0.72rem; letter-spacing: 0.08em; }
}
@media (max-width: 920px) {
  /* Hero — stack: text first, image below */
  .hero { display: flex; flex-direction: column; }
  .hero-grid { order: 1; display: block; min-height: 0; }
  .hero-copy { width: 100%; padding: 46px 0 34px; }
  .hero-stats { max-width: none; }
  .hero-media { position: static; order: 2; width: 100%; }
  .hero-media img { width: 100%; height: auto; max-height: 440px; object-fit: cover; object-position: center top; }
  .hero-fade { display: none; }

  /* Stacked split sections */
  .quote-grid, .first-grid, .insurance-grid { grid-template-columns: 1fr; }
  .quote-media img { min-height: 320px; max-height: 440px; }
  .first-media img, .first-media video { min-height: 320px; max-height: 440px; }
  .quote-media::after { display: none; }
  .quote-body, .first-body { padding: 54px 28px; }
  .review-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav {
    position: fixed; inset: 84px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--navy); padding: 10px 28px 24px; transform: translateY(-130%);
    transition: transform 0.35s ease; border-bottom: 1px solid rgba(201,169,110,0.2);
    box-shadow: 0 20px 40px -24px rgba(0,0,0,0.6);
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 14px 0; border-bottom: 1px solid rgba(201,169,110,0.12); font-size: 0.9rem; }
  .nav-toggle { display: block; }
  .header-actions { gap: 12px; }
  .header-actions .btn-sm { display: inline-block; white-space: nowrap; padding: 11px 18px; font-size: 0.66rem; letter-spacing: 0.12em; }
  .section { padding: 60px 0; }
  .hero-cta { gap: 14px; }
  .hero-stats { gap: 26px; }
  .reviews h2, .insurance-copy h2 { font-size: 40px; line-height: 44px; }
  .cta h2 { white-space: normal; }
  .marquee-track span { font-size: 12px; }
  .treatment-list { grid-template-columns: 1fr; }
  .treatment { padding: 40px 30px 44px; }
  .treatment::before { top: 40px; left: 30px; }
  .treatment h3 { padding-top: 48px; font-size: 1.6rem; padding-right: 44px; }
  .treatment-num { font-size: 5rem; top: 24px; right: 16px; }
  .image-band { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cred-row { gap: 26px; }
}
@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .header .container, .header-inner { }
  h1 { font-size: clamp(2.3rem, 10vw, 3rem); }
  .quote-body blockquote { font-size: 1.5rem; }
  .cta h2 { font-size: 2.4rem; }
  .page-hero h1 { font-size: 2.6rem; }
  .book-hero h1 { font-size: 2.5rem; }
  .stat-num { font-size: 1.7rem; }
  .brand-logo { height: 40px; }
}

/* ===== Active nav link ===== */
.nav a.active { color: var(--gold); }

/* ===== Page Hero (Gallery) ===== */
.page-hero { background: var(--navy); text-align: center; padding: 64px 0 88px; color: var(--cream); }
.page-hero .eyebrow { color: var(--gold); }
.page-hero h1 { color: var(--cream); font-size: clamp(3rem, 6vw, 5rem); font-weight: 400; }

/* ===== Smile Transformations ===== */
.transforms { background: var(--cream); }
.drag-hint { margin-top: 18px; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.22em; color: var(--ink-soft); }
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 1040px; margin: 0 auto; }
.ba-card figcaption { text-align: center; margin-top: 18px; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }

.ba-slider {
  position: relative; overflow: hidden; user-select: none; touch-action: none;
  cursor: ew-resize; background: var(--cream-2); line-height: 0;
  aspect-ratio: 3 / 2;
}
.ba-before { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-after { position: absolute; inset: 0; clip-path: inset(0 0 0 50%); }
.ba-after img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-badge {
  position: absolute; top: 14px; z-index: 3; font-size: 0.58rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; padding: 6px 12px; line-height: 1;
}
.ba-badge-before { left: 14px; background: var(--navy); color: var(--cream); }
.ba-badge-after { right: 14px; background: var(--gold); color: var(--navy); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: rgba(250,247,242,0.85); transform: translateX(-50%); z-index: 2; pointer-events: none; }
.ba-handle span {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 38px; height: 38px; border-radius: 50%; background: var(--gold); color: var(--navy);
  display: flex; align-items: center; justify-content: center; font-size: 0.95rem; letter-spacing: 1px;
  box-shadow: 0 3px 12px rgba(13,27,42,0.4);
}

/* ===== Section divider ===== */
.section-divider { width: 64px; height: 1px; background: var(--gold); margin: 0 auto; opacity: 0.7; }

/* ===== Meet Our Team ===== */
.team-section { background: var(--cream); }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 1040px; margin: 0 auto; }
.team-card { text-align: center; }
.team-photo { aspect-ratio: 1 / 1.12; overflow: hidden; margin-bottom: 24px; border-radius: 4px; background: var(--cream-2); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: 1.4rem; font-weight: 400; color: var(--ink); margin-bottom: 8px; }
.team-role { font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--gold); margin-bottom: 18px; font-weight: 500; }
.team-bio {
  font-size: 0.9rem; color: var(--ink-soft); font-weight: 300; text-align: left; line-height: 1.7;
  max-height: 7.6em; overflow: hidden; transition: max-height 0.5s ease;
  -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent);
  mask-image: linear-gradient(to bottom, #000 65%, transparent);
}
.team-card.open .team-bio { max-height: 200em; -webkit-mask-image: none; mask-image: none; }
.team-toggle {
  display: inline-flex; align-items: center; justify-content: center; margin-top: 14px;
  background: none; border: none; color: var(--gold); cursor: pointer; padding: 6px;
  transition: transform 0.3s ease;
}
.team-card.open .team-toggle { transform: rotate(180deg); }

/* ===== Our Office ===== */
.office-section { background: var(--cream); }
.office-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 720px; margin: 0 auto; }
.office-grid video { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; display: block; }

@media (max-width: 920px) {
  .ba-grid { grid-template-columns: 1fr; gap: 32px; }
  .team-grid { grid-template-columns: 1fr; gap: 48px; max-width: 460px; }
  .team-bio { text-align: center; }
}
@media (max-width: 760px) {
  .office-grid { grid-template-columns: 1fr; max-width: 420px; }
}

/* ===== Page hero subtitle (FAQ) ===== */
.page-hero-sub { margin: 22px auto 0; max-width: 640px; font-size: 0.95rem; line-height: 1.7; color: rgba(250,247,242,0.75); font-weight: 300; }

/* ===== FAQ Accordion ===== */
.faq-section { background: var(--cream); }
.faq-list { max-width: 900px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid rgba(13,27,42,0.15); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  background: none; border: none; cursor: pointer; text-align: left;
  font-family: var(--serif); font-weight: 400; font-size: clamp(1.25rem, 2vw, 1.5rem);
  color: var(--navy); padding: 26px 0; transition: color 0.2s ease;
}
.faq-q:hover { color: var(--gold); }
.faq-q svg { flex-shrink: 0; color: var(--navy); transition: transform 0.35s ease, color 0.2s ease; }
.faq-q:hover svg { color: var(--gold); }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height 0.4s ease; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a p { font-size: 0.95rem; line-height: 1.8; color: rgba(13,27,42,0.75); font-weight: 300; padding-bottom: 26px; max-width: 780px; }
.faq-a a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.faq-a a:hover { color: var(--gold-light); }

.faq-cta { text-align: center; margin-top: 72px; }
.faq-cta p { color: var(--ink-soft); margin-bottom: 26px; font-size: 0.95rem; }

/* ===== Emergencies ===== */
.emerg-section { background: var(--cream); }

.emerg-alert {
  display: flex; gap: 22px; align-items: flex-start; position: relative;
  background: #fbf3cf; border-radius: 8px; padding: 32px 56px 32px 36px;
  max-width: 1200px; margin: 0 auto;
}
.alert-icon {
  width: 44px; height: 44px; border-radius: 50%; background: #e0242b; color: #fff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.alert-body h3 { font-family: var(--serif); font-weight: 500; font-size: 1.55rem; color: var(--ink); margin-bottom: 10px; }
.alert-body p { font-size: 0.95rem; line-height: 1.7; color: #6f6235; font-weight: 300; }
.alert-body a { color: #c0392b; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.alert-close {
  position: absolute; top: 18px; right: 18px; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(120,100,30,0.12); border: none; cursor: pointer; color: #6f6235;
  display: flex; align-items: center; justify-content: center; transition: background 0.2s ease;
}
.alert-close:hover { background: rgba(120,100,30,0.22); }

.emerg-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
  max-width: 1200px; margin: 60px auto 0;
}
.emerg-card {
  position: relative; border-radius: 8px; padding: 44px 44px 48px;
  background: radial-gradient(130% 150% at 100% 100%, #322a55 0%, #1a2742 42%, #0d1b2a 78%);
  box-shadow: 0 30px 60px -34px rgba(13,27,42,0.55);
}
.emerg-card::before { content: ""; position: absolute; top: 42px; left: 44px; width: 34px; height: 1px; background: var(--gold); }
.emerg-card h3 { color: var(--cream); font-weight: 400; font-size: 1.6rem; padding-top: 44px; margin-bottom: 26px; }
.emerg-block { margin-bottom: 24px; }
.emerg-block:last-child { margin-bottom: 0; }
.emerg-label {
  display: flex; align-items: center; gap: 9px; font-size: 0.64rem; text-transform: uppercase;
  letter-spacing: 0.16em; color: var(--gold); margin-bottom: 9px; font-weight: 500;
}
.emerg-label svg { flex-shrink: 0; }
.emerg-text { font-size: 0.92rem; line-height: 1.65; color: rgba(250,247,242,0.72); font-weight: 300; }
.emerg-card:last-child { grid-column: 1 / -1; max-width: calc(50% - 14px); margin: 0 auto; }

.emerg-call { text-align: center; margin-top: 56px; }
.emerg-call-btn { display: inline-flex; align-items: center; gap: 10px; }

@media (max-width: 820px) {
  .emerg-grid { grid-template-columns: 1fr; }
  .emerg-card:last-child { grid-column: auto; max-width: none; }
  .emerg-alert { flex-wrap: wrap; padding: 28px 24px; }
}

/* ===== Patient Portal ===== */
.portal-section { background: var(--cream); }
.portal-card {
  max-width: 900px; margin: 0 auto; background: var(--white); text-align: center;
  border-top: 3px solid var(--gold); padding: 80px 56px;
  box-shadow: 0 40px 80px -44px rgba(13,27,42,0.4);
}
.portal-card h2 { font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 400; color: var(--ink); margin-bottom: 24px; }
.portal-lead { max-width: 520px; margin: 0 auto 40px; font-size: 1.05rem; line-height: 1.7; color: var(--ink-soft); font-weight: 300; }
.portal-btn { margin-bottom: 40px; }
.portal-note { max-width: 520px; margin: 0 auto 22px; font-size: 0.88rem; line-height: 1.7; color: var(--ink-soft); font-weight: 300; }
.portal-terms { font-size: 0.84rem; color: var(--ink-soft); font-weight: 300; }
.portal-terms a { color: var(--gold); text-decoration: none; }
.portal-terms a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .portal-card { padding: 56px 28px; }
}

/* ===== Book a Consultation ===== */
.book-hero h1 { font-size: clamp(3.4rem, 7vw, 5.5rem); }
.book-section { background: var(--cream); }
.book-card {
  max-width: 900px; margin: 0 auto; background: var(--white); padding: 16px;
  border-top: 3px solid var(--gold); box-shadow: 0 20px 60px rgba(13,27,42,0.08);
}
.book-card iframe { width: 100%; height: 650px; border: 0; display: block; }
.book-note { text-align: center; margin-top: 32px; font-size: 0.82rem; color: rgba(13,27,42,0.55); }
.book-terms { text-align: center; margin-top: 14px; font-size: 0.78rem; color: rgba(13,27,42,0.55); }
.book-note a, .book-terms a { color: var(--gold); }
.book-note a:hover, .book-terms a:hover { text-decoration: underline; }

/* ===== Legal (Terms / Privacy) ===== */
.legal-section { background: var(--cream); }
.legal-content { max-width: 1100px; margin: 0 auto; }
.legal-block { margin-bottom: 52px; }
.legal-block:last-child { margin-bottom: 0; }
.legal-block h2 { font-size: clamp(1.6rem, 2.4vw, 2rem); font-weight: 400; color: var(--ink); margin-bottom: 18px; }
.legal-block p { font-size: 0.98rem; line-height: 1.8; color: var(--ink-soft); font-weight: 300; margin-bottom: 12px; }
.legal-block ul { list-style: disc; padding-left: 24px; margin-top: 8px; }
.legal-block li { font-size: 0.98rem; line-height: 1.95; color: var(--ink-soft); font-weight: 300; }
.legal-block a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.legal-contact { display: flex; align-items: center; gap: 11px; }
.legal-contact svg { color: var(--gold); flex-shrink: 0; }
.legal-contact a { text-decoration: underline; }

/* ===== Scroll to top ===== */
.scroll-top {
  position: fixed; bottom: 26px; right: 26px; z-index: 80;
  width: 50px; height: 50px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--gold); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(0.85);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(.34,1.56,.64,1), background 0.25s ease;
  box-shadow: 0 10px 26px -8px rgba(201,169,110,0.6);
}
.scroll-top.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.scroll-top:hover { background: var(--gold-light); transform: translateY(-3px) scale(1.05); }

/* ===== Cookie consent (compact popup) ===== */
.cookie-banner {
  position: fixed; bottom: 26px; left: 26px; z-index: 90; width: 330px; max-width: calc(100vw - 52px);
  background: var(--navy); color: var(--cream); padding: 24px; border-radius: 16px;
  border: 1px solid rgba(201,169,110,0.28); box-shadow: 0 24px 60px -22px rgba(0,0,0,0.65);
  transform: translateY(24px) scale(0.96); opacity: 0; visibility: hidden;
  transition: transform 0.45s cubic-bezier(.34,1.4,.64,1), opacity 0.4s ease, visibility 0.4s ease;
}
.cookie-banner.show { transform: translateY(0) scale(1); opacity: 1; visibility: visible; }
.cookie-banner::before {
  content: "🍪"; display: block; font-size: 1.5rem; margin-bottom: 12px; line-height: 1;
}
.cookie-banner p { font-size: 0.82rem; line-height: 1.65; color: rgba(250,247,242,0.78); font-weight: 300; margin-bottom: 18px; }
.cookie-banner a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions .btn { flex: 1; text-align: center; padding: 11px 16px; }
.cookie-decline {
  flex: 1; background: transparent; border: 1px solid rgba(250,247,242,0.32); color: var(--cream);
  font-family: var(--sans); font-size: 0.72rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em;
  padding: 11px 16px; cursor: pointer; transition: border-color 0.2s ease, color 0.2s ease;
}
.cookie-decline:hover { border-color: var(--gold); color: var(--gold); }

@media (max-width: 600px) {
  .cookie-banner { left: 16px; right: 16px; bottom: 16px; width: auto; }
  .scroll-top { bottom: 20px; right: 20px; }
}

/* ===== Treatments Page ===== */
.treat-page { background: var(--cream); padding: 110px 0; }
.treat-rows { display: flex; flex-direction: column; gap: clamp(72px, 9vw, 130px); max-width: 1180px; margin: 0 auto; }
.treat-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.treat-row.reverse .treat-media { order: 2; }

.treat-media {
  border-radius: 8px; overflow: hidden; align-self: center; background: var(--cream-2);
  box-shadow: 0 34px 70px -42px rgba(13,27,42,0.5);
}
.treat-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }

.treat-copy .eyebrow { margin-bottom: 22px; }
.treat-copy h2 {
  position: relative; font-size: 44px; font-weight: 300; line-height: 48px;
  color: var(--ink); padding-bottom: 22px; margin-bottom: 26px;
}
.treat-copy h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 54px; height: 1px; background: var(--gold); }
.treat-copy p { color: var(--ink-soft); font-weight: 300; font-size: 15px; line-height: 27px; margin-bottom: 34px; max-width: 540px; }

/* ===== Treatments Page CTA ===== */
.treat-cta { background: var(--navy); color: var(--cream); text-align: center; padding: 96px 0; }
.treat-cta h2 { color: var(--cream); font-size: clamp(2.1rem, 4vw, 3rem); font-weight: 400; margin-bottom: 20px; }
.treat-cta p { color: rgba(250,247,242,0.7); font-weight: 300; font-size: 1rem; max-width: 560px; margin: 0 auto 36px; }

@media (max-width: 920px) {
  .treat-row { grid-template-columns: 1fr; gap: 28px; }
  .treat-row.reverse .treat-media { order: 0; }
  .treat-copy p { max-width: none; }
}
@media (max-width: 760px) {
  .treat-page { padding: 64px 0; }
  .treat-cta { padding: 72px 0; }
}

/* WordPress nav menu */
.nav-menu { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-menu li { list-style: none; }
.nav-menu .current-menu-item > a, .nav-menu .current_page_item > a { color: var(--gold); }
.admin-bar .header { top: 32px; }
@media (max-width: 1080px){ .nav-menu { gap: 18px; } }
@media (max-width: 760px){
  .nav-menu { flex-direction: column; gap: 0; width: 100%; align-items: stretch; }
  .nav-menu a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(201,169,110,0.12); font-size: 0.9rem; }
}