/* ============================================
   MAJA & STORM WEDDING WEBSITE
   Design System from Figma
   ============================================ */

/* ============ FONTS ============ */
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Inter:wght@300;400;500;600&display=swap');

@font-face {
  font-family: 'Didot';
  src: local('Didot'), local('GFS Didot'), local('Bodoni MT');
  font-weight: 400;
  font-style: normal;
}

:root {
  /* Colors from Figma */
  --color-bg: #F2F7FA;
  --color-white: #FFFFFF;
  --color-text-primary: #394337;
  --color-text-dark: #3C4A39;
  --color-sage: #6F7E6C;
  --color-sage-dark: #536151;
  --color-cta-bg: #D4E1D2;
  --color-border: #536151;
  
  /* Typography */
  --font-didot: 'Didot', 'GFS Didot', 'Bodoni MT', 'Georgia', serif;
  --font-script: 'Great Vibes', cursive;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Title Gradient */
  --gradient-title: linear-gradient(90deg, 
    rgba(60, 74, 57, 0.95) 0%, 
    rgba(48, 58, 46, 0.95) 31.731%, 
    rgba(91, 100, 89, 0.95) 47.115%, 
    rgba(68, 83, 66, 0.95) 65.865%, 
    rgba(54, 64, 53, 0.95) 89.904%
  );
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2.5rem;
  --spacing-xl: 4rem;
  --spacing-xxl: 6rem;
  
  /* Layout */
  --max-width: 1440px;
  --content-padding: 60px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text-primary);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.hidden {
  display: none !important;
}

/* ============ TYPOGRAPHY ============ */
.title-gradient {
  font-family: var(--font-didot);
  font-size: 96px;
  font-weight: 400;
  letter-spacing: 4.8px;
  background: var(--gradient-title);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title-didot {
  font-family: var(--font-didot);
  font-weight: 400;
  color: var(--color-text-primary);
  letter-spacing: 2.4px;
  line-height: 60px;
}

.text-script {
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--color-sage);
}

.text-body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: 1.2px;
  color: var(--color-text-primary);
}

.text-body-light {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 24px;
  line-height: normal;
  letter-spacing: 1.2px;
  color: var(--color-text-dark);
}

/* ============ BUTTONS ============ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-text-dark);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  padding: 16px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

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

.btn-primary:active {
  transform: scale(0.98);
}

.btn-large {
  font-family: var(--font-didot);
  font-size: 40px;
  letter-spacing: 2px;
  line-height: 32px;
  color: var(--color-text-dark);
  background: transparent;
  border: 1px solid var(--color-border);
  padding: 32px;
  width: 675px;
  max-width: calc(100% - 40px);
  height: 135px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-large:hover {
  background: #EEF5EE;
}

.btn-large:active {
  background: #80907D;
  color: #252A24;
}

/* ============ LOGIN SCREEN ============ */
/* Language Selection Screen */
.language-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow-y: auto;
  padding: 20px;
  box-sizing: border-box;
}

.language-selection-container {
  text-align: center;
  width: 100%;
  max-width: 600px;
  padding: var(--spacing-xl);
  box-sizing: border-box;
}

.language-title {
  font-family: var(--font-didot);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--color-text-primary);
  margin-bottom: 80px;
  white-space: nowrap;
  text-align: center;
  padding: 0 20px;
  box-sizing: border-box;
}

.language-switch-large {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.lang-select-btn-large {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 32px;
  color: var(--color-sage);
  cursor: pointer;
  padding: 8px;
  transition: color 0.3s ease;
  position: relative;
  z-index: 1;
}

.lang-select-btn-large:hover,
.lang-select-btn-large.active {
  color: var(--color-text-dark);
}

.lang-divider-large {
  color: var(--color-sage);
  font-size: 32px;
}

.language-screen.hidden {
  display: none;
}

.login-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
}

.login-hero {
  position: relative;
  width: 100%;
  height: 45vh;
  min-height: 350px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  padding-bottom: 40px;
}

/* Background layers - white base + image at 30% opacity */
.login-hero-bg-wrapper {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.login-hero-bg-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-white);
}

.login-hero-bg-container {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  overflow: hidden;
}

.hero-illustration {
  position: absolute;
  top: -12%;
  left: 0;
  width: 100%;
  height: 112%;
  object-fit: cover;
  object-position: center;
}

.login-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.wedding-date {
  font-family: var(--font-didot);
  font-size: 40px;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--color-sage);
  margin-bottom: 4px;
}

.couple-names {
  font-family: var(--font-didot);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 400;
  letter-spacing: 4.8px;
  background: var(--gradient-title);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.wedding-location-script {
  font-family: var(--font-script);
  font-size: 48px;
  line-height: 60px;
  letter-spacing: 2.4px;
  color: var(--color-sage);
}

.login-form-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg) var(--spacing-md);
  background: var(--color-bg);
}

.login-container {
  background: var(--color-white);
  padding: 40px;
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  text-align: center;
}

.login-container h2 {
  font-family: var(--font-didot);
  font-size: 48px;
  font-weight: 400;
  line-height: 60px;
  letter-spacing: 2.4px;
  color: var(--color-text-primary);
  margin-bottom: 40px;
}

#login-form {
  display: flex;
  flex-direction: column;
  gap: 36px;
  align-items: center;
}

.password-input-wrapper {
  position: relative;
  width: 100%;
  max-width: 438px;
}

.password-input-wrapper input {
  width: 100%;
  padding: 12px 48px 12px 12px;
  font-family: var(--font-body);
  font-size: 18px;
  border: 1px solid #E0E0E0;
  border-radius: 4px;
  background: var(--color-white);
  color: var(--color-text-primary);
  transition: border-color 0.3s ease;
  height: 48px;
}

.password-input-wrapper input::placeholder {
  color: #999;
  transition: opacity 0.2s ease;
}

.password-input-wrapper input:focus::placeholder {
  opacity: 0;
}

.password-input-wrapper input:focus {
  outline: none;
  border-color: var(--color-sage);
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-password:hover {
  color: var(--color-sage);
}

#login-form .btn-primary {
  width: 100%;
  max-width: 438px;
  height: 56px;
}

.error-message {
  color: #b44536;
  font-size: 14px;
  margin-top: var(--spacing-sm);
}

.login-footer {
  width: 100%;
  padding: var(--spacing-md);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  background: var(--color-bg);
}

.login-lang-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-btn {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-sage);
  cursor: pointer;
  padding: 4px;
  transition: color 0.3s ease;
}

.lang-btn:hover,
.lang-btn.active {
  color: var(--color-text-dark);
}

.lang-divider {
  color: var(--color-sage);
}

/* ============ HEADER / NAVIGATION ============ */
.site-header {
  position: relative;
  width: 100%;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  z-index: 100;
}

