/* ============================================================
   Nojaé Dental Clinic — global stylesheet
   Palette pulled from the brushed-gold logo.
   ============================================================ */

:root {
  /* Brand palette */
  --bronze-deep:     #5a3f1b;   /* darkest tone on the logo plaque */
  --bronze:          #8a6324;   /* primary brand color */
  --gold:            #b48438;   /* highlight gold */
  --gold-light:      #d9b574;   /* soft gold */
  --cream:           #faf6ef;   /* page background */
  --ivory:           #f1ead9;   /* secondary background */
  --charcoal:        #2a2520;
  --slate:           #5d564d;
  --line:            #e6dcc4;

  /* UI */
  --radius:          14px;
  --radius-sm:       8px;
  --shadow-soft:     0 6px 24px rgba(90, 63, 27, 0.08);
  --shadow-strong:   0 14px 40px rgba(90, 63, 27, 0.18);

  /* Type */
  --font-serif:      "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans:       "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --max-w:           1180px;
  --gutter:          clamp(16px, 4vw, 32px);
}

/* ----------- Reset / base ----------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; display: block; }
a { color: var(--bronze); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--bronze-deep);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.15;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }
.eyebrow {
  font-family: var(--font-sans);
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin: 0 0 .8em;
}

/* ----------- Layout ----------- */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: clamp(56px, 8vw, 96px) 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }

/* ----------- Top bar ----------- */
.topbar {
  background: var(--bronze-deep);
  color: var(--cream);
  font-size: .85rem;
  padding: 8px 0;
}
.topbar .wrap { display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.topbar a { color: var(--gold-light); }
.topbar a:hover { color: #fff; }
.topbar-info { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-info span { display: inline-flex; align-items: center; gap: 6px; }

/* ----------- Header / nav ----------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: padding .25s ease, box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-soft); }

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 54px; height: 54px; border-radius: 8px; }
.brand-text { font-family: var(--font-serif); font-size: 1.35rem; color: var(--bronze-deep); line-height: 1; }
.brand-text small { display: block; font-size: .65rem; font-family: var(--font-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-top: 4px; }

.nav-list {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav-list a {
  color: var(--charcoal);
  font-weight: 500;
  font-size: .95rem;
  position: relative;
}
.nav-list a::after {
  content: "";
  position: absolute;
  bottom: -6px; left: 0;
  height: 2px; width: 0;
  background: var(--gold);
  transition: width .2s ease;
}
.nav-list a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 26px; height: 2px;
  background: var(--bronze-deep);
  margin: 5px 0;
  transition: transform .25s ease, opacity .25s ease;
}

/* ----------- Buttons ----------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--bronze) 0%, var(--gold) 100%);
  color: #fff;
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { color: #fff; box-shadow: var(--shadow-strong); }
.btn-outline {
  background: transparent;
  color: var(--bronze-deep);
  border-color: var(--bronze);
}
.btn-outline:hover { background: var(--bronze); color: #fff; }
.btn-ghost {
  background: rgba(180, 132, 56, 0.1);
  color: var(--bronze-deep);
}
.btn-ghost:hover { background: rgba(180, 132, 56, 0.18); }

/* ----------- Skyline banner (Seattle GIF) ----------- */
.skyline-banner {
  position: relative;
  width: 100%;
  height: clamp(260px, 38vw, 460px);
  overflow: hidden;
  background: #2a1f10; /* fallback while the gif loads */
  border-bottom: 4px solid var(--gold);
}
.skyline-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}
.skyline-banner::after {
  /* very gentle vignette so the gold border below feels intentional */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(20, 14, 6, 0.35) 100%);
  pointer-events: none;
}
.skyline-banner .caption {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  font-family: var(--font-serif);
  font-style: italic;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(.9rem, 1.6vw, 1.05rem);
  text-shadow: 0 2px 12px rgba(0,0,0,0.7);
  letter-spacing: .02em;
  text-align: center;
  padding: 0 var(--gutter);
}

/* ----------- Hero ----------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ivory);
  padding: clamp(36px, 5vw, 64px) 0 clamp(56px, 8vw, 96px);
}
.hero .eyebrow {
  font-size: 1rem;       /* +25% over the default .78rem */
  letter-spacing: .28em;
  font-weight: 700;
  color: var(--bronze);  /* deeper colour for stronger presence */
  margin-bottom: 1em;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 80% 20%, rgba(217, 181, 116, 0.25), transparent 70%),
    radial-gradient(50% 50% at 10% 90%, rgba(138, 99, 36, 0.18), transparent 70%);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  max-width: 880px;
  text-align: center;
}
.hero h1 span { color: var(--gold); font-style: italic; }
.hero .lead {
  font-size: 1.12rem;
  color: var(--slate);
  max-width: 60ch;
  margin: 0 auto 28px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 22px;
}
.hero-meta {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: .9rem;
  color: var(--slate);
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero-meta strong {
  color: var(--bronze-deep);
  display: block;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  margin-bottom: 2px;
}

/* ----------- Tagline strip ----------- */
.tagline-strip {
  background: var(--bronze-deep);
  color: var(--cream);
  text-align: center;
  padding: 24px 0;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  letter-spacing: .04em;
}
.tagline-strip em { color: var(--gold-light); font-style: italic; }

/* ----------- Doctor / About ----------- */
.about {
  background: var(--cream);
}
.about .wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: center;
}
.about-photo {
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  background: var(--ivory) center top / cover no-repeat;
  box-shadow: var(--shadow-soft);
  position: relative;
}
.about-photo::after {
  /* subtle warm rim to tie the portrait into the brand palette */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(180, 132, 56, 0.18);
  pointer-events: none;
}
.about-photo[data-empty="true"]::after {
  content: "Dr. Karimi photo";
  display: grid; place-items: center;
  height: 100%; color: var(--gold);
  font-family: var(--font-serif);
  box-shadow: none;
}
.mission {
  background: var(--ivory);
  border-left: 3px solid var(--gold);
  padding: 22px 26px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 22px 0;
}
.mission h3 { margin-top: 0; color: var(--bronze-deep); }

