:root {
    --cream: #f9f4ed;
    --warm: #f0e8da;
    --gold: #c9a96e;
    --gold-dark: #a07840;
    --rose: #d4706a;
    --rose-light: #e8a09a;
    --sage: #4a5e50;
    --sage-dark: #2d3d32;
    --text: #2a2018;
    --text-light: #6b5b4e;
    --border: rgba(201,169,110,0.3);
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  html {
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  body {
    background-color: var(--cream);
    color: var(--text);
    font-family: 'Cairo', sans-serif;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    overscroll-behavior-x: none;
    touch-action: pan-y;
  }

  /* ── FLOATING PETALS ── */
  .petals-container {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none; z-index: 0; overflow: hidden;
  }
  .petal {
    position: absolute;
    width: 12px; height: 16px;
    background: radial-gradient(ellipse, #f8c4c0 30%, #e8908a 100%);
    border-radius: 50% 10% 50% 10%;
    opacity: 0;
    animation: fall linear infinite;
  }
  @keyframes fall {
    0%   { transform: translateY(-50px) rotate(0deg) translateX(0); opacity: 0; }
    10%  { opacity: 0.7; }
    90%  { opacity: 0.4; }
    100% { transform: translateY(110vh) rotate(720deg) translateX(80px); opacity: 0; }
  }

  /* ── LOGO BAR ── */
  .logo-bar {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 30px;
    background: rgba(249,244,237,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
  }
  .logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--text);
    letter-spacing: 4px;
  }
  .logo span { color: var(--gold); font-style: italic; font-size: 1.6rem; }
  .logo-rsvp {
    font-family: 'Cairo', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--text-light);
    text-decoration: none;
    border: 1px solid var(--gold);
    padding: 7px 18px;
    text-transform: uppercase;
    transition: all 0.3s;
  }
  .logo-rsvp:hover { background: var(--gold); color: white; }

  /* ── HERO ── */
  #home {
    min-height: 100vh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center;
    padding: 80px 30px 40px;
    position: relative;
    background: linear-gradient(180deg, var(--cream) 0%, var(--warm) 100%);
  }
  .hero-ornament {
    display: flex; align-items: center; gap: 16px;
    margin-bottom: 30px; opacity: 0;
    animation: fadeUp 1s 0.3s forwards;
  }
  .ornament-line {
    width: 60px; height: 1px; background: var(--gold);
  }
  .ornament-diamond {
    width: 6px; height: 6px; background: var(--gold);
    transform: rotate(45deg);
  }
  .hero-sub {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.9rem;
    letter-spacing: 6px;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeUp 1s 0.5s forwards;
  }
  .hero-names {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3.5rem, 10vw, 7rem);
    font-weight: 300;
    line-height: 1;
    color: var(--text);
    margin-bottom: 10px;
    opacity: 0;
    animation: fadeUp 1.2s 0.7s forwards;
  }
  .hero-names .amp {
    color: var(--gold);
    font-style: italic;
    font-size: 0.85em;
    display: block;
    line-height: 1.2;
  }
  .hero-date {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    letter-spacing: 8px;
    color: var(--text-light);
    text-transform: uppercase;
    margin: 24px 0;
    opacity: 0;
    animation: fadeUp 1s 1s forwards;
  }
  .hero-scroll {
    font-size: 0.65rem;
    letter-spacing: 5px;
    color: var(--gold);
    text-transform: uppercase;
    margin-top: 40px;
    opacity: 0;
    animation: fadeUp 1s 1.3s forwards, pulse 2s 2.3s infinite;
  }
  .scroll-arrow {
    display: block; text-align: center; margin-top: 10px;
    animation: bounce 2s 2s infinite;
  }
  @keyframes bounce {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
  }
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  @keyframes pulse { 0%,100%{opacity:0.6} 50%{opacity:1} }

  /* ── SECTION BASE ── */
  section {
    padding: 80px 24px;
    position: relative;
    z-index: 1;
  }
  .section-header {
    text-align: center;
    margin-bottom: 50px;
  }
  .section-eyebrow {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.8rem;
    letter-spacing: 6px;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
  }
  .section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 400;
    color: var(--text);
    line-height: 1.2;
  }
  .section-title em { font-style: italic; color: var(--gold); }

  /* ── COUNTDOWN ── */
  #countdown {
    background: var(--sage-dark);
    color: white;
    padding: 70px 24px;
    text-align: center;
  }
  .countdown-label {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-style: italic;
    color: rgba(255,255,255,0.7);
    margin-bottom: 40px;
    display: block;
    letter-spacing: 2px;
  }
  .countdown-grid {
    display: flex; justify-content: center; gap: 30px; flex-wrap: wrap;
  }
  .countdown-unit {
    text-align: center;
  }
  .countdown-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 300;
    color: var(--gold);
    line-height: 1;
    display: block;
    min-width: 80px;
  }
  .countdown-dot {
    font-size: 2rem;
    color: var(--gold);
    align-self: center;
    padding-bottom: 20px;
    opacity: 0.4;
  }
  .countdown-text {
    font-size: 0.6rem;
    letter-spacing: 4px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    margin-top: 8px;
  }

  /* ── OUR STORY ── */
  #story { background: var(--cream); }
  .story-text {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-light);
    line-height: 1.9;
  }
  .story-heart {
    display: block;
    font-size: 2rem;
    margin: 30px auto;
    text-align: center;
    animation: heartbeat 1.5s ease-in-out infinite;
  }
  @keyframes heartbeat {
    0%,100% { transform: scale(1); }
    50% { transform: scale(1.15); }
  }

  /* ── DETAILS ── */
  #details { background: var(--warm); }
  .details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
  }
  .detail-card {
    background: white;
    border: 1px solid var(--border);
    padding: 40px 30px;
    text-align: center;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
  }
  .detail-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
  }
  .detail-card::before, .detail-card::after {
    content: '◆';
    position: absolute;
    color: var(--gold);
    font-size: 0.5rem;
  }
  .detail-card::before { top: 12px; left: 12px; }
  .detail-card::after { bottom: 12px; right: 12px; }
  .detail-icon { font-size: 2rem; margin-bottom: 16px; display: block; }
  .detail-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 20px;
    color: var(--text);
  }
  .detail-info {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 2.2;
    letter-spacing: 0.5px;
  }
  .detail-info strong { color: var(--text); font-weight: 600; display: block; font-size: 0.95rem; }
  .detail-directions {
    display: inline-block;
    margin-top: 24px;
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold-dark);
    text-decoration: none;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 2px;
    transition: color 0.2s;
  }
  .detail-directions:hover { color: var(--rose); border-color: var(--rose); }

  /* ── GALLERY ── */
  #gallery { background: var(--cream); overflow: hidden; }
  .gallery-slider {
    display: flex;
    gap: 16px;
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    border-radius: 2px;
  }
  .gallery-track {
    display: flex;
    gap: 0;
    width: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
  }
  .gallery-slide {
    flex: 0 0 100%;
    min-width: 100%;
    position: relative;
    overflow: hidden;
  }
  .gallery-image {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    background: var(--warm);
  }
  .gallery-slide img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
  }
  .gallery-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
    padding: 30px 24px 20px;
    color: white;
  }
  .gallery-caption h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-style: italic;
    font-weight: 300;
  }
  .gallery-caption p { font-size: 0.7rem; letter-spacing: 3px; text-transform: uppercase; opacity: 0.8; }
  .gallery-controls {
    display: flex; justify-content: center; align-items: center; gap: 20px;
    margin-top: 30px;
  }
  .gallery-btn {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid var(--gold);
    background: transparent;
    color: var(--gold);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s;
  }
  .gallery-btn:hover { background: var(--gold); color: white; }
  .gallery-dots { display: flex; gap: 8px; }
  .gallery-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: all 0.3s;
  }
  .gallery-dot.active { background: var(--gold); transform: scale(1.3); }

  /* Placeholder slides (colored) */
  .slide-placeholder {
    width: 100%; height: 420px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 10px;
  }
  .slide-placeholder span { font-family:'Cormorant Garamond',serif; font-size:1.2rem; font-style:italic; color:rgba(255,255,255,0.8); }
  .slide-p1 { background: linear-gradient(135deg, #c9b99a, #a07840); }
  .slide-p2 { background: linear-gradient(135deg, #d4a0a0, #8a4040); }
  .slide-p3 { background: linear-gradient(135deg, #9ab0a0, #4a5e50); }
  .slide-p4 { background: linear-gradient(135deg, #b0b0c8, #5a5a8a); }
  .slide-p5 { background: linear-gradient(135deg, #c8a8b8, #8a5870); }

  /* ── FAQ ── */
  #faq { background: var(--warm); }
  .faq-list { max-width: 640px; margin: 0 auto; }
  .faq-item {
    border-bottom: 1px solid var(--border);
    overflow: hidden;
  }
  .faq-q {
    display: flex; justify-content: space-between; align-items: center;
    padding: 22px 0;
    cursor: pointer;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text);
    transition: color 0.3s;
    user-select: none;
  }
  .faq-q:hover { color: var(--gold-dark); }
  .faq-q.open { color: var(--gold-dark); }
  .faq-icon {
    font-size: 1.2rem;
    color: var(--gold);
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-right: 10px;
    line-height: 1;
  }
  .faq-q.open .faq-icon { transform: rotate(45deg); }
  .faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.9;
    padding: 0;
    font-family: 'Cairo', sans-serif;
  }
  .faq-a.open { max-height: 200px; padding-bottom: 20px; }

  /* ── RSVP ── */
  #rsvp {
    background: var(--sage-dark);
    text-align: center;
    padding: 80px 24px;
  }
  #rsvp .section-eyebrow { color: rgba(201,169,110,0.8); }
  #rsvp .section-title { color: white; }
  .rsvp-form {
    max-width: 480px;
    margin: 40px auto 0;
    display: flex; flex-direction: column; gap: 16px;
  }
  .rsvp-input {
    padding: 14px 20px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(201,169,110,0.3);
    color: white;
    font-family: 'Cairo', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s;
    text-align: right;
  }
  .rsvp-input::placeholder { color: rgba(255,255,255,0.4); }
  .rsvp-input:focus { border-color: var(--gold); }
  .rsvp-select {
    padding: 14px 20px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(201,169,110,0.3);
    color: rgba(255,255,255,0.7);
    font-family: 'Cairo', sans-serif;
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
    text-align: right;
  }
  .rsvp-select option { background: var(--sage-dark); color: white; }
  .rsvp-btn {
    padding: 16px;
    background: var(--gold);
    border: none;
    color: white;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    margin-top: 8px;
  }
  .rsvp-btn:hover { background: var(--gold-dark); transform: translateY(-2px); }
  .rsvp-success {
    display: none;
    margin-top: 20px;
    color: var(--gold);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-style: italic;
  }

  /* ── FOOTER ── */
  footer {
    background: #1a1208;
    padding: 40px 24px;
    text-align: center;
  }
  .footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--gold);
    font-style: italic;
    display: block;
    margin-bottom: 16px;
  }
  footer p {
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
  }

  /* ── BOTTOM NAV ── */
  .bottom-nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    background: var(--sage-dark);
    display: flex; justify-content: center; gap: 0;
    border-top: 1px solid rgba(201,169,110,0.2);
  }
  .bottom-nav a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.55rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 14px 14px;
    transition: color 0.3s;
    font-family: 'Cairo', sans-serif;
    display: flex; align-items: center;
  }
  .bottom-nav a:hover { color: var(--gold); }
  .bottom-nav a.rsvp-nav {
    background: var(--gold);
    color: white;
    padding: 14px 20px;
    font-weight: 600;
  }
  .bottom-nav a.rsvp-nav:hover { background: var(--gold-dark); }

  /* ── SCROLL REVEAL ── */
  .reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  .reveal.visible { opacity: 1; transform: translateY(0); }
  .reveal-delay-1 { transition-delay: 0.15s; }
  .reveal-delay-2 { transition-delay: 0.3s; }

  /* ── FLOATING HEARTS ── */
  .floating-heart {
    position: absolute;
    font-size: 1.2rem;
    opacity: 0.7;
    animation: floatHeart 3s ease-in-out infinite;
    pointer-events: none;
  }
  @keyframes floatHeart {
    0%,100% { transform: translateY(0) rotate(-10deg); }
    50% { transform: translateY(-15px) rotate(10deg); }
  }

  /* ── DIVIDER ── */
  .divider {
    display: flex; align-items: center; gap: 16px;
    margin: 30px auto;
    max-width: 200px;
  }
  .divider-line { flex: 1; height: 1px; background: var(--border); }
  .divider-icon { color: var(--gold); font-size: 0.7rem; }

  @media (max-width: 480px) {
    .countdown-grid { gap: 15px; }
    .countdown-num { font-size: 2.5rem; min-width: 60px; }
    .bottom-nav a { padding: 12px 10px; font-size: 0.5rem; }
  }