/* =====================================================
   Dr. Karaneh Karimi — Dermatology
   Warm spa / luxe theme
   ===================================================== */

:root {
  --cream: #faf5ee;
  --cream-2: #f3eae0;
  --sand: #e9dccd;
  --taupe: #b9a995;
  --gold: #be9e5e;
  --gold-dark: #a8884a;
  --espresso: #3a322b;
  --espresso-soft: #5b5046;
  --ink: #2a241f;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(58, 50, 43, 0.12);
  --shadow-sm: 0 8px 24px rgba(58, 50, 43, 0.08);
  --radius: 14px;
  --maxw: 1160px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--sans);
  color: var(--espresso);
  background: var(--cream);
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; transition: color 0.25s var(--ease); }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; color: var(--ink); }

em { font-style: italic; color: var(--gold-dark); }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--gold-dark);
  margin-bottom: 1rem;
}

.section { padding: clamp(4rem, 9vw, 7.5rem) 1.5rem; }
.section--cream { background: var(--cream-2); }
.section__head { max-width: 720px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.section__title { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 1rem; }
.section__intro { font-size: 1.08rem; color: var(--espresso-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.95rem 2.1rem;
  background: var(--gold);
  color: #fff;
  border: 1px solid var(--gold);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.btn:hover { background: var(--gold-dark); border-color: var(--gold-dark); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.btn--ghost:hover { background: rgba(255,255,255,0.14); border-color: #fff; }
.btn--dark { background: var(--espresso); border-color: var(--espresso); margin-top: 1.6rem; }
.btn--dark:hover { background: var(--ink); border-color: var(--ink); }
.btn--small { padding: 0.6rem 1.4rem; font-size: 0.74rem; }
.btn--full { width: 100%; text-align: center; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250, 245, 238, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(185, 169, 149, 0.25);
  transition: box-shadow 0.3s var(--ease);
}
.nav.is-scrolled { box-shadow: 0 6px 24px rgba(58,50,43,0.08); }
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0.85rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.nav__brand { display: flex; flex-direction: column; line-height: 1.1; }
.nav__brand-name { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--ink); }
.nav__brand-sub { font-size: 0.62rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold-dark); }
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a { font-size: 0.88rem; letter-spacing: 0.04em; color: var(--espresso); }
.nav__links a:not(.btn):hover { color: var(--gold-dark); }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 26px; height: 2px; background: var(--espresso); transition: all 0.3s var(--ease); }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; min-height: 620px; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero__slider { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.08);
  transition: opacity 1.4s var(--ease), transform 7s linear;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(30,25,21,0.85) 0%, rgba(34,28,24,0.6) 45%, rgba(34,28,24,0.4) 100%); }
.hero__content { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; width: 100%; text-shadow: 0 2px 18px rgba(20,16,13,0.55); }
.hero__eyebrow { color: var(--gold); letter-spacing: 0.32em; text-transform: uppercase; font-size: 0.78rem; font-weight: 500; margin-bottom: 1.2rem; }
.hero__title { font-size: clamp(2.8rem, 7vw, 5.2rem); margin-bottom: 1.4rem; max-width: 16ch; color: #fff; }
.hero__title em { color: var(--gold); }
.hero__lead { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 46ch; color: rgba(255,255,255,0.95); margin-bottom: 2.2rem; font-weight: 300; }
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__dots { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 0.6rem; }
.hero__dots button { width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(255,255,255,0.4); cursor: pointer; transition: all 0.3s var(--ease); padding: 0; }
.hero__dots button.is-active { background: var(--gold); width: 28px; border-radius: 6px; }

/* ---------- Trust bar ---------- */
.trust {
  max-width: var(--maxw); margin: -3.5rem auto 0; position: relative; z-index: 5;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 2rem 1rem; gap: 1rem; width: calc(100% - 3rem);
}
.trust__item { text-align: center; padding: 0.4rem 1rem; border-right: 1px solid var(--sand); }
.trust__item:last-child { border-right: none; }
.trust__item strong { display: block; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--gold-dark); margin-bottom: 0.2rem; }
.trust__item span { font-size: 0.84rem; color: var(--espresso-soft); }

