/* =========================================================
   Nick & Lucija Wedding Website
   LIGHT + COLOURFUL THEME (bouquet palette)
   ========================================================= */

/* ===============================
   THEME VARIABLES (EDIT HERE)
   =============================== */
:root{
  /* Bouquet colours */
  --c-sunflower: #F2C94C;
  --c-rose: #D94A64;
  --c-sage: #9FA47A;

  /* Light neutrals */
  --c-bg: #F7F6F2;            /* soft cream */
  --c-panel: #FFFFFF;         /* cards */
  --c-text: #1E1F1B;          /* deep charcoal */
  --c-muted: rgba(30,31,27,.72);
  --c-line: rgba(30,31,27,.10);

  /* Accents */
  --c-accent-primary: var(--c-sunflower);
  --c-accent-secondary: var(--c-rose);
  --c-accent-soft: var(--c-sage);

  /* Buttons */
  --c-btn-primary-bg: var(--c-rose);
  --c-btn-primary-text: #FFFFFF;

  --c-btn-secondary-bg: rgba(30,31,27,.06);
  --c-btn-secondary-text: var(--c-text);

  /* Header */
  --c-header-bg: rgba(247,246,242,.82);

  /* Soft shadows */
  --shadow: 0 10px 30px rgba(30,31,27,.08);
}

/* ===============================
   BASE RESET
   =============================== */
*{box-sizing:border-box}
html,body{margin:0;padding:0}

body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.55;
}

a{color:inherit;text-decoration:none}
.container{width:min(1100px, 92vw); margin:0 auto}

/* ===============================
   HEADER & NAV
   =============================== */

     /* RSVP nav highlight */
  .nav-cta{
    background: var(--c-accent-secondary);
    color: #fff !important;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 600;
  }


.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c-header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-line);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand{
  font-weight: 700;
  letter-spacing: .2px;
}

.nav{
  display:flex;
  gap: 14px;
  align-items:center;
  flex-wrap: wrap;
  justify-content:center;
}

.nav a{
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--c-muted);
}

.nav a.active{
  color: var(--c-text);
  background: rgba(217,74,100,.10);
  box-shadow: inset 0 -2px 0 rgba(217,74,100,.55);
}

.nav-cta.active {
    color: var(--c-text) !important;
}

.nav a.disabled{
  opacity:.45;
  cursor:not-allowed;
}

.lang-switch{
  display:flex;
  gap: 8px;
  align-items:center;
}

.pill{
  background: rgba(30,31,27,.05);
  border: 1px solid var(--c-line);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--c-muted);
}

.pill.active{
  color: var(--c-text);
  background: rgba(242,201,76,.55);
  border-color: rgba(242,201,76,.85);
}

/* ===============================
   TOP HINT (UK)
   =============================== */
.top-hint{
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  background: rgba(159,164,122,.18);
  color: var(--c-text);
  font-size: 13px;
  padding: 8px 0;
}

/* ===============================
   SECTIONS
   =============================== */
.section{
  padding: 56px 0;
  border-bottom: 1px solid rgba(30,31,27,.06);
}

/* ===============================
   HERO
   =============================== */
.hero{
  min-height: 72vh;
  display:flex;
  align-items:flex-end;
  background-image: url('/assets/img/hero.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
}

/* Parallax-ish on desktop; mobile falls back */
@media (min-width: 900px){
  .hero{ background-attachment: fixed; }
}

.hero::before{
  content:"";
  position:absolute;
  inset:0;
  /* Light overlay so the image stays bright, but text is readable */
  background: linear-gradient(
    180deg,
    rgba(247,246,242,.25),
    rgba(247,246,242,.88)
  );
}

.hero .container{
  position: relative;
  padding: 72px 0;
}

.hero h1{
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(30px, 4.5vw, 48px);
  margin: 0 0 8px 0;
  letter-spacing: .2px;
}

.hero p{
  margin: 0 0 22px 0;
  color: rgb(51 50 50);
  font-size: clamp(16px, 2.3vw, 22px);
  font-weight: 600;
}

/* ===============================
   BUTTONS
   =============================== */
.cta-row{display:flex; gap: 12px; flex-wrap: wrap}

.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 8px 16px;
  border-radius: 14px;
  border: 1px solid var(--c-line);
  background: var(--c-btn-secondary-bg);
  color: var(--c-btn-secondary-text);
  backdrop-filter: blur(2px);
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.btn.primary{
  background: var(--c-btn-primary-bg);
  color: var(--c-btn-primary-text);
  border-color: rgba(217,74,100,.35);
  box-shadow: 0 8px 18px rgba(217,74,100,.18);
}

.btn.primary:hover{ filter: brightness(1.03); }

.btn.disabled{
  opacity:.55;
  cursor:not-allowed;
}

/* ===============================
   GRID & CARDS
   =============================== */
.grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 900px){
  .grid.two{ grid-template-columns: 1fr 1fr; }
  .grid.three{ grid-template-columns: 1fr 1fr 1fr; }
}

