@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  /* Color Palette */
  --dark-forest: #2C1F18;
  --sage-green: #7C8A72;
  --rustic-terracotta: #9B4C2A;
  --burnt-orange: #C86B2E;
  --warm-apricot: #E0A65F;
  --dusty-peach: #E1B08E;
  
  --bg-color: #F5EEE5; /* warm off-white */
  --surface-color: #FFFFFF;

  /* Typography */
  --font-heading: 'Lora', serif;
  --font-body: 'Lora', serif;
  --font-special: 'Playfair Display', serif;

  /* Spacing & Sizes */
  --nav-height: 80px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  
  --transition: all 0.3s ease-in-out;
}

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

body {
  font-family: var(--font-body);
  font-weight: 500;
  background-color: var(--bg-color);
  color: var(--dark-forest);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 1rem;
}

.logo,
.hero-content h1,
.footer h2 {
  font-family: var(--font-special);
}

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

ul {
  list-style: none;
}

/* Typography utilities */
.text-center { text-align: center; }
.subtitle {
  font-size: 1.1rem;
  color: var(--dusty-peach);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  display: block;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
}

.details-section {
  padding-top: 0;
}

.countdown-section {
  padding-top: 0;
  padding-bottom: 2rem;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background-color: rgba(250, 244, 235, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(200, 107, 46, 0.2);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark-forest);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--dark-forest);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--burnt-orange);
  transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--dark-forest);
  transition: var(--transition);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background-color: var(--burnt-orange);
  color: var(--bg-color);
}

.btn-primary:hover {
  background-color: var(--rustic-terracotta);
  color: var(--bg-color);
}

.btn-accent {
  background-color: var(--dusty-peach);
  color: var(--dark-forest);
}

.btn-accent:hover {
  background-color: var(--warm-apricot);
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  padding-top: var(--nav-height);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(198, 107, 46, 0.35), rgba(154, 76, 42, 0.65));
  z-index: -1;
}

.hero-content {
  color: white;
  max-width: 800px;
  padding: 2rem;
  animation: fadeIn 1.5s ease-out;
}

.hero-content h1 {
  font-size: 4.5rem;
  margin-bottom: 0.5rem;
  font-style: italic;
}

.hero-date {
  font-size: 1.5rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--dusty-peach);
  margin-bottom: 2rem;
}

.countdown-section {
  padding-top: 0;
  padding-bottom: 4rem;
}

.countdown-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 900px;
  margin: 1rem auto 2rem;
  box-shadow: 0 30px 80px rgba(19, 50, 44, 0.1);
  text-align: center;
}

.countdown-label {
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--dusty-peach);
  margin-bottom: 1rem;
  display: block;
  font-weight: 700;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.countdown-segment {
  min-width: 120px;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  background: var(--dark-forest);
  color: white;
}

.countdown-value {
  display: block;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.countdown-unit {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.85;
}

@media (max-width: 768px) {
  .countdown-card {
    margin: 2rem auto 2rem;
    padding: 1.5rem;
  }

  .countdown-segment {
    min-width: 100px;
    flex: 1 1 100px;
  }
}

/* Info Cards */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.info-card {
  background: var(--surface-color);
  padding: 3rem 2rem;
  text-align: center;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(19, 50, 44, 0.05);
  border-top: 4px solid var(--warm-apricot);
  transition: transform 0.3s ease;
}

.info-card:hover {
  transform: translateY(-5px);
}

.info-card h3 {
  color: var(--dark-forest);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.small-heading {
  font-size: 1.35rem;
  line-height: 1.2;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .small-heading {
    font-size: 1.2rem;
    white-space: normal;
  }
}

.info-card p {
  color: var(--sage-green);
  margin-bottom: 1.5rem;
}

.icon-wrapper {
  width: 60px;
  height: 60px;
  background-color: var(--burnt-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
}

.icon-wrapper svg {
  width: 30px;
  height: 30px;
}

/* Form Styles */
.form-container {
  max-width: 600px;
  margin: 0 auto;
  background: var(--surface-color);
  padding: 3rem;
  border-radius: var(--radius-md);
  box-shadow: 0 15px 40px rgba(19, 50, 44, 0.08);
}

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

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--dark-forest);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-control {
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(145, 150, 130, 0.4);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
  background-color: #fafafa;
}

.form-control:focus {
  outline: none;
  border-color: var(--burnt-orange);
  background-color: white;
  box-shadow: 0 0 0 3px rgba(186, 72, 22, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.radio-group {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

/* Gallery / Drive Link */
.drive-section {
  text-align: center;
  padding: 6rem 2rem;
  background-color: rgba(145, 150, 130, 0.1);
  border-radius: var(--radius-lg);
  margin: 4rem 0;
}

.drive-icon {
  margin-bottom: 2rem;
  color: var(--rustic-terracotta);
}

/* Story Masonry */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  grid-auto-rows: 10px;
  margin-top: 3rem;
}

.masonry-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.masonry-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.masonry-item:hover img {
  transform: scale(1.05);
}

.masonry-tall { grid-row-end: span 35; }
.masonry-short { grid-row-end: span 25; }

/* Timeline styles for Náš príbeh (vertical line + large photos) */
.timeline-section { padding-top: 2rem; padding-bottom: 2rem; }
.timeline {
  position: relative;
  margin-top: 2rem;
  padding-left: 120px;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 60px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: rgba(19,50,44,0.06);
}
.timeline-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 56px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--rustic-terracotta);
  box-shadow: 0 0 0 6px rgba(153,68,38,0.06);
  transform: translateY(-50%);
  top: 50%;
}
.timeline-marker {
  width: 60px;
  text-align: right;
  margin-right: 10px;
}
.timeline-year {
  display: inline-block;
  font-weight: 700;
  color: var(--dark-forest);
  background: transparent;
}
.timeline-img {
  flex: 0 0 420px;
  width: 420px;
  height: 280px;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 30px rgba(19,50,44,0.06);
}
.timeline-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 900px) {
  .timeline { padding-left: 100px; }
  .timeline-img { flex: 0 0 320px; width: 320px; height: 220px; }
}

@media (max-width: 768px) {
  .timeline { padding-left: 20px; }
  .timeline::before { left: 10px; }
  .timeline-item::before { left: 6px; }
  .timeline-marker { display: none; }
  .timeline-img { width: 100%; height: 220px; flex: 1 1 auto; }
  .timeline-item { flex-direction: column; align-items: stretch; }
}

/* Footer */
.footer {
  background-color: var(--dark-forest);
  color: var(--sage-green);
  text-align: center;
  padding: 4rem 2rem;
  margin-top: 4rem;
}

.footer h2 {
  font-family: var(--font-heading);
  color: white;
  margin-bottom: 1rem;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background-color: var(--bg-color);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: var(--transition);
  }

  .nav-links.active {
    left: 0;
  }

  .nav-link {
    font-size: 1.2rem;
  }

  .hero-content h1 {
    font-size: 3rem;
  }
  
  .section {
    padding: 3rem 0;
  }
}
