/* =============================================
   CHRISU & OLLI — Åminnen kartano, 31.12.2026
   ============================================= */

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

/* ─── RESET & BASE ─────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:      #F8F5F0;
  --warm-white: #FDFCFA;
  --stone:      #C8B89A;
  --stone-dark: #9E8972;
  --ink:        #1A1714;
  --ink-soft:   #3D3630;
  --muted:      #8A7D71;
  --border:     #E2D9CE;
  --section-gap: clamp(80px, 12vw, 140px);
  --max-w: 1100px;
  --pad: clamp(24px, 5vw, 64px);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--warm-white);
  -webkit-font-smoothing: antialiased;
}

/* ─── TYPOGRAPHY ───────────────────────────── */
.display {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.display-xl {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(52px, 8vw, 100px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.label {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(20px, 2.5vw, 26px);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

p { color: var(--ink-soft); }

/* ─── LAYOUT UTILITIES ─────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section { padding: var(--section-gap) 0; }
.section + .section { border-top: 1px solid var(--border); }

/* ─── BUTTONS ──────────────────────────────── */
.btn {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 36px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.btn:hover { background: var(--ink); color: var(--warm-white); }

.btn-primary {
  background: var(--ink);
  color: var(--warm-white);
}
.btn-primary:hover { background: var(--ink-soft); }

.btn-stone {
  border-color: var(--stone-dark);
  color: var(--stone-dark);
}
.btn-stone:hover { background: var(--stone-dark); color: var(--warm-white); }

/* ─── GATE PAGE ────────────────────────────── */
.gate-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.gate-image {
  position: relative;
  overflow: hidden;
}

.gate-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.92);
}

.gate-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 70%, var(--warm-white));
}

.gate-form-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 60px clamp(40px, 6vw, 80px);
  background: var(--warm-white);
}

.gate-eyebrow {
  margin-bottom: 48px;
}

.gate-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.gate-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(18px, 2vw, 24px);
  color: var(--muted);
  margin-bottom: 48px;
}

.gate-instruction {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.gate-input-wrap {
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gate-input {
  width: 100%;
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  font-weight: 300;
  padding: 16px 20px;
  border: 1px solid var(--border);
  background: var(--warm-white);
  color: var(--ink);
  outline: none;
  letter-spacing: 0.05em;
  transition: border-color 0.2s;
}
.gate-input:focus { border-color: var(--stone-dark); }
.gate-input::placeholder { color: var(--stone); }

.gate-error {
  font-size: 12px;
  color: #b0583a;
  letter-spacing: 0.05em;
  min-height: 18px;
  transition: opacity 0.2s;
}

.gate-footer {
  margin-top: auto;
  padding-top: 48px;
  font-size: 12px;
  color: var(--stone);
  letter-spacing: 0.08em;
}

/* ─── MAIN PAGE HERO ───────────────────────── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  overflow: hidden;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 8vw, 100px) var(--pad) clamp(48px, 8vw, 100px) clamp(48px, 8vw, 100px);
}

.hero-date-location {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-location-line {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--muted);
}

.hero-cta {
  margin-top: 56px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ─── COUNTDOWN ────────────────────────────── */
.countdown {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.countdown-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 300;
  line-height: 1;
  color: var(--ink);
}

.countdown-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone-dark);
  margin-top: 6px;
}

/* ─── PHOTO CAROUSEL ───────────────────────── */
.hero-carousel {
  position: relative;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.carousel-slide.active { opacity: 1; }

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.95);
}

.carousel-caption {
  position: absolute;
  bottom: 32px;
  left: 32px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

/* ─── DIVIDER ──────────────────────────────── */
.ornament {
  text-align: center;
  color: var(--stone);
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  letter-spacing: 0.3em;
  margin: 0;
  padding: 24px 0;
}

/* ─── SCHEDULE ─────────────────────────────── */
.schedule-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 56px;
}

.schedule-item {
  background: var(--warm-white);
  padding: 40px 36px;
}

.schedule-time {
  font-family: 'Cormorant Garamond', serif;
  font-size: 40px;
  font-weight: 300;
  color: var(--stone);
  line-height: 1;
  margin-bottom: 16px;
}

.schedule-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  margin-bottom: 8px;
}