.card{
  border: 1px solid var(--c-line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.h2{
  font-size: 22px;
  margin: 0 0 10px 0;
  color: var(--c-sage);
}

.muted{ color: var(--c-muted); }

/* ===============================
   COUNTDOWN
   =============================== */
.countdown{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.cd-box{
  min-width: 140px;
  padding: 22px 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, #c798df, rgb(235 224 234));
  border: 1px solid #d94a64;
  box-shadow: 0 14px 28px rgba(217, 74, 100, 0.15);
}

.cd-num{
  font-size: 26px;
  font-weight: 800;
  color: var(--c-accent-secondary); /* rose */
}

.cd-label{
  font-size: 12px;
  color: rgba(30,31,27,.65);
  margin-top: 2px;
}

/* ===============================
   HERO SPLIT
   =============================== */
.hero-split{
  display:grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items:end;
}

@media (min-width: 900px){
  .hero-split{ grid-template-columns: 1.3fr .7fr; }
}

/* ===============================
   TRAVEL IMAGE
   =============================== */
.banner-img{
  background-image: url('/assets/img/travel.jpg');
  background-size: cover;
  background-position: center;
  border-radius: 18px;
  min-height: 220px;
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow);
}

/* ===============================
   NOTICES
   =============================== */
.notice{
  border-left: 4px solid var(--c-accent-soft);
  background: rgba(159,164,122,.14);
  padding: 14px 14px;
  border-radius: 14px;
}

/* ===============================
   ENGAGEMENT PHOTO
   =============================== */

.engagement-img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  border: 1px solid var(--c-line);
}

.engagement-caption{
  text-align: center;
  font-size: 13px;
  margin-top: 8px;
}


.center{
  text-align: center;
  justify-content: center;
}


/* ===============================
   FOOTER
   =============================== */
.site-footer{
  padding: 28px 0;
  background: var(--c-sage);
}

.footer-inner{
  display:flex;
  justify-content:space-between;
  align-items: center;
  gap: 12px;
  color: rgba(30,31,27,.60);
  font-size: 14px;
}

.tiny{ font-size: 12px; opacity: .9; }

/* =========================================================
   OVERRIDES: HERO COUNTDOWN (bigger, brighter, lighter)
   Paste at END of main.css
   ========================================================= */

/* Make the countdown container more "glassy" + airy */
.hero-countdown{
    margin-top: 60px;
    padding: 34px 28px;
    border: 1px solid rgba(30, 31, 27, .10);
    border-radius: 28px;
    box-shadow: 0 18px 44px rgba(30, 31, 27, .10);
    backdrop-filter: blur(2px);
}

/* Make the countdown row feel like a feature */
.countdown{
  margin-top: 0;            /* remove extra top spacing */
  gap: 18px;                /* more breathing room */
  justify-content: center;  /* ensure centered */
}

/* Bigger, brighter boxes */
.cd-box{
  min-width: 140px;
  padding: 22px 18px;
  border-radius: 22px;

  /* brighter, celebratory background using bouquet palette */
  background: linear-gradient(
    180deg,
    rgba(242,201,76,.65),
    rgba(242,201,76,.28)
  );

  border: 1px solid rgba(242,201,76,.65);
  box-shadow: 0 14px 28px rgba(242,201,76,.22);
}

/* Big numbers, clean + readable */
.cd-num{
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  color: var(--c-text); /* deep charcoal on bright yellow */
}

/* Labels clearer and a bit more "designed" */
.cd-label{
  margin-top: 8px;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(30,31,27,.70);
}

/* Status line under the countdown */
.hero-countdown [data-cd="status"]{
  margin-top: 14px;
  font-size: 15px;
  color: rgba(30,31,27,.70);
}

/* Mobile: keep big, but fit nicely */
@media (max-width: 560px){
  .hero-countdown{
    padding: 24px 18px;
    border-radius: 22px;
  }

  .cd-box{
    min-width: 122px;
    padding: 18px 14px;
  }

  .cd-num{
    font-size: 34px;
  }
}

/* ===============================
   HEADER LAYOUT (WIDE LOGO)
   =============================== */

.header-inner{
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}

.header-left{
  display: flex;
  align-items: center;
}

/* Logo sizing */
.site-logo{
  display: block;
  width: 240px;        /* ideal desktop size */
  max-width: 100%;
  height: auto;
}

/* Allow slightly bigger logo on large screens */
@media (min-width: 1100px){
  .site-logo{
    width: 220px;
  }
}

/* Mobile: scale down but keep readable */
@media (max-width: 720px){
  .site-logo{
    width: 190px;      /* your minimum */
  }

  .header-inner{
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .header-center{
    order: 2;
  }

  .header-right{
    order: 3;
    justify-content: center;
  }

  .nav{
    justify-content: center;
  }
}

.nav a{
  padding: 8px 8px 5px 8px;
  font-size: 14px;
}

#details a{
  text-decoration: underline;
  text-decoration-thickness: 0.5px;
  text-underline-offset: 2px;
  color: var(--c-rose);
}

/* =========================================================
   TYPOGRAPHY – CEREMONIAL + LITERARY
   ========================================================= */
:root{
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Old Standard TT', serif;
}

/* Body text: calm, book-like */
body{
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.75;        /* essential for Old Standard TT */
  letter-spacing: 0.01em;
}

/* Headings: ornate, celebratory */
.hero h1,
h1, h2, h3, .h2{
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* Hero title refinement */
.hero h1{
  letter-spacing: 0.07em;
}

/* Navigation: readable but refined */
.nav a{
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
}


/* Countdown numbers: ceremonial emphasis */
.cd-num{
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Small text */
.muted,
.cd-label,
.tiny{
  font-family: var(--font-body);
  letter-spacing: 0.02em;
}

/* ===============================
   LANGUAGE SELECTOR – UNDER NAV
   =============================== */

.header-inner{
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
}

/* Center column stacks nav + language */
.header-center{
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Nav stays on one line */
.nav{
  flex-wrap: nowrap;
  justify-content: center;
}


/* Mobile tuning */
@media (max-width: 900px){
  .header-inner{
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .header-left{
    justify-content: center;
  }

  .header-center{
    align-items: center;
  }

  .nav{
    flex-wrap: wrap; /* OK on mobile */
  }
}

/* ===============================
   HEADER – RIGHT-ALIGNED NAV + LANG
   =============================== */

.header-center{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 6px 0 6px 24px; /* vertical + left spacing from logo */
}

/* Keep nav clean and tight */
.nav{
  justify-content: flex-end;
  gap: 16px;              /* slightly more breathing room */
  padding-bottom: 6px;   /* space before language selector */
}


/* Mobile: center everything again */
@media (max-width: 900px){
  .header-center{
    align-items: center;
    padding: 0;
  }

  .nav{
    justify-content: center;
  }

}

/* ===============================
   DETAILS GRID – 1/3 + 2/3 LAYOUT
   =============================== */

@media (min-width: 900px){
  .details-grid{
    grid-template-columns: 1fr 2fr !important;
    align-items: start;
  }

  /* Optional: slightly tighter text for the narrow column */
  .details-day{
    font-size: 0.95em;
  }
}

/* ===============================
   ENGAGEMENT PHOTO – PARALLAX WINDOW
   =============================== */

/* The "window" */
.engagement-parallax{
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--c-line);
  box-shadow: 0 16px 40px rgba(30,31,27,.12);
  height: 360px; /* desktop window height */
  background: rgba(255,255,255,.6);
}

/* Make it a little taller on big screens */
@media (min-width: 1100px){
  .engagement-parallax{ height: 400px; }
}

/* Mobile: shorter so it doesn't dominate */
@media (max-width: 600px){
  .engagement-parallax{ height: 300px; }
}

/* The moving image layer */
.engagement-parallax-img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 120%;        /* extra height for parallax movement */
  object-fit: cover;
  transform: translate3d(0, -8%, 0);
  will-change: transform;
}

/* Soft overlay for legibility + wedding vibe */
.engagement-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(247,246,242,.10),
    rgba(247,246,242,.35)
  );
  pointer-events: none;
}

/* Caption stays as you had it */
.engagement-caption{
  text-align: center;
  font-size: 13px;
  margin-top: 10px;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .engagement-parallax-img{
    transform: none !important;
  }
}

/* =========================================================
   ENGAGEMENT: Scroll reveal + Ken Burns
   ========================================================= */

.engagement-card{
  padding: 0px;
}

.engagement-parallax{
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--c-line);
  box-shadow: 0 16px 40px rgba(30,31,27,.12);
  height: 360px;
  background: rgba(255,255,255,.65);
}

