/* ==============================================
   Cajsa & Filip — Wedding Website Styles
   ============================================== */

/* --- 1. Custom Properties (Design Tokens) --- */
:root {
  /* Primary: Sage/Olive Green */
  --sage-darkest: #5C6B4F;
  --sage-dark: #7A8B6A;
  --sage: #8FA07C;
  --sage-medium: #9DAE8B;
  --sage-light: #B5C4A5;
  --sage-lightest: #D4DEC9;
  --sage-tint: #EBF0E5;

  /* Secondary: Dusty/Steel Blue */
  --blue-dark: #4A6178;
  --blue: #6B8BA4;
  --blue-medium: #8BA4B8;
  --blue-light: #A8BFD0;
  --blue-tint: #E8EFF4;

  /* Accent: Warm Gold / Dark Olive */
  --gold: #B8A06A;

  /* Neutrals */
  --white: #FFFFFF;
  --cream: #FAF8F5;
  --cream-warm: #F5F0E8;

  /* Text */
  --text-primary: #2C2C2C;
  --text-secondary: #4A4A4A;
  --text-muted: #7A7A7A;
  --text-light: #A0A0A0;
  --text-on-dark: #FAF8F5;

  /* UI States */
  --hover-sage: #7A8B6A;
  --hover-blue: #5A7B94;
  --focus-ring: rgba(107, 139, 164, 0.5);

  /* Shadows & Borders */
  --shadow-soft: 0 2px 20px rgba(44, 44, 44, 0.06);
  --shadow-medium: 0 4px 30px rgba(44, 44, 44, 0.10);
  --shadow-botanical: 0 2px 15px rgba(92, 107, 79, 0.08);
  --border-light: rgba(44, 44, 44, 0.08);
  --border-sage: rgba(143, 160, 124, 0.3);
  --border-gold: rgba(184, 160, 106, 0.3);

  /* Glassmorphism */
  --glass-bg: rgba(250, 248, 245, 0.55);
  --glass-bg-mobile: rgba(250, 248, 245, 0.82);
  --glass-blur: blur(16px) saturate(1.4);

  /* Fonts */
  --font-script: 'Alex Brush', cursive;
  --font-heading: 'Cormorant Garamond', serif;
  --font-small-caps: 'Cormorant SC', serif;
  --font-body: 'Montserrat', sans-serif;

  /* Type Scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  --text-xl: clamp(1.375rem, 1.1rem + 1.2vw, 1.875rem);
  --text-2xl: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
  --text-3xl: clamp(2.25rem, 1.5rem + 3.5vw, 4rem);
  --text-hero: clamp(2.75rem, 1.8rem + 4.5vw, 5.5rem);

  /* Spacing */
  --section-padding-y: clamp(3rem, 8vw, 6rem);
  --section-padding-x: clamp(1.25rem, 5vw, 3rem);
  --content-width: min(90%, 1120px);
}


/* --- 2. Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
  overflow-x: hidden;
  scrollbar-width: none;            /* Firefox */
  -webkit-text-size-adjust: 100%;
}

html::-webkit-scrollbar {
  display: none;                    /* Chrome, Safari, Edge */
}

/* Prevent scroll anchoring from fighting AOS layout shifts */
[data-aos] {
  overflow-anchor: none;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Hide script-font elements until Alex Brush is loaded to prevent FOUT */
.site-header,
.hero-names .name,
.footer-names {
  visibility: hidden;
}
.fonts-loaded .site-header,
.fonts-loaded .hero-names .name,
.fonts-loaded .footer-names {
  visibility: visible;
}

/* Paper texture overlay — layered for premium feel */
.paper-texture::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  /* Fine grain — mimics cotton/linen paper fiber */
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='fine'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23fine)'/%3E%3C/svg%3E"),
    /* Coarse grain — gives subtle mottling like handmade paper */
    url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='coarse'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.35' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23coarse)'/%3E%3C/svg%3E"),
    /* Stipple dots — cold-pressed watercolor paper grain */
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='stipple'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.8' numOctaves='2' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='0 0 0 0.08 0.12 0.08 0 0'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23stipple)' fill='black'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px, 512px 512px, 200px 200px;
  opacity: 0.07;
}

