/* =================================================================== */
/* 1. FONTS
/* =================================================================== */

:root {
  --font-serif: 'Inria Serif', serif;
  --font-script: 'DarlineScript', cursive; 
  --color-dusty-blue: #9aacc4;  /* Your main brand color */
  --color-deep-blue: #6587ab;   /* Your accent/text color */
  --color-charcoal: #333333;
  --color-cream: #fcfcfc;       /* Your off-white background */
  --color-border: #e5e5e5;
  --spacing-desktop: 80px;      /* Matching your section padding */
}

@font-face {
  font-family: 'DarlineScript';
  src: url('/static/Fonts/WOFF/DarlineScript-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DarlineScript';
  src: url('/static/Fonts/WOFF/DarlineScript-Slanted.woff') format('woff');
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'DarlineScript';
  src: url('/static/Fonts/WOFF/DarlineScript-Regular.woff') format('woff'); 
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DarlineSerif';
  src: url('/static/Fonts/WOFF/DarlineSerif-Bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DarlineSerif';
  src: url('/static/Fonts/WOFF/DarlineSerif-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DarlineSerif';
  src: url('/static/Fonts/WOFF/DarlineSerif-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* =================================================================== */
/* 2. GLOBAL & UTILITY STYLES
/* =================================================================== */

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* CLEANED BODY: Removes all conflicting background rules */
body {
  padding: 0;
  margin: 0;
  max-width: 100%;
  background-color: #ffffff;
}

body.modal-active {
  overflow: hidden;
}

.mobile-only {
  display: none;
}

/* =================================================================== */
/* 3. HERO & CONTAINER LAYOUT (The "Card" Effect)
/* =================================================================== */

/* The Big Floral Image at the top */
.floral-hero-wrapper {
  width: 100%;
  height: 65vh; /* Takes up 75% of screen height */
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.floral-hero-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* The White Box that overlaps the flowers */
.story-container {
  background-color: #ffffff;
  width: 100%;
  max-width: 80vw;
  
  /* Centering */
  margin-left: auto;
  margin-right: auto;
  
  /* THE OVERLAP: Pulls the white box UP over the flowers by 350px */
  margin-top: -400px; 
  padding: 80px 40px;
  
  /* Shadow & Layering */
  position: relative;
  z-index: 10;
}

/* =================================================================== */
/* 4. NAVBAR
/* =================================================================== */

#navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 90px;
  padding: 0 1.5rem;
  background-color: var(--color-dusty-blue);
  transition: background-color 0.8s ease, transform 0.8s ease;
}

#navbar.scrolled {
  background-color: var(--color-dusty-blue);
}

#navbar.hide-on-scroll-down {
  transform: translateY(-100%);
}

.navbar .logo {
  max-height: 70px;
  width: auto;
}

.nav-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--color-dusty-blue);
}

.nav-menu.is-active {
  display: flex;
}

.nav-links {
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 2.5rem;
}

.navbar .nav-link {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  text-decoration: none;
  color: white;
  transition: color 0.3s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #f0f0f0;
  text-underline-offset: 5px;
}

.mobile-nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  z-index: 1002;
  width: 30px;
  height: 24px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.hamburger-line {
  width: 30px;
  height: 3px;
  background-color: white;
  border-radius: 10px;
}

@media (min-width: 900px) {
  #navbar {
    justify-content: space-around;
    padding: 0;
  }
  .mobile-nav-toggle {
    display: none;
  }
  .nav-menu {
    position: static;
    display: flex;
    width: auto;
    height: auto;
    flex-direction: row;
    background-color: transparent;
    padding-top: 0;
    z-index: auto;
    transition: none;
  }
  .nav-links {
    flex-direction: row;
    gap: 60px;
  }
  .navbar .nav-link {
    font-size: 0.9rem;
  }
}

/* =========================================
   DROPDOWN MENU STYLES
   ========================================= */

.nav-item-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.dropdown-trigger {
  cursor: default;
  padding-bottom: 0;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ffffff;
  min-width: 240px;
  padding: 15px 0;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  border-top: 3px solid var(--color-deep-blue);
  border-radius: 0 0 4px 4px;
  z-index: 1100;
}

