:root {
  --background: hsl(0 0% 4%);
  --foreground: hsl(40 30% 92%);
  --card: hsl(0 0% 7%);
  --muted: hsl(40 10% 65%);
  --primary: hsl(42 55% 52%);
  --primary-glow: hsl(45 75% 65%);
  --primary-deep: hsl(38 60% 38%);
  --border: hsl(42 25% 18%);
  --gradient-gold: linear-gradient(135deg, var(--primary) 0%, var(--primary-glow) 50%, var(--primary-deep) 100%);
  --shadow-gold: 0 20px 60px -20px hsl(42 55% 52% / 0.4);
  --shadow-soft: 0 25px 50px -25px hsl(0 0% 0% / 0.7);
  --transition: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: AbarMidFaNum, sans-serif;
  color: var(--foreground);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, hsl(42 55% 52% / 0.08), transparent),
    linear-gradient(180deg, hsl(0 0% 4%), hsl(0 0% 3%));
  background-attachment: fixed;
}
body.menu-open {
  overflow: hidden;
}

h1, h2, h3, h4, .brand-main {
  font-family: AbarHighFaNum, sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }

.container {
  width: min(1200px, calc(100% - 2rem));
  margin-inline: auto;
}

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: all .5s var(--transition);
  background: linear-gradient(180deg, hsl(0 0% 8% / 0.55), transparent);
}
.header.scrolled {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid hsl(42 25% 18% / .6);
  background: linear-gradient(180deg, hsl(0 0% 8% / 0.65), hsl(0 0% 5% / 0.4));
}

.nav {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  flex-shrink: 0;
}
.brand-logo {
  display: block;
  height: 52px;
  width: auto;
  max-width: min(160px, 42vw);
  object-fit: contain;
}
.brand-logo-footer {
  height: 58px;
  max-width: 180px;
}
.brand-main {
  font-size: 2rem;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-divider {
  width: 1px; height: 26px; background: hsl(42 25% 18% / .9);
}
.brand-sub {
  color: var(--muted);
  letter-spacing: .08em;
  font-size: .72rem;
}

.menu { list-style: none; margin: 0; padding: 0; }
.menu.desktop { display: flex; align-items: center; gap: 2rem; }
.menu.desktop a {
  font-size: .92rem;
  color: hsl(40 20% 84% / .85);
  transition: color .3s;
}
.menu.desktop a:hover { color: var(--primary); }

.nav-cta {
  border-radius: 999px;
  padding: .65rem 1.2rem;
  background: var(--gradient-gold);
  color: hsl(0 0% 8%);
  font-weight: 600;
  box-shadow: var(--shadow-gold);
}

.menu-btn {
  width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid hsl(42 25% 18% / .8);
  background: transparent; color: var(--foreground); font-size: 1.2rem;
  cursor: pointer;
}
.mobile { display: none; }

.mobile-panel {
  display: none;
  margin: .2rem 1rem 1rem;
  border-radius: 16px;
  padding: 1rem;
  backdrop-filter: blur(20px);
  border: 1px solid hsl(42 25% 18% / .6);
  background: linear-gradient(180deg, hsl(0 0% 8% / 0.7), hsl(0 0% 5% / 0.5));
}
.mobile-panel.open { display: block; }
.mobile-list { display: grid; gap: .85rem; }
.mobile-list a { color: hsl(40 20% 84% / .85); }
.mobile-actions {
  margin-top: 1rem;
  display: grid;
  gap: .7rem;
}
.menu-backdrop {
  display: none;
}

.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, hsl(0 0% 4% / .8), hsl(0 0% 5% / .72) 55%, hsl(0 0% 7% / .66)),
    url("./Zahra%20Karbasi/hero.jpg") center/cover no-repeat;
}
.orb {
  position: absolute; border-radius: 50%; filter: blur(56px); opacity: .7;
  animation: float 6s ease-in-out infinite;
}
.orb-a { width: 330px; height: 330px; top: 23%; right: 17%; background: hsl(42 55% 52% / .16); }
.orb-b { width: 260px; height: 260px; bottom: 18%; left: 10%; background: hsl(45 75% 65% / .12); animation-delay: 1.4s; }

