/*
Elegant Minimalist Palette:
  Background: Pure white
  Primary: Deep forest green
  Secondary: Warm gold accent
  Text: Charcoal
Typografi:
  All text: Poppins (elegant sans-serif)
*/
:root {
  --bg: #ffffff;
  --bg-alt: #fafafa;
  --primary: #2d3e1f;
  --secondary: #d4af37;
  --text: #2c2c2c;
  --text-light: #666666;
  --text-muted: #999999;
  --max-width: 1100px;
  --border-radius: 2px;
  --shadow: 0 2px 40px rgba(0,0,0,0.08);
  --shadow-light: 0 1px 20px rgba(0,0,0,0.04);
}

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  letter-spacing: 0.01em;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navigasjon */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  z-index: 1000;
  padding: 1.5rem 0;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(45, 62, 31, 0.08);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-light);
  padding: 1rem 0;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo a {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color 0.3s ease;
  position: relative;
}

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

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--secondary);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
  align-items: center;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--primary);
  margin: 4px 0;
  transition: 0.3s;
  display: block;
}

/* Hero seksjon */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 0 2rem;
}

.hero-text h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 3.5rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
  color: white;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.heart {
  color: var(--secondary);
  font-weight: 400;
  margin: 0 0.5rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.9;
}

.wedding-date {
  font-size: 1.4rem;
  margin-bottom: 3rem;
  font-weight: 300;
  letter-spacing: 0.05em;
}

.countdown-container {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  border: 1px solid rgba(255,255,255,0.15);
  max-width: 500px;
  margin: 0 auto;
}

.countdown {
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.countdown-item {
  text-align: center;
}

.countdown-number {
  display: block;
  font-size: 2.2rem;
  font-weight: 300;
  color: white;
  line-height: 1;
}

.countdown-label {
  display: block;
  font-size: 0.8rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.3rem;
  font-weight: 400;
}

.wedding-day {
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
}

/* Hovedinnhold */
.main-content {
  position: relative;
  z-index: 2;
  background: var(--bg);
}

/* Bryllupstekst seksjon */
.wedding-intro {
  padding: 6rem 0;
  background: var(--bg);
}

.intro-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.intro-content h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.2rem;
  font-weight: 400;
  margin-bottom: 3rem;
  color: var(--primary);
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.intro-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 2rem;
  font-weight: 300;
  letter-spacing: 0.01em;
}

/* Program seksjon */
.program {
  padding: 6rem 0;
  background: var(--bg-alt);
}

.program h2 {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 2.2rem;
  font-weight: 400;
  margin-bottom: 4rem;
  color: var(--primary);
  letter-spacing: 0.02em;
}

.program-simple {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.program-day {
  margin-bottom: 4rem;
  background: transparent;
  border: none;
  box-shadow: none;
  text-align: center;
}

.program-day.main-day {
  border: none;
  position: relative;
}

/* Removed golden line from Saturday */

.program-day h3 {
  background: transparent;
  color: var(--primary);
  padding: 0 0 1.5rem 0;
  margin: 0 0 2rem 0;
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid rgba(45, 62, 31, 0.1);
}

.event-simple {
  display: block;
  margin-bottom: 2rem;
  padding: 0;
  border: none;
  transition: all 0.3s ease;
  text-align: center;
}

.event-simple:last-child {
  border-bottom: none;
}

.event-simple:hover {
  transform: none;
}

.event-simple.highlight {
  background: transparent;
  border: none;
  position: relative;
}

.event-simple.highlight::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--secondary);
  border-radius: 50%;
}

.time {
  font-weight: 500;
  color: var(--primary);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.5rem;
}

.event-details {
  text-align: center;
}

.event-details h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 0.3rem;
  color: var(--text);
  letter-spacing: 0.01em;
  text-align: center;
}

.event-details p {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 300;
  text-align: center;
}

/* Praktisk info */
.info {
  padding: 6rem 0;
  background: var(--bg);
}

.info h2 {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 2.2rem;
  font-weight: 400;
  margin-bottom: 4rem;
  color: var(--primary);
  letter-spacing: 0.02em;
}

/* Top sections: Kleskode and Overnatting stacked */
.info-top-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  margin-bottom: 5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.info-section {
  width: 100%;
  max-width: 400px;
}

/* Bottom row: Venues side by side */
.info-bottom-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 4rem;
  max-width: 900px;
  margin: 0 auto;
}

.venue-section {
  flex: 1;
  max-width: 400px;
  display: flex;
  flex-direction: column;
}

.venue-section .venue-gallery {
  flex-grow: 1;
}

.venue-section p {
  margin-bottom: 0.5rem;
}

.venue-section a {
  margin-top: 0.5rem;
}

/* Center-aligned styling */
.center-aligned {
  text-align: center;
}

.center-aligned h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
}

.center-aligned p {
  margin-bottom: 1rem;
  color: var(--text-light);
  font-weight: 300;
  line-height: 1.6;
  text-align: center;
}

.center-aligned p strong {
  color: var(--text);
  font-weight: 400;
}

.center-aligned a {
  display: block;
  margin: 0.5rem auto;
  width: fit-content;
}