/* Warm vignette — subtle darkening at edges like aged stationery */
.paper-texture::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
  background:
    radial-gradient(
      ellipse at 50% 50%,
      transparent 50%,
      rgba(170, 160, 140, 0.08) 100%
    ),
    /* Warm undertone wash — premium watercolor paper feel */
    radial-gradient(
      ellipse at 30% 40%,
      rgba(245, 240, 232, 0.06) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse at 70% 60%,
      rgba(240, 235, 225, 0.05) 0%,
      transparent 70%
    );
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue-dark);
  text-decoration-color: var(--border-sage);
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--hover-blue);
}

ul {
  list-style: none;
}


/* --- 3. Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-primary);
}

/* Orphan prevention (progressive enhancement) */
h1, h2, h3, .section-subtitle {
  text-wrap: balance;
}

p, li, summary {
  text-wrap: pretty;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 300;
  text-align: center;
  margin-bottom: 0.5em;
  letter-spacing: 0.02em;
}

.section-subtitle {
  font-family: var(--font-small-caps);
  font-size: var(--text-lg);
  font-weight: 400;
  text-align: center;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 2.5rem;
}


/* --- 4. Layout --- */
.section {
  position: relative;
  overflow: hidden;
  padding: var(--section-padding-y) var(--section-padding-x);
}

.section-content {
  position: relative;
  z-index: 2;
  max-width: var(--content-width);
  margin: 0 auto;
}

.section--cream {
  background-color: var(--cream);
}

.section--sage {
  background-color: var(--sage-tint);
}

.section--warm {
  background-color: var(--cream-warm);
}


/* --- 5. Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  background-color: transparent;
}

.site-header.scrolled {
  background-color: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(255, 255, 255, 0.4) inset;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.5rem 1.5rem;
}

.nav-logo {
  font-family: var(--font-script);
  font-size: 2.4rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-logo:hover {
  color: var(--sage-dark);
}

.nav-amp {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.7rem;
}

.nav-menu {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  align-items: center;
  gap: 0;
  background-color: var(--glass-bg-mobile);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
}

.nav-menu.open {
  max-height: 400px;
  padding: 1rem 0;
}

.nav-menu li {
  padding: 0.75rem 0;
}

.nav-menu a {
  font-family: var(--font-small-caps);
  font-size: var(--text-base);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-menu a:hover {
  color: var(--sage-darkest);
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle:active {
  transform: scale(0.92);
  transition: transform 80ms ease-out;
}

.nav-leaf {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              filter 0.5s ease;
  transform-origin: center center;
  filter: drop-shadow(0 1px 2px rgba(92, 107, 79, 0.15));
}

/* Leaf turns when menu opens */
.nav-toggle[aria-expanded="true"] .nav-leaf {
  transform: rotate(180deg);
  filter: drop-shadow(0 1px 3px rgba(92, 107, 79, 0.25));
}

/* Subtle hover sway */
@media (prefers-reduced-motion: no-preference) {
  .nav-toggle:hover .nav-leaf {
    transform: rotate(15deg);
  }
  .nav-toggle[aria-expanded="true"]:hover .nav-leaf {
    transform: rotate(195deg);
  }
}


/* --- 6. Hero --- */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--cream);
  padding: 2rem;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
}

.hero-pretext {
  font-family: var(--font-small-caps);
  font-size: var(--text-lg);
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.hero-names {
  margin-bottom: 1.5rem;
}

.hero-names .name {
  font-family: var(--font-script);
  font-size: var(--text-hero);
  color: var(--text-primary);
  display: block;
  line-height: 1.1;
}

.hero-names .ampersand {
  font-family: var(--font-small-caps);
  font-size: var(--text-xl);
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--sage-dark);
  display: block;
  margin: 0.3rem 0;
}

.hero-date {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 400;
  font-style: italic;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
}

/* Countdown */
.countdown-wrapper {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 0 0;
}

.countdown-wreath {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: auto;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

.countdown {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1.5rem);
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 50px;
}

.countdown-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 300;
  color: var(--sage-darkest);
  line-height: 1;
}

.countdown-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.countdown-separator {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--sage-light);
  align-self: flex-start;
  margin-top: 0.15em;
}

.countdown-message {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-style: italic;
  color: var(--sage-darkest);
}


/* --- Couple Quote (transitional element, not a full section) --- */
.couple-quote {
  text-align: center;
  padding: 2rem var(--section-padding-x) 3rem;
  background-color: var(--cream);
}