.hero-content {
  position: relative; z-index: 2;
  padding-top: 9rem; padding-bottom: 4rem;
  max-width: 840px;
}
.badge {
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid hsl(42 25% 18% / .7);
  background: linear-gradient(180deg, hsl(0 0% 8% / 0.55), hsl(0 0% 5% / 0.45));
  padding: .45rem .85rem;
  color: hsl(36 30% 88%);
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: .68rem;
}
h1 {
  margin: 1.2rem 0 0;
  font-size: clamp(2.2rem, 7.5vw, 5.25rem);
  line-height: 1.03;
  text-shadow: 0 0 30px hsl(45 75% 65% / 0.28);
}
h1 span {
  background: var(--gradient-gold);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-style: italic;
}
.hero-text {
  max-width: 58ch;
  color: var(--muted);
  line-height: 1.95;
  font-size: 1.05rem;
  margin: 1.1rem 0 0;
}
.hero-actions { margin-top: 1.45rem; display: flex; gap: .7rem; flex-wrap: wrap; }

.btn {
  border-radius: 999px;
  padding: .82rem 1.5rem;
  border: 1px solid hsl(42 25% 18% / .7);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .45s var(--transition);
  font-weight: 600;
}
.btn.gold {
  border-color: transparent;
  background: var(--gradient-gold);
  color: hsl(0 0% 7%);
}
.btn.glass {
  background: linear-gradient(180deg, hsl(0 0% 8% / 0.6), hsl(0 0% 5% / 0.4));
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-gold); }

.stats {
  margin-top: 2.2rem;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem;
  max-width: 640px;
}
.stats > div {
  padding: .85rem .9rem;
  border: 1px solid hsl(42 25% 18% / .45);
  background: linear-gradient(180deg, hsl(0 0% 8% / 0.55), hsl(0 0% 5% / 0.35));
  border-radius: 14px;
}
.stats strong {
  display: block;
  font-family: AbarHighFaNum, sans-serif;
  font-size: 1.8rem;
  line-height: 1;
  background: var(--gradient-gold);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stats span { font-size: .78rem; color: var(--muted); letter-spacing: .06em; }

.section { padding: 8rem 0; position: relative; }
.section-alt {
  background: linear-gradient(180deg, transparent, hsl(0 0% 8% / .5), transparent);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: center;
}
.about-image-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid hsl(42 25% 18% / .65);
  box-shadow: var(--shadow-soft);
}
.image-placeholder {
  height: 620px;
  background:
    linear-gradient(180deg, hsl(0 0% 9% / .15), hsl(0 0% 3% / .55)),
    url("./Zahra%20Karbasi/IMG_4509.JPG") center/cover no-repeat;
}
.cert-badge {
  position: absolute; left: 1.2rem; bottom: 1.2rem;
  border-radius: 16px;
  padding: .9rem;
  border: 1px solid hsl(42 25% 18% / .6);
  background: linear-gradient(180deg, hsl(0 0% 8% / 0.7), hsl(0 0% 5% / 0.45));
}
.cert-title { margin: 0; font-size: 1.2rem; }
.cert-sub { margin: .3rem 0 0; color: var(--muted); font-size: .82rem; }

.section-kicker {
  display: block;
  color: var(--primary);
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: .7rem;
}
.about-content h2,
.section-head h2 {
  margin: .55rem 0 1rem;
  font-size: clamp(1.8rem, 5vw, 3.6rem);
  line-height: 1.15;
}
.about-content h2 span,
.section-head h2 span {
  background: var(--gradient-gold);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-style: italic;
}
.divider {
  width: 110px;
  height: 1px;
  background: linear-gradient(90deg, transparent, hsl(42 55% 52% / 0.7), transparent);
  margin: 0 0 1.1rem;
}
.divider.center { margin-inline: auto; }