/* ---------- About ---------- */
.about__grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about__media { position: relative; }
.about__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/5; object-fit: cover; }
.about__badge {
  position: absolute; bottom: -1.5rem; right: -1.2rem;
  background: var(--espresso); color: #fff; border-radius: var(--radius);
  padding: 1.1rem 1.4rem; display: flex; align-items: center; gap: 0.8rem; box-shadow: var(--shadow-sm);
}
.about__badge-num { font-family: var(--serif); font-size: 1.9rem; color: var(--gold); font-weight: 600; }
.about__badge-txt { font-size: 0.74rem; letter-spacing: 0.06em; line-height: 1.3; text-transform: uppercase; }
.about__body p { margin-bottom: 1.1rem; color: var(--espresso-soft); }
.about__actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; margin-top: 1.6rem; }
.about__actions .btn { margin-top: 0; min-width: 190px; text-align: center; }
.btn--ghost-dark { color: var(--espresso); border-color: var(--taupe); }
.btn--ghost-dark:hover { background: var(--sand); color: var(--ink); border-color: var(--taupe); }
.contact__accepting { margin: 1.4rem 0 1rem; color: var(--gold-dark); font-size: 0.95rem; letter-spacing: 0.02em; }

/* ---------- Services ---------- */
.services__grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.service-card {
  background: var(--white); border-radius: var(--radius); padding: 2.2rem 2rem;
  border: 1px solid rgba(185,169,149,0.2); transition: all 0.35s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-card__icon { font-size: 1.9rem; color: var(--gold); margin-bottom: 1rem; line-height: 1; }
.service-card h3 { font-size: 1.5rem; margin-bottom: 0.6rem; }
.service-card p { font-size: 0.96rem; color: var(--espresso-soft); }
.services__note { text-align: center; margin-top: 2.5rem; color: var(--espresso-soft); }
.services__note a { color: var(--gold-dark); border-bottom: 1px solid var(--gold); }

/* ---------- Approach ---------- */
.approach__grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.approach__body p { color: var(--espresso-soft); margin-bottom: 1.5rem; }
.approach__list { list-style: none; display: grid; gap: 1rem; }
.approach__list li { position: relative; padding-left: 1.8rem; color: var(--espresso-soft); }
.approach__list li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); }
.approach__list strong { color: var(--ink); font-weight: 500; }
.approach__quote { background: var(--espresso); color: #fff; border-radius: var(--radius); padding: clamp(2rem, 4vw, 3rem); box-shadow: var(--shadow); }
.approach__quote blockquote { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.4; font-style: italic; }
.approach__quote-by { margin-top: 1.4rem; font-size: 0.85rem; letter-spacing: 0.08em; color: var(--gold); text-transform: uppercase; }

/* ---------- Reviews ---------- */
.reviews__stars { color: var(--gold); font-size: 1.3rem; letter-spacing: 0.25em; margin-top: 0.8rem; }
.reviews__grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.review { background: var(--white); border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--shadow-sm); border: 1px solid rgba(185,169,149,0.18); }
.review__stars { color: var(--gold); letter-spacing: 0.15em; margin-bottom: 1rem; font-size: 0.95rem; }
.review blockquote { font-family: var(--serif); font-size: 1.3rem; line-height: 1.45; font-style: italic; color: var(--ink); margin-bottom: 1.2rem; }
.review figcaption { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-dark); }

