/* ==========================================================
   Shokoufeh Khozein, DDS — site styles
   ========================================================== */

:root {
  --ink: #002a5e;          /* logo navy */
  --ink-2: #0b3d7a;
  --ink-deep: #001a3d;
  --ivory: #ffffff;
  --paper: #ffffff;
  --sand: #ffffff;
  --line: #e6dfd3;
  --text: #2a2f3a;
  --muted: #6b7180;
  --gold: #d4aa00;         /* logo gold: fills, rules, icons */
  --gold-text: #9c7d00;    /* same gold, deepened for text on white */
  --teal: #1b6662;         /* logo teal: small labels */
  --gold-2: #d4aa00;       /* gold on navy */
  --blue: #3f6fb6;         /* echoes the scrubs */
  --radius: 18px;
  --shadow: 0 20px 50px -24px rgba(0, 42, 94, .35);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--ink); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(2.1rem, 4vw, 3.3rem); }
h3 { font-size: 1.55rem; }
h1 em, h2 em { font-style: italic; color: var(--gold-text); }
p { margin: 0 0 1.1em; }

.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 1.1em; display: inline-flex; align-items: center; gap: .8em;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow-light { color: var(--gold-2); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; gap: .6em;
  padding: 1em 1.7em; border-radius: 999px; border: 1px solid var(--bg);
  background: var(--bg); color: var(--fg); font: 600 .95rem/1 var(--sans);
  letter-spacing: .02em; text-decoration: none; cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn svg { width: 1.05em; height: 1.05em; fill: currentColor; }
.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(0,42,94,.25); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-gold { --bg: var(--gold); --fg: var(--ink); width: 100%; justify-content: center; }
.btn-gold:hover { background: #c29c00; }
.btn-small { padding: .75em 1.3em; font-size: .85rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, .9); backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 10px 30px -20px rgba(0,42,94,.25); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { height: 50px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font: 600 1.25rem var(--serif); color: var(--ink); }
.brand-sub { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 30px; }
.nav a { text-decoration: none; font-size: .92rem; font-weight: 500; color: var(--ink); position: relative; }
.nav li:not(.nav-cta) a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 100%;
  background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .3s ease;
}
.nav li:not(.nav-cta) a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { color: #fff; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 70px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 60vw; height: 60vw;
  background: radial-gradient(closest-side, rgba(255,255,255,0), transparent 70%); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.lede { font-size: 1.15rem; color: #454b58; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 34px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: .9rem; color: var(--muted); }
.hero-points li { display: flex; align-items: center; gap: .55em; }
.hero-points li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

.hero-portrait { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 620px; }
.portrait-arch {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: min(430px, 90%); height: 88%;
  border-radius: 999px 999px 28px 28px;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(255,255,255,.12), transparent 60%),
    linear-gradient(170deg, var(--ink-2), var(--ink));
  box-shadow: var(--shadow);
}
.portrait-arch::after {
  content: ""; position: absolute; inset: 14px; border-radius: inherit; border: 1px solid rgba(212,170,0,.45);
}
.hero-portrait > img { position: relative; height: 640px; width: auto; object-fit: contain; filter: drop-shadow(0 30px 30px rgba(0,20,45,.35)); }
.portrait-card {
  position: absolute; left: 0; bottom: 70px; background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 14px 20px; border-radius: 14px; box-shadow: var(--shadow);
  display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; border-left: 3px solid var(--gold);
}
.portrait-card-icon { grid-row: span 2; height: 34px; width: auto; }
.portrait-card-name { font: 600 1.2rem var(--serif); color: var(--ink); }
.portrait-card-role { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---------- Strip ---------- */
.strip { background: var(--ink); color: #fff; }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-item { padding: 34px 24px; display: flex; flex-direction: column; gap: 4px; border-left: 1px solid rgba(255,255,255,.1); }
.strip-item:first-child { border-left: 0; }
.strip-num { font: italic 500 1.9rem/1.1 var(--serif); color: var(--gold-2); }
.strip-label { font-size: .88rem; color: rgba(255,255,255,.75); }

/* ---------- Sections ---------- */
.section { padding: 120px 0; }
.section-head { max-width: 760px; margin-bottom: 60px; }
.section-intro { font-size: 1.08rem; color: #4d5361; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-photo { margin: 0; position: relative; }
.about-photo img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.about-collage { max-width: 400px; justify-self: center; width: 100%; }
.about-collage img { aspect-ratio: auto; height: auto; object-fit: contain; background: #fff; }
.about-photo::before {
  content: ""; position: absolute; inset: 28px -28px -28px 28px; border: 1px solid var(--gold-2);
  border-radius: var(--radius); z-index: -1;
}
.pull {
  font: italic 500 1.6rem/1.35 var(--serif); color: var(--ink);
  border-left: 2px solid var(--gold); padding-left: 22px; margin: 30px 0;
}
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: baseline; }
.checks li::before { content: "✓"; color: var(--gold); font-weight: 700; }

/* Services */
.care { background: var(--paper); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  padding: 36px 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ivory);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; background: #fff; }
.card p { color: var(--muted); margin: 0; font-size: .96rem; }
.card-icon {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 22px;
  background: linear-gradient(145deg, #fff, var(--sand)); border: 1px solid var(--line);
}
.card-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--gold); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Monthly specials */
.specials {
  margin-top: 56px; display: grid; grid-template-columns: auto 1fr auto; gap: 20px 32px; align-items: center;
  padding: 28px 36px; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: 14px; box-shadow: 0 18px 40px -30px rgba(0,42,94,.35);
}
.specials-icon {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--gold-2); color: var(--gold);
}
.specials-icon img { height: 30px; width: auto; }
.specials-eyebrow { font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--teal); margin: 0 0 .35em; }
.specials h3 { font-size: 1.55rem; line-height: 1.25; margin: 0; max-width: 32em; }
.specials h3 em { color: var(--gold-text); }
.specials-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.specials-call { --bg: var(--gold); --fg: var(--ink); }
.specials-call:hover { background: #c29c00; }
.hero-special { color: var(--gold-text); font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; }

/* Experience */
.experience { background: linear-gradient(160deg, var(--ink) 0%, var(--ink-deep) 100%); color: rgba(255,255,255,.82); }
.experience h2 { color: #fff; }
.experience h2 em { color: var(--gold-2); }
.experience-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 70px; align-items: center; }
.experience-photo { margin: 0; }
.experience-photo img { border-radius: var(--radius); box-shadow: 0 30px 70px -30px rgba(0,0,0,.6); aspect-ratio: 3/2.2; object-fit: cover; width: 100%; }
.steps { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 18px; }
.steps li { display: flex; gap: 18px; align-items: baseline; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.1); }
.steps span { font: italic 500 1.4rem var(--serif); color: var(--gold-2); min-width: 34px; }
.steps strong { color: #fff; font-weight: 600; margin-right: .5em; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; gap: 16px; }
.g { padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: zoom-in; background: var(--sand); position: relative; }
.g-wide { grid-column: span 2; grid-row: span 2; }
.g-half { grid-column: span 2; grid-row: span 1; }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.g::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,42,94,.35), transparent 50%); opacity: 0; transition: opacity .4s; }
.g:hover img { transform: scale(1.06); }
.g:hover::after { opacity: 1; }
.g:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* Insurance */
.insurance { background: var(--sand); padding: 100px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.insurance-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px 70px; align-items: center; }
.badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.badges li {
  padding: .75em 1.3em; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-weight: 600; font-size: .9rem; color: var(--ink);
}
.badges li:nth-child(-n+2) { background: var(--ink); color: #fff; border-color: var(--ink); }
.fine { grid-column: 1 / -1; font-size: .92rem; color: var(--muted); margin: 0; }
.fine a { color: var(--ink); font-weight: 600; }

/* Appointment */
.appointment {
  background:
    linear-gradient(rgba(0,26,61,.9), rgba(0,26,61,.94)),
    url("../img/operatory-window.jpg") center/cover fixed;
  color: rgba(255,255,255,.82);
}
.appointment h2 { color: #fff; }
.appointment h2 em { color: var(--gold-2); }
.appt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.appt-phone { display: inline-block; font: 500 clamp(2.2rem, 4vw, 3rem)/1 var(--serif); color: #fff; text-decoration: none; margin-top: 10px; border-bottom: 1px solid var(--gold); }
.appt-alt { margin-top: 12px; }
.appt-alt a { color: var(--gold-2); }
.appt-form {
  background: #fff; color: var(--text); border-radius: 22px; padding: 38px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.6);
  display: grid; gap: 16px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.appt-form label { display: grid; gap: 6px; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.appt-form input, .appt-form select, .appt-form textarea {
  font: 400 1rem var(--sans); color: var(--text); letter-spacing: 0; text-transform: none;
  padding: .8em .95em; border-radius: 10px; border: 1px solid var(--line); background: var(--ivory);
  transition: border-color .2s, box-shadow .2s, background .2s; width: 100%;
}
.appt-form input:focus, .appt-form select:focus, .appt-form textarea:focus {
  outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 4px rgba(212,170,0,.18);
}
.form-note { font-size: .8rem; color: var(--muted); margin: 0; text-align: center; }
.form-error { font-size: .85rem; color: #b3261e; margin: 0; text-align: center; }

/* Visit */
.visit-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; align-items: stretch; }
.contact { margin: 34px 0 0; display: grid; gap: 22px; }
.contact div { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.contact dt { font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); padding-top: 4px; }
.contact dd { margin: 0; color: var(--ink); font-weight: 500; }
.contact a { text-decoration: none; }
.contact a:hover { color: var(--gold-text); }
.contact .muted { font-weight: 400; font-size: .88rem; }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 440px; background: var(--sand); }
.map iframe { width: 100%; height: 100%; min-height: 440px; border: 0; filter: grayscale(.35) contrast(1.05); }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 50px 0; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 20px 40px; align-items: center; }
.footer-logo { height: 96px; width: auto; margin-bottom: 14px; }
.site-footer .muted { color: rgba(255,255,255,.55); margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 26px; }
.footer-links a { text-decoration: none; color: var(--gold-2); font-weight: 500; }
.footer-links a:hover { color: #fff; }
.site-footer .small { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); }

/* Mobile call bar */
.callbar { display: none; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(8,14,28,.94);
  display: grid; place-items: center; padding: 60px 70px; animation: fade .3s ease;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 86vh; max-width: 100%; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 3rem; line-height: 1; cursor: pointer; opacity: .75; padding: 10px 16px; }
.lightbox button:hover { opacity: 1; }
.lb-close { top: 14px; right: 18px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
@keyframes fade { from { opacity: 0; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav ul { gap: 20px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .experience-grid, .appt-grid, .visit-grid { gap: 50px; }
}

@media (max-width: 900px) {
  :root { --header-h: 66px; }
  body { font-size: 16px; padding-bottom: 64px; }
  .brand-sub { display: none; }
  .brand-logo { height: 38px; }
  .brand-name { font-size: 1.05rem; white-space: nowrap; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px;
  }
  .nav-toggle span:not(.sr-only) { height: 1.5px; background: var(--ink); transition: transform .3s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(3.75px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-3.75px) rotate(-45deg); }
  .nav ul {
    position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--ivory); padding: 10px 20px 24px; border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .35s ease; z-index: -1;
    box-shadow: 0 20px 40px -20px rgba(0,42,94,.3);
  }
  .nav ul.open { transform: none; }
  .nav li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav li:not(.nav-cta) a::after { display: none; }
  .nav .nav-cta a { margin-top: 16px; justify-content: center; border-bottom: 0; }

  .hero { padding: 40px 0 0; }
  .hero-grid, .about-grid, .experience-grid, .appt-grid, .visit-grid, .insurance-inner { grid-template-columns: 1fr; }
  .hero-portrait { min-height: 0; margin-top: 10px; }
  .hero-portrait > img { height: 480px; }
  .portrait-arch { height: 86%; }
  .portrait-card { left: 0; bottom: 40px; padding: 10px 16px; }
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .specials { grid-template-columns: 1fr; padding: 26px 22px; text-align: center; justify-items: center; border-left-width: 1px; border-top: 3px solid var(--gold); }
  .specials h3 { font-size: 1.35rem; }
  .specials-actions { justify-content: center; }
  .strip-item { padding: 24px 16px; }
  .strip-item:nth-child(3) { border-left: 0; }
  .strip-item:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.1); }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 40px; }
  .about-photo::before { inset: 16px -12px -16px 16px; }
  .about-photo img { aspect-ratio: 4/3; }
  .about-collage img { aspect-ratio: auto; }
  .about-collage { max-width: 320px; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; gap: 10px; }
  .g-half { grid-column: span 1; }
  .appointment { background-attachment: scroll; }
  .appt-form { padding: 26px 22px; }
  .map, .map iframe { min-height: 320px; }
  .footer-inner { grid-template-columns: 1fr; }

  .callbar {
    display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  }
  .callbar a { text-align: center; padding: 12px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .95rem; border: 1px solid var(--ink); color: var(--ink); }
  .callbar .callbar-primary { background: var(--ink); color: #fff; }
}

@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .contact div { grid-template-columns: 1fr; gap: 4px; }
  .lightbox { padding: 50px 10px; }
  .lb-prev, .lb-next { top: auto; bottom: 10px; transform: none; }
}

@media (max-width: 380px) {
  .brand { gap: 8px; }
  .brand-logo { height: 32px; }
  .brand-name { font-size: .95rem; }
}