.about-content p { color: var(--muted); line-height: 1.92; margin: 0 0 1rem; }
.doctors {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem;
}
.glass {
  border: 1px solid hsl(42 25% 18% / .6);
  background: linear-gradient(180deg, hsl(0 0% 8% / 0.6), hsl(0 0% 5% / 0.4));
  backdrop-filter: blur(20px);
  border-radius: 18px;
}
.doctors article { padding: 1rem; }
.doctors h3 { margin: 0 0 .35rem; font-size: 1.6rem; }
.doctors p { margin: 0; color: var(--muted); font-size: .9rem; }

.section-head.center { text-align: center; max-width: 760px; margin-inline: auto; }
.section-head.between {
  display: flex; align-items: end; justify-content: space-between; gap: 1rem;
  margin-bottom: 1.2rem;
}
.section-head p { color: var(--muted); line-height: 1.8; max-width: 460px; }

.services-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem;
}
.service-card {
  border: 1px solid hsl(42 25% 18% / .55);
  background: hsl(0 0% 5%);
  border-radius: 24px;
  min-height: 212px;
  padding: 0;
  position: relative;
  overflow: hidden;
}
.service-card.featured {
  grid-column: span 2;
  min-height: 300px;
}
.tag {
  position: absolute; top: 1rem; left: 1rem;
  font-size: .62rem; text-transform: uppercase; letter-spacing: .12em;
  border-radius: 999px; padding: .3rem .6rem;
  background: var(--gradient-gold); color: hsl(0 0% 8%);
}
.service-card h3 { font-size: 2rem; margin: .2rem 0 .5rem; }
.service-card p { color: hsl(40 20% 90% / .92); line-height: 1.8; margin: 0; }
.service-content {
  margin-top: 0;
  padding: .9rem 1rem 1rem;
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  border-radius: 0;
  border-inline: 0;
  border-bottom: 0;
  z-index: 3;
}
.service-image {
  position: absolute;
  inset: 0;
  height: auto;
  margin: 0;
  border-bottom: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.06) contrast(1.03);
  z-index: 1;
}
.service-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, hsl(0 0% 5% / .08) 20%, hsl(0 0% 4% / .78) 100%);
}
.service-card.featured .service-image {
  height: auto;
}
.service-image.s1 { background-image: linear-gradient(180deg, hsl(0 0% 0% / .12), hsl(0 0% 0% / .45)), url("./Zahra%20Karbasi/IMG_1942.jpg"); }
.service-image.s2 { background-image: linear-gradient(180deg, hsl(0 0% 0% / .12), hsl(0 0% 0% / .45)), url("./Zahra%20Karbasi/IMG_0957.jpg"); }
.service-image.s3 { background-image: linear-gradient(180deg, hsl(0 0% 0% / .12), hsl(0 0% 0% / .45)), url("./Zahra%20Karbasi/IMG_4531.jpg"); }
.service-image.s4 { background-image: linear-gradient(180deg, hsl(0 0% 0% / .12), hsl(0 0% 0% / .45)), url("./Zahra%20Karbasi/IMG_8592.jpg"); }
.service-image.s5 { background-image: linear-gradient(180deg, hsl(0 0% 0% / .12), hsl(0 0% 0% / .45)), url("./Zahra%20Karbasi/IMG_9312.jpg"); }
.service-image.s6 { background-image: linear-gradient(180deg, hsl(0 0% 0% / .12), hsl(0 0% 0% / .45)), url("./Zahra%20Karbasi/C59B179C-1BE2-4EF8-9F81-3020BD2E22A7.JPG"); }
.service-image.s7 { background-image: linear-gradient(180deg, hsl(0 0% 0% / .12), hsl(0 0% 0% / .45)), url("./Zahra%20Karbasi/E23E6BEA-65A9-40E6-8BC1-E4FAE880399D.JPG"); }