.couple-quote .botanical-inline {
  margin-bottom: 1.5rem;
}

.couple-quote blockquote {
  max-width: 600px;
  margin: 0 auto;
}

.couple-quote blockquote p {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-style: italic;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.couple-quote blockquote footer {
  font-family: var(--font-small-caps);
  font-size: var(--text-base);
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.couple-quote .quote-amp {
  font-family: var(--font-heading);
  font-style: italic;
}


/* --- 7. Botanical Decorations --- */
.botanical {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  object-fit: contain;
  height: auto;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at center, black 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 80% at center, black 40%, transparent 100%);
}

/* Position + small-mobile sizing (base = smallest breakpoint) */
.botanical-tr {
  top: -10px;
  right: -10px;
  width: 90px;
  opacity: 0.35;
}

.botanical-bl {
  bottom: -10px;
  left: -10px;
  width: 75px;
  opacity: 0.28;
}

.botanical-tl {
  bottom: -10px;
  left: -10px;
  width: 75px;
  opacity: 0.28;
}

.botanical-br {
  top: -10px;
  right: -10px;
  width: 90px;
  opacity: 0.35;
}

.botanical-mirror {
  transform: scaleX(-1);
}

.botanical-mirror-y {
  transform: scaleY(-1);
}

.botanical-mirror-xy {
  transform: scaleX(-1) scaleY(-1);
}

/* Cancel rotation on mobile — rotated botanicals extend into content */
.botanical-rotate {
  transform: none;
}

/* Hero botanicals — larger and more visible than other sections on mobile */
.hero .botanical-tr {
  width: 120px;
  opacity: 0.5;
}

.hero .botanical-bl {
  width: 100px;
  opacity: 0.4;
}

/* Inline botanical — centered, in-flow decorative images (garlands, horizontal elements) */
.botanical-inline {
  display: block;
  margin: 0 auto;
  pointer-events: none;
  width: 150px;
  height: auto;
  opacity: 0.2;
  object-fit: contain;
}

.botanical-inline--wide {
  width: clamp(140px, 60vw, 280px);
}

/* --- 8. Components --- */

/* Day layout — photo + timeline side by side */
.day-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}

/* Couple portrait */
.couple-portrait {
  margin: 0;
}

.couple-portrait-frame {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-light);
  max-width: 320px;
  margin: 0 auto;
}

.couple-portrait-img {
  display: block;
  width: 100%;
  height: auto;
  /* Sage duotone: shift B&W into the sage/cream palette */
  filter: sepia(0.15) hue-rotate(50deg) saturate(0.75) brightness(1.05) contrast(0.95);
}

.day-layout .timeline {
  margin: 0;
}

/* Timeline */
.timeline {
  max-width: 500px;
  margin: 0 auto;
  position: relative;
  padding-left: 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 55px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border-sage);
}

.timeline-item {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding: 0.75rem 0;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 51px;
  top: 50%;
  transform: translateY(-50%);
  width: 9px;
  height: 9px;
  background: var(--sage);
  border-radius: 50%;
  border: 2px solid var(--sage-tint);
}

.timeline-time {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--sage-darkest);
  min-width: 42px;
  text-align: right;
}

.timeline-event {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  color: var(--text-secondary);
  padding-left: 1rem;
  line-height: 1.5;
}