.site-header.with-bg {
  background: var(--color-white);
  background-image: var(--header-bg-image);
  background-size: cover;
  background-position: center;
}

.logo {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.logo-icon {
  position: relative;
  width: 92px;
  height: 68px;
}

.logo-icon .logo-m {
  position: absolute;
  top: 0;
  left: 0;
  width: 68px;
  height: 56px;
}

.logo-icon .logo-s {
  position: absolute;
  top: 9px;
  left: 38px;
  width: 54px;
  height: 58px;
}

.logo-svg {
  height: 68px;
  width: auto;
}

.logo-monogram {
  font-family: var(--font-script);
  font-size: 48px;
  color: var(--color-sage);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Hide language switcher in main-nav on desktop and tablet */
.main-nav-lang-switch {
  display: none;
}

.nav-link {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 24px;
  letter-spacing: 1.2px;
  color: var(--color-text-dark);
  padding: 8px 24px;
  transition: color 0.3s ease;
  position: relative;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 24px;
  right: 24px;
  height: 1.5px;
  background: currentColor;
  opacity: 0;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  color: #6b7969;
}

.nav-link:hover::after {
  opacity: 1;
}

.nav-link:active {
  color: #252a24;
}

.nav-link.active {
  color: #252a24;
}

.nav-link.active::after {
  opacity: 1;
}

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

.mobile-menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  z-index: 10001;
  position: relative;
}

.mobile-menu-toggle .hamburger-icon {
  position: relative;
  width: 24px;
  height: 16px;
}

.mobile-menu-toggle .hamburger-icon span {
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--color-text-dark);
  transition: all 0.3s ease;
}

.mobile-menu-toggle .hamburger-icon span:nth-child(1) {
  top: 0;
}

.mobile-menu-toggle .hamburger-icon span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.mobile-menu-toggle .hamburger-icon span:nth-child(3) {
  bottom: 0;
}

/* Hamburger to X animation when active */
.mobile-menu-toggle.active .hamburger-icon span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

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

.mobile-menu-toggle.active .hamburger-icon span:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

.mobile-menu-toggle .menu-text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 18px;
  letter-spacing: 0.9px;
  color: #3c4a39;
  text-decoration: none;
  transition: all 0.2s ease;
}

.mobile-menu-toggle .menu-text-close {
  display: none;
}

.mobile-menu-toggle.active .menu-text-open {
  display: none;
}

.mobile-menu-toggle.active .menu-text-close {
  display: inline;
}

/* Hover state */
.mobile-menu-toggle:hover .hamburger-icon span {
  background: #6b7969;
}

.mobile-menu-toggle:hover .menu-text {
  color: #6b7969;
  text-decoration: underline;
}

/* Pressed/Active click state */
.mobile-menu-toggle:active {
  background: transparent;
}

.mobile-menu-toggle:active .hamburger-icon span {
  background: #252a24;
}

.mobile-menu-toggle:active .menu-text {
  color: #252a24;
  text-decoration: underline;
}

/* ============ PAGE HERO ============ */
.page-hero {
  position: relative;
  width: 100%;
  min-height: 471px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Background layers - white base + image at 30% opacity */
.page-hero-bg-wrapper {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page-hero-bg-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-white);
}

.page-hero-bg-container {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  overflow: hidden;
}

/* Story page: same height as other interior pages */
.page-hero--story {
  min-height: 471px;
}

.page-hero--story .page-hero-bg-wrapper {
  background: #FFF;
}

.page-hero--story .page-hero-bg-container {
  opacity: 0.3;
}

.page-hero--story .page-hero-content {
  justify-content: flex-end;
  gap: 4px;
}