.why-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem;
}
.why-grid article { padding: 1.1rem; }
.why-grid .wide { grid-column: span 2; }
.why-grid h3 { margin: 0 0 .4rem; font-size: 2rem; }
.why-grid p { margin: 0; color: var(--muted); line-height: 1.8; }

.gallery-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem;
}
.gallery-grid figure {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid hsl(42 25% 18% / .55);
  background: hsl(0 0% 5%);
  position: relative;
}
.gallery-ph {
  aspect-ratio: 4/5;
  background:
    linear-gradient(180deg, hsl(0 0% 8% / .06), hsl(0 0% 3% / .55));
  background-size: cover;
  background-position: center;
}
.gallery-ph.g1 { background-image: linear-gradient(180deg, hsl(0 0% 8% / .06), hsl(0 0% 3% / .55)), url("./Zahra%20Karbasi/IMG_1498.JPG"); }
.gallery-ph.g2 { background-image: linear-gradient(180deg, hsl(0 0% 8% / .06), hsl(0 0% 3% / .55)), url("./Zahra%20Karbasi/IMG_2124.JPG"); }
.gallery-ph.g3 { background-image: linear-gradient(180deg, hsl(0 0% 8% / .06), hsl(0 0% 3% / .55)), url("./Zahra%20Karbasi/IMG_5058.JPG"); }
.gallery-grid figcaption {
  padding: .85rem 1rem 1rem;
  display: grid;
  gap: .35rem;
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  border-radius: 0;
  border-inline: 0;
  border-bottom: 0;
  z-index: 2;
}
.gallery-grid small { color: var(--primary); letter-spacing: .14em; text-transform: uppercase; }
.gallery-grid strong { font-size: 1.35rem; font-family: AbarHighFaNum, sans-serif; }

.testimonials-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem;
}
.testimonials-grid blockquote {
  margin: 0; padding: 1.4rem; line-height: 1.95; color: hsl(40 20% 90% / .92);
}
.testimonials-grid cite {
  display: block; margin-top: .85rem; color: var(--muted); font-style: normal;
}

.booking-form {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
  box-shadow: var(--shadow-soft);
}
.booking-form label { display: grid; gap: .45rem; color: var(--muted); font-size: .92rem; }
.booking-form input,
.booking-form select,
.booking-form textarea {
  width: 100%;
  border: 1px solid hsl(42 25% 18% / .8);
  border-radius: 12px;
  padding: .72rem .78rem;
  background: hsl(0 0% 10% / .6);
  color: var(--foreground);
  font: inherit;
}
.booking-form .full { grid-column: 1/-1; }
.booking-footer {
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
}
.booking-footer p { margin: 0; color: var(--muted); font-size: .85rem; }
.form-message { margin: 0; min-height: 1.5rem; color: var(--primary-glow); }

.footer {
  border-top: 1px solid hsl(42 25% 18% / .45);
  padding: 2.7rem 0;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1rem;
}
.footer h4 { margin: 0 0 .6rem; font-size: 1.5rem; }
.footer p { margin: 0 0 .35rem; color: var(--muted); line-height: 1.85; }
.footer-brand { margin-bottom: .8rem; }
.mobile-quick-actions {
  display: none;
}

.hover-lift {
  transition: transform .5s var(--transition), box-shadow .5s var(--transition);
}
.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-gold);
}

.glass-panel {
  border: 1px solid hsl(42 25% 18% / .62);
  background: linear-gradient(180deg, hsl(0 0% 12% / 0.4), hsl(0 0% 6% / 0.7));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 14px;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  animation: reveal .9s var(--transition) forwards;
}
.delay-1 { animation-delay: .15s; }
.delay-2 { animation-delay: .3s; }
.delay-3 { animation-delay: .45s; }
.delay-4 { animation-delay: .6s; }

