/*
Theme Name: Wedding Theme
Theme URI: https://www.elinaandjake.com
Author: Herkenhoff.rocks
Author URI: https://www.elinaandjake.com
Description: A modern, minimal wedding website theme for Elina & Jake.
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wedding-theme
Tags: wedding, one-page, responsive, minimal
*/

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  --color-bg: #e8ede8;
  --color-bg-alt: #edf2ed;
  --color-bg-dark: #2a2e2a;
  --color-text: #353a35;
  --color-text-light: #606b60;
  --color-text-muted: #909a90;
  --color-accent: #7a9a7a;
  --color-accent-hover: #658565;
  --color-white: #ffffff;
  --color-border: #dde5dd;
  --color-overlay: rgba(42, 46, 42, 0.45);

  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;

  --fs-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --fs-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --fs-base: clamp(1rem, 0.9rem + 0.45vw, 1.125rem);
  --fs-md: clamp(1.25rem, 1rem + 1.1vw, 1.5rem);
  --fs-lg: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
  --fs-xl: clamp(2.5rem, 1.8rem + 3.2vw, 4.5rem);
  --fs-xxl: clamp(3.5rem, 2.2rem + 5.5vw, 7rem);

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);

  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  --max-width: 1200px;
  --max-width-narrow: 800px;
  --header-height: 72px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='32' viewBox='0 0 16 32'%3E%3Cg fill='%23556B55' fill-opacity='0.08'%3E%3Cpath fill-rule='evenodd' d='M0 24h4v2H0v-2zm0 4h6v2H0v-2zm0-8h2v2H0v-2zM0 0h4v2H0V0zm0 4h2v2H0V4zm16 20h-6v2h6v-2zm0 4H8v2h8v-2zm0-8h-4v2h4v-2zm0-20h-6v2h6V0zm0 4h-4v2h4V4zm-2 12h2v2h-2v-2zm0-8h2v2h-2V8zM2 8h10v2H2V8zm0 8h10v2H2v-2zm-2-4h14v2H0v-2zm4-8h6v2H4V4zm0 16h6v2H4v-2zM6 0h2v2H6V0zm0 24h2v2H6v-2z'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

ul, ol {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: var(--fs-xxl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }

p {
  margin-bottom: var(--space-sm);
}

.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.text-accent { color: var(--color-accent); }

/* ============================================
   LAYOUT
   ============================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.section {
  padding: clamp(3rem, 8vw, var(--space-3xl)) 0;
}

.section#schedule {
  background-color: rgba(225, 232, 225, 0.75);
}

.section#travel {
  background-color: rgba(232, 237, 232, 0.7);
}

.section#gallery {
  background-color: rgba(225, 232, 225, 0.75);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section__header h2 {
  margin-bottom: var(--space-xs);
}

.section__header p {
  color: var(--color-text-light);
  font-size: var(--fs-md);
  max-width: 600px;
  margin: 0 auto;
}

.section__divider {
  width: 60px;
  height: 1px;
  background: var(--color-accent);
  margin: var(--space-sm) auto;
  border: none;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2.25rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  cursor: pointer;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  border: 1px solid var(--color-white);
  color: var(--color-white);
}

.btn--outline:hover {
  background: var(--color-white);
  color: var(--color-bg-dark);
}

.btn--large {
  padding: 1.125rem 3rem;
  font-size: var(--fs-base);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.site-header--scrolled {
  background: rgba(232, 237, 232, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.site-header__logo {
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  color: var(--color-white);
  transition: color var(--transition-base);
}

.site-header--scrolled .site-header__logo {
  color: var(--color-text);
}

.site-header__logo a {
  color: inherit;
}

.site-header__logo a:hover {
  color: var(--color-accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.site-nav__list {
  display: flex;
  gap: var(--space-md);
}

.site-nav__link {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition-fast);
  padding: var(--space-xs) 0;
  position: relative;
}

.site-nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width var(--transition-base);
}

.site-nav__link:hover::after,
.site-nav__link:focus::after {
  width: 100%;
}

.site-nav__link:hover {
  color: var(--color-white);
}

.site-header--scrolled .site-nav__link {
  color: var(--color-text-light);
}

.site-header--scrolled .site-nav__link:hover {
  color: var(--color-text);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.site-header--scrolled .menu-toggle span {
  background: var(--color-text);
}

.menu-toggle.is-active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.menu-toggle.is-active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(107, 138, 107, 0.5) 0%, rgba(85, 117, 85, 0.5) 50%, rgba(63, 95, 63, 0.5) 100%);
  z-index: 0;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: var(--space-xl);
}

.hero__names {
  font-family: var(--font-heading);
  font-size: var(--fs-xxl);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
}

.hero__ampersand {
  display: block;
  font-size: 0.5em;
  color: var(--color-accent);
  margin: var(--space-xs) 0;
}

.hero__date {
  font-size: var(--fs-md);
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
  opacity: 0.9;
}

.hero__divider {
  width: 80px;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
  margin: 0 auto var(--space-lg);
  border: none;
}

.hero__quote {
  font-family: 'Passions Conflict', cursive;
  font-size: clamp(36px, 8vw, 80px);
  max-width: 70%;
  margin: 0 auto var(--space-lg);
  opacity: 0.9;
  line-height: 1.4;
}

/* ============================================
   SCHEDULE SECTION
   ============================================ */
.schedule-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  max-width: 700px;
  margin: 0 auto;
}