.dropdown-item {
  display: block;
  padding: 12px 25px;
  text-align: center;
  text-decoration: none;
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  color: var(--color-charcoal);
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background-color: #f7f9fb;
  color: var(--color-deep-blue);
}

@media (min-width: 900px) {
  .nav-item-dropdown:hover .dropdown-menu {
      display: block;
      animation: fadeUp 0.3s ease;
  }
  @keyframes fadeUp {
      from { opacity: 0; transform: translate(-50%, 10px); }
      to { opacity: 1; transform: translate(-50%, 0); }
  }
}

@media (max-width: 899px) {
  .nav-item-dropdown {
      flex-direction: column;
      height: auto;
  }
  .dropdown-trigger {
      margin-bottom: 1.5rem;
  }
  .dropdown-menu {
      position: static;
      display: flex;
      flex-direction: column;
      transform: none;
      background-color: transparent;
      box-shadow: none;
      border: none;
      padding: 0;
      min-width: auto;
      gap: 1.5rem;
  }
  .dropdown-item {
      color: rgba(255, 255, 255, 0.8);
      font-size: 1.1rem;
      padding: 0;
      font-style: italic;
  }
  .dropdown-item:hover {
      background: none;
      color: white;
  }
}


/* =================================================================== */
/* 5. EDITORIAL SPLIT (LAYOUT + TYPOGRAPHY)
/* =================================================================== */

/* --- TYPOGRAPHY (Restored) --- */

.story-header-centered {
  text-align: center;
  margin-bottom: 2rem;
}

.wl-style-title {
  font-family: "Inria Serif", serif;
  font-size: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #555;
  font-weight: normal;
  margin: 0 0 1rem 0;
}

.wl-style-subtitle {
  font-family: "Inria Serif", serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: #888;
  display: block;
  margin-top: 10px;
}

/* The Paragraphs */
.story-text p {
font-family: "Inria Serif", serif;
font-size: 0.9rem; 
line-height: 1.8; 

/* Justified text like a newspaper column */
text-align: justify;
text-justify: inter-word;

color: #555;
margin-bottom: 2rem;
}

/* Remove margin from last paragraph so alignment is perfect */
.story-text p:last-child {
  margin-bottom: 0;
}

/* --- THE LAYOUT (The "Ghost" Fix) --- */

@media (min-width: 900px) {
.editorial-split {
    /* Grid aligns empty columns perfectly */
    display: grid;
    grid-template-columns: 55% 35%;
    gap: 5%;
    
    /* STRETCH: Image column matches Text column height */
    align-items: stretch; 
    
    margin: 0 auto 5rem auto; 
    max-width: 1100px;
    position: relative;
    justify-content: space-around;
    padding-bottom: 2rem;
}

/* TEXT SIDE (The Boss) */
.split-content-wrapper {
    width: 100%;
    /* Height is auto, meaning it is defined ONLY by the text inside */
    height: auto; 
}

/* IMAGE SIDE (The Wrapper) */
.split-image-wrapper {
    position: relative; 
    width: 100%;
    /* We leave height undefined so it inherits from the grid stretch */
}

/* THE IMAGE (The Ghost) */
.hero-portrait,
.split-image-wrapper img {
    /* ABSOLUTE: Removes image from flow so it doesn't push the box open */
    position: absolute !important; 
    
    /* PINNING: Match bottom, extend top */
    bottom: 0 !important; 
    top: -120px !important; 
    
    /* FILL: Fill the width of the column */
    left: 0 !important;
    width: 100% !important;
    
    /* CROP: Don't stretch */
    height: calc(100% + 120px) !important;
    object-fit: cover !important; 
}
}

/* --- QUOTE SECTION --- */
.heartfelt-quote {
  text-align: center;
  font-family: "Inria Serif", serif;
  text-transform: uppercase;
  font-size: 1.4rem;
  letter-spacing: 0.15em;
  color: #d1caca; 
  padding: 60px 20px 60px 20px;
  line-height: 1.6;
  border-top: 1px solid #e3e0e0;
  border-bottom: 1px solid #e3e0e0;
}

