/* ═══════════════════════════════════════════════════════════
   Mudra & Harshil Patel — Wedding Website
   Luxury · Modern · South Asian · Anand, Gujarat 2027
   Inspired by engaged.framer.media aesthetic
═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

:root {
  /* Palette */
  --ivory: #FDF8F3;
  --cream: #F9F2EA;
  --blush: #F2E0D8;
  --blush-deep: #E8CFC4;
  --sage: #A8B5A0;
  --sage-soft: #C5D0BE;
  --sage-muted: #E8EDE5;
  --gold: #B8976A;
  --gold-light: #D4BC94;
  --gold-dark: #9A7A52;
  --ink: #2C2420;
  --ink-soft: #5C524A;
  --ink-muted: #8A7F76;
  --white: #FFFFFF;
  --border: #EDE4DA;
  --border-soft: #F3EBE3;

  /* Kankotri auspicious */
  --deep-red: #8B2E2E;
  --saffron: #C4783A;
  --kankotri-cream: #FBF5EB;
  --kankotri-gold: #C9A227;

  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

  /* Layout */
  --max: 1120px;
  --max-narrow: 720px;
  --max-wide: 1280px;
  --nav-h: 72px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow-soft: 0 8px 40px rgba(44, 36, 32, 0.06);
  --shadow-card: 0 4px 24px rgba(44, 36, 32, 0.05);
  --shadow-lift: 0 16px 48px rgba(44, 36, 32, 0.1);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--ivory);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
address { font-style: normal; }

/* ─── Utilities ─── */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: clamp(1.25rem, 4vw, 2rem);
  padding-right: clamp(1.25rem, 4vw, 2rem);
}
.container-narrow {
  max-width: var(--max-narrow);
  margin: 0 auto;
  padding-left: clamp(1.25rem, 4vw, 2rem);
  padding-right: clamp(1.25rem, 4vw, 2rem);
}
.container-wide {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding-left: clamp(1.25rem, 4vw, 2rem);
  padding-right: clamp(1.25rem, 4vw, 2rem);
}

.section {
  padding: clamp(4.5rem, 10vw, 7.5rem) 0;
}
.section-sm {
  padding: clamp(3rem, 6vw, 5rem) 0;
}
.section-blush { background: var(--blush); }
.section-cream { background: var(--cream); }
.section-sage { background: var(--sage-muted); }

/* Spaced elegant headers — signature Engaged style */
.spaced-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: block;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5.5vw, 3.75rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.section-lead {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 36em;
}
.section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-header .section-lead {
  margin-left: auto;
  margin-right: auto;
}

.divider {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 1.5rem auto;
}
.divider-left { margin-left: 0; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.85rem;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: all 0.35s var(--ease);
  white-space: nowrap;
  border: 1.5px solid transparent;
}
.btn-primary {
  background: var(--ink);
  color: var(--ivory);
  border-color: var(--ink);
}
.btn-primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover {
  background: var(--ink);
  color: var(--ivory);
  transform: translateY(-1px);
}
.btn-gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-1px);
}
.btn-ghost {
  background: rgba(253, 248, 243, 0.15);
  color: var(--ivory);
  border-color: rgba(253, 248, 243, 0.45);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: var(--ivory);
  color: var(--ink);
  border-color: var(--ivory);
}
.btn-block { width: 100%; }
.btn-sm {
  padding: 0.7rem 1.35rem;
  font-size: 12px;
}