/* Venue Cards */
.venue-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.venue-card {
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-light);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.venue-card-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.venue-card-body {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.venue-card-body .btn {
  margin-top: auto;
  align-self: center;
  width: auto;
}

.venue-card-heading {
  font-family: var(--font-small-caps);
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--sage-darkest);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.venue-name {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 400;
  margin-bottom: 0.25rem;
}

.venue-address {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

.venue-desc {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-style: italic;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.venue-detail {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

/* Button */
.btn {
  display: inline-block;
  font-family: var(--font-small-caps);
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.08em;
  padding: 0.6rem 1.5rem;
  background-color: var(--sage);
  color: var(--white);
  border: none;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn:hover {
  background-color: var(--hover-sage);
  color: var(--white);
}

/* Boende venue photo */
.boende-venue-img {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 8px;
  margin: 0 auto 2rem;
  display: block;
  box-shadow: var(--shadow-soft);
}

.boende-venue-img + .botanical-inline {
  margin-bottom: 2rem;
}


/* Accommodation */
.accommodation-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 8px;
  padding: 2.5rem clamp(1.5rem, 5vw, 3rem);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-light);
}

.accommodation-name {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 400;
  margin-bottom: 1rem;
  text-align: center;
}

.accommodation-desc {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.accommodation-details {
  text-align: left;
  max-width: 350px;
  margin: 0 auto 1.5rem;
}

.accommodation-details li {
  padding: 0.4rem 0;
  font-size: var(--text-sm);
  font-weight: 300;
}

.accommodation-details strong {
  font-weight: 500;
}

.accommodation-note {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-style: italic;
  font-weight: 400;
  color: var(--sage-darkest);
  text-align: center;
}

/* Gift Section */
.gift-card {
  max-width: 650px;
  margin: 0 auto;
  padding: 2.5rem clamp(1.5rem, 5vw, 3rem);
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow-botanical);
  border: 1px solid var(--border-light);
}

.gift-message {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-style: italic;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.gift-instruction {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.gift-note {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-style: italic;
  color: var(--sage-darkest);
  margin-bottom: 2rem;
  text-align: center;
}

.swish-contacts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.swish-card {
  padding: 1.5rem;
  background: var(--sage-tint);
  border-radius: 8px;
  text-align: center;
}

.swish-qr {
  width: 160px;
  height: 160px;
  margin: 0 auto 1rem;
  background: var(--white);
  border-radius: 8px;
  padding: 0.5rem;
  box-shadow: var(--shadow-soft);
}

.swish-qr img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 4px;
}

.swish-button,
.swish-button:link,
.swish-button:visited {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.6rem 1.5rem;
  background: transparent;
  color: var(--sage-darkest);
  border: 1.5px solid var(--sage);
  font-family: var(--font-small-caps);
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.08em;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.swish-button:hover {
  background: var(--sage);
  color: var(--white);
}

.swish-role {
  font-family: var(--font-small-caps);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--sage-darkest);
  margin-bottom: 0.25rem;
}

.swish-name {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.swish-number {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

/* Photo Sharing */
.photo-share-card {
  max-width: 600px;
  margin: 0 auto;
  padding: 2.5rem clamp(1.5rem, 5vw, 3rem);
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-light);
  text-align: left;
}

.photo-share-message {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-style: normal;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.photo-share-instruction {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.photo-share-qr {
  display: flex;
  justify-content: center;
}

.photo-share-qr-img {
  width: 160px;
  height: 160px;
  border-radius: 8px;
}

.photo-share-link {
  display: block;
  width: fit-content;
  margin: 1.25rem auto 0;
  font-family: var(--font-small-caps);
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.08em;
  padding: 0.65rem 2rem;
  background-color: var(--sage-darkest);
  color: var(--text-on-dark);
  border: none;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.photo-share-link:hover {
  background-color: var(--hover-sage);
  color: var(--white);
}

.unplugged-note {
  max-width: 500px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-sage);
  text-align: left;
}

.unplugged-note p {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-style: normal;
  font-weight: 400;
  color: var(--sage-darkest);
  line-height: 1.7;
}

/* FAQ */
.faq-list {
  max-width: 650px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-sage);
  overflow-anchor: none;
}

.faq-item:first-child {
  border-top: 1px solid var(--border-sage);
}

.faq-question {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 500;
  padding: 1.25rem 2rem 1.25rem 0;
  cursor: pointer;
  color: var(--text-primary);
  position: relative;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::marker {
  display: none;
  content: '';
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--sage);
  transition: transform 0.3s ease;
}

.faq-item[open] .faq-question::after {
  content: '−';
}

.faq-answer {
  padding: 0 0 1.25rem;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.8;
}

.faq-answer ul {
  margin-top: 0.5rem;
  padding-left: 1.25rem;
  list-style: disc;
}

.faq-answer li {
  padding: 0.2rem 0;
}

/* Section Dividers */
.section-divider {
  width: 100%;
  line-height: 0;
  margin: -1px 0;
}

.section-divider svg {
  width: 100%;
  height: 40px;
  display: block;
}

.section-divider--cream {
  background-color: var(--cream);
}

.section-divider--warm {
  background-color: var(--cream-warm);
}

.section-divider--sage {
  background-color: var(--sage-tint);
}



/* --- 9. Footer --- */
.site-footer {
  background-color: var(--sage-darkest);
  color: var(--text-on-dark);
  padding: 3rem var(--section-padding-x);
  text-align: center;
}

.footer-content {
  max-width: var(--content-width);
  margin: 0 auto;
}

.footer-names {
  font-family: var(--font-script);
  font-size: var(--text-2xl);
  margin-bottom: 0.25rem;
}

.footer-amp {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 0.7em;
}

.footer-date {
  font-family: var(--font-small-caps);
  font-size: var(--text-sm);
  letter-spacing: 0.15em;
  color: var(--sage-light);
  margin-bottom: 2rem;
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  font-style: normal;
}

.footer-contact {
  font-size: var(--text-sm);
}

.footer-contact p {
  font-family: var(--font-heading);
}

.footer-contact-label {
  font-family: var(--font-small-caps);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  color: var(--sage-light);
  margin-bottom: 0.25rem;
}

.footer-contact a {
  color: var(--sage-lightest);
}

.footer-contact a:hover {
  color: var(--white);
}

.footer-email {
  font-size: var(--text-sm);
}

.footer-email a {
  color: var(--sage-light);
}

.footer-email a:hover {
  color: var(--white);
}


/* --- 10. Animations --- */
@media (prefers-reduced-motion: no-preference) {
  .hero-pretext { animation: fadeUp 0.5s ease-out 0.15s both; }
  .hero-names .name:first-child { animation: fadeUp 0.5s ease-out 0.25s both; }
  .hero-names .ampersand { animation: fadeUp 0.4s ease-out 0.35s both; }
  .hero-names .name:last-child { animation: fadeUp 0.5s ease-out 0.4s both; }
  .hero-date { animation: fadeUp 0.5s ease-out 0.55s both; }
  .countdown-wrapper { animation: fadeUp 0.5s ease-out 0.7s both; }

  .hero > .botanical-tr { animation: fadeSlideIn 0.8s ease-out 0.1s both; }
  .hero > .botanical-bl { animation: fadeSlideInFlipY 0.8s ease-out 0.25s both; }

  .nav-leaf { animation: leafSway 1s cubic-bezier(0.4, 0, 0.2, 1) 1.5s backwards; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(-15px) scale(0.97); }
  to { transform: translateY(0) scale(1); }
}

@keyframes fadeSlideInFlipY {
  from { opacity: 0; transform: scaleY(-1) translateY(15px) scale(0.97); }
  to { transform: scaleY(-1) translateY(0) scale(1); }
}

@keyframes leafSway {
  0%   { transform: rotate(0deg); }
  20%  { transform: rotate(12deg); }
  45%  { transform: rotate(-8deg); }
  65%  { transform: rotate(5deg); }
  82%  { transform: rotate(-2deg); }
  100% { transform: rotate(0deg); }
}


/* --- 11. Accessibility --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--cream);
  color: var(--text-primary);
  font-size: var(--text-sm);
  z-index: 200;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  box-shadow: var(--shadow-soft);
}

.skip-link:focus {
  top: 0;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--blue-dark);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (prefers-contrast: high) {
  :root {
    --text-primary: #000000;
    --text-secondary: #1a1a1a;
    --cream: #FFFFFF;
  }
  .botanical {
    opacity: 0.15;
  }
  .botanical-inline {
    opacity: 0.1;
  }
}


/* --- 12. Responsive --- */

/* Medium mobile+ */
@media (min-width: 480px) {
  .botanical-tr,
  .botanical-br {
    width: clamp(100px, 30vw, 160px);
    opacity: 0.45;
  }

  .botanical-bl,
  .botanical-tl {
    width: clamp(80px, 25vw, 140px);
    opacity: 0.35;
  }

  .hero .botanical-tr {
    width: clamp(130px, 38vw, 190px);
    opacity: 0.6;
  }

  .hero .botanical-bl {
    width: clamp(110px, 32vw, 170px);
    opacity: 0.5;
  }

  .countdown-wreath {
    width: clamp(220px, 60vw, 300px);
    opacity: 0.35;
  }

  .countdown-separator {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
  }

  .botanical-inline {
    width: clamp(160px, 55vw, 300px);
    opacity: 0.25;
  }

  .botanical-inline--wide {
    width: clamp(180px, 65vw, 400px);
  }

  .venue-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .swish-contacts {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .swish-qr {
    width: 200px;
    height: 200px;
  }

  .photo-share-qr-img {
    width: 200px;
    height: 200px;
  }

  .footer-contacts {
    flex-direction: row;
    justify-content: center;
    gap: 3rem;
  }
}

/* Tablet+ */
@media (min-width: 768px) {
  .nav {
    padding: 0.6rem 2rem;
  }

  /* Tablet botanical sizes — restore desktop positioning with moderate sizes */
  .botanical-tr {
    top: -20px;
    right: -25px;
    width: clamp(140px, 22vw, 250px);
    opacity: 0.65;
  }

  .botanical-bl {
    bottom: -20px;
    left: -25px;
    width: clamp(130px, 20vw, 220px);
    opacity: 0.6;
  }

  .botanical-tl {
    top: -15px;
    bottom: auto;
    left: -20px;
    width: clamp(110px, 18vw, 200px);
    opacity: 0.45;
  }

  .botanical-br {
    top: auto;
    bottom: -15px;
    right: -20px;
    width: clamp(110px, 18vw, 200px);
    opacity: 0.45;
  }

  /* Modifiers effective at tablet+ */
  .botanical-small {
    width: clamp(100px, 16vw, 180px);
    opacity: 0.5;
  }

  .botanical-faded {
    opacity: 0.4;
  }

  .botanical-rotate {
    transform: rotate(15deg);
  }

  .hero .botanical-tr {
    width: clamp(160px, 25vw, 300px);
    opacity: 0.7;
  }

  .hero .botanical-bl {
    width: clamp(140px, 22vw, 260px);
    opacity: 0.65;
  }

  .countdown-wreath {
    width: clamp(240px, 35vw, 350px);
    opacity: 0.4;
  }

  .botanical-inline {
    width: clamp(180px, 40vw, 350px);
    opacity: 0.3;
  }

  .botanical-inline--wide {
    width: clamp(220px, 55vw, 450px);
  }

  .couple-portrait-frame {
    max-width: none;
    margin: 0;
  }

  .timeline::before {
    left: 80px;
  }

  .timeline-item::before {
    left: 76px;
  }

  .timeline-time {
    min-width: 65px;
    font-size: var(--text-lg);
  }

  .day-layout {
    grid-template-columns: 5fr 6fr;
    gap: 3rem;
    max-width: none;
    align-items: center;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }

  .nav-menu {
    position: static;
    flex-direction: row;
    gap: 2rem;
    align-items: center;
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    border-bottom: none;
    max-height: none;
    overflow: visible;
    transition: none;
    padding: 0;
  }

  .nav-menu li {
    padding: 0;
  }

  .nav-menu a {
    font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  }

  /* Full desktop botanical sizes */
  .botanical-tr {
    top: -30px;
    right: -40px;
    width: clamp(200px, 35vw, 450px);
    opacity: 0.85;
  }

  .botanical-bl {
    bottom: -30px;
    left: -40px;
    width: clamp(180px, 30vw, 400px);
    opacity: 0.8;
  }

  .botanical-tl {
    top: -20px;
    left: -30px;
    width: clamp(140px, 22vw, 280px);
    opacity: 0.5;
  }

  .botanical-br {
    bottom: -20px;
    right: -30px;
    width: clamp(140px, 22vw, 280px);
    opacity: 0.5;
  }

  .botanical-small {
    width: clamp(120px, 20vw, 250px);
    opacity: 0.6;
  }

  .botanical-faded {
    opacity: 0.45;
  }

  .hero .botanical-tr {
    width: clamp(200px, 35vw, 450px);
    opacity: 0.85;
  }

  .hero .botanical-bl {
    width: clamp(180px, 30vw, 400px);
    opacity: 0.8;
  }

  .countdown-wreath {
    width: clamp(260px, 45vw, 400px);
    opacity: 0.45;
  }

  .botanical-inline {
    width: clamp(200px, 50vw, 450px);
    opacity: 0.35;
  }

  .botanical-inline--wide {
    width: clamp(250px, 70vw, 600px);
  }

  .section-content {
    max-width: min(90%, 900px);
  }

  .section-content--wide {
    max-width: min(90%, 1060px);
  }
}