.page-hero--story .hero-title {
  font-family: Didot, 'Didot LT STD', 'GFS Didot', serif;
  font-size: 96px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 4.8px;
  margin: 0;
  background: linear-gradient(90deg, 
    rgba(60, 74, 57, 0.95) 0%, 
    rgba(91, 100, 89, 0.95) 18.75%, 
    rgba(48, 58, 46, 0.95) 39.42%, 
    rgba(68, 83, 66, 0.95) 65.87%, 
    rgba(54, 64, 53, 0.95) 89.9%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.page-hero--story .subtitle {
  color: #6F7E6C;
  text-align: center;
  font-family: 'Great Vibes', cursive;
  font-size: 48px;
  font-style: normal;
  font-weight: 400;
  line-height: 60px;
  letter-spacing: 2.4px;
}

/* Program page: 471px as per Figma */
.page-hero--program {
  min-height: 471px;
}

.page-hero--program .page-hero-bg-wrapper {
  background: #FFF;
}

.page-hero--program .page-hero-bg-container {
  opacity: 0.2;
  filter: saturate(0.7) hue-rotate(-15deg) brightness(1.05);
}


.page-hero--program .page-hero-content {
  justify-content: flex-end;
  gap: 4px;
}

.page-hero--program .hero-title {
  font-family: Didot, 'Didot LT STD', 'GFS Didot', serif;
  font-size: 96px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 4.8px;
  margin: 0;
  background: linear-gradient(90deg, 
    rgba(60, 74, 57, 0.95) 0%, 
    rgba(91, 100, 89, 0.95) 18.75%, 
    rgba(48, 58, 46, 0.95) 39.42%, 
    rgba(68, 83, 66, 0.95) 65.87%, 
    rgba(54, 64, 53, 0.95) 89.9%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.page-hero--program .subtitle {
  color: #6F7E6C;
  text-align: center;
  font-family: 'Great Vibes', cursive;
  font-size: 48px;
  font-style: normal;
  font-weight: 400;
  line-height: 60px;
  letter-spacing: 2.4px;
}

/* Praktisk info page: 471px as per Figma */
.page-hero--info {
  min-height: 471px;
}

.page-hero--info .page-hero-bg-wrapper {
  background: #FFF;
}

.page-hero--info .page-hero-bg-container {
  opacity: 0.2;
  filter: saturate(0.7) hue-rotate(-15deg) brightness(1.05);
}


.page-hero--info .page-hero-content {
  justify-content: flex-end;
  gap: 4px;
}

.page-hero--info .hero-title {
  font-family: Didot, 'Didot LT STD', 'GFS Didot', serif;
  font-size: 96px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 4.8px;
  margin: 0;
  background: linear-gradient(90deg, 
    rgba(60, 74, 57, 0.95) 0%, 
    rgba(91, 100, 89, 0.95) 18.75%, 
    rgba(48, 58, 46, 0.95) 39.42%, 
    rgba(68, 83, 66, 0.95) 65.87%, 
    rgba(54, 64, 53, 0.95) 89.9%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.page-hero--info .subtitle {
  color: #6F7E6C;
  text-align: center;
  font-family: 'Great Vibes', cursive;
  font-size: 48px;
  font-style: normal;
  font-weight: 400;
  line-height: 60px;
  letter-spacing: 2.4px;
}

/* RSVP page: 471px as per Figma */
.page-hero--rsvp {
  min-height: 471px;
}

.page-hero--rsvp .page-hero-bg-wrapper {
  background: #FFF;
}

.page-hero--rsvp .page-hero-bg-container {
  opacity: 0.2;
}


.page-hero--rsvp .page-hero-content {
  justify-content: flex-end;
  gap: 4px;
}

.page-hero--rsvp .hero-title {
  font-family: Didot, 'Didot LT STD', 'GFS Didot', serif;
  font-size: 96px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 4.8px;
  margin: 0;
  background: linear-gradient(90deg, 
    rgba(60, 74, 57, 0.95) 0%, 
    rgba(91, 100, 89, 0.95) 18.75%, 
    rgba(48, 58, 46, 0.95) 39.42%, 
    rgba(68, 83, 66, 0.95) 65.87%, 
    rgba(54, 64, 53, 0.95) 89.9%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.page-hero--rsvp .subtitle {
  color: #394337;
  text-align: center;
  font-family: 'Great Vibes', cursive;
  font-size: 58px;
  font-style: normal;
  font-weight: 400;
  line-height: 60px;
  letter-spacing: 2.9px;
}

.page-hero-bg {
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 204%;
  max-width: none;
  object-fit: cover;
}

.page-hero-header {
  position: relative;
  z-index: 10;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 40px;
}

.page-hero h1 {
  font-family: var(--font-didot);
  font-size: 64px;
  font-weight: 400;
  letter-spacing: 3.2px;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}

.page-hero .subtitle {
  font-family: var(--font-script);
  font-size: 48px;
  color: var(--color-sage);
}

/* ============ HOME PAGE HERO ============ */
.home-hero {
  position: relative;
  width: 100%;
  min-height: 800px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Background layers - white base + image at 30% opacity */
.home-hero-bg-wrapper {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.home-hero-bg-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-white);
}

.home-hero-bg-container {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  overflow: hidden;
}

.home-hero-bg {
  position: absolute;
  top: -12%;
  left: 0;
  width: 100%;
  height: 112%;
  object-fit: cover;
}

.home-hero-header {
  position: relative;
  z-index: 10;
}

.home-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  padding-bottom: 60px;
  height: calc(857px - 147px);
  gap: 4px;
}

.home-hero .wedding-date {
  font-family: var(--font-didot);
  font-size: 40px;
  letter-spacing: 2px;
  color: var(--color-sage);
}

.home-hero .couple-names {
  font-size: clamp(48px, 7vw, 96px);
}

.home-hero .wedding-location-script {
  font-family: var(--font-script);
  font-size: 48px;
  line-height: 60px;
  letter-spacing: 2.4px;
  color: var(--color-sage);
}

/* ============ CONTENT SECTIONS ============ */
.section {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 100px var(--content-padding);
  overflow: hidden;
}

.section-full {
  max-width: 100%;
}

/* ============ TWO COLUMN LAYOUT ============ */
.two-col {
  display: flex;
  gap: 60px;
  align-items: center;
  width: 100%;
  overflow: hidden;
}

.two-col.reverse {
  flex-direction: row-reverse;
}

.col-image {
  flex-shrink: 1;
  min-width: 0;
}

.col-image img {
  border-radius: 16px;
  width: 494px;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.col-content {
  flex: 1;
  max-width: 700px;
  min-width: 290px;
}

/* Intro Section Title - Desktop: inside col-content */
.intro-section-title {
  font-family: var(--font-didot);
  font-size: 48px;
  font-weight: 400;
  line-height: 60px;
  letter-spacing: 2.4px;
  color: var(--color-text-primary);
  margin-bottom: 36px;
}

.intro-section-title em {
  font-family: var(--font-script);
  font-style: normal;
  font-size: 58px;
  letter-spacing: 2.9px;
}

/* Hide iPad title on desktop */
.intro-section-title-ipad {
  display: none;
}

/* Show desktop title */
.intro-section-title-desktop {
  display: block;
}

.col-content h2 {
  font-family: var(--font-didot);
  font-size: 48px;
  font-weight: 400;
  line-height: 60px;
  letter-spacing: 2.4px;
  color: var(--color-text-primary);
  margin-bottom: 36px;
}

.col-content h2 em {
  font-family: var(--font-script);
  font-style: normal;
  font-size: 58px;
  letter-spacing: 2.9px;
}

.col-content p {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 400;
  line-height: 32px;
  letter-spacing: 1.2px;
  color: var(--color-text-primary);
  margin-bottom: 16px;
}

.col-content .read-more {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  color: var(--color-text-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.col-content .read-more:hover {
  color: var(--color-sage);
}

/* ============ CTA BAND ============ */
.cta-band {
  background: var(--color-cta-bg);
  width: 100%;
  padding: 80px var(--content-padding);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 60px;
}

.cta-band .cta-text {
  font-family: var(--font-script);
  font-size: 58px;
  line-height: 60px;
  letter-spacing: 2.9px;
  color: var(--color-text-primary);
  text-align: center;
}

/* ============ PROGRAM LIST ============ */
/* Program Preview Section - Front Page */
.program-preview-section {
  background: var(--color-bg);
  overflow: hidden;
  width: 100%;
}

.program-preview-title {
  font-family: var(--font-didot);
  font-size: 48px;
  font-weight: 400;
  line-height: 60px;
  letter-spacing: 2.4px;
  color: #3c4a39;
  margin-bottom: 36px;
}

/* Hide iPad title on desktop */
.program-preview-title-ipad {
  display: none;
}

/* Show desktop title */
.program-preview-title-desktop {
  display: block;
}

.program-preview-items {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.program-preview {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  justify-content: flex-start;
  overflow: hidden;
}

.program-preview-body {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 60px;
  flex: 1;
}

.program-preview-left {
  display: flex;
  flex-direction: column;
  padding: 25px 0;
  flex-shrink: 0;
}

.program-preview-content {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding: 25px 0;
  flex: 1;
  min-width: 0;
  max-width: 700px;
}

.program-item {
  display: flex;
  gap: 36px;
  align-items: flex-start;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: 1.2px;
  white-space: nowrap;
}

.program-time {
  font-family: 'Roboto Mono', monospace;
  font-weight: 400;
  color: #6b7969;
}

.program-desc {
  font-family: var(--font-body);
  font-weight: 400;
  color: #3c4a39;
}

.program-preview .program-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: 1px;
  color: #3c4a39;
  text-decoration: underline;
  margin-top: 12px;
  white-space: nowrap;
}

.program-preview .program-note {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 400;
  line-height: 32px;
  letter-spacing: 1.2px;
  color: #3c4a39;
  font-style: italic;
  margin-top: 12px;
  white-space: normal;
}

.program-preview-image {
  flex-shrink: 0;
  flex-grow: 0;
  width: 448px;
  max-width: 40%;
  aspect-ratio: 448 / 672;
  border-radius: 8px;
  overflow: hidden;
}

.program-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Legacy program-section styles (for program page) */
.program-section h2 {
  font-family: var(--font-didot);
  font-size: 48px;
  font-weight: 400;
  line-height: 60px;
  letter-spacing: 2.4px;
  color: var(--color-text-primary);
  margin-bottom: 36px;
}

.program-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.program-list li {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 400;
}

/* Program Page Section */
.program-page-section {
  background: #f2f7fa;
  padding: 100px 60px;
}

.program-page-content {
  display: flex;
  flex-direction: column;
  gap: 36px;
  max-width: 700px;
  padding: 25px 0;
}

.program-page-title {
  font-family: var(--font-didot);
  font-size: 48px;
  font-weight: 400;
  line-height: 60px;
  letter-spacing: 2.4px;
  color: #3c4a39;
}

.program-page-item {
  display: flex;
  gap: 36px;
  align-items: flex-start;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: 1.2px;
}

.program-page-time {
  font-family: 'Roboto Mono', monospace;
  font-weight: 700;
  color: #6b7969;
}

.program-page-text {
  font-family: var(--font-body);
  font-weight: 400;
  color: #3c4a39;
}

.program-page-note {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 400;
  line-height: 32px;
  letter-spacing: 1.2px;
  color: #3c4a39;
}

.program-link {
  display: inline-block;
  margin-top: 36px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: 1.2px;
  color: var(--color-text-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.program-link:hover {
  color: var(--color-sage);
}

/* ============ INFO SECTIONS ============ */
.info-page {
  max-width: 700px;
  margin: 0 auto;
  padding: 100px 40px;
}

.info-page-notice {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.8px;
  color: var(--color-text-primary);
  text-align: center;
  margin-top: -40px;
  margin-bottom: 60px;
  font-style: italic;
}

.info-section {
  margin-bottom: 100px;
}

.info-section:last-child {
  margin-bottom: 0;
}

.info-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 36px;
}

.info-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.info-icon svg {
  width: 100%;
  height: 100%;
}

.info-header h3 {
  font-family: var(--font-didot);
  font-size: 48px;
  font-weight: 400;
  line-height: 60px;
  letter-spacing: 2.4px;
  color: var(--color-text-primary);
}

.info-section p {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 400;
  line-height: 32px;
  letter-spacing: 1.2px;
  color: var(--color-text-primary);
  margin-bottom: 16px;
}

.info-section p:last-child {
  margin-bottom: 0;
}

.info-section strong {
  font-weight: 600;
}

.info-section a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.info-section a:hover {
  color: var(--color-sage);
}

.map-container {
  width: 100%;
  max-width: 100%;
  margin-top: 40px;
  margin-bottom: 0;
  border-radius: 8px;
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: 8px;
  display: block;
}

/* ============ TIMELINE (Our Story) ============ */
.story-intro {
  display: flex;
  gap: 60px;
  align-items: flex-start;
  padding: 100px var(--content-padding);
  max-width: var(--max-width);
  margin: 0 auto;
}

.story-intro .col-image img {
  width: 494px;
  height: 587px;
  object-fit: cover;
  border-radius: 8px;
}

.story-intro .col-content {
  padding-top: 100px;
}

.story-intro .col-content h2 {
  font-family: var(--font-didot);
  font-size: 48px;
  font-weight: 400;
  line-height: 60px;
  letter-spacing: 2.4px;
  margin-bottom: 36px;
}

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

.timeline {
  background: #f2f7fa;
}

.timeline-item {
  display: flex;
  gap: 60px;
  align-items: center;
  padding: 100px var(--content-padding);
  max-width: 1440px;
  margin: 0 auto;
}

.timeline-item.reverse {
  flex-direction: row-reverse;
  justify-content: space-between;
}

.timeline-image {
  flex-shrink: 0;
}

.timeline-image img {
  width: 440px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

/* Specific image sizes per section from Figma */
.timeline-image--mars img {
  width: 494px;
  height: 587px;
}

.timeline-image--avstand {
  width: 772px;
  max-width: 100%;
  height: 435px;
}

.timeline-image--avstand img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.timeline-image--lillestrom img {
  width: 440px;
  max-width: 100%;
  height: auto;
}

.timeline-image--nesodden img {
  width: 440px;
  max-width: 100%;
  height: auto;
}

.timeline-image--family img {
  width: 550px;
  height: 734px;
}

.timeline-image--memory img {
  width: 440px;
  max-width: 100%;
  height: auto;
}

.timeline-image--forever img {
  width: 494px;
  height: 587px;
}

.timeline-content {
  flex: 1;
  max-width: 700px;
  padding: 25px 0;
}

.timeline-content h3 {
  font-family: var(--font-didot);
  font-size: 48px;
  font-weight: 400;
  line-height: 60px;
  letter-spacing: 2.4px;
  color: #394337;
  margin-bottom: 36px;
}

.timeline-content p {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 400;
  line-height: 32px;
  letter-spacing: 1.2px;
  color: #394337;
  margin-bottom: 16px;
}

.timeline-content p:last-child {
  margin-bottom: 0;
}

/* ============ RSVP FORM ============ */
.rsvp-page {
  background: #F2F7FA;
  padding: 100px 40px;
}

.rsvp-container {
  max-width: 550px;
  margin: 0 auto;
  width: 100%;
}

/* Ensure form is wide enough for radio button text on laptop */
@media (min-width: 1025px) {
  .rsvp-container {
    max-width: 650px;
  }
  
  .rsvp-form-card {
    min-width: 0;
  }
  
  .form-radio-options {
    width: 100%;
    overflow: visible;
  }
}

.rsvp-intro {
  text-align: left;
  margin-bottom: 60px;
}

.rsvp-intro h2 {
  font-family: var(--font-didot);
  font-size: 48px;
  font-weight: 400;
  line-height: 60px;
  letter-spacing: 2.4px;
  color: var(--color-text-primary);
}

.rsvp-form-card {
  background: #FFFFFF !important;
  padding: 40px;
  border-radius: 16px;
  border: none;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.15);
  min-width: 0;
}

#rsvp-form {
  background: transparent;
}

.rsvp-form-card h3 {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 700;
  line-height: 32px;
  letter-spacing: 1px;
  margin-bottom: 40px;
  color: #3b4256;
}

.form-group {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group label {
  display: block;
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 400;
  line-height: 32px;
  letter-spacing: 1px;
  color: #565f77;
}

.form-group label.form-radio-option {
  display: flex;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0 11px;
  font-family: var(--font-body);
  font-size: 20px;
  border: 1px solid #c1c1c1;
  border-radius: 4px;
  background: #f8fafc;
  color: var(--color-text-primary);
  transition: border-color 0.3s ease;
  height: 48px;
  box-sizing: border-box;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #b3b3b3;
}

.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-sage);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23394337' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
  height: auto;
}

.form-group-bus {
  margin-top: 24px;
  margin-bottom: 24px;
  width: 100%;
  min-width: 0;
}

.form-bus-question {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 400;
  line-height: 32px;
  letter-spacing: 1px;
  color: #565f77;
  margin: 0;
}

.form-radio-group {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 12px;
  width: 100%;
  min-width: 0;
}

.form-radio-options {
  display: flex;
  gap: 8px;
  margin-bottom: 0;
  flex-wrap: nowrap;
  align-items: center;
}

.form-radio-option {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
  white-space: nowrap;
  min-width: max-content;
}

.form-radio-option:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.form-radio-option-full {
  width: 100%;
  margin-top: 0;
}

.form-radio-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-custom {
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  border: 1px solid #616161;
  border-radius: 2px;
  background: var(--color-white);
  position: relative;
  flex-shrink: 0;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.form-radio-option input[type="radio"]:checked + .radio-custom {
  background: #3C4A39;
  border-color: #3C4A39;
}

.form-radio-option input[type="radio"]:checked + .radio-custom::after {
  content: '✓';
  position: absolute;
  color: var(--color-white);
  font-size: 14px;
  font-weight: bold;
  line-height: 1;
}

.radio-label {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  color: #616161;
  white-space: nowrap;
  flex-shrink: 0;
  overflow: visible;
  text-overflow: clip;
  display: inline-block;
  vertical-align: middle;
}

.form-divider {
  height: 1px;
  background: #E0E0E0;
  margin: 40px 0;
  width: 100%;
}

.form-submit {
  text-align: center;
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.form-submit .btn-primary {
  width: 100%;
  background: #3c4a39;
  color: #eef5ee;
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  padding: 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  min-width: auto;
}

.form-submit .btn-primary:hover {
  border-radius: 6px;
  border: none;
  background: #CDDDCD;
  box-shadow: inset 0 0 0 1px #3C4A39, 0 4px 4px 0 rgba(0, 0, 0, 0.25);
  color: #3C4A39;
}

.form-submit .btn-primary:active {
  background: #252a24;
  color: #cdddcd;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
}

.form-submit .btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Form messages */
.form-message {
  padding: 16px;
  border-radius: 6px;
  margin-bottom: 24px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}

.form-message-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.form-message.hidden {
  display: none;
}

/* ============ FOOTER ============ */
.site-footer {
  position: relative;
  width: 100%;
  min-height: 148px;
  overflow: hidden;
}

/* White base layer */
.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: white;
}

.footer-bg {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  overflow: hidden;
}

.footer-bg img {
  position: absolute;
  width: 100%;
  height: 436%;
  top: 0;
  left: 0;
  max-width: none;
  object-fit: cover;
}

.footer-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 40px;
  min-height: 148px;
}

.footer-logo .logo-icon {
  width: 92px;
  height: 68px;
}

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-link {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 24px;
  letter-spacing: 1.2px;
  color: var(--color-text-dark);
  padding: 8px 24px;
  transition: color 0.3s ease;
  position: relative;
}

.footer-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 24px;
  right: 24px;
  height: 1.5px;
  background: currentColor;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.footer-link:hover {
  color: #6b7969;
}

.footer-link:hover::after {
  opacity: 1;
}

.footer-menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-dark);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 18px;
  letter-spacing: 0.9px;
  z-index: 10001;
  position: relative;
}

.footer-menu-toggle .hamburger-icon {
  position: relative;
  width: 24px;
  height: 16px;
}

.footer-menu-toggle .hamburger-icon span {
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--color-text-dark);
  transition: all 0.3s ease;
}

.footer-menu-toggle .hamburger-icon span:nth-child(1) {
  top: 0;
}

.footer-menu-toggle .hamburger-icon span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.footer-menu-toggle .hamburger-icon span:nth-child(3) {
  bottom: 0;
}

/* Hamburger to X animation when active */
.footer-menu-toggle.active .hamburger-icon span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

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

.footer-menu-toggle.active .hamburger-icon span:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

.footer-menu-toggle .menu-text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 18px;
  letter-spacing: 0.9px;
  color: #3c4a39;
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-menu-toggle .menu-text-close {
  display: none;
}

.footer-menu-toggle.active .menu-text-open {
  display: none;
}

.footer-menu-toggle.active .menu-text-close {
  display: inline;
}

.footer-menu-toggle:hover .hamburger-icon span {
  background: #6b7969;
}

.footer-menu-toggle:hover .menu-text {
  color: #6b7969;
  text-decoration: underline;
}

.footer-menu-toggle:active .hamburger-icon span {
  background: #252a24;
}

.footer-menu-toggle:active .menu-text {
  color: #252a24;
  text-decoration: underline;
}

  .footer-nav .footer-lang-switch {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: 24px;
  }
  
  .footer-nav .footer-lang-switch .lang-btn {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 0.7px;
    color: var(--color-text-dark);
    padding: 8px 8px;
  }
  
  .footer-nav .footer-lang-switch .lang-divider {
    font-size: 14px;
    color: var(--color-text-dark);
  }
  
  @media (max-width: 768px) {
    .footer-nav .footer-lang-switch {
      display: none;
    }
  }


/* ============ MOBILE STYLES ============ */
@media (max-width: 1200px) {
  :root {
    --content-padding: 40px;
  }
  
  .col-image img {
    width: 400px;
  }
  
  .btn-large {
    width: 675px;
    max-width: calc(100% - 40px);
  }
}

/* Footer menu: switch to mobile menu when text breaks (around 850px) */
@media (max-width: 850px) {
  .footer-nav {
    display: none;
  }
  
  .footer-menu-toggle {
    display: flex;
  }
  
  /* Enable mobile menu styles at 850px breakpoint */
  .main-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
    flex-direction: row;
  }
  
  .main-nav.active {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    width: 100vw;
    background: var(--color-bg);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 32px;
    padding: 110px 20px 80px;
    z-index: 9999;
  }
  
  /* Ensure header and footer toggles are visible above menu */
  body:has(.main-nav.active) .site-header {
    z-index: 10000;
    position: relative;
  }
  
  body:has(.main-nav.active) .site-footer {
    z-index: 10000;
    position: relative;
  }
  
  .main-nav.active .main-nav-lang-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: absolute;
    bottom: 24px;
    left: 20px;
    right: 20px;
    z-index: 10000;
  }
  
  .main-nav.active .main-nav-lang-switch .lang-btn {
    font-size: 18px;
    color: var(--color-text-dark);
  }
  
  .main-nav.active .main-nav-lang-switch .lang-divider {
    color: var(--color-text-dark);
  }
  
  body:has(.main-nav.active) {
    overflow: hidden;
  }
  
  .main-nav.active .nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 300;
    padding: 8px 12px;
    letter-spacing: 0.9px;
    color: #3c4a39;
  }
  
  .main-nav.active .nav-link:hover {
    color: #6b7969;
  }
  
  .main-nav.active .nav-link::after {
    display: block;
    left: 12px;
    right: 12px;
  }
}

/* iPad / Tablet specific styles */
@media (min-width: 768px) and (max-width: 1024px) {
  :root {
    --content-padding: 60px;
  }
  /* Intro Section - iPad layout: headline first, then image and text side by side */
  .intro-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  
  /* Show iPad title, hide desktop title */
  .intro-section-title-ipad {
    display: block;
    width: 100%;
    margin-bottom: 24px;
    font-size: 48px;
    line-height: 60px;
    letter-spacing: 2.4px;
  }
  
  .intro-section-title-desktop {
    display: none;
  }
  
  .intro-section .two-col {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 60px;
    width: 100%;
  }
  
  .intro-section .col-image {
    flex-shrink: 0;
    width: 340px;
  }
  
  .intro-section .col-image img {
    width: 340px;
    height: 404px;
    object-fit: cover;
    border-radius: 16px;
  }
  
  .intro-section .col-content {
    flex: 1;
    min-width: 0;
    padding: 25px 0;
  }
  
  .intro-section .col-content p {
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.8px;
  }
  
  .intro-section .col-content .read-more {
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.8px;
  }
  
  /* Program Preview - iPad layout: headline first, then text and image side by side */
  .program-preview-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  
  /* Show iPad title, hide desktop title */
  .program-preview-title-ipad {
    display: block;
    width: 100%;
    margin-bottom: 24px;
    font-size: 48px;
    line-height: 60px;
    letter-spacing: 2.4px;
  }
  
  .program-preview-title-desktop {
    display: none;
  }
  
  .program-preview {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
  }
  
  .program-preview-content {
    flex: 1;
    min-width: 0;
    padding: 25px 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  
  .program-preview-image {
    width: 281px;
    flex-shrink: 0;
    aspect-ratio: 281 / 422;
  }
  
  .program-item {
    gap: 24px;
    font-size: 16px;
    line-height: 32px;
    letter-spacing: 0.8px;
  }
  
  .program-preview .program-link {
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.8px;
  }
  
  .program-preview .program-note {
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.8px;
  }
  
  /* Override padding for info and rsvp pages on iPad */
  .info-page,
  .rsvp-page {
    padding: 100px 60px;
  }
  
  .info-page-notice {
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 50px;
  }
  
  /* Stack radio options vertically on iPad */
  .form-radio-options {
    flex-direction: column;
    gap: 0;
  }
  
  .form-radio-option {
    width: 100%;
    flex: none;
    white-space: normal;
  }
  
  .radio-label {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
}

/* iPad / Tablet navigation - compact version */
@media (max-width: 1100px) {
  /* Ensure headline is always larger than paragraph text */
  .intro-section-title,
  .program-preview-title {
    font-size: 40px;
    line-height: 50px;
    letter-spacing: 2px;
  }
  
  /* Reduce text size to maintain proper hierarchy with headline */
  .intro-section .col-content p {
    font-size: 18px;
    line-height: 28px;
    letter-spacing: 0.9px;
  }
  
  .intro-section .col-content .read-more {
    font-size: 18px;
    line-height: 28px;
    letter-spacing: 0.9px;
  }
  
  .site-header {
    padding: 24px 30px;
  }
  
  /* Smaller logo for tablet */
  .logo-icon {
    width: 62px;
    height: 46px;
  }
  
  .logo-icon .logo-m {
    width: 46px;
    height: 38px;
  }
  
  .logo-icon .logo-s {
    top: 6px;
    left: 26px;
    width: 36px;
    height: 39px;
  }
  
  /* Compact nav links */
  .nav-link {
    font-size: 18px;
    letter-spacing: 0.9px;
    padding: 8px 12px;
  }
  
  .nav-link::after {
    left: 12px;
    right: 12px;
  }
  
  .main-nav {
    gap: 16px;
  }
  
  /* Hide language switcher on tablet to save space */
  .header-lang-switch {
    display: none;
  }
  
  /* Footer tablet styles */
  .footer-content {
    padding: 24px 40px;
  }
  
  .footer-logo .logo-icon {
    width: 62px;
    height: 46px;
  }
  
  .footer-logo .logo-icon .logo-m {
    width: 46px;
    height: 38px;
  }
  
  .footer-logo .logo-icon .logo-s {
    top: 6px;
    left: 26px;
    width: 36px;
    height: 39px;
  }
  
  .footer-link {
    font-size: 18px;
    letter-spacing: 0.9px;
    padding: 8px 12px;
  }
  
  .footer-link::after {
    left: 12px;
    right: 12px;
  }
  
  /* Scale down hero titles */
  .page-hero--story .hero-title,
  .page-hero--program .hero-title,
  .page-hero--info .hero-title,
  .page-hero--rsvp .hero-title {
    font-size: 72px;
    letter-spacing: 3.6px;
  }
  
  /* Timeline iPad styles - Vår historie page */
  .timeline-item {
    gap: 24px;
    padding: 60px 40px;
  }
  
  .timeline-image img,
  .timeline-image--mars img,
  .timeline-image--lillestrom img,
  .timeline-image--nesodden img,
  .timeline-image--family img,
  .timeline-image--memory img,
  .timeline-image--forever img {
    width: 340px;
    height: 404px;
    border-radius: 8px;
  }
  
  .timeline-image--avstand {
    width: 100%;
    max-width: 340px;
    height: auto;
  }
  
  .timeline-image--avstand img {
    width: 100%;
    max-width: 340px;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
  }
  
  .timeline-content h3 {
    font-size: 40px;
    line-height: 60px;
    letter-spacing: 2px;
  }
  
  .timeline-content p {
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.8px;
  }
  
  .story-intro {
    padding: 60px 40px;
    gap: 24px;
  }
  
  .story-intro .col-image img {
    width: 340px;
    height: 404px;
  }
  
  .story-intro .col-content h2 {
    font-size: 40px;
    line-height: 60px;
    letter-spacing: 2px;
  }
  
  .story-intro .col-content p {
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.8px;
  }
}

/* Smaller tablet - reduce image size further */
@media (max-width: 900px) {
  .timeline-item {
    gap: 20px;
    padding: 60px 30px;
  }
  
  .timeline-image img,
  .timeline-image--mars img,
  .timeline-image--lillestrom img,
  .timeline-image--nesodden img,
  .timeline-image--family img,
  .timeline-image--memory img,
  .timeline-image--forever img {
    width: 280px;
    height: 340px;
  }
  
  .timeline-image--avstand {
    width: 100%;
    max-width: 280px;
    height: auto;
  }
  
  .timeline-image--avstand img {
    width: 100%;
    max-width: 280px;
    height: auto;
  }
  
  .story-intro {
    gap: 20px;
    padding: 60px 30px;
  }
  
  .story-intro .col-image img {
    width: 280px;
    height: 340px;
  }
  
  .timeline-content h3,
  .story-intro .col-content h2 {
    font-size: 32px;
    line-height: 44px;
  }
  
  .timeline-content p,
  .story-intro .col-content p {
    font-size: 14px;
    line-height: 20px;
  }
}

@media (max-width: 650px) {
  .two-col,
  .two-col.reverse {
    flex-direction: column;
    gap: 40px;
  }
  
  /* Timeline sections - Title, Image, Text order */
  .timeline-item,
  .timeline-item.reverse,
  .story-intro {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  
  .timeline-content,
  .story-intro .col-content {
    display: contents;
  }
  
  .timeline-content h3,
  .story-intro .col-content h2 {
    order: 1;
    text-align: left;
    margin-bottom: 0;
  }
  
  .timeline-image,
  .timeline-image--mars,
  .timeline-image--avstand,
  .timeline-image--lillestrom,
  .timeline-image--nesodden,
  .timeline-image--family,
  .timeline-image--memory,
  .timeline-image--forever,
  .story-intro .col-image {
    order: 2;
    width: 100%;
  }
  
  .timeline-content p,
  .story-intro .col-content p {
    order: 3;
    text-align: left;
    margin-bottom: 0;
  }
  
  .col-image img,
  .timeline-image img,
  .timeline-image--mars img,
  .timeline-image--avstand img,
  .timeline-image--lillestrom img,
  .timeline-image--nesodden img,
  .timeline-image--family img,
  .timeline-image--memory img,
  .timeline-image--forever img,
  .story-intro .col-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 8px;
  }
  
  .timeline-image--avstand {
    width: 100%;
    height: auto;
  }
  
  .col-content,
  .timeline-content {
    max-width: 100%;
  }
  
  .story-intro .col-content {
    padding-top: 0;
  }
  
  .intro-section-title,
  .col-content h2,
  .timeline-content h3,
  .info-header h3,
  .program-section h2,
  .program-page-title,
  .program-preview-title {
    font-size: 36px;
    line-height: 48px;
  }
  
  .program-page-section {
    padding: 60px 40px;
  }
  
  .program-page-item,
  .program-page-note {
    font-size: 18px;
    line-height: 28px;
  }
  
  .program-page-item {
    gap: 24px;
  }
  
  .col-content p,
  .timeline-content p,
  .info-section p,
  .program-list li {
    font-size: 18px;
    line-height: 28px;
  }
  
  .col-content .read-more {
    font-size: 18px;
    line-height: 28px;
  }
  
  .intro-section-title em,
  .col-content h2 em {
    font-size: 48px;
    letter-spacing: 2.4px;
  }
  
  /* Program Preview - Mobile (keep existing mobile styles) */
  .program-preview {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 24px;
    justify-content: flex-start;
    width: 100%;
  }
  
  .program-preview-title {
    width: 100%;
    margin-bottom: 0;
    flex-basis: 100%;
    white-space: normal;
  }
  
  .program-preview-content {
    width: auto;
    gap: 24px;
    padding: 25px 0;
    flex-shrink: 1;
    min-width: 0;
  }
  
  .program-preview-image {
    width: 281px;
    max-width: 40%;
    height: auto;
    aspect-ratio: 281 / 422;
    flex-shrink: 0;
  }
  
  .program-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .program-item {
    gap: 24px;
    font-size: 16px;
    letter-spacing: 0.8px;
    line-height: 32px;
    white-space: normal;
  }
  
  .program-preview .program-link {
    font-size: 16px;
    white-space: normal;
    letter-spacing: 0.8px;
    line-height: 24px;
  }
  
  .program-preview .program-note {
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.8px;
  }
  
  /* Continue scaling hero titles */
  .page-hero--story .hero-title,
  .page-hero--program .hero-title,
  .page-hero--info .hero-title,
  .page-hero--rsvp .hero-title {
    font-size: 56px;
    letter-spacing: 2.8px;
  }
}

/* Mobile breakpoint - hamburger menu */
@media (max-width: 768px) {
  /* Mobile menu */
  .main-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
    flex-direction: row;
  }
  
  .main-nav.active {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    width: 100vw;
    background: var(--color-bg);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 32px;
    padding: 110px 20px 80px;
    z-index: 9999;
  }
  
  /* Hide language switcher in main-nav on desktop/tablet */
  .main-nav-lang-switch {
    display: none;
  }
  
  /* Show language switcher only in mobile menu when active */
  .main-nav.active .main-nav-lang-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: absolute;
    bottom: 24px;
    left: 20px;
    right: 20px;
    z-index: 1000;
  }
  
  .main-nav.active .main-nav-lang-switch .lang-btn {
    font-size: 18px;
    color: var(--color-text-dark);
  }
  
  .main-nav.active .main-nav-lang-switch .lang-divider {
    color: var(--color-text-dark);
  }
  
  /* Prevent body scroll when menu is open */
  body:has(.main-nav.active) {
    overflow: hidden;
  }
  
  .main-nav.active .nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 300;
    padding: 8px 12px;
    letter-spacing: 0.9px;
    color: #3c4a39;
  }
  
  .main-nav.active .nav-link:hover {
    color: #6b7969;
  }
  
  .main-nav.active .nav-link::after {
    display: block;
    left: 12px;
    right: 12px;
  }
  
  .site-header {
    padding: 20px;
  }
  
  .section,
  .story-intro {
    padding: 100px 40px;
  }
  
  .info-page,
  .rsvp-page {
    padding: 100px 40px;
  }
  
  .info-page-notice {
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 40px;
  }
  
  /* Stack radio options vertically on iPhone */
  .form-radio-options {
    flex-direction: column;
    gap: 0;
  }
  
  .form-radio-option {
    width: 100%;
    flex: none;
    white-space: normal;
  }
  
  .radio-label {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
  
  .radio-label {
    white-space: normal;
  }
  
  /* Timeline iPhone layout - Title, Image, Text order */
  .timeline-item,
  .timeline-item.reverse {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 40px 24px;
  }
  
  .timeline-content {
    display: contents;
  }
  
  .timeline-content h3 {
    order: 1;
    font-size: 24px;
    line-height: 32px;
    letter-spacing: 1.2px;
    margin-bottom: 0;
    text-align: left;
  }
  
  .timeline-image,
  .timeline-image--mars,
  .timeline-image--avstand,
  .timeline-image--lillestrom,
  .timeline-image--nesodden,
  .timeline-image--family,
  .timeline-image--memory,
  .timeline-image--forever {
    order: 2;
    width: 100%;
  }
  
  .timeline-image img,
  .timeline-image--mars img,
  .timeline-image--avstand img,
  .timeline-image--lillestrom img,
  .timeline-image--nesodden img,
  .timeline-image--family img,
  .timeline-image--memory img,
  .timeline-image--forever img {
    width: 100%;
    height: auto;
    max-height: 404px;
    object-fit: cover;
    border-radius: 8px;
  }
  
  .timeline-content p {
    order: 3;
    font-size: 14px;
    line-height: 18px;
    letter-spacing: 0.7px;
    margin-bottom: 0;
    text-align: left;
  }
  
  .story-intro {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 40px 24px;
  }
  
  .story-intro .col-content {
    display: contents;
  }
  
  .story-intro .col-content h2 {
    order: 1;
    font-size: 24px;
    line-height: 32px;
    letter-spacing: 1.2px;
    margin-bottom: 0;
    text-align: left;
  }
  
  .story-intro .col-image {
    order: 2;
    width: 100%;
  }
  
  .story-intro .col-image img {
    width: 100%;
    height: auto;
    max-height: 404px;
    object-fit: cover;
    border-radius: 8px;
  }
  
  .story-intro .col-content p {
    order: 3;
    font-size: 14px;
    line-height: 18px;
    letter-spacing: 0.7px;
    margin-bottom: 0;
    text-align: left;
  }
  
  .program-page-section {
    padding: 60px 20px;
  }
  
  .home-hero {
    min-height: 500px;
  }
  
  .home-hero-content {
    height: auto;
    padding: 100px 20px 60px;
  }
  
  .couple-names {
    font-size: 40px !important;
    letter-spacing: 2px;
  }
  
  .wedding-date {
    font-size: 28px;
  }
  
  .wedding-location-script {
    font-size: 32px;
  }
  
  .page-hero h1 {
    font-size: 40px;
  }
  
  .page-hero .subtitle {
    font-size: 28px;
  }
  
  /* Hero titles for page variants */
  .page-hero--story .hero-title,
  .page-hero--program .hero-title,
  .page-hero--info .hero-title,
  .page-hero--rsvp .hero-title {
    font-size: 40px;
    letter-spacing: 2px;
  }
  
  .page-hero--story .subtitle,
  .page-hero--program .subtitle,
  .page-hero--info .subtitle,
  .page-hero--rsvp .subtitle {
    font-size: 32px;
    line-height: 40px;
  }
  
  /* CTA band mobile */
  .cta-band .cta-text {
    font-size: 32px;
    line-height: 40px;
    letter-spacing: 1.6px;
  }
  
  .btn-large {
    font-size: 16px;
    letter-spacing: 0.8px;
    padding: 24px;
    width: auto;
    height: auto;
  }
  
  .footer-content {
    padding: 24px;
  }
  
  .footer-logo .logo-icon {
    width: 62px;
    height: 46px;
  }
  
  .footer-logo .logo-icon .logo-m {
    width: 46px;
    height: 38px;
  }
  
  .footer-logo .logo-icon .logo-s {
    top: 6px;
    left: 26px;
    width: 36px;
    height: 39px;
  }
  
  
  .login-hero {
    height: 50vh;
    min-height: 350px;
  }
  
  .login-container {
    padding: 40px 24px;
  }
  
  .login-container h2 {
    font-size: 32px;
    line-height: 40px;
    margin-bottom: 40px;
  }
  
  .info-icon {
    width: 40px;
    height: 40px;
  }
  
  .info-header {
    gap: 16px;
  }
  
  .rsvp-intro h2 {
    font-size: 24px;
    line-height: 32px;
    letter-spacing: 1.2px;
  }
  
  /* Intro Section - Mobile */
  /* Show iPad title, hide desktop title on mobile */
  .intro-section-title-ipad {
    display: block;
    font-size: 24px;
    line-height: 32px;
    letter-spacing: 1.2px;
    margin-bottom: 24px;
  }
  
  .intro-section-title-desktop {
    display: none;
  }
  
  .intro-section-title em {
    font-size: 32px;
    letter-spacing: 1.6px;
  }
  
  /* Language Selection Screen - Mobile */
  .language-screen {
    padding: 20px;
    align-items: flex-start;
    padding-top: 60px;
  }
  
  .language-selection-container {
    padding: 20px;
    width: 100%;
    max-width: 100%;
  }
  
  .language-title {
    font-size: 24px;
    line-height: 32px;
    margin-bottom: 60px;
    white-space: normal;
    padding: 0 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  
  .language-switch-large {
    gap: 1rem;
  }
  
  .lang-select-btn-large {
    font-size: 24px;
    position: static;
    z-index: auto;
  }
  
  .lang-divider-large {
    font-size: 24px;
  }
  
  .login-footer {
    padding: 20px;
    justify-content: center;
  }
  
  /* Program Preview - iPhone */
  .program-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: flex-start;
    width: 100%;
  }
  
  /* Show iPad title, hide desktop title on mobile */
  .program-preview-title-ipad {
    display: block;
    flex-basis: 100%;
    font-size: 24px;
    line-height: 32px;
    letter-spacing: 1.2px;
    margin-bottom: 24px;
    white-space: normal;
  }
  
  .program-preview-title-desktop {
    display: none;
  }
  
  .program-preview-content {
    width: auto;
    gap: 18px;
    padding: 25px 0;
    flex-shrink: 0;
  }
  
  .program-item {
    font-size: 14px;
    line-height: 18px;
    letter-spacing: 0.7px;
    gap: 18px;
    white-space: normal;
  }
  
  .program-time {
    display: none;
  }
  
  .program-preview .program-link {
    font-size: 14px;
    line-height: 18px;
    letter-spacing: 0.7px;
    white-space: normal;
  }
  
  .program-preview .program-note {
    font-size: 14px;
    line-height: 18px;
    letter-spacing: 0.7px;
  }
  
  .program-preview-image {
    width: 152px;
    max-width: 40%;
    height: auto;
    aspect-ratio: 152 / 270;
    flex-shrink: 0;
  }
  
  .program-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

@media (max-width: 480px) {
  .couple-names {
    font-size: 32px !important;
  }
  
  .cta-band {
    display: flex;
    padding: 40px;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 32px;
  }
  
  .cta-band .cta-text {
    color: #3C4A39;
    text-align: center;
    font-family: 'Great Vibes', cursive;
    font-size: 32px;
    font-style: normal;
    font-weight: 400;
    line-height: 40px;
    letter-spacing: 1.6px;
  }
  
  .cta-band .btn-large {
    display: flex;
    padding: 24px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-family: var(--font-didot);
    font-size: 16px;
    line-height: 32px;
    letter-spacing: 0.8px;
  }
  
  .rsvp-form-card {
    padding: 24px;
  }
}