/* Venue image galleries */
.venue-gallery {
  position: relative;
  width: 100%;
  height: 250px;
  border-radius: var(--border-radius);
  margin: 1.5rem 0;
  box-shadow: var(--shadow-light);
  overflow: hidden;
  transition: all 0.3s ease;
}

.venue-gallery:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.venue-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  border-radius: var(--border-radius);
}

.venue-image.active {
  opacity: 1;
}

.gallery-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: rgba(212, 175, 55, 0.9);
  border-color: rgba(212, 175, 55, 1);
  transform: scale(1.1);
}

.dot:hover {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.9);
}

/* Gallery preview (bottom section) - no dots, just rotation */
.gallery-preview .gallery-dots {
  display: none;
}

/* Legacy placeholder styles - kept for any remaining placeholders */
.venue-placeholder {
  width: 100%;
  height: 200px;
  border-radius: var(--border-radius);
  margin: 1rem 0;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--accent);
  position: relative;
}

.venue-placeholder:hover {
  transform: scale(1.02);
}

.venue-placeholder .placeholder-text {
  color: var(--accent);
  font-weight: 600;
  font-size: 1.1rem;
  text-align: center;
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--primary);
  padding: 0.8rem 0;
  border: none;
  border-bottom: 1px solid var(--primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 0.5rem;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  color: var(--secondary);
  border-color: var(--secondary);
  transform: translateX(5px);
}

/* RSVP */
.rsvp {
  padding: 6rem 0;
  background: var(--bg-alt);
}

.rsvp h2 {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 2.2rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: var(--primary);
  letter-spacing: 0.02em;
}

.rsvp-intro {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--text-light);
  font-weight: 300;
}

.rsvp-note {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 300;
}

.rsvp-form {
  max-width: 500px;
  margin: 0 auto;
  background: var(--bg);
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  border: 1px solid rgba(45, 62, 31, 0.08);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 400;
  color: var(--primary);
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(45, 62, 31, 0.15);
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  background: var(--bg);
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(45, 62, 31, 0.1);
}

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

.btn-primary {
  background: var(--primary);
  color: white;
  border: none;
  padding: 1.2rem 2rem;
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  font-family: 'Poppins', sans-serif;
}

.btn-primary:hover {
  background: var(--secondary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-light);
}

.btn-primary:disabled {
  background: var(--text-muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Form validation styles */
.error-message {
  color: #d32f2f;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}

.error-message.show {
  display: block;
}

.form-group input.error,
.form-group select.error {
  border-color: #d32f2f;
}

.form-status {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 4px;
  text-align: center;
  font-weight: 500;
  display: none;
}

.form-status.success {
  background: #e8f5e8;
  color: #2e7d32;
  border: 1px solid #4caf50;
  display: block;
}

.form-status.error {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #f44336;
  display: block;
}

.form-status.loading {
  background: #e3f2fd;
  color: #1565c0;
  border: 1px solid #2196f3;
  display: block;
}

/* Galleri */
.galleri {
  padding: 6rem 0;
  background: var(--bg);
}

.galleri h2 {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 2.2rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: var(--primary);
  letter-spacing: 0.02em;
}

.gallery-intro {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 3rem;
  color: var(--text-light);
  font-weight: 300;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
}

.gallery-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* Venue galleries in praktisk section */
.venue-section .venue-gallery {
  margin: 1.5rem 0;
  height: 250px;
}

.gallery-item .venue-gallery {
  margin: 0;
  height: 200px;
}

.gallery-item .venue-placeholder {
  margin: 0;
  height: 200px;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.5rem;
  text-align: center;
  font-weight: 500;
}

.gallery-placeholder {
  background: var(--bg);
  height: 200px;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--accent);
}

.placeholder-text {
  color: var(--accent);
  font-style: italic;
}

/* Footer */
.footer {
  background: var(--primary);
  color: white;
  padding: 4rem 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.footer h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 300;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--secondary);
  text-decoration: none;
}

.footer p {
  font-weight: 300;
  line-height: 1.6;
}

/* Responsivitet */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-menu li {
    padding: 0.5rem 0;
  }
  
  .nav-menu li {
    margin: 0.5rem 0;
  }
  
  .hamburger {
    display: flex;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
  
  .countdown-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  .countdown-number {
    font-size: 1.5rem;
  }
  
  .hero-text h1 {
    font-size: 2.5rem;
  }
  
  .program h2,
  .info h2,
  .rsvp h2,
  .galleri h2,
  .intro-content h2 {
    font-size: 2rem;
  }
  
  .program-day {
    margin: 0 1rem 2rem 1rem;
  }
  
  .event-simple {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .rsvp-form {
    margin: 0 1rem;
    padding: 2rem;
  }
  
  /* Responsive praktisk informasjon */
  .info-top-row {
    gap: 2rem;
    margin-bottom: 3rem;
  }
  
  .info-bottom-row {
    flex-direction: column;
    gap: 3rem;
  }
  
  .info-section,
  .venue-section {
    max-width: 100%;
  }
  
  /* Responsive program */
  .event-simple {
    margin-bottom: 1.5rem;
  }
}

/* Removed unused timeline styles */

/* Fade-in animasjon */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Reduced motion support */
@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;
  }
  
  .heart {
    animation: none;
  }
  
  .fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: none;
  }
}