/* ============================================================
   DESIGN TOKENS
============================================================ */
:root {
  --c-bg:            #F7F3EE;
  --c-bg-alt:        #EDE8DF;
  --c-primary:       #2D6A4F;
  --c-primary-mid:   #40916C;
  --c-primary-light: #74C69D;
  --c-accent:        #B7894A;
  --c-accent-hover:  #C9995E;
  --c-text:          #242424;
  --c-text-mid:      #555;
  --c-text-light:    #888;
  --c-white:         #FFFFFF;
  --c-dark:          #1B3829;
  --c-footer-bg:     #111111;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;
  --max-w:    1100px;
  --header-h: 68px;
  --radius:   10px;
}

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); background: var(--c-bg); color: var(--c-text); line-height: 1.7; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }

/* ============================================================
   HEADER
============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 200;
  height: var(--header-h);
  background: var(--c-white);
  border-bottom: 1px solid rgba(45,106,79,0.13);
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
  display: flex; align-items: center;
}
.header-inner { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo-main { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 700; color: var(--c-primary); }

.site-nav { display: flex; align-items: center; gap: 1.75rem; list-style: none; }
.site-nav a { font-size: 0.875rem; font-weight: 500; color: var(--c-text-mid); padding-bottom: 3px; border-bottom: 2px solid transparent; transition: color 0.2s, border-color 0.2s; }
.site-nav a:hover, .site-nav a.active { color: var(--c-primary); border-bottom-color: var(--c-primary-light); }
.nav-rsvp a { background: var(--c-primary); color: var(--c-white) !important; padding: 9px 20px; border-radius: 999px; border-bottom: none !important; font-weight: 600; transition: background 0.2s !important; }
.nav-rsvp a:hover { background: var(--c-primary-mid) !important; }

/* ============================================================
   HAMBURGER TOGGLE
============================================================ */
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; z-index: 201; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--c-primary); border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
============================================================ */
.hero { background: linear-gradient(150deg, var(--c-primary) 0%, #1A3D2B 100%); color: var(--c-white); padding: 56px 0 48px; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 80% 50%, rgba(116,198,157,0.08) 0%, transparent 60%); pointer-events: none; }
.hero-footsteps { position: absolute; inset: 0; pointer-events: none; }
.hero-inner { display: flex; align-items: center; gap: 48px; }
.hero-content { position: relative; z-index: 1; flex: 1; min-width: 0; }
.hero h1 { font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.12; margin-bottom: 16px; }
.hero h1 em { font-style: italic; font-weight: 600; color: var(--c-primary-light); }
.hero-tagline { font-size: 1.05rem; font-weight: 300; color: rgba(255,255,255,0.78); line-height: 1.85; max-width: 500px; margin-bottom: 20px; }
.hero-meta { display: flex; gap: 36px; margin-bottom: 24px; flex-wrap: wrap; }
.meta-item { display: flex; flex-direction: column; gap: 3px; }
.meta-label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-primary-light); }
.meta-value { font-size: 0.975rem; font-weight: 500; color: rgba(255,255,255,0.88); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-date { font-family: var(--font-serif); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; color: white; margin-bottom: 4px; }
.hero-time { font-size: 1rem; color: var(--c-primary-light); letter-spacing: 0.04em; margin-bottom: 16px; }
.countdown { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.countdown-unit { display: flex; flex-direction: column; align-items: center; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); border-radius: 8px; padding: 10px 16px; min-width: 68px; }
.countdown-value { font-family: var(--font-serif); font-size: 2rem; font-weight: 700; color: white; line-height: 1; margin-bottom: 5px; }
.countdown-label { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-primary-light); }