/* ----------- Services ----------- */
.services { background: var(--ivory); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}
.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px 24px;
  text-decoration: none;
  color: var(--charcoal);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
  border-color: var(--gold-light);
  color: var(--charcoal);
}
.service-card .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(180,132,56,.18), rgba(217,181,116,.25));
  color: var(--bronze);
  font-size: 1.3rem;
  margin-bottom: 14px;
}
.service-card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.service-card p { margin: 0; color: var(--slate); font-size: .92rem; }
.service-card .more {
  margin-top: 14px;
  font-size: .85rem;
  color: var(--bronze);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ----------- Emergency ----------- */
.emergency {
  background:
    linear-gradient(135deg, rgba(90,63,27,0.92), rgba(138,99,36,0.92)),
    radial-gradient(circle at 30% 30%, var(--gold), transparent 60%);
  color: #fff;
}
.emergency h2 { color: #fff; }
.emergency .eyebrow { color: var(--gold-light); }
.emergency .wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
}
.emergency p { color: rgba(255,255,255,0.88); }
.emergency-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(6px);
}
.emergency-card .phone {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--gold-light);
  display: block;
  margin: 8px 0 16px;
}

/* ----------- Trust / credentials ----------- */
.credentials { background: var(--cream); padding-block: 56px; }
.credentials .wrap {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.credentials .credential {
  flex: 0 0 auto;
  width: 148px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 10px;
  color: var(--slate);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.credentials .credential:hover {
  box-shadow: var(--shadow-soft);
  border-color: var(--gold-light);
  transform: translateY(-2px);
}
.credentials .credential .logo-wrap {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.credentials .credential img {
  max-height: 52px;
  max-width: 118px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.credentials .credential .label {
  font-family: var(--font-sans);
  font-size: .68rem;
  letter-spacing: .06em;
  color: var(--slate);
  line-height: 1.3;
  text-transform: uppercase;
  font-weight: 600;
}
@media (max-width: 520px) {
  .credentials .wrap { gap: 12px; }
  .credentials .credential { width: 132px; padding: 14px 10px 10px; }
}

/* ----------- Membership ----------- */
.membership { background: var(--cream); padding-bottom: clamp(28px, 4vw, 48px); }
.membership .section-head { margin-bottom: 32px; }
.membership-card {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  max-width: 880px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  border: 1px solid var(--gold-light);
}
.membership-price-side {
  background: linear-gradient(150deg, var(--gold) 0%, var(--bronze-deep) 100%);
  color: #fff;
  padding: 44px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}
.membership-label {
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 10px;
}
.membership-price {
  font-family: var(--font-serif);
  font-size: clamp(3.4rem, 7vw, 4.6rem);
  font-weight: 700;
  line-height: 1;
  color: #fff;
  display: inline-flex;
  align-items: flex-start;
}
.membership-price .currency {
  font-size: .42em;
  font-weight: 600;
  margin-top: .5em;
  margin-right: 2px;
}
.membership-per {
  font-size: .95rem;
  color: rgba(255,255,255,.88);
  margin-top: 8px;
  letter-spacing: .04em;
}
.membership-benefits {
  background: #fff;
  padding: clamp(28px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.membership-benefits-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--bronze-deep);
  margin: 0 0 18px;
}
.check-list { list-style: none; padding: 0; margin: 0 0 24px; }
.check-list li {
  position: relative;
  padding-left: 36px;
  margin-bottom: 14px;
  font-size: 1.06rem;
  color: var(--charcoal);
  line-height: 1.4;
}
.check-list li:last-child { margin-bottom: 0; }
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--bronze));
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}
@media (max-width: 620px) {
  .membership-card { grid-template-columns: 1fr; }
  .membership-price-side { padding: 32px 24px; }
}

/* ----------- Payment & financing ----------- */
.payment { background: var(--cream); }
.payment .section-head { margin-bottom: 36px; }
.payment .section-head h2 { margin-bottom: .35em; }
.payment-callout {
  display: inline-block;
  margin: 6px auto 0;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: clamp(.95rem, 1.8vw, 1.15rem);
  color: var(--bronze-deep);
  background: linear-gradient(135deg, rgba(180,132,56,.12), rgba(217,181,116,.22));
  border: 1px solid var(--gold-light);
  border-radius: 999px;
  padding: 12px 24px;
  line-height: 1.4;
}
.finance-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 36px auto 0;
  width: 100%;
  text-align: center;
}
.finance-logo {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease;
  min-width: 200px;
  min-height: 120px;
}
.finance-logo:hover { transform: translateY(-3px); box-shadow: var(--shadow-strong); }
.finance-logo img {
  max-height: 90px;
  max-width: 240px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.payment-note {
  text-align: center;
  margin-top: 24px;
  color: var(--slate);
  font-size: .92rem;
}

/* ----------- Contact ----------- */
.contact { background: var(--ivory); }
.contact .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--line);
}
.contact-card h3 { margin-top: 0; }
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.contact-row:last-child { border-bottom: 0; }
.contact-row .icon {
  width: 38px; height: 38px;
  background: var(--ivory);
  color: var(--bronze);
  border-radius: 10px;
  display: grid; place-items: center;
  flex-shrink: 0;
  font-size: 1.05rem;
}
.contact-row .label { font-size: .8rem; color: var(--slate); text-transform: uppercase; letter-spacing: .12em; }
.contact-row a, .contact-row span { color: var(--bronze-deep); font-weight: 600; }

