:root{
  --text: #ffffff;
  --muted: rgba(255,255,255,.85);
  --bg: #0d0d0d;
  --accent: #d9b166;
}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text);font-family:"Plus Jakarta Sans",system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;}

/* Navigation */
.nav-wrap{position:fixed;top:0;left:0;right:0;z-index:10;background:linear-gradient(to bottom, rgba(0,0,0,.5), rgba(0,0,0,0));}
.nav{display:flex;align-items:center;justify-content:space-between;max-width:1100px;margin:0 auto;padding:18px 24px;}
.nav .brand{color:var(--text);text-decoration:none;letter-spacing:.1em;text-transform:uppercase;font-size:14px;opacity:.9}
.nav ul{display:flex;gap:22px;list-style:none;margin:0;padding:0}
.nav a{color:var(--muted);text-decoration:none;font-size:14px;letter-spacing:.08em;text-transform:uppercase}
.nav a:hover{color:var(--text)}

/* Mobile Navigation */
.nav-toggle{display:none;background:none;border:none;color:var(--text);font-size:1.5rem;cursor:pointer;padding:8px;}

/* Hide close button on desktop */
.nav-close-wrapper{display:none;}

@media (max-width: 768px) {
  .nav{padding:12px 16px;}
  .nav-toggle{display:block;}
  .nav ul{
    position:fixed;
    top:0;
    right:-100%;
    height:100vh;
    width:250px;
    background:rgba(0,0,0,0.95);
    backdrop-filter:blur(10px);
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:2rem;
    transition:right 0.3s ease;
    list-style:none;
    margin:0;
    padding:0;
  }
  .nav ul.nav-open{right:0;}
  .nav ul li{width:100%;text-align:center;}
  .nav ul li a{
    font-size:16px;
    color:var(--text);
    text-align:center;
    padding:1rem;
    display:block;
    width:100%;
    text-decoration:none;
    transition:background 0.2s ease;
  }
  .nav ul li a:hover{
    background:rgba(255,255,255,0.1);
    color:var(--accent);
  }
  
  /* Close button styles - Mobile only */
  .nav-close-wrapper{
    position:absolute;
    top:20px;
    right:20px;
    width:auto !important;
    display:block; /* Only visible on mobile */
  }
  .nav-close{
    background:none;
    border:none;
    color:var(--text);
    font-size:2rem;
    cursor:pointer;
    padding:8px;
    line-height:1;
    opacity:0.8;
    transition:opacity 0.2s ease;
  }
  .nav-close:hover{
    opacity:1;
    color:var(--accent);
  }
}

/* Hero */
.hero{min-height:100vh;display:grid;place-items:center;background-image:var(--hero-image);background-size:cover;background-position:center;position:relative}
.hero::after{content:"";position:absolute;inset:0;background:rgba(0,0,0,.35)}
.hero .overlay{position:relative;text-align:center;z-index:1;padding:0 1rem}
.hero-title{font-family:"Playfair Display", Georgia, serif;font-size:clamp(2.5rem,6vw,5rem);margin:0 0 .5rem}
.hero-subtitle{margin:0;font-size:clamp(1rem,2.5vw,1.5rem);color:var(--muted);letter-spacing:.12em}

/* Mobile Hero Adjustments */
@media (max-width: 768px) {
  .hero{background-attachment:scroll;background-size:cover;background-position:center center;}
  .hero .overlay{padding:0 1.5rem;}
  .hero-title{font-size:clamp(2rem,8vw,3.5rem);line-height:1.1;}
  .hero-subtitle{font-size:clamp(0.9rem,4vw,1.2rem);}
}