/* ─── Navigation ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
}
.nav.scrolled {
  background: rgba(253, 248, 243, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(44, 36, 32, 0.06);
}
.nav-inner {
  width: 100%;
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  flex-shrink: 0;
  z-index: 1001;
}
.nav.light:not(.scrolled) .nav-logo,
.nav.light:not(.scrolled) .nav-link,
.nav.light:not(.scrolled) .nav-toggle {
  color: var(--ivory);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.nav-link {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0.5rem 0.7rem;
  transition: color 0.2s var(--ease);
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active {
  color: var(--gold);
}
.nav-cta {
  margin-left: 0.5rem;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--ivory);
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
    padding: 2rem;
  }
  .nav-links.open {
    opacity: 1;
    visibility: visible;
  }
  .nav-link {
    font-size: 14px;
    letter-spacing: 0.14em;
    padding: 0.85rem 1rem;
  }
  .nav-cta { margin-left: 0; margin-top: 1rem; }
  .nav.light:not(.scrolled) .nav-links .nav-link {
    color: var(--ink-soft);
  }
}

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 2rem) 1.5rem 4rem;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(44, 36, 32, 0.35) 0%, rgba(44, 36, 32, 0.25) 40%, rgba(44, 36, 32, 0.55) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  color: var(--ivory);
  animation: fadeUp 1s var(--ease-out) both;
}
.hero-blessing {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 1.75rem;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3.25rem, 9vw, 5.5rem);
  font-weight: 400;
  letter-spacing: 0.14em;
  line-height: 1.05;
  margin-bottom: 1rem;
  text-transform: none;
}
.hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  opacity: 0.9;
  margin-bottom: 2.5rem;
}
.countdown {
  display: flex;
  justify-content: center;
  gap: clamp(0.75rem, 3vw, 1.75rem);
  margin-bottom: 2.75rem;
  flex-wrap: wrap;
}
.countdown-item {
  min-width: 72px;
}
.countdown-num {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 400;
  line-height: 1;
  display: block;
  letter-spacing: 0.02em;
}
.countdown-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: 0.4rem;
  display: block;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}
.hero-scroll {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: var(--ivory);
  opacity: 0.6;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  animation: bounce 2.2s infinite;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ─── Story ─── */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.story-text p {
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.85;
}
.story-text p:last-child { margin-bottom: 0; }
.story-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.story-gallery .span-2 {
  grid-column: span 2;
}
.story-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  aspect-ratio: 4/3;
}
.story-gallery .span-2 img {
  aspect-ratio: 16/9;
  max-height: 240px;
}
@media (max-width: 800px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-gallery { order: -1; }
}

/* ─── Cards ─── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}
.card-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.card-body {
  padding: 1.5rem 1.6rem 1.75rem;
}
.card-meta {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.card-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.card-text {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ─── Venue ─── */
.venue-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.venue-gallery {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.venue-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.venue-img img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.venue-img-main img {
  aspect-ratio: 16/11;
}
.venue-img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.venue-img-grid .venue-img img {
  aspect-ratio: 1;
}
.venue-photo-credit {
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin: 0.15rem 0 0;
}
.venue-photo-credit a {
  color: var(--gold-dark);
  border-bottom: 1px solid var(--gold-light);
}
.venue-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}
.venue-fact {
  padding: 1.15rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.venue-fact strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--gold-dark);
  margin-bottom: 0.2rem;
}
.venue-fact span {
  font-size: 0.85rem;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}
.venue-address {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.venue-address a {
  color: var(--gold-dark);
  border-bottom: 1px solid var(--gold-light);
  transition: color 0.2s;
}
.venue-address a:hover { color: var(--ink); }
@media (max-width: 800px) {
  .venue-layout { grid-template-columns: 1fr; }
}

/* ─── Itinerary lookup ─── */
.itin-lookup {
  max-width: 520px;
  margin: 0 auto 2rem;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  box-shadow: var(--shadow-soft);
}
.itin-lookup-form .btn { margin-top: 0.25rem; }
.itin-result-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 680px;
  margin: 0 auto 1.75rem;
}
.itin-guest-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--ink);
  margin: 0;
}
.itin-empty {
  text-align: center;
  max-width: 32em;
  margin: 0 auto;
  padding: 2rem 1rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ─── Itinerary Timeline ─── */
.itinerary-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.tab-btn {
  padding: 0.7rem 1.35rem;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  color: var(--ink-soft);
  background: var(--white);
  transition: all 0.25s var(--ease);
}
.tab-btn:hover { border-color: var(--gold); color: var(--ink); }
.tab-btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--ivory);
}
.day-panel { display: none; animation: fadeUp 0.45s var(--ease-out); }
.day-panel.active { display: block; }
.day-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.day-header h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 500;
  margin-bottom: 0.35rem;
}
.day-header p {
  color: var(--ink-muted);
  font-size: 0.95rem;
}
.timeline {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  padding-left: 1.75rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--gold), var(--blush-deep));
}
.timeline-item {
  position: relative;
  padding: 0 0 2.25rem 1.75rem;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -1.75rem;
  top: 0.35rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gold);
  border: 2.5px solid var(--ivory);
  box-shadow: 0 0 0 1.5px var(--gold);
}
.timeline-time {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}
.timeline-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}
.timeline-desc {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.65rem;
}
.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.meta-pill {
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--sage-muted);
  color: var(--ink-soft);
}
.meta-pill.dress {
  background: var(--blush);
}

