/* ============================================================
   WEDDING INVITATION 2 — Daffa & Nabila (Botanical Sage Green Theme)
   ------------------------------------------------------------
   Warna Utama : Sage Green (#047857) & Terracotta Gold (#c2410c)
   Layout      : Envelope Cover, Floating Pill Bottom Nav, Timeline Story.
   ============================================================ */

:root {
  --primary: #047857;        /* Sage / Deep Botanical Green */
  --primary-light: #ecfdf5;  /* Soft green tint */
  --accent: #c2410c;         /* Terracotta Rust */
  --accent-light: #ffedd5;

  --bg: #f4fbf7;             /* Clean botanical light background */
  --card-bg: #ffffff;
  --text: #064e3b;           /* Deep dark green-slate text */
  --text-muted: #525252;
  --border: #d1fae5;

  --radius: 24px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(4, 120, 87, 0.06);
  --shadow-lg: 0 20px 40px rgba(4, 120, 87, 0.12);

  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Inter", system-ui, sans-serif;
  --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { width: 100%; max-width: 920px; margin: 0 auto; padding: 0 24px; }
.section { padding: 90px 0; }
.bg-soft { background: #e6f4ed; }
.text-center { text-align: center; }

h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 700; line-height: 1.2; }

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 50px; font-weight: 600; font-size: 0.9rem;
  border: 2px solid transparent; cursor: pointer; transition: var(--transition);
}
.btn-sm { padding: 8px 18px; font-size: 0.825rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: #065f46; transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }

/* ==================== COVER PEMBUKA ==================== */
.botanical-cover {
  position: fixed; inset: 0; z-index: 9999;
  background: radial-gradient(circle at 50% 30%, #ecfdf5 0%, #d1fae5 100%);
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 24px; transition: opacity 0.8s ease, visibility 0.8s ease;
}
.botanical-cover.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.cover-box { max-width: 480px; }
.cover-sup { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 3px; color: var(--accent); margin-bottom: 10px; display: block; }
.botanical-cover h1 { font-size: clamp(3rem, 7vw, 4rem); color: var(--primary); margin-bottom: 8px; }
.cover-date { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 28px; }

.cover-guest-card {
  background: rgba(255,255,255,0.9); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; margin-bottom: 28px; box-shadow: var(--shadow);
}
.cover-guest-card span { font-size: 0.825rem; color: var(--text-muted); display: block; margin-bottom: 6px; }
.cover-guest-card strong { font-family: var(--font-serif); font-size: 1.3rem; color: var(--text); }

.btn-open-botanical {
  background: var(--primary); color: #fff; border: none; padding: 14px 30px; border-radius: 50px;
  font-family: var(--font-sans); font-size: 1rem; font-weight: 700; cursor: pointer;
  box-shadow: 0 10px 25px rgba(4, 120, 87, 0.25); transition: var(--transition);
}
.btn-open-botanical:hover { background: #065f46; transform: translateY(-2px); }

/* ==================== FLOATING PILL BOTTOM NAV ==================== */
.botanical-nav {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); border: 1px solid var(--border);
  border-radius: 50px; padding: 8px 16px; display: flex; gap: 8px;
  box-shadow: 0 10px 30px rgba(4, 120, 87, 0.15); z-index: 900;
}
.b-nav-item {
  width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 0.95rem; transition: 0.2s;
}
.b-nav-item:hover, .b-nav-item.active { background: var(--primary); color: #fff; }

/* ==================== HERO ==================== */
.botanical-hero {
  min-height: 85vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 100px 24px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; background: var(--primary-light);
  color: var(--primary); padding: 6px 16px; border-radius: 50px; font-size: 0.85rem; font-weight: 700; margin-bottom: 16px;
}
.hero-names { font-size: clamp(3rem, 7vw, 5rem); color: var(--primary); margin-bottom: 20px; }
.hero-sub { font-size: 0.95rem; color: var(--text-muted); max-width: 580px; margin: 0 auto 40px; font-style: italic; }

/* COUNTDOWN */
.countdown-flex { display: flex; justify-content: center; gap: 14px; }
.c-box {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 14px 18px; min-width: 74px; box-shadow: var(--shadow); text-align: center;
}
.c-box span { display: block; font-family: var(--font-serif); font-size: 1.8rem; font-weight: 700; color: var(--primary); }
.c-box label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* SECTION TITLE */
.sub-title { display: inline-block; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--accent); margin-bottom: 8px; }
.section-title { text-align: center; max-width: 560px; margin: 0 auto 45px; }
.section-title h2 { font-size: clamp(2rem, 3.5vw, 2.5rem); color: var(--primary); }

/* COUPLE */
.couple-botanical-grid { display: flex; align-items: center; justify-content: center; gap: 30px; flex-wrap: wrap; }
.couple-b-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px 28px; text-align: center; max-width: 320px; flex: 1; box-shadow: var(--shadow);
}
.b-img-wrap { width: 150px; height: 150px; border-radius: 50%; overflow: hidden; margin: 0 auto 20px; border: 4px solid var(--primary-light); }
.b-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.couple-b-card h3 { font-size: 1.35rem; margin-bottom: 8px; }
.couple-b-card p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 14px; }
.couple-b-card a { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 600; color: var(--primary); }
.couple-ampersand { font-family: var(--font-serif); font-size: 2.5rem; font-style: italic; color: var(--accent); }