.schedule-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ─── LOGISTICS ────────────────────────────── */
.logistics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  margin-top: 56px;
  align-items: start;
}

.logistics-block h3 {
  margin-bottom: 16px;
}

.logistics-block p {
  font-size: 15px;
  line-height: 1.8;
}

.map-embed {
  width: 100%;
  aspect-ratio: 4/3;
  border: 0;
  filter: grayscale(0.3) contrast(1.05);
}

/* ─── DRESS CODE ───────────────────────────── */
.dress-code-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--border);
  margin-top: 56px;
}

.dress-item {
  background: var(--warm-white);
  padding: 40px;
}

.dress-item-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone-dark);
  margin-bottom: 12px;
}

.dress-item-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 300;
  margin-bottom: 12px;
}

.dress-item-detail {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* ─── RSVP CTA BANNER ──────────────────────── */
.rsvp-banner {
  background: var(--ink);
  color: var(--warm-white);
  text-align: center;
  padding: clamp(60px, 8vw, 100px) var(--pad);
}

.rsvp-banner h2 {
  color: var(--warm-white);
  margin-bottom: 12px;
}

.rsvp-banner p {
  color: rgba(255,255,255,0.6);
  font-size: 15px;
  margin-bottom: 40px;
}

.rsvp-banner .btn {
  border-color: var(--warm-white);
  color: var(--warm-white);
}
.rsvp-banner .btn:hover { background: var(--warm-white); color: var(--ink); }

/* ─── FAQ ──────────────────────────────────── */
.faq-list {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.faq-item:last-child { border-bottom: 1px solid var(--border); }

.faq-q {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  user-select: none;
}

.faq-q::after {
  content: '+';
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 22px;
  color: var(--stone-dark);
  flex-shrink: 0;
  transition: transform 0.25s;
}

.faq-item.open .faq-q::after { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
}

.faq-item.open .faq-a {
  max-height: 300px;
  padding-top: 16px;
}

/* ─── PHOTOS PAGE ──────────────────────────── */
.padlet-wrap {
  width: 100%;
  height: 80vh;
  min-height: 600px;
  border: none;
  overflow: hidden;
}

/* ─── FOOTER ───────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px var(--pad);
  text-align: center;
}

footer p {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--stone);
}

/* ─── AFTERPARTY PAGE ──────────────────────── */
.afterparty-hero {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(48px, 8vw, 100px) var(--pad);
  position: relative;
  overflow: hidden;
  background: var(--ink);
}

.afterparty-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('hero.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  filter: brightness(0.6);
}

.afterparty-hero h1,
.afterparty-hero p,
.afterparty-hero .label {
  position: relative;
  z-index: 1;
  color: var(--warm-white);
}

.afterparty-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(52px, 8vw, 100px);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.afterparty-hero p { color: rgba(255,255,255,0.65); }

/* ─── NAV ──────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(253,252,250,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

nav.scrolled { border-bottom-color: var(--border); }

.nav-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--ink);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }

/* ─── PAGE PADDING FOR NAV ─────────────────── */
.page-top-pad { padding-top: 65px; }

/* ─── ANIMATIONS ───────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
}

.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.25s; }
.fade-up-3 { animation-delay: 0.4s; }
.fade-up-4 { animation-delay: 0.55s; }
.fade-up-5 { animation-delay: 0.7s; }

/* ─── RESPONSIVE ───────────────────────────── */
@media (max-width: 900px) {
  .gate-page { grid-template-columns: 1fr; }
  .gate-image { display: none; }
  .gate-form-side {
    min-height: 100vh;
    padding: 60px 32px;
    align-items: center;
    text-align: center;
  }
  .gate-input-wrap { align-items: center; }

  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-text {
    padding: 100px 32px 48px;
    text-align: center;
    align-items: center;
  }
  .hero-cta { justify-content: center; }
  .hero-carousel { height: 60vw; min-height: 280px; }

  .countdown { justify-content: center; gap: 24px; }

  .schedule-grid { grid-template-columns: 1fr; }
  .logistics-grid { grid-template-columns: 1fr; }
  .dress-code-grid { grid-template-columns: 1fr; }

  .hero-date-location { align-items: center; }
}

@media (max-width: 540px) {
  nav { padding: 16px 20px; }
  .nav-links { display: none; }
  .gate-form-side { padding: 48px 24px; }
}
