/* ==========================================================================
   Dr. Ankita Gahlot — design system
   Brand: "First light" — calm, candid, warm, precise.
   ========================================================================== */

:root {
  /* Brand palette */
  --pine: #1F4A43;
  --pine-dark: #163732;
  --gold: #D89A5B;
  --gold-deep: #C07F3E;
  --ivory: #FAF6F0;
  --sage: #DCE7E2;
  --dawn: #F3E2D6;
  --ink: #22332F;

  /* Semantic */
  --bg: var(--ivory);
  --text: var(--ink);
  --text-on-pine: var(--ivory);
  --border-soft: rgba(31, 74, 67, 0.14);

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Figtree", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Scale (1.25 ratio) */
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.05rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.5vw, 1.4rem);
  --step-2: clamp(1.6rem, 1.4rem + 1vw, 1.95rem);
  --step-3: clamp(2rem, 1.7rem + 1.5vw, 2.6rem);
  --step-4: clamp(2.4rem, 1.9rem + 2.5vw, 3.4rem);

  /* Layout */
  --wrap: 1160px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius-card: 20px;
  --arch-w: clamp(220px, 26vw, 380px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--pine);
  color: var(--ivory);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
  top: 0;
}

:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section[id] { scroll-margin-top: 5.5rem; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--pine);
  letter-spacing: -0.01em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pine);
  margin-bottom: 1rem;
}
.eyebrow-dark { color: var(--pine); }
.eyebrow-onpine { color: var(--ivory); margin-bottom: 0.6rem; }

.eyebrow-arc {
  width: 18px;
  height: 10px;
  flex: 0 0 auto;
  border-top: 2px solid var(--gold);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--step--1);
  text-decoration: none;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), box-shadow 0.25s var(--ease), color 0.25s var(--ease);
  border: 1.5px solid transparent;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--pine); color: var(--ivory); }
.btn-primary:hover { background: var(--pine-dark); box-shadow: 0 10px 24px -10px rgba(31,74,67,0.55); }
.btn-ghost { background: transparent; color: var(--pine); border-color: var(--pine); }
.btn-ghost:hover { background: var(--pine); color: var(--ivory); }
.btn-gold { background: var(--gold); color: var(--pine-dark); }
.btn-gold:hover { background: #e5ac70; box-shadow: 0 10px 24px -10px rgba(216,154,91,0.6); }
.btn-outline-light { background: transparent; color: var(--ivory); border-color: rgba(250,246,240,0.55); }
.btn-outline-light:hover { background: rgba(250,246,240,0.12); border-color: var(--ivory); }
.btn-small { padding: 0.65rem 1.3rem; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-block: 0.9rem;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  margin-right: auto;
}
.wordmark-text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--pine);
}
.main-nav ul {
  display: flex;
  gap: 2rem;
}
.main-nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: var(--step--1);
  color: var(--ink);
  position: relative;
  padding-bottom: 4px;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--gold);
  transition: right 0.25s var(--ease);
}
.main-nav a:hover::after { right: 0; }

.header-cta { display: block; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--pine);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  border-top: 1px solid var(--border-soft);
  background: var(--ivory);
}
.mobile-nav ul {
  display: flex;
  flex-direction: column;
  padding: 1.25rem var(--gutter) 1.75rem;
  gap: 1rem;
}
.mobile-nav a:not(.btn) {
  text-decoration: none;
  font-weight: 500;
  color: var(--ink);
  font-size: 1.05rem;
}
.mobile-nav .btn { width: 100%; }

@media (max-width: 860px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding-block: clamp(3rem, 8vw, 6rem) clamp(2.5rem, 6vw, 4rem);
  background:
    radial-gradient(ellipse 85% 75% at 72% 12%, rgba(243, 226, 214, 0.9), transparent 62%),
    radial-gradient(ellipse 60% 50% at 15% 95%, rgba(220, 231, 226, 0.55), transparent 70%),
    var(--ivory);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 {
  font-size: var(--step-4);
  line-height: 1.02;
  margin-bottom: 1.1rem;
}
.tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: var(--step-2);
  color: var(--gold-deep);
  margin-bottom: 1.25rem;
}
.hero-lede {
  max-width: 46ch;
  color: var(--ink);
  opacity: 0.85;
  margin-bottom: 2rem;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-visual { display: flex; justify-content: center; }
.arch-panel {
  width: var(--arch-w);
  aspect-ratio: 4 / 5;
  border-radius: calc(var(--arch-w) / 2) calc(var(--arch-w) / 2) 12px 12px;
  overflow: hidden;
  box-shadow: 0 30px 60px -25px rgba(31, 74, 67, 0.35);
  position: relative;
}
.arch-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: sepia(0.08) saturate(1.05) brightness(1.01);
}
.arch-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 2.5px rgba(216, 154, 91, 0.5);
  pointer-events: none;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; text-align: left; }
  .hero-visual { order: -1; margin-bottom: 0.5rem; }
  .arch-panel { width: min(70vw, 300px); }
}