.hours-list {
  list-style: none;
  padding: 0; margin: 0;
}
.hours-list li {
  display: flex; justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
}
.hours-list li:last-child { border-bottom: 0; }
.hours-list .day { color: var(--charcoal); font-weight: 500; }
.hours-list .time { color: var(--slate); }
.hours-list .closed { color: #b04141; }

/* ----------- Footer ----------- */
.site-footer {
  background: var(--bronze-deep);
  color: var(--cream);
  padding: 56px 0 28px;
}
.site-footer .wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.site-footer h4 {
  color: var(--gold-light);
  font-size: 1rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 0 0 14px;
  font-family: var(--font-sans);
  font-weight: 600;
}
.site-footer a { color: var(--cream); opacity: .85; }
.site-footer a:hover { color: var(--gold-light); opacity: 1; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { padding: 4px 0; font-size: .92rem; }
.site-footer .brand { color: var(--cream); }
.site-footer .brand-text { color: var(--cream); }
.site-footer p { color: rgba(250, 246, 239, 0.7); font-size: .9rem; }
.copyright {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 32px;
  padding-top: 20px;
  font-size: .85rem;
  color: rgba(250,246,239,0.6);
  text-align: center;
}

/* ============================================================
   Service detail pages
   ============================================================ */
.service-hero {
  background:
    linear-gradient(180deg, rgba(90,63,27,0.55), rgba(90,63,27,0.85)),
    linear-gradient(135deg, var(--gold) 0%, var(--bronze-deep) 100%);
  color: #fff;
  padding: clamp(80px, 10vw, 130px) 0 clamp(60px, 8vw, 100px);
  text-align: center;
}
.service-hero h1 { color: #fff; }
.service-hero p { color: rgba(255,255,255,0.92); max-width: 620px; margin: 0 auto; font-size: 1.1rem; }
.service-hero .eyebrow { color: var(--gold-light); }
.service-hero.has-image {
  background:
    linear-gradient(180deg, rgba(90,63,27,0.55), rgba(90,63,27,0.85)),
    center/cover no-repeat var(--bg-image);
}

.service-body { padding: clamp(48px, 7vw, 80px) 0; }
.service-body .wrap {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
}
.service-body h2 { margin-top: 0; }
.service-body ul { padding-left: 1.2em; }
.service-body ul li { margin-bottom: 8px; }

.sidebar {
  background: var(--ivory);
  border-radius: var(--radius);
  padding: 26px;
  height: fit-content;
  position: sticky;
  top: 100px;
  border: 1px solid var(--line);
}
.sidebar h3 { margin-top: 0; font-size: 1.1rem; }
.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar ul li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.sidebar ul li:last-child { border-bottom: 0; }
.sidebar ul li a { color: var(--charcoal); }
.sidebar ul li a:hover { color: var(--bronze); }
.sidebar .cta-box {
  background: var(--bronze-deep);
  color: var(--cream);
  border-radius: var(--radius-sm);
  padding: 18px;
  margin-top: 18px;
  text-align: center;
}
.sidebar .cta-box .phone { color: var(--gold-light); font-family: var(--font-serif); font-size: 1.4rem; display: block; margin: 4px 0 10px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 880px) {
  .nav-list {
    position: fixed;
    inset: 64px 0 auto 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px var(--gutter);
    gap: 18px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-150%);
    transition: transform .25s ease;
  }
  .nav-list.open { transform: translateY(0); }
  .nav-toggle { display: block; }

  .hero .wrap,
  .about .wrap,
  .emergency .wrap,
  .contact .wrap,
  .service-body .wrap {
    grid-template-columns: 1fr;
  }
  .hero-visual { aspect-ratio: 16/10; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .sidebar { position: static; }
}

@media (max-width: 520px) {
  .site-footer .wrap { grid-template-columns: 1fr; }
  .topbar { font-size: .78rem; }
  .topbar-info { gap: 14px; }
  .brand-text { font-size: 1.1rem; }
  .brand img { width: 44px; height: 44px; }
}

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

/* ============================================================
   Modals (appointment form & Google Map)
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(20, 14, 6, 0.62);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  padding: var(--gutter);
  -webkit-overflow-scrolling: touch;
}
.modal.open { display: flex; animation: modalFade .18s ease-out; }
@keyframes modalFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.modal-content {
  background: var(--cream);
  border-radius: var(--radius);
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  max-height: 92dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 36px 32px 32px;
  position: relative;
  box-shadow: var(--shadow-strong);
  border: 1px solid var(--line);
  animation: modalSlide .22s ease-out;
}
@keyframes modalSlide {
  from { transform: translateY(12px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.modal-content.modal-wide { max-width: 760px; padding: 0; overflow: hidden; }
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  background: rgba(0,0,0,0.06);
  color: var(--bronze-deep);
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 2;
  transition: background .15s ease;
}
.modal-close:hover { background: rgba(0,0,0,0.12); }
.modal h2 { margin-top: 0; }

/* ============================================================
   Form (appointment request)
   ============================================================ */
.form-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 520px) {
  .form-row { grid-template-columns: 1fr; }
}
.field label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: inherit;
  font-size: .95rem;
  color: var(--charcoal);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(180, 132, 56, 0.18);
}
.field textarea { min-height: 90px; resize: vertical; }
.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.form-note {
  margin-top: 10px;
  font-size: .85rem;
  color: var(--slate);
}
.form-success {
  background: rgba(180, 132, 56, 0.1);
  border: 1px solid var(--gold-light);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--bronze-deep);
  margin-top: 14px;
  display: none;
}
.form-success.visible { display: block; }