/* --- MOBILE FALLBACK --- */
@media (max-width: 899px) {
  .editorial-split {
      display: flex;
      flex-direction: column-reverse;
      gap: 3rem;
      justify-content: space-around;
  }
  .wl-style-title {
      font-size: 2rem;
  }
  .split-image-wrapper {
      height: 400px; 
      width: 100%;
      position: relative;
  }
  .hero-portrait,
  .split-image-wrapper img {
      position: absolute !important;
      top: 0 !important;
      left: 0 !important;
      width: 100% !important;
      height: 100% !important;
      object-fit: cover !important;
      margin-top: -40px !important;
      bottom: auto !important;
  }
}

/* =================================================================== */
/* 6. TIMELINE & FOOTER
/* =================================================================== */

.memory-lane {
    margin-top: 2rem;
    padding-top: 4rem;
}

.timeline-title {
    font-family: "Inria Serif", serif;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #9aacc4;
    text-align: center;
    margin-bottom: 3rem;
    font-size: 0.9rem;
}

.film-strip-scroller {
    display: flex;
    gap: 40px;
    overflow-x: auto;
    padding: 20px 5%;
    padding-bottom: 40px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.film-strip-scroller::-webkit-scrollbar { 
    display: none;
}

.memory-card {
    flex: 0 0 220px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.6s ease-out;
}

.memory-card.visible {
    opacity: 1;
    transform: translateX(0);
}

.memory-img-wrapper {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    background-color: #f0f0f0;
}

.memory-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.memory-text {
    text-align: center;
}

.memory-text h3 {
    font-family: "Inria Serif", serif;
    font-weight: bold;
    font-size: 1rem;
    margin: 0;
    color: #333;
}

.memory-text p {
    font-family: "DarlineScript", cursive;
    font-size: 1.4rem;
    color: #777;
    margin: 5px 0 0 0;
}

/* FOOTER */
.luxury-footer {
    width: 100%;
    background-color: var(--color-dusty-blue); 
    color: #ffffff;
    padding: 100px 20px 60px;
    text-align: center;
    position: relative;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.footer-logo-container {
  width: 100%;
  max-width: 250px;
  margin: 0 auto 20px;
}

.footer-logo {
  width: 100%;
  height: auto;
  display: block;
}

.footer-message h2 {
    font-family: var(--font-script);
    font-size: 2rem;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.05);
    font-weight: normal;
}

.footer-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
}

.footer-link {
    font-family: var(--font-serif);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.15rem;
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s ease;
    opacity: 0.9;
}

.footer-link:hover {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 5px;
}

.footer-monogram {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-style: italic;
    font-weight: bold;
    color: #ffffff;
    padding: 0 2rem;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0.7;
}

.footer-bottom p {
    font-family: var(--font-serif);
    font-size: 0.75rem;
    letter-spacing: 0.05rem;
    margin: 0;
}

.privacy-link-light {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    text-decoration: underline;
    transition: opacity 0.3s;
}

.privacy-link-light:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .luxury-footer {
        padding: 60px 20px 40px;
    }
    .footer-message h2 {
        font-size: 3rem;
    }
    .footer-nav {
        flex-direction: column;
        gap: 1.5rem;
        border: none;
    }
    .footer-monogram {
        display: none;
    }
}

/* =================================================================== */
/* 7. MODALS
/* =================================================================== */

.privacy-content {
    max-width: 800px !important; 
    text-align: left;
}

.privacy-title {
    font-size: 2rem;
    color: var(--color-dusty-blue);
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: normal;
}

.privacy-body h4 {
    font-family: var(--font-serif);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1rem;
    color: var(--color-charcoal);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.privacy-body p {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 1rem;
}

.signature {
    margin-top: 2rem;
    font-family: var(--font-script);
    font-size: 1.5rem !important; 
    color: var(--color-dusty-blue) !important;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.modal-hidden {
  display: none !important;
  opacity: 0;
  pointer-events: none;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.modal-content {
  position: relative;
  z-index: 2001;
  background-color: #ffffff;
  padding: 40px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #999;
  line-height: 1;
}

.modal-close:hover {
  color: #333;
}