/* ─── Travel & Stay ─── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.info-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.75rem 1.6rem;
  box-shadow: var(--shadow-card);
  height: 100%;
}
.info-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blush);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.15rem;
  color: var(--gold-dark);
  font-size: 1rem;
}
.info-card h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: 0.6rem;
}
.info-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.7;
}
@media (max-width: 800px) {
  .info-grid { grid-template-columns: 1fr; }
}

.stay-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}
.stay-featured img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}
.stay-content {
  padding: clamp(1.75rem, 4vw, 2.75rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.stay-content h3 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.stay-content p {
  color: var(--ink-soft);
  margin-bottom: 1rem;
  font-size: 0.98rem;
  line-height: 1.75;
}
.stay-list {
  margin: 0.5rem 0 1.5rem;
}
.stay-list li {
  position: relative;
  padding-left: 1.15rem;
  margin-bottom: 0.45rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.stay-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1;
}
.booking-code {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.12em;
  padding: 0.5rem 0.9rem;
  background: var(--cream);
  border: 1px dashed var(--gold);
  border-radius: 6px;
  color: var(--gold-dark);
  margin-bottom: 1.25rem;
}
@media (max-width: 800px) {
  .stay-featured { grid-template-columns: 1fr; }
  .stay-featured img { min-height: 220px; max-height: 280px; }
}

.room-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.room-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease);
}
.room-card:hover { transform: translateY(-3px); }
.room-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.room-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.room-card-body {
  padding: 1.35rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.5rem;
}
.room-card-body .spaced-label {
  margin-bottom: 0.15rem;
}
.room-card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 500;
  margin: 0;
}
.room-card-body > p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 0 0 0.35rem;
  flex: 1;
}
.room-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.room-meta li {
  font-size: 0.86rem;
  color: var(--ink-muted);
  padding: 0.2rem 0 0.2rem 0.9rem;
  position: relative;
}
.room-meta li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}
.room-card-body .btn {
  align-self: flex-start;
}
.stay-note {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.92rem;
  color: var(--ink-muted);
  line-height: 1.7;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.stay-note a {
  color: var(--gold-dark);
  border-bottom: 1px solid var(--gold-light);
}
@media (max-width: 900px) {
  .room-cards { grid-template-columns: 1fr; }
}

/* ─── RSVP Form ─── */
.rsvp-wrap {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: var(--shadow-soft);
}
.form-group {
  margin-bottom: 1.35rem;
}
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.9rem 1.1rem;
  background: var(--ivory);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
  color: var(--ink);
  appearance: none;
  -webkit-appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 151, 106, 0.15);
  background: var(--white);
}
.form-textarea {
  min-height: 100px;
  resize: vertical;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--ivory);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.checkbox-item:hover { border-color: var(--gold-light); }
.checkbox-item:has(input:checked) {
  border-color: var(--gold);
  background: rgba(184, 151, 106, 0.08);
}
.checkbox-item input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  flex-shrink: 0;
}
.checkbox-item span {
  font-size: 0.95rem;
  color: var(--ink);
}
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.radio-item {
  flex: 1;
  min-width: 120px;
}
.radio-item input { position: absolute; opacity: 0; pointer-events: none; }
.radio-item label {
  display: block;
  text-align: center;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--ivory);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}
.radio-item input:checked + label {
  border-color: var(--gold);
  background: rgba(184, 151, 106, 0.1);
  color: var(--gold-dark);
  font-weight: 500;
}
.plus-one-fields {
  display: none;
  margin-top: 0.75rem;
  animation: fadeUp 0.3s var(--ease-out);
}
.plus-one-fields.show { display: block; }
.form-hint {
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-top: 0.35rem;
}
.rsvp-success {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
}
.rsvp-success.show { display: block; animation: fadeUp 0.5s var(--ease-out); }
.rsvp-success h3 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin: 1rem 0 0.75rem;
}
.rsvp-success p { color: var(--ink-soft); }
.success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--sage-muted);
  color: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 1.5rem;
}

