/* ==========================================================
   theme.css — site-wide layout & polish
   The House of Vrindavan
   Load AFTER styles.css on every page:
   <link rel="stylesheet" href="styles.css?v=40">
   <link rel="stylesheet" href="theme.css?v=1">
   ========================================================== */

:root {
  --t-gold-text: #8f6f25;      /* gold that stays readable on ivory */
  --t-maroon: #6b2335;
  --t-ink: #171614;
  --t-ease: cubic-bezier(.2,.7,.2,1);
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; }
::selection { background: var(--gold, #b4913f); color: #fff; }

/* ---------- Container ---------- */
.wrap {
  width: min(1200px, 100% - 48px);
  margin-inline: auto;
}

/* ---------- Header: nav hover underline ---------- */
.main-nav a { position: relative; transition: color .2s ease; }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--gold, #b4913f);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--t-ease);
}
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .2s var(--t-ease), box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,0,0,.18); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--gold, #b4913f); outline-offset: 3px; }
.btn svg { width: 16px; height: 16px; flex: none; }

/* ---------- Page hero ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 9vw, 120px) 0 clamp(64px, 8vw, 104px);
  background:
    radial-gradient(60% 90% at 88% 10%, rgba(180,145,63,.20), transparent 60%),
    radial-gradient(50% 70% at 0% 100%, rgba(107,35,53,.35), transparent 65%),
    var(--t-ink);
  border-bottom: 1px solid rgba(180,145,63,.35);
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 {
  max-width: 14em;
  margin: 14px 0 22px;
  font-size: clamp(32px, 4.3vw, 56px);
  line-height: 1.12;
  letter-spacing: .03em;
}
.page-hero .lede { max-width: 60ch; line-height: 1.75; }
.page-hero .cta-row { margin-top: 34px; }
.page-hero-motif {
  position: absolute;
  right: clamp(24px, 9vw, 160px);
  top: 50%;
  height: 78%;
  transform: translateY(-50%);
  opacity: .55;
  pointer-events: none;
}
.page-hero-motif svg { height: 100%; width: auto; }
@media (max-width: 860px) { .page-hero-motif { opacity: .18; right: -20px; } }

/* ---------- Section rhythm ---------- */
.content-section { position: relative; }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(20px, 5vw, 72px);
  margin-bottom: clamp(32px, 4.5vw, 52px);
  padding-bottom: clamp(20px, 3vw, 30px);
  border-bottom: 1px solid var(--line-on-light, rgba(0,0,0,.14));
}
.section-head h2 { margin: 10px 0 0; }
.section-head .lede { margin: 0; max-width: 52ch; }
@media (max-width: 820px) {
  .section-head { grid-template-columns: 1fr; align-items: start; }
}

.content-section h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: .01em;
}
.content-section .eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--t-gold-text);
}
.content-section .lede { font-size: clamp(17px, 1.6vw, 19px); }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Closing CTA banner ---------- */
.cta-banner {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 9vw, 112px) 0;
  text-align: center;
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(201,169,97,.22), transparent 62%),
    var(--t-maroon);
  color: var(--ivory, #f6f1e6);
}
.cta-banner h2 {
  max-width: 22em;
  margin: 14px auto 20px;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.18;
  letter-spacing: .03em;
  text-align: center;
  color: var(--ivory, #f6f1e6);
}
.cta-banner .lede {
  max-width: 62ch;
  text-align: center;
  margin: 0 auto;
  color: rgba(246,241,230,.85);
  line-height: 1.75;
}
.cta-banner .cta-row { margin-top: 34px; }

/* ---------- Footer ---------- */
.site-footer { padding: clamp(56px, 7vw, 88px) 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: clamp(28px, 4vw, 64px);
}
.footer-col h5 {
  margin: 0 0 18px;
  font-family: var(--font-brand);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold, #b4913f);
}
.footer-col ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { transition: color .2s ease, padding-left .2s ease; }
.footer-col a:hover { color: var(--gold, #b4913f); padding-left: 3px; }
.footer-bottom {
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: 22px;
  border-top: 1px solid rgba(246,241,230,.14);
  font-size: 13px;
}
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .main-nav a::after, .footer-col a { transition: none; }
  .btn:hover { transform: none; }
}

/* ---------- Card photos: always fill the frame (3:2), no dark gap ---------- */
.pillar-card-photo {
  position: relative;
  height: auto;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.pillar-card-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}