/* Content */
.container{max-width:900px;margin:110px auto 64px;padding:0 24px}
.container h1{font-family:"Playfair Display", Georgia, serif}
.form{display:grid;gap:12px;margin-top:12px}
.form input,.form textarea,.form select{width:100%;padding:10px;border-radius:8px;border:1px solid #333;background:#111;color:#fff}
.form button{background:var(--accent);color:#222;border:none;padding:12px 16px;border-radius:999px;cursor:pointer;font-weight:600}
.alert{background:#3a1e1e;border:1px solid #7a4444;padding:10px;border-radius:8px}
.footer{max-width:1100px;margin:24px auto;padding:24px;color:#aaa;text-align:center}

/* Mobile Content Adjustments */
@media (max-width: 768px) {
  .container{
    margin:80px auto 32px;
    padding:0 16px;
    max-width:100%;
  }
  .container h1{
    font-size:clamp(1.8rem,6vw,2.5rem);
    line-height:1.2;
    margin-bottom:1rem;
  }
  .container h2{
    font-size:clamp(1.4rem,5vw,2rem);
    line-height:1.3;
  }
  .container p{
    font-size:1rem;
    line-height:1.6;
    margin-bottom:1.2rem;
  }
  .form{gap:16px;}
  .form input,.form textarea,.form select{
    padding:14px 12px;
    font-size:16px; /* Prevents zoom on iOS */
    border-radius:10px;
  }
  .form button{
    padding:14px 20px;
    font-size:16px;
    margin-top:8px;
  }
  .footer{
    padding:20px 16px;
    font-size:0.9rem;
  }
}

/* Gallery page background */
.page-gallery-bg{min-height:100vh;background: #000 url('/images/gallery-bg.jpg') center/cover fixed no-repeat;}
.page-gallery-bg .gallery-content{background:linear-gradient(to bottom, rgba(0,0,0,.55), rgba(0,0,0,.85));border-radius:18px;padding:24px 24px 48px;margin-top:24px}
.page-gallery-bg h1{color:#fff}
.page-gallery-bg .photo{box-shadow:0 10px 30px rgba(0,0,0,.45)}
/* Top spacer to show only the background first */
.gallery-hero-spacer{height:50vh}
/* Reveal effect for title and gallery grid */
.gallery-title,.gallery{opacity:1;transform:none;transition:opacity .6s ease, transform .6s ease}

/* FAQ page background (add faq-bg.jpg/png/etc to images/gallery/FAQ/) */
.page-faq-bg{
  min-height:100vh;
  background: #000 url('/images/gallery/FAQ/faqbackground.png') center center no-repeat;
  background-size: contain;
}
.page-registry-bg{min-height:100vh;}

/* Mobile Background - Clean Dark Theme */
@media (max-width: 768px) {
  /* All non-home pages get dark background */
  .page-gallery-bg,
  .page-faq-bg,
  .page-registry-bg,
  .page-proposal-bg,
  body.ceremony-page,
  body.event-schedule-page,
  body.our-story-page {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%) !important;
  }
  
  .gallery-hero-spacer{height:20vh;}
  .page-gallery-bg .gallery-content{margin-top:16px;padding:20px 16px 32px;border-radius:12px;}
}
.faq-container{max-width:850px}
.faq-item{margin:40px 0;padding-bottom:24px;border-bottom:1px solid #222}
.faq-item:last-child{border:none}
.faq-item h2{font-family:"Playfair Display", Georgia, serif;margin:0 0 12px;font-size:clamp(1.4rem,3vw,2rem)}
.faq-item p{line-height:1.5;color:var(--muted)}
.faq-callout{background:#111;padding:12px 16px;border:1px solid #333;border-radius:10px;margin:12px 0;font-size:.95rem;letter-spacing:.05em}
.hotel-code{color:var(--accent)}

/* Mobile FAQ Adjustments */
@media (max-width: 768px) {
  .faq-container{padding:0 16px;}
  .faq-item{margin:24px 0;padding-bottom:20px;}
  .faq-item h2{font-size:clamp(1.2rem,5vw,1.8rem);margin-bottom:16px;}
  .faq-item p{font-size:0.95rem;line-height:1.6;}
  .faq-callout{padding:14px 16px;font-size:0.9rem;margin:16px 0;}
}

/* LOGO OVERLAY START (Option 2). Delete this whole block to revert. */
.floating-logo{position:fixed;top:2px;right:4px;z-index:50;display:block;line-height:0;pointer-events:none;/* adjust top/right to fine-tune position */}
/* Enlarged SVG logo */
.floating-logo img{width:150px;height:auto;display:block;filter:drop-shadow(0 2px 6px rgba(0,0,0,.45));opacity:.98;transition:none}
@media (max-width:800px){
  .floating-logo img{width:70px}
}
@media (max-width:768px){
  .floating-logo{top:60px;right:8px;z-index:5;} /* Back to original position under hamburger */
  .floating-logo img{width:50px}
}
@media (max-width:520px){
  .floating-logo{top:65px;right:12px}
  .floating-logo img{width:45px}
}
/* LOGO OVERLAY END */