@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@media (max-width: 1080px) {
  .split { grid-template-columns: 1fr; }
  .image-placeholder { height: 420px; }
}

@media (max-width: 920px) {
  .desktop { display: none; }
  .menu.desktop,
  .nav-cta.desktop {
    display: none;
  }
  .mobile { display: inline-block; }
  .nav {
    min-height: 76px;
    padding-block: .6rem;
  }
  .container {
    width: min(1200px, calc(100% - 1.25rem));
  }
  .hero {
    min-height: auto;
  }
  .hero-content {
    padding-top: 7.25rem;
    padding-bottom: 2.6rem;
  }
  .hero-text {
    font-size: .98rem;
    line-height: 1.85;
  }
  .hero-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .hero-actions .btn {
    width: 100%;
    min-height: 46px;
  }
  .badge {
    letter-spacing: .1em;
  }
  .mobile-panel {
    position: fixed;
    inset: 76px .65rem auto;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    border-radius: 18px;
    padding: 1rem;
    background: linear-gradient(180deg, hsl(0 0% 10% / 0.94), hsl(0 0% 5% / 0.92));
    z-index: 140;
  }
  .menu-backdrop.open {
    display: block;
    position: fixed;
    inset: 0;
    background: hsl(0 0% 2% / .66);
    backdrop-filter: blur(2px);
    z-index: 120;
  }
  .mobile-list {
    gap: .5rem;
  }
  .mobile-list a {
    display: block;
    border: 1px solid hsl(42 25% 18% / .55);
    border-radius: 12px;
    padding: .85rem .9rem;
    background: hsl(0 0% 10% / .45);
    font-size: 1rem;
  }
  .mobile-actions .btn {
    width: 100%;
    min-height: 46px;
  }

  .services-grid, .why-grid, .gallery-grid, .testimonials-grid, .doctors,
  .booking-form, .footer-grid { grid-template-columns: 1fr; }
  .service-card.featured, .why-grid .wide { grid-column: span 1; }
  .section { padding: 5.2rem 0; }
  .booking-footer { flex-direction: column; align-items: flex-start; }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 100%;
  }
  .stats > div:last-child {
    grid-column: 1 / -1;
  }
  .service-card {
    min-height: 250px;
  }
  .service-card h3 {
    font-size: 1.45rem;
  }
  .gallery-grid figcaption strong {
    font-size: 1.18rem;
  }
  .booking-form label {
    font-size: .9rem;
  }
  .booking-form input,
  .booking-form select,
  .booking-form textarea {
    min-height: 46px;
  }
  .booking-form textarea {
    min-height: 120px;
    resize: vertical;
  }
  .footer {
    padding-bottom: 6.5rem;
  }
  .mobile-quick-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 130;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .6rem;
    padding: .7rem .75rem calc(.7rem + env(safe-area-inset-bottom));
    border-top: 1px solid hsl(42 25% 18% / .7);
    background: hsl(0 0% 6% / .94);
    backdrop-filter: blur(14px);
  }
  .mobile-quick-actions a {
    min-height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: .92rem;
    border: 1px solid hsl(42 25% 18% / .7);
    background: hsl(0 0% 10% / .64);
  }
  .mobile-quick-actions a:last-child {
    background: var(--gradient-gold);
    border-color: transparent;
    color: hsl(0 0% 7%);
    font-weight: 700;
  }
  .section-head.between { display: grid; }
}

@media (max-width: 640px) {
  h1 {
    font-size: clamp(1.95rem, 10vw, 2.8rem);
    line-height: 1.1;
  }
  .brand-logo {
    height: 44px;
    max-width: 130px;
  }
  .brand-logo-footer {
    height: 48px;
    max-width: 150px;
  }
  .hero-actions {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .stats > div:last-child {
    grid-column: auto;
  }
  .section-kicker {
    letter-spacing: .17em;
  }
  .about-content h2,
  .section-head h2 {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }
  .mobile-panel {
    inset-inline: .45rem;
  }
}