/* ─── Airtable household RSVP ─── */
.rsvp-wrap { max-width: 720px; }
.rsvp-alert {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  line-height: 1.55;
}
.rsvp-alert-error {
  background: #FBF0EE;
  border: 1px solid #E8C4BC;
  color: #6F2E2A;
}
.rsvp-alert-info {
  background: var(--sage-muted);
  border: 1px solid var(--sage-soft);
  color: var(--ink-soft);
}
.rsvp-match-list { margin-top: 0.25rem; }
.rsvp-match-item {
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.95rem 1.1rem;
  margin-bottom: 0.55rem;
  background: var(--ivory);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.rsvp-match-item:hover {
  border-color: var(--gold);
  background: rgba(184, 151, 106, 0.08);
  transform: translateY(-1px);
}
.rsvp-match-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ink);
}
.rsvp-match-sub {
  font-size: 0.85rem;
  color: var(--ink-muted);
}
.rsvp-household-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--border);
}
.rsvp-household-meta {
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.rsvp-guest-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.rsvp-guest-card {
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.35rem 1.45rem;
}
.rsvp-guest-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}
.rsvp-guest-name {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.2;
}
.rsvp-guest-badge {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: var(--blush);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
}
.rsvp-events-grid {
  max-height: none;
}
.form-select {
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-muted) 50%),
    linear-gradient(135deg, var(--ink-muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.25rem;
}
#rsvp-search-btn:disabled,
#rsvp-submit-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

/* ─── Registry ─── */
.registry-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 700px;
  margin: 0 auto;
}
.registry-card {
  text-align: center;
  padding: 2.25rem 1.75rem;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.registry-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}
.registry-card h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin: 0.75rem 0 0.5rem;
}
.registry-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 560px) {
  .registry-cards { grid-template-columns: 1fr; }
}

/* ─── FAQ Accordion ─── */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 0;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.2s;
}
.faq-q:hover { color: var(--gold-dark); }
.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  position: relative;
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--gold);
  transition: transform 0.3s var(--ease);
}
.faq-icon::before {
  width: 12px;
  height: 1.5px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.faq-icon::after {
  width: 1.5px;
  height: 12px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.faq-item.open .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.3s var(--ease);
}
.faq-item.open .faq-a {
  max-height: 400px;
}
.faq-a-inner {
  padding: 0 0 1.35rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.75;
}

/* ─── Updates Feed ─── */
.updates-teaser {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}
.update-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease);
}
.update-card:hover { transform: translateY(-2px); }
.update-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.update-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blush), var(--gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  flex-shrink: 0;
}
.update-author {
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.3;
}
.update-time {
  font-size: 0.75rem;
  color: var(--ink-muted);
}
.update-body {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.65;
  flex: 1;
}
.update-photo {
  margin-top: 0.85rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.update-photo img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}
.feed-card .update-photo img {
  aspect-ratio: 16/10;
  max-height: 360px;
}
.form-file {
  padding: 0.65rem 0.75rem;
  cursor: pointer;
}
.form-file::file-selector-button {
  margin-right: 0.85rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  cursor: pointer;
}
.photo-preview {
  margin-top: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}
.photo-preview img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
}
@media (max-width: 800px) {
  .updates-teaser { grid-template-columns: 1fr; }
}

/* Full updates page feed */
.feed-list {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.feed-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow-card);
}
.feed-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--ink-muted);
}

/* Password gate */
.password-gate {
  max-width: 400px;
  margin: 0 auto 2.5rem;
  padding: 2rem;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}