/* ==========================================================================
   Trust strip
   ========================================================================== */
.trust-strip {
  background: var(--pine);
  color: var(--ivory);
  padding-block: 1rem;
}
.trust-strip p {
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-align: center;
}

/* ==========================================================================
   About
   ========================================================================== */
.about { padding-block: clamp(3.5rem, 8vw, 6rem); }
.about h2, .expertise h2, .moments h2, .visit h2 {
  font-size: var(--step-3);
  max-width: 16ch;
  margin-bottom: 1.25rem;
}
.section-lede {
  max-width: 62ch;
  opacity: 0.85;
  margin-bottom: 2.5rem;
}
.credentials-line {
  max-width: 62ch;
  font-weight: 500;
  color: var(--pine);
  margin-top: -1.25rem;
  margin-bottom: 0.35rem;
}
.credentials-reg {
  font-size: var(--step--1);
  opacity: 0.65;
  margin-bottom: 2.25rem;
}
.fact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.fact-card {
  background: var(--sage);
  border-radius: var(--radius-card);
  padding: 1.75rem;
}
.fact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ivory);
  margin-bottom: 1rem;
}
.fact-card h3 {
  font-size: var(--step-1);
  margin-bottom: 0.5rem;
}
.fact-card p { opacity: 0.85; }

@media (max-width: 760px) {
  .fact-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Expertise
   ========================================================================== */
.expertise { padding-block: clamp(3.5rem, 8vw, 6rem); background: var(--dawn); }
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.expertise-card {
  background: var(--ivory);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  border-top: 3px solid var(--gold);
}
.expertise-card h3 {
  font-size: var(--step-1);
  margin-bottom: 0.6rem;
}
.expertise-card .abbr { color: var(--gold-deep); font-weight: 600; }
.expertise-card p { opacity: 0.85; }

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.chip-list li {
  background: var(--ivory);
  border: 1px solid var(--border-soft);
  color: var(--pine);
  font-size: var(--step--1);
  font-weight: 500;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
}

@media (max-width: 760px) {
  .expertise-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Moments
   ========================================================================== */
.moments { padding-block: clamp(3.5rem, 8vw, 6rem); }
.moments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.moment-card {
  text-align: left;
}
.moment-photo {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  margin-bottom: 1.25rem;
  border-radius: 50% 50% 8px 8px / 38% 38% 8px 8px;
  overflow: hidden;
  box-shadow: 0 18px 36px -20px rgba(31, 74, 67, 0.35);
}
.moment-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 2px rgba(216, 154, 91, 0.55);
  pointer-events: none;
}
.moment-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.moment-card h3 {
  font-size: var(--step-1);
  margin-bottom: 0.4rem;
}
.moment-card p { opacity: 0.85; font-size: var(--step--1); }

@media (max-width: 760px) {
  .moments-grid { grid-template-columns: 1fr; }
  .moment-photo { max-width: 320px; }
}

/* ==========================================================================
   Visit & book
   ========================================================================== */
.visit { padding-block: clamp(3.5rem, 8vw, 6rem); background: var(--sage); }
.visit-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.contact-list {
  display: grid;
  gap: 1.25rem;
  margin-block: 1.75rem 2rem;
}
.contact-list dt {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.25rem;
}
.contact-list dd {
  margin: 0;
}
.contact-list a { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }

.map-frame {
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  filter: grayscale(0.15) contrast(1.02);
}

.booking-card {
  background: var(--pine);
  color: var(--ivory);
  border-radius: var(--radius-card);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  position: sticky;
  top: 6rem;
}
.booking-card h3 {
  color: var(--ivory);
  font-size: var(--step-2);
  margin-bottom: 0.75rem;
}
.booking-card p {
  opacity: 0.88;
  margin-bottom: 1.75rem;
}
.booking-card .btn { width: 100%; margin-bottom: 0.75rem; }
.booking-card .btn:last-child { margin-bottom: 0; }

@media (max-width: 860px) {
  .visit-grid { grid-template-columns: 1fr; }
  .booking-card { position: static; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--pine-dark);
  color: var(--ivory);
  padding-block: 2.5rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.footer-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
}
.footer-desc {
  font-size: var(--step--1);
  opacity: 0.75;
}
.footer-updated {
  font-size: 0.75rem;
  opacity: 0.5;
  margin-top: 0.35rem;
}
.footer-links {
  display: flex;
  gap: 1.75rem;
  font-size: var(--step--1);
  font-weight: 500;
}
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.footer-links { align-items: center; }
.social-link {
  display: inline-flex;
  align-items: center;
  color: var(--ivory);
  transition: color 0.25s var(--ease);
}
.social-link:hover { color: var(--gold); }