/* LOVE STORY TIMELINE */
.story-timeline { position: relative; max-width: 600px; margin: 0 auto; padding-left: 30px; border-left: 2px dashed var(--primary); }
.story-item { position: relative; margin-bottom: 36px; }
.story-item::before {
  content: ""; position: absolute; left: -36px; top: 4px; width: 14px; height: 14px;
  background: var(--primary); border: 3px solid var(--bg); border-radius: 50%;
}
.story-content { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.story-year { font-size: 0.75rem; font-weight: 700; color: var(--accent); text-transform: uppercase; display: block; margin-bottom: 4px; }
.story-content h3 { font-size: 1.15rem; margin-bottom: 8px; }
.story-content p { font-size: 0.9rem; color: var(--text-muted); }

/* EVENTS */
.events-botanical-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.event-b-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px 28px; text-align: center; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.e-icon { width: 54px; height: 54px; border-radius: 50%; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; margin-bottom: 4px; }
.event-b-card h3 { font-size: 1.3rem; }
.e-date, .e-time, .e-loc { font-size: 0.875rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }

/* GALLERY */
.gallery-botanical-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.g-card { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1 / 1; box-shadow: var(--shadow); }
.g-card img { width: 100%; height: 100%; object-fit: cover; transition: 0.4s ease; }
.g-card:hover img { transform: scale(1.06); }

/* GIFT */
.gift-botanical-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; text-align: center; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.b-bank { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 700; color: var(--primary); }
.b-num { font-size: 1.15rem; font-weight: 700; letter-spacing: 1px; }
.b-name { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 6px; }

/* RSVP */
.rsvp-botanical-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow);
}
.b-group { margin-bottom: 18px; text-align: left; }
.b-group label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 6px; }
.b-group input, .b-group select, .b-group textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg); font-family: inherit; font-size: 0.9rem; color: var(--text); outline: none; transition: 0.2s;
}
.b-group input:focus, .b-group select:focus, .b-group textarea:focus { border-color: var(--primary); background: var(--white); }

/* FOOTER */
.botanical-footer { background: #022c22; color: #a7f3d0; padding: 70px 0 50px; text-align: center; }
.botanical-footer h2 { font-size: 2rem; color: #fff; margin-bottom: 10px; }
.botanical-footer p { max-width: 480px; margin: 0 auto 20px; font-size: 0.9rem; }
.copyright { font-size: 0.8rem; color: #6ee7b7; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; max-width: 300px; margin: 30px auto 0; }

/* ==================== REVEAL ==================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 992px) {
  .events-botanical-grid { grid-template-columns: 1fr; }
  .gallery-botanical-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .couple-ampersand { transform: rotate(90deg); }
}