.password-gate h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}
.password-gate p {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin-bottom: 1.25rem;
}
.password-error {
  color: var(--deep-red);
  font-size: 0.85rem;
  margin-top: 0.65rem;
  display: none;
}
.password-error.show { display: block; }
.post-form {
  display: none;
  max-width: 560px;
  margin: 0 auto 2.5rem;
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.post-form.show { display: block; animation: fadeUp 0.4s var(--ease-out); }
.post-form h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.char-count {
  font-size: 0.8rem;
  color: var(--ink-muted);
  text-align: right;
  margin-top: 0.35rem;
}
.char-count.warn { color: var(--saffron); }
.char-count.over { color: var(--deep-red); }

/* ─── E-Kankotri Page ─── */
.kankotri-page {
  background: var(--kankotri-cream);
  min-height: 100vh;
}
.kankotri-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 245, 235, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(139, 46, 46, 0.1);
  padding: 1rem clamp(1.25rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.kankotri-nav a {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--deep-red);
  font-weight: 500;
}
.kankotri-shell {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 3vw, 1.5rem) 4rem;
}
.kankotri-card {
  background:
    linear-gradient(180deg, #FDF9F2 0%, #FBF5EB 100%);
  border: 2px solid var(--kankotri-gold);
  border-radius: 4px;
  box-shadow:
    0 0 0 6px var(--kankotri-cream),
    0 0 0 8px rgba(201, 162, 39, 0.35),
    0 24px 60px rgba(44, 36, 32, 0.12);
  padding: clamp(1.75rem, 5vw, 3.25rem) clamp(1.25rem, 4vw, 2.75rem);
  position: relative;
  overflow: hidden;
}
.kankotri-card::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(201, 162, 39, 0.35);
  pointer-events: none;
  border-radius: 2px;
}
.kankotri-motif {
  text-align: center;
  color: var(--deep-red);
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  opacity: 0.85;
}
.kankotri-section {
  text-align: center;
  padding: 1.75rem 0;
  border-bottom: 1px solid rgba(201, 162, 39, 0.25);
  position: relative;
}
.kankotri-section:last-of-type { border-bottom: none; }
.kankotri-shloka {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  color: var(--deep-red);
  margin-bottom: 0.65rem;
  line-height: 1.4;
}
.kankotri-trans {
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-style: italic;
  max-width: 32em;
  margin: 0 auto;
  line-height: 1.7;
}
.kankotri-label {
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--kankotri-gold);
  margin-bottom: 1rem;
  font-weight: 500;
}
.kankotri-names {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 4.5vw, 2.5rem);
  color: var(--deep-red);
  line-height: 1.2;
  margin-bottom: 0.35rem;
}
.kankotri-amp {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--gold);
  display: block;
  margin: 0.35rem 0;
}
.kankotri-parents {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-top: 0.5rem;
  line-height: 1.6;
}
.kankotri-invite {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  line-height: 1.75;
  color: var(--ink);
  max-width: 28em;
  margin: 0 auto 1rem;
}
.kankotri-photo {
  width: min(280px, 70vw);
  margin: 0 auto 1.5rem;
  border-radius: 4px;
  overflow: hidden;
  border: 3px solid var(--kankotri-gold);
  box-shadow: 0 8px 24px rgba(44, 36, 32, 0.1);
}
.kankotri-photo img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.ritual-list {
  display: grid;
  gap: 0.65rem;
  max-width: 400px;
  margin: 0 auto;
  text-align: left;
}
.ritual-item {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed rgba(201, 162, 39, 0.3);
  font-size: 0.95rem;
}
.ritual-item:last-child { border-bottom: none; }
.ritual-item strong {
  color: var(--deep-red);
  font-weight: 500;
  min-width: 7.5rem;
  font-size: 0.9rem;
}
.ritual-item span { color: var(--ink-soft); }
.kankotri-details {
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.8;
}
.kankotri-details strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--deep-red);
  font-weight: 500;
  margin-bottom: 0.25rem;
}
.kankotri-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}
.kankotri-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.25rem;
}
.kankotri-qr-box {
  width: 120px;
  height: 120px;
  background: var(--white);
  border: 1px solid var(--kankotri-gold);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.kankotri-qr-box img,
.kankotri-qr-box canvas {
  width: 100%;
  height: 100%;
}
.kankotri-qr p {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.kankotri-footer {
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--deep-red);
  margin-top: 0.5rem;
  opacity: 0.9;
}
.btn-kankotri {
  background: var(--deep-red);
  color: var(--kankotri-cream);
  border-color: var(--deep-red);
}
.btn-kankotri:hover {
  background: #6F2424;
  border-color: #6F2424;
  color: var(--white);
}
.btn-kankotri-outline {
  background: transparent;
  color: var(--deep-red);
  border-color: var(--deep-red);
}
.btn-kankotri-outline:hover {
  background: var(--deep-red);
  color: var(--kankotri-cream);
}

/* ─── Page header (subpages) ─── */
.page-hero {
  padding: calc(var(--nav-h) + 3.5rem) 1.5rem 3rem;
  text-align: center;
  background: linear-gradient(180deg, var(--blush) 0%, var(--ivory) 100%);
}
.page-hero .spaced-label { margin-bottom: 0.75rem; }
.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 400;
  margin-bottom: 0.75rem;
}
.page-hero p {
  color: var(--ink-soft);
  max-width: 32em;
  margin: 0 auto;
}