/* ---------- Contact ---------- */
.contact__grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); }
.contact__lead { color: var(--espresso-soft); margin-bottom: 2rem; }
.contact__detail { padding: 1rem 0; border-top: 1px solid var(--sand); display: grid; grid-template-columns: 90px 1fr; align-items: start; gap: 1rem; }
.contact__detail:last-of-type { border-bottom: 1px solid var(--sand); }
.contact__label { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-dark); padding-top: 0.2rem; }
.contact__detail a:hover { color: var(--gold-dark); }
.contact__form { background: var(--white); border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.6rem); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-size: 0.82rem; letter-spacing: 0.06em; margin-bottom: 0.4rem; color: var(--espresso); }
.field .opt { color: var(--taupe); text-transform: none; letter-spacing: 0; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 0.95rem; font-weight: 300;
  padding: 0.8rem 1rem; border: 1px solid var(--sand); border-radius: 8px;
  background: var(--cream); color: var(--ink); transition: border-color 0.25s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: #fff; }
.field textarea { resize: vertical; }
.form__note { margin-top: 1rem; font-size: 0.9rem; color: var(--gold-dark); text-align: center; }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--espresso); color: #fff; padding: clamp(3rem, 6vw, 5rem) 1.5rem; text-align: center; }
.newsletter__inner { max-width: 640px; margin: 0 auto; }
.newsletter h2 { font-size: clamp(2rem, 4vw, 2.8rem); color: #fff; margin-bottom: 0.8rem; }
.newsletter p { color: rgba(255,255,255,0.78); margin-bottom: 1.8rem; }
.newsletter__form { display: flex; gap: 0.8rem; max-width: 460px; margin: 0 auto; }
.newsletter__form input { flex: 1; padding: 0.9rem 1.2rem; border-radius: 50px; border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.08); color: #fff; font-family: var(--sans); font-size: 0.95rem; }
.newsletter__form input::placeholder { color: rgba(255,255,255,0.55); }
.newsletter__form input:focus { outline: none; border-color: var(--gold); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,0.75); padding: 3.5rem 1.5rem 1.5rem; }
.footer__inner { max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer__name { display: block; font-family: var(--serif); font-size: 1.6rem; color: #fff; }
.footer__sub { font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.footer__nav, .footer__social { display: flex; gap: 1.6rem; align-items: center; flex-wrap: wrap; }
.footer__nav a:hover, .footer__social a:hover { color: var(--gold); }
.footer__social a { font-size: 0.85rem; }
.footer__base { max-width: var(--maxw); margin: 0 auto; padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: 0.8rem; color: rgba(255,255,255,0.5); }
.footer__top:hover { color: var(--gold); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Subpage hero (about page) ---------- */
.page-hero { position: relative; padding: clamp(7rem, 14vw, 11rem) 1.5rem clamp(3rem, 7vw, 5rem); color: #fff; text-align: center; background-size: cover; background-position: center 30%; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(42,36,31,0.55), rgba(42,36,31,0.72)); }
.page-hero__inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); color: #fff; margin-bottom: 1rem; }
.page-hero p { color: rgba(255,255,255,0.9); font-size: 1.1rem; }
.page-hero__eyebrow { color: var(--gold); letter-spacing: 0.3em; text-transform: uppercase; font-size: 0.78rem; margin-bottom: 1rem; }

/* stat row */
.stats { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat { padding: 1.5rem 1rem; }
.stat__num { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.4rem); color: var(--gold-dark); font-weight: 600; line-height: 1; }
.stat__label { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--espresso-soft); margin-top: 0.5rem; }

/* credentials */
.creds__grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.cred { background: var(--white); border-radius: var(--radius); padding: 2rem; border: 1px solid rgba(185,169,149,0.2); box-shadow: var(--shadow-sm); }
.cred h3 { font-size: 1.4rem; margin-bottom: 1rem; color: var(--ink); }
.cred ul { list-style: none; display: grid; gap: 0.7rem; }
.cred li { position: relative; padding-left: 1.6rem; color: var(--espresso-soft); font-size: 0.98rem; }
.cred li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); }

/* about prose */
.prose { max-width: 760px; margin: 0 auto; }
.prose p { margin-bottom: 1.3rem; color: var(--espresso-soft); font-size: 1.05rem; }
.prose .lead { font-family: var(--serif); font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-style: italic; color: var(--ink); line-height: 1.45; margin-bottom: 1.8rem; }
.prose h3 { font-size: 1.7rem; margin: 2.2rem 0 0.8rem; }

.cta-band { background: var(--cream-2); text-align: center; }
.cta-band__inner { max-width: 640px; margin: 0 auto; }
.cta-band h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 1rem; }
.cta-band p { color: var(--espresso-soft); margin-bottom: 1.8rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav__links {
    position: fixed; top: 64px; right: 0; height: calc(100vh - 64px); width: min(80vw, 320px);
    flex-direction: column; align-items: flex-start; justify-content: flex-start;
    gap: 1.4rem; padding: 2.5rem 2rem; background: var(--cream);
    box-shadow: -10px 0 40px rgba(58,50,43,0.15);
    transform: translateX(100%); transition: transform 0.35s var(--ease);
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__toggle { display: flex; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .trust__item:nth-child(2) { border-right: none; }
  .about__grid, .approach__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 440px; margin: 0 auto 2rem; }
  .approach__quote { order: -1; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .reviews__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .creds__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .trust { grid-template-columns: 1fr; }
  .trust__item { border-right: none; border-bottom: 1px solid var(--sand); padding-bottom: 1rem; }
  .trust__item:last-child { border-bottom: none; }
  .services__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .newsletter__form { flex-direction: column; }
  .newsletter__form .btn { width: 100%; }
  .footer__inner { flex-direction: column; }
}