.schedule-card {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.schedule-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.schedule-card__time {
  flex-shrink: 0;
  width: 80px;
  text-align: center;
}

.schedule-card__time-value {
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  color: var(--color-accent);
}

.schedule-card__time-label {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.schedule-card__content h4 {
  margin-bottom: var(--space-xs);
}

.schedule-card__content p {
  font-size: var(--fs-sm);
  color: var(--color-text-light);
  margin-bottom: 0;
}

/* ============================================
   TRAVEL SECTION
   ============================================ */
.travel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.travel-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.travel-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.travel-card__image {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #dde5dd 0%, #c8d4c8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  font-style: italic;
}

.travel-card__image img {
  max-height: 273px;
  max-width: 200%;
}

.travel-card__content {
  padding: var(--space-md);
}

.travel-card__content h4 {
  margin-bottom: var(--space-xs);
}

.travel-card__content p {
  font-size: var(--fs-sm);
  color: var(--color-text-light);
  margin-bottom: var(--space-sm);
}

.travel-card__link {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 16 / 7;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================
   GALLERY TEASER SECTION
   ============================================ */
.gallery-teaser {
  text-align: center;
}

.gallery-teaser__preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  place-items: center;
}

.gallery-teaser__preview-item {
  aspect-ratio: 1;
  background: linear-gradient(135deg, #dde5dd 0%, #c8d4c8 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: var(--fs-xs);
  font-style: italic;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.gallery-teaser__preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.gallery-teaser__preview-item a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.gallery-teaser__preview-item a:hover img {
  transform: scale(1.05);
}

.gallery-teaser__caption-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 8px 8px;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  pointer-events: none;
}

.gallery-teaser__preview-item--video {
  position: relative;
}

.gallery-teaser__preview-item--video::after {
  content: '';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.gallery-teaser__locked {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--color-bg-dark);
  color: rgba(255, 255, 255, 0.6);
  padding: var(--space-xl) 0;
  text-align: center;
}

.site-footer__nav {
  margin-bottom: var(--space-md);
}

.site-footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm) var(--space-md);
}

.site-footer__nav a {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--fs-xs);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color var(--transition-fast);
}

.site-footer__nav a:hover {
  color: var(--color-white);
}

.site-footer__divider {
  width: 40px;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 auto var(--space-sm);
  border: none;
}

.site-footer__copyright {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 640px) {
  .schedule-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .travel-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .story-item {
    grid-template-columns: 1fr 1fr;
  }

  .story-item:nth-child(even) .story-item__image {
    order: 2;
  }

  .story-item:nth-child(even) .story-item__content {
    order: 1;
  }
}

@media (max-width: 767px) {
  .menu-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg);
    flex-direction: column;
    justify-content: center;
    gap: var(--space-xl);
    transform: translateX(100%);
    transition: transform var(--transition-base);
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .site-nav__list {
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
  }

  .site-nav__link {
    color: var(--color-text);
    font-size: var(--fs-md);
  }

  .site-nav__link::after {
    background: var(--color-accent);
  }

  .gallery-teaser__preview {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .schedule-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .schedule-card {
    flex-direction: column;
    text-align: center;
  }

  .schedule-card__time {
    width: 100%;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-sm);
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  z-index: 9999;
}

.skip-link:focus {
  top: var(--space-sm);
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   GLIGHTBOX OVERRIDES
   ============================================ */

.glightbox-container .gslide-description {
  position: fixed !important;
  bottom: 24px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: auto !important;
  max-width: 80vw !important;
  padding: 12px 24px !important;
  background: rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border-radius: 10px !important;
  color: #fff !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  text-align: center !important;
  margin: 0 !important;
}

.glightbox-container .gdesc-inner {
  padding: 0 !important;
}

.glightbox-clean .gslide-title {
  margin-bottom: 0 !important;
  color: #fff !important;
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

.wp-caption {
  max-width: 100%;
}

.aligncenter {
  margin-left: auto;
  margin-right: auto;
}