/* ─── Footer ─── */
.footer {
  background: var(--ink);
  color: rgba(253, 248, 243, 0.75);
  padding: 3.5rem 0 2rem;
  text-align: center;
}
.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--ivory);
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}
.footer-sub {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  margin-bottom: 1.75rem;
  opacity: 0.7;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.25rem;
  margin-bottom: 2rem;
}
.footer-links a {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
  transition: opacity 0.2s, color 0.2s;
}
.footer-links a:hover {
  opacity: 1;
  color: var(--gold-light);
}
.footer-copy {
  font-size: 0.8rem;
  opacity: 0.45;
  border-top: 1px solid rgba(253, 248, 243, 0.1);
  padding-top: 1.5rem;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ─── Reveal animations ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Save the Date (isolated page) ─── */
.std-page {
  background:
    radial-gradient(ellipse 90% 45% at 50% -5%, rgba(242, 224, 216, 0.75), transparent 55%),
    var(--ivory);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.std-page-isolated main {
  flex: 1;
}

.std-standalone-header {
  text-align: center;
  padding: 0.85rem 1rem 0.35rem;
}
.std-standalone-footer {
  text-align: center;
  padding: 1.5rem 1.25rem;
  margin-top: auto;
  border-top: 1px solid var(--border-soft);
}
.std-standalone-footer-names {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--ink);
  margin: 0 0 0.25rem;
}
.std-standalone-footer-copy {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 0;
}

.std-hero-logo {
  width: min(220px, 55vw);
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

.std-main-section {
  padding: 0.75rem 1.25rem 2.5rem;
}

/* Two columns: photo | form — top aligned, natural heights */
.std-layout {
  display: grid;
  grid-template-columns: minmax(260px, 400px) minmax(280px, 380px);
  gap: clamp(1.75rem, 4vw, 2.75rem);
  align-items: start;
  justify-content: center;
  max-width: 880px;
  margin: 0 auto;
}

/* Photo column — image scales to column width, keeps aspect ratio */
.std-photo-col {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}
.std-photo {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow:
    0 18px 44px rgba(44, 36, 32, 0.16),
    0 4px 14px rgba(44, 36, 32, 0.08);
}

/* Form column */
.std-form-col {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}
.std-form-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 1.6rem 1.5rem 1.75rem;
  box-shadow: var(--shadow-soft);
  border-top: 3px solid rgba(139, 46, 46, 0.4);
}
.std-form-intro {
  margin-bottom: 1.15rem;
}
.std-form-intro .spaced-label {
  margin-bottom: 0.45rem;
  font-size: 10px;
}
.std-form-title {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 0.35rem;
  line-height: 1.2;
}
.std-form-lead {
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
  font-size: 0.92rem;
}
.std-form-card .form-group {
  margin-bottom: 1rem;
}

/* Success: hidden by default — never show until JS unhides after submit */
.std-success {
  display: none !important;
  text-align: center;
  padding: 0.75rem 0.25rem;
}
.std-success:not([hidden]) {
  display: block !important;
}
.std-success-check {
  width: 52px;
  height: 52px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  background: var(--sage-muted);
  color: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 600;
}
.std-success h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  margin: 0 0 0.5rem;
  color: var(--ink);
}
.std-success p {
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
  font-size: 0.95rem;
}

@media (max-width: 800px) {
  .std-layout {
    grid-template-columns: 1fr;
    max-width: 400px;
    gap: 1.75rem;
  }
  .std-photo-col,
  .std-form-col {
    max-width: 400px;
  }
  .std-form-intro {
    text-align: center;
  }
  .std-form-intro .spaced-label {
    display: inline-block;
  }
}

/* ─── Print (E-Kankotri download) ─── */
@media print {
  .nav, .kankotri-nav, .footer, .hero-ctas, .btn, .nav-toggle { display: none !important; }
  .kankotri-card {
    box-shadow: none;
    border-width: 1px;
  }
  body { background: white; }
}

/* ─── Accessibility ─── */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