/* Map modal iframe */
.map-frame {
  width: 100%;
  height: 480px;
  border: 0;
  display: block;
}
.map-header {
  padding: 18px 24px 4px;
}
.map-header h3 { margin: 0 0 4px; }
.map-header p { margin: 0; color: var(--slate); font-size: .92rem; }
.map-footer {
  padding: 14px 24px 18px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--ivory);
}

/* Address as clickable trigger */
.address-trigger {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--bronze-deep);
  cursor: pointer;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: text-decoration-color .15s ease, color .15s ease;
}
.address-trigger:hover { text-decoration-color: var(--gold); color: var(--bronze); }

/* Hide hero-meta if HTML still includes it */
.hero-meta { display: none; }

/* Bold Nojaé brand mark in body copy */
.brand-bold {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--bronze-deep);
}

/* Specialty list inside the bio */
.specialty-list {
  columns: 2;
  column-gap: 28px;
  margin: 8px 0 18px;
  padding-left: 1.1em;
}
.specialty-list li { margin-bottom: 6px; break-inside: avoid; }
@media (max-width: 560px) {
  .specialty-list { columns: 1; }
}
.license-note {
  margin-top: 22px;
  padding: 14px 18px;
  background: var(--ivory);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .92rem;
  color: var(--slate);
}
.license-note strong { color: var(--bronze-deep); }