@media (min-width: 1100px){
  .engagement-parallax{
      height: 345px;
      width: 500px;
   }
}
@media (max-width: 600px){
  .engagement-parallax{
    height: 300px;
  }
}

.engagement-parallax-img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 110%;
  object-fit: cover;
  will-change: transform, opacity, filter;
}

/* Soft overlay for wedding vibe */
.engagement-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(247,246,242,.08),
    rgba(247,246,242,.30)
  );
  pointer-events: none;
}

/* Caption */
.engagement-caption{
  text-align: center;
  font-size: 13px;
  margin-top: 10px;
}

/* -------------------------------
   Scroll reveal (container)
   ------------------------------- */
.engagement-reveal{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 900ms ease, transform 900ms ease;
}

.engagement-reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* -------------------------------
   Ken Burns (subtle, cinematic)
   Only runs once the container is visible
   ------------------------------- */
.engagement-reveal .engagement-parallax-img{
  transform: scale(1.06) translate3d(0, 0, 0);
  filter: saturate(1.02);
}

.engagement-reveal.is-visible .engagement-parallax-img{
  animation: kenburns-soft 18s ease-in-out forwards;
}

@keyframes kenburns-soft{
  0%   { transform: scale(1.06) translate3d(0, -1.5%, 0); }
  50%  { transform: scale(1.10) translate3d(0,  0.5%, 0); }
  100% { transform: scale(1.12) translate3d(0,  1.5%, 0); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .engagement-reveal{
    opacity: 1;
    transform: none;
    transition: none;
  }
  .engagement-reveal.is-visible .engagement-parallax-img{
    animation: none;
  }
}

/* =========================================================
   ENGAGEMENT PHOTO – CINEMATIC VIGNETTE
   ========================================================= */

/* Replace the overlay with a soft vignette */
.engagement-overlay{
  position: absolute;
  inset: 0;
  pointer-events: none;

  /* Layered gradients = natural vignette */
  background:
    radial-gradient(
      ellipse at center,
      rgba(0,0,0,0.00) 45%,
      rgba(0,0,0,0.18) 100%
    ),
    linear-gradient(
      180deg,
      rgba(247,246,242,.10),
      rgba(247,246,242,.35)
    );
}

/* Slightly stronger vignette on large screens */
@media (min-width: 1100px){
  .engagement-overlay{
    background:
      radial-gradient(
        ellipse at center,
        rgba(0,0,0,0.00) 42%,
        rgba(0,0,0,0.22) 100%
      ),
      linear-gradient(
        180deg,
        rgba(247,246,242,.08),
        rgba(247,246,242,.30)
      );
  }
}

/* ===============================
   MOBILE HEADER COMPRESSION
   =============================== */

@media (max-width: 700px){

  .nav{
    gap: 8px;
  }

  .nav a{
    padding: 6px 8px;
    font-size: 12px;
    letter-spacing: 0.05em;
  }

  /* Reduce overall header padding */
  .site-header{
    padding: 6px 0;
  }

  .header-inner{
    gap: 1px;
  }

  /* Logo: cap visual dominance */
  .site-logo{
    max-width: 160px;   /* down from 200+ */
    height: auto;
  }
}

@media (max-width: 700px){

  .header-inner{
    grid-template-columns: 1fr;
    align-items: center;
    text-align: center;
  }

  .header-center{
    padding: 0;
    align-items: center;
  }
}

@media (max-width: 700px){
  .nav a{
    font-weight: 600; /* instead of 700 */
  }
}

/* ===============================
   HAMBURGER MENU (MOBILE)
   =============================== */

/* Burger button */
.nav-toggle{
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle span{
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-text);
  margin: 5px 0;
  transition: transform .3s ease, opacity .3s ease;
}

/* Mobile behaviour */
@media (max-width: 700px){

  .nav-toggle{
    display: block;
  }

  /* Hide nav by default */
  .nav{
    display: none;
    width: 100%;
    margin-top: 12px;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  /* Show when active */
  .nav.is-open{
    display: flex;
  }

  /* Animate burger into X */
  .nav-toggle.is-open span:nth-child(1){
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.is-open span:nth-child(2){
    opacity: 0;
  }

  .nav-toggle.is-open span:nth-child(3){
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* ===============================
   INFO POPOVER (church hover/tap)
   =============================== */

.info-pop{
  position: relative;
}

.info-pop-trigger{
  all: unset;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 0.5px;
  text-underline-offset: 2px;
}

.info-pop-trigger:focus{
  outline: 2px solid rgba(217,74,100,.35);
  outline-offset: 3px;
  border-radius: 6px;
}

.info-pop-panel{
  position: absolute;
  z-index: 200;
  left: 0;
  top: calc(100% + 10px);
  width: min(360px, 80vw);

  background: rgba(247,246,242,.96);
  border: 1px solid rgba(30,31,27,.12);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(30,31,27,.14);
  padding: 12px;

  display: none;
}

.info-pop-img{
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(30,31,27,.10);
  display: block;
}

.info-pop-title{
  display: block;
  margin-top: 10px;
  font-weight: 700;
  letter-spacing: .04em;
}

.info-pop-text{
  display: block;
  margin-top: 6px;
  color: rgba(30,31,27,.72);
  line-height: 1.55;
}

.info-pop-link{
  display: inline-block;
  margin-top: 10px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* show on hover + keyboard focus */
.info-pop:hover .info-pop-panel,
.info-pop:focus-within .info-pop-panel,
.info-pop.is-open .info-pop-panel{
  display: block;
}

/* Keep it on-screen on smaller viewports */
@media (max-width: 700px){
  .info-pop-panel{
    left: auto;
    right: 0;
  }
}

/* ===============================
   INLINE INFO TRIGGER
   =============================== */

.inline-info{
  all: unset;
  display: inline;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 0.5px;
  text-underline-offset: 3px;
  color: var(--c-accent-secondary);
}

/* ===============================
   MODAL
   =============================== */

.modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(30,31,27,.45);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 500;
}

.modal-backdrop.is-open{
  display: flex;
}

.modal{
  background: var(--c-panel);
  border-radius: 22px;
  max-width: 620px;
  width: min(90vw, 620px);
  padding: 50px 20px 20px 20px;
  box-shadow: 0 30px 80px rgba(30, 31, 27, .25);
  position: relative;
}

.modal-img {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: 16px;
}

.modal h3{
  margin: 0 0 8px 0;
  font-family: var(--font-heading);
  letter-spacing: .04em;
}

.modal p{
  margin: 0 0 10px 0;
  line-height: 1.6;
}

.modal-link{
  font-weight: 700;
  text-decoration: underline;
}

/* Close button */
.modal-close{
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: 0;
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
}