.hero-photos { position: relative; width: 390px; height: 260px; flex-shrink: 0; }
.polaroid { position: absolute; width: 200px; background: #FFFEF9; padding: 10px 10px 44px; box-shadow: 0 8px 28px rgba(0,0,0,0.3), 0 2px 6px rgba(0,0,0,0.12); }
.polaroid-img { width: 100%; aspect-ratio: 1; background: #cac6bc; background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.06) 0px, rgba(255,255,255,0.06) 1px, transparent 1px, transparent 8px); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.35); font-size: 2rem; }
.polaroid-caption { margin-top: 8px; font-size: 0.72rem; color: #aaa; text-align: center; font-style: italic; letter-spacing: 0.03em; }
.polaroid-1 { top: 20px;  left: 0;     transform: rotate(-7deg); z-index: 1; }
.polaroid-2 { top:  8px;  left: 90px;  transform: rotate(6deg);  z-index: 3; }
.polaroid-3 { top: 14px;  left: 185px; transform: rotate(-2deg); z-index: 2; }

/* ============================================================
   BUTTONS
============================================================ */
.btn { display: inline-block; font-family: var(--font-sans); font-size: 0.9rem; font-weight: 600; padding: 14px 30px; border-radius: 999px; letter-spacing: 0.02em; transition: all 0.2s; cursor: pointer; border: none; text-decoration: none; }
.btn-accent { background: var(--c-accent); color: var(--c-white); }
.btn-accent:hover { background: var(--c-accent-hover); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(183,137,74,0.35); }
.btn-ghost { border: 2px solid rgba(255,255,255,0.45); color: rgba(255,255,255,0.88); }
.btn-ghost:hover { border-color: white; color: white; background: rgba(255,255,255,0.06); }
.btn-green { background: var(--c-primary); color: white; }
.btn-green:hover { background: var(--c-primary-mid); transform: translateY(-1px); }

/* ============================================================
   SECTION UTILITIES
============================================================ */
.section { padding: 84px 0; }
.section-alt { background: var(--c-bg-alt); }
.section-dark { background: var(--c-dark); color: rgba(200,230,212,0.88); }
.section-dark .section-label { color: rgba(200,230,212,0.7); }
.section-dark .section-label::before { background: rgba(200,230,212,0.35); }
.section-dark .section-heading { color: white; }
.section-dark .section-heading em { color: rgba(200,230,212,0.9); }
.section-dark .section-subtext { color: rgba(200,230,212,0.75); }
.section-dark .pillar-body h4 { color: white; }
.section-dark .pillar-body p { color: rgba(200,230,212,0.72); }
.section-dark .pillar-icon { background: rgba(255,255,255,0.08); }
.section-dark .rsvp-field label { color: rgba(200,230,212,0.7); }
.section-dark .rsvp-optional { color: rgba(200,230,212,0.45); }
.section-dark .btn-green { background: var(--c-primary-light); color: var(--c-dark); }
.section-dark .btn-green:hover { background: white; color: var(--c-dark); }
.section-label { display: inline-flex; align-items: center; gap: 8px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-primary); margin-bottom: 14px; }
.section-label::before { content: ''; display: block; width: 20px; height: 2px; background: var(--c-primary-light); }
.section-heading { font-family: var(--font-serif); font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 700; line-height: 1.2; margin-bottom: 18px; }
.section-heading em { font-style: italic; font-weight: 600; color: var(--c-primary); }
.section-subtext { font-size: 1rem; color: var(--c-text-mid); line-height: 1.85; max-width: 560px; }
.section-subtext p + p { margin-top: 14px; }

/* ============================================================
   ABOUT (2-col)
============================================================ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.pillar-list { display: flex; flex-direction: column; gap: 28px; margin-top: 8px; }
.pillar { display: flex; gap: 18px; align-items: flex-start; }
.pillar-icon { width: 46px; height: 46px; min-width: 46px; border-radius: 12px; background: var(--c-primary); color: white; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.pillar-body h4 { font-family: var(--font-serif); font-size: 1.05rem; font-weight: 600; margin-bottom: 5px; }
.pillar-body p { font-size: 0.9rem; color: var(--c-text-mid); line-height: 1.65; }

/* ============================================================
   SUPPORT BANNER
============================================================ */
.support-band { background: var(--c-dark); padding: 64px 0; }
.support-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.support-inner h2 { font-family: var(--font-serif); font-size: 1.7rem; font-weight: 700; color: white; margin-bottom: 10px; }
.support-inner p { font-size: 0.95rem; color: rgba(200,230,212,0.72); max-width: 460px; line-height: 1.8; }
.btn-outline-light { border: 2px solid var(--c-primary-light); color: var(--c-primary-light); white-space: nowrap; padding: 13px 28px; }
.btn-outline-light:hover { background: var(--c-primary-light); color: var(--c-dark); }

/* ============================================================
   FOOTER
============================================================ */
.site-footer { background: var(--c-footer-bg); color: #aaa; padding: 60px 0 32px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr; gap: 56px; padding-bottom: 48px; border-bottom: 1px solid #1e1e1e; }
.footer-brand .footer-logo { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700; color: white; margin-bottom: 14px; display: block; }
.footer-brand p { font-size: 0.875rem; line-height: 1.8; color: #666; max-width: 280px; }
.footer-col h4 { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: #555; margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 0.875rem; color: #777; transition: color 0.2s; }
.footer-col ul a:hover { color: white; }
.footer-bottom { padding-top: 26px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 0.78rem; color: #444; }
.footer-crisis { font-size: 0.78rem; color: #555; }
.footer-crisis strong { color: #888; }

/* ============================================================
   ROUTE MAP
============================================================ */
.section-route { display: grid; grid-template-columns: 1fr 1fr; min-height: 480px; }
#route-map { min-height: 480px; isolation: isolate; }
.route-info { background: var(--c-bg-alt); padding: 64px 56px; display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.route-info p { font-size: 0.975rem; color: var(--c-text-mid); line-height: 1.8; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-grid > div:first-child { text-align: center; }
  .about-grid .section-subtext { margin: 0 auto; }
  .pillar-list { max-width: 480px; margin: 0 auto; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .section-route { grid-template-columns: 1fr; }
  .route-info { text-align: center; align-items: center; padding: 48px 28px; }
  .support-inner { flex-direction: column; align-items: center; text-align: center; }
  .support-inner p { max-width: 100%; }
  #route-map { min-height: 360px; }
  .hero-inner { flex-direction: column; align-items: stretch; width: 100%; }
  .hero-content { width: 100%; text-align: center; }
  .hero-tagline { margin: 0 auto; }
  .hero-meta { justify-content: center; }
  .hero-actions { justify-content: center; }
  .countdown { justify-content: center; }
  .hero-photos { align-self: center; margin-top: 36px; }
  .nav-toggle { display: flex; }
  .site-nav { display: none; }
  .site-nav.nav-open {
    display: flex; flex-direction: column; position: fixed;
    top: var(--header-h); left: 0; right: 0;
    background: var(--c-white); padding: 8px 0 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-bottom: 1px solid rgba(45,106,79,0.13);
    z-index: 199; gap: 0;
  }
  .site-nav.nav-open li { border-bottom: 1px solid rgba(0,0,0,0.05); }
  .site-nav.nav-open li:last-child { border-bottom: none; }
  .site-nav.nav-open a { display: block; padding: 14px 28px; font-size: 1rem; font-weight: 500; border-bottom: none; }
  .site-nav.nav-open .nav-rsvp { padding: 12px 28px 0; }
  .site-nav.nav-open .nav-rsvp a { display: block !important; text-align: center; padding: 12px 20px !important; }
}
@media (max-width: 640px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; text-align: center; }
  .footer-brand p { margin: 0 auto; }
  .footer-col { text-align: center; }
  .footer-col ul { align-items: center; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
  .hero-meta { gap: 22px; }
  .hero-photos { width: 312px; height: 210px; }
  .hero-photos .polaroid { width: 160px; padding: 8px 8px 36px; }
  .polaroid-1 { top: 16px; left: 0;     }
  .polaroid-2 { top:  6px; left: 72px;  }
  .polaroid-3 { top: 11px; left: 148px; }
}

/* ============================================================
   PILLARS SECTION
============================================================ */
.pillar-section-intro { margin-bottom: 48px; }
.pillar-grid { display: grid; gap: 28px; }
.pillar-grid-2 { grid-template-columns: repeat(2, 1fr); }
.pillar-grid-3 { grid-template-columns: repeat(3, 1fr); }
.pillar-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ============================================================
   IMAGE BANNER
============================================================ */
.image-banner { width: 100%; position: relative; display: flex; align-items: center; justify-content: center; }
.image-banner-overlay { position: relative; z-index: 1; text-align: center; padding: 28px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.image-banner-overlay::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,0.38); border-radius: 4px;
  z-index: -1;
}
.image-banner-text { font-family: var(--font-serif); font-size: clamp(1.4rem, 3vw, 2.2rem); color: white; font-weight: 600; line-height: 1.25; }
.image-banner-caption { text-align: center; font-size: 0.82rem; color: var(--c-text-mid); padding: 10px 28px; }

@media (max-width: 900px) {
  .pillar-grid-3, .pillar-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .pillar-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   COUNTDOWN BANNER
============================================================ */
.countdown-section { padding: 64px 0; }
.countdown-section-dark { background: var(--c-dark); }
.countdown-section-dark .countdown-value { color: white; }
.countdown-section-dark .countdown-label { color: rgba(200,230,212,0.6); }
.countdown-section-dark .countdown-unit::after { background: rgba(255,255,255,0.08); }
.countdown-section-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-primary); margin-bottom: 20px; }
.countdown-section-dark .countdown-section-label { color: rgba(200,230,212,0.7); }
.countdown-section-subtext { margin-top: 20px; font-size: 0.95rem; color: var(--c-text-mid); }
.countdown-section-dark .countdown-section-subtext { color: rgba(200,230,212,0.65); }
.countdown-section .countdown { justify-content: center; }

/* ============================================================
   POLAROID SECTION
============================================================ */
.polaroid-section { padding: 72px 0; }

/* ============================================================
   RSVP FORM
============================================================ */
.rsvp-form { display: flex; flex-direction: column; gap: 16px; }
.rsvp-row { display: flex; gap: 16px; }
.rsvp-row-2 > * { flex: 1; min-width: 0; }
.rsvp-field { display: flex; flex-direction: column; gap: 6px; }
.rsvp-field label { font-size: 0.82rem; font-weight: 600; color: var(--c-text-mid); text-transform: uppercase; letter-spacing: 0.06em; }
.rsvp-required { color: #DC2626; }
.rsvp-optional { font-weight: 400; text-transform: none; letter-spacing: 0; opacity: 0.65; }
.rsvp-field input, .rsvp-field textarea {
  padding: 10px 13px; border: 1px solid #ddd; border-radius: 6px;
  font-size: 0.9rem; font-family: inherit; background: white;
  transition: border-color 0.15s;
}
.rsvp-field input:focus, .rsvp-field textarea:focus { outline: none; border-color: var(--c-primary); }
.rsvp-field textarea { resize: vertical; }
.rsvp-success { display: flex; align-items: center; gap: 16px; background: #D1FAE5; border: 1px solid #A7F3D0; border-radius: 8px; padding: 20px 24px; }
.rsvp-success-icon { width: 40px; height: 40px; border-radius: 50%; background: #059669; color: white; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.rsvp-success p { font-family: var(--font-serif); font-size: 1.05rem; font-style: italic; color: #065F46; }

@media (max-width: 640px) {
  .rsvp-row { flex-direction: column; }
}

/* =====================================================
   BLOG
   ===================================================== */

/* Listing grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
  padding: 40px 0;
}

.post-card {
  background: var(--c-white);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.post-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.10); transform: translateY(-2px); }

.post-card-img { display: block; aspect-ratio: 16/9; overflow: hidden; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.post-card:hover .post-card-img img { transform: scale(1.03); }

.post-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; gap: 10px; }

.post-card-date {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-primary);
}

.post-card-title { font-family: var(--font-serif); font-size: 1.2rem; line-height: 1.35; margin: 0; }
.post-card-title a { color: var(--c-text); text-decoration: none; }
.post-card-title a:hover { color: var(--c-primary); }

.post-card-excerpt { font-size: 0.9rem; color: #555; line-height: 1.6; margin: 0; flex: 1; }

.post-card-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--c-primary);
  text-decoration: none;
  margin-top: auto;
}
.post-card-link:hover { text-decoration: underline; }

/* Individual post */
.post-article { padding-bottom: 80px; }

.post-article-hero {
  width: 100%;
  max-height: 460px;
  overflow: hidden;
}
.post-article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-article-inner { max-width: 740px; padding-top: 48px; }

.post-article-back {
  font-size: 0.875rem;
  margin-bottom: 24px;
}
.post-article-back a { color: var(--c-primary); text-decoration: none; font-weight: 600; }
.post-article-back a:hover { text-decoration: underline; }

.post-article-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.2;
  margin-bottom: 12px;
}

.post-article-date {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-primary);
  margin-bottom: 36px;
}

.post-article-body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--c-text);
}
.post-article-body h1,
.post-article-body h2,
.post-article-body h3 { font-family: var(--font-serif); margin: 1.5em 0 0.5em; }
.post-article-body p  { margin-bottom: 1.2em; }
.post-article-body a  { color: var(--c-primary); }
.post-article-body ul,
.post-article-body ol { padding-left: 1.5em; margin-bottom: 1.2em; }
.post-article-body li { margin-bottom: 0.4em; }
.post-article-body blockquote {
  border-left: 3px solid var(--c-primary);
  margin: 1.5em 0;
  padding: 0.5em 0 0.5em 1.2em;
  font-style: italic;
  color: #555;
}
.post-article-body img { max-width: 100%; border-radius: 8px; margin: 1em 0; }

@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; gap: 20px; padding: 24px 0; }
  .post-article-inner { padding-top: 28px; }
}
