/* Kostis & Loukia & Pavlos — Mountain Wedding Theme */

:root {
  /* Mountain palette - deep forest tones */
  --bg: #f4f2ed;
  --bg-alt: #e8e4db;
  --bg-dark: #1a3328;

  --text: #1e3529;
  --text-light: #f4f2ed;
  --muted: rgba(30, 53, 41, 0.7);
  --muted-light: rgba(244, 242, 237, 0.75);

  /* Deep forest greens */
  --accent: #2d5a40;
  --accent-dark: #1a3d2a;
  --accent-light: rgba(45, 90, 64, 0.15);

  /* Wood browns */
  --wood: #7a6548;
  --wood-light: #96805e;

  /* Sage greens */
  --sage: #BEC5AD;
  --sage-light: #E3E7D3;

  --surface: rgba(255, 255, 255, 0.85);
  --border: rgba(44, 62, 53, 0.12);
  --border-light: rgba(255, 255, 255, 0.2);

  --radius: 16px;
  --shadow: 0 20px 60px rgba(26, 51, 40, 0.18);
  --shadow-soft: 0 10px 40px rgba(26, 51, 40, 0.12);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  scroll-padding-top: 54px; /* Account for fixed header on anchor clicks */
}

body {
  margin: 0;
  padding-top: 54px; /* Height of fixed header */
  color: var(--text);
  background: var(--bg);
  font-family: 'GFS Neohellenic', 'Segoe UI', system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

a { color: inherit; }

.container {
  width: min(1100px, 90vw);
  margin: 0 auto;
}

/* ===================== */
/* TOP BAR               */
/* ===================== */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.9rem 1.2rem;
  background: rgba(26, 51, 40, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.nav {
  display: none;
  gap: 0.5rem;
  align-items: center;
}

.nav a {
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  color: var(--muted-light);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
}

@media (min-width: 800px) {
  .nav { display: flex; }
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 0.4rem;
  cursor: pointer;
  z-index: 250;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-light);
  margin: 3px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Hamburger animation when open */
.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

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

@media (max-width: 799px) {
  .topbar {
    justify-content: flex-start;
    padding: 1.1rem 1.2rem;
    padding-left: 3.5rem;
    min-height: 54px;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
  }

  .menu-toggle.open {
    transform: translateY(-50%);
  }

  .nav {
    position: fixed;
    top: 0;
    left: -280px;
    width: 260px;
    height: 100vh;
    background: rgba(26, 51, 40, 0.98);
    flex-direction: column;
    padding: 4rem 1.5rem 2rem;
    gap: 0.5rem;
    transition: left 0.3s ease;
    z-index: 200;
  }

  .nav.open {
    display: flex;
    left: 0;
  }

  .nav a {
    padding: 0.8rem 1rem;
    font-size: 1.1rem;
  }

  .menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 150;
  }

  .menu-overlay.open {
    display: block;
  }
}

.lang-toggle {
  position: absolute;
  right: 1.2rem;
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
  color: var(--text-light);
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}


/* ===================== */
/* BUTTONS               */
/* ===================== */
.btn {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.05em;
  transition: all 0.25s ease;
  border: 2px solid var(--accent);
  background: var(--accent);
  color: white;
}

.btn:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26, 61, 42, 0.35);
}

/* ===================== */
/* SECTION 1: HERO       */
/* ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh; /* Dynamic viewport height for iOS Safari */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem 4rem;
  overflow: hidden;
  scroll-snap-align: start;
  margin-top: -54px; /* Compensate for body padding-top */
  padding-top: calc(54px + 2rem); /* Add header height back to padding */
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(20, 45, 30, 0.4), rgba(20, 45, 30, 0.6)),
    url("hero-bg.jpg");
  background-size: cover;
  background-position: center;
  filter: saturate(1.1) contrast(1.05);
}

.hero-inner {
  position: relative;
  text-align: center;
  width: min(700px, 92vw);
  padding: 3rem 2rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.names {
  margin: 0 0 2rem;
  font-family: 'Caudex', serif;
  font-weight: 400;
  color: var(--accent-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.names-couple {
  font-size: clamp(2rem, 5vw, 2.8rem);
  letter-spacing: 0.08em;
}

.names-child {
  font-size: clamp(2rem, 5vw, 2.8rem);
  letter-spacing: 0.06em;
  color: var(--accent-dark);
}

/* Countdown */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin: 0 auto 2rem;
  width: min(420px, 100%);
}

.cd-item {
  padding: 1rem 0.5rem;
  border-radius: 12px;
  background: var(--accent-light);
  border: 1px solid rgba(45, 90, 64, 0.25);
}

.cd-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 500;
  line-height: 1.1;
  color: var(--accent-dark);
}

.cd-label {
  font-size: 1rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* Hero location info */
.hero-location {
  margin-bottom: 1.5rem;
}

.hero-location p {
  margin: 0.3rem 0;
  letter-spacing: 0.08em;
}

.venue-name {
  font-family: 'Caudex', serif;
  font-size: 1.5rem;
  color: var(--text);
  font-weight: 700;
}

.venue-place {
  font-size: 1.6rem;
  color: var(--muted);
}

.venue-date {
  font-size: 1.9rem;
  color: var(--muted);
  font-weight: 600;
}

.hero-message {
  margin: 0;
  padding: 1.2rem;
  background: linear-gradient(135deg, var(--accent-light), rgba(139, 115, 85, 0.1));
  border-radius: var(--radius);
  font-size: 1.25rem;
  letter-spacing: 0.03em;
  color: var(--text);
  line-height: 1.5;
}

/* ===================== */
/* SECTION DIVIDER       */
/* ===================== */
.section-divider {
  position: relative;
  height: 80px;
  margin-top: -80px;
  z-index: 5;
  pointer-events: none;
}

.section-divider svg {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 80px;
  color: var(--bg-dark);
}

.divider-to-sage {
  margin-top: 0;
  margin-bottom: -80px;
  z-index: 10;
  display: none;
}

.divider-to-sage svg {
  top: 0;
  bottom: auto;
  color: var(--sage-light);
}

.divider-to-dark {
  margin-top: -80px;
  margin-bottom: 0;
}

.divider-to-dark svg {
  color: var(--bg-dark);
}

/* ===================== */
/* SECTION 2: MAP        */
/* ===================== */
.section-map {
  position: relative;
  padding: 4rem 0;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
  overflow: hidden;
  scroll-snap-align: start;
}

.map-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(20, 40, 28, 0.55), rgba(20, 40, 28, 0.65)),
    url("forest-road.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

@media (max-width: 900px) {
  .map-bg { background-attachment: scroll; }
}

.map-container {
  position: relative;
  text-align: center;
}

.map-title {
  font-family: 'Caudex', serif;
  font-size: 2.2rem;
  color: var(--text-light);
  margin: 0 0 1.5rem;
  letter-spacing: 0.05em;
}

.map-wrap {
  height: min(60vh, 550px);
  border-radius: var(--radius);
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow);
}

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


/* ===================== */
/* SECTION 3: VENUE      */
/* ===================== */
.section-venue {
  position: relative;
  padding: 4rem 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
  overflow: hidden;
}

.venue-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(20, 40, 28, 0.4), rgba(20, 40, 28, 0.5)),
    url("venue-bg.jpg");
  background-size: cover;
  background-position: center;
}

.venue-container {
  position: relative;
  width: min(700px, 90vw);
  text-align: center;
}

.venue-title {
  margin: 0 0 2rem;
  font-family: 'Caudex', serif;
  font-size: 2.2rem;
  color: var(--text-light);
  letter-spacing: 0.05em;
}

.venue-card {
  text-align: center;
  padding: 2.5rem 2.5rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid var(--border);
}

.venue-text {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1.8;
}

.info-btn {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

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

/* ===================== */
/* SECTION 4: STAY       */
/* ===================== */
.section-stay {
  position: relative;
  padding: 4rem 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
  overflow: hidden;
}

.stay-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(20, 40, 28, 0.5), rgba(20, 40, 28, 0.6)),
    url("stay-bg.jpg");
  background-size: cover;
  background-position: center;
}

.section-stay .container {
  position: relative;
  width: min(800px, 90vw);
}

.section-stay h2 {
  text-align: center;
  margin: 0 0 2rem;
  font-family: 'Caudex', serif;
  font-size: 2.2rem;
  color: var(--text-light);
}

.stay-card h3 {
  font-size: 1.3rem;
}

.stay-card {
  font-size: 1rem;
}

.stay-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 700px;
  margin: 0 auto;
}

@media (min-width: 750px) {
  .stay-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.stay-card {
  padding: 2rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-soft);
}

.stay-card h3 {
  margin: 0 0 0.5rem;
  font-family: 'Caudex', serif;
  font-size: 1.4rem;
  color: var(--text);
}

.stay-card.main {
  border-left: none;
}

.availability {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--wood);
  font-style: italic;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}

.contact-list li:last-child {
  border-bottom: none;
}

.contact-list .icon {
  font-size: 1.1rem;
}

.contact-list a {
  color: var(--accent);
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

.alternatives-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.alternatives-list li {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.alternatives-list li:last-child {
  border-bottom: none;
}

.alternatives-list strong {
  color: var(--text);
}

.distance {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ===================== */
/* SECTION 5: CONTACT    */
/* ===================== */
.section-contact {
  position: relative;
  padding: 4rem 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 15vh;
  color: var(--text-light);
  text-align: center;
  scroll-snap-align: start;
  overflow: hidden;
}

.contact-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(20, 40, 28, 0.7), rgba(20, 40, 28, 0.75)),
    url("contact-bg.jpg");
  background-size: cover;
  background-position: center;
}

.section-contact .container {
  position: relative;
  width: 100%;
}

.section-contact h2 {
  margin: 0 0 2rem;
  font-family: 'Caudex', serif;
  font-size: 2.2rem;
  color: var(--text-light);
}

.contact-cards {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.contact-card {
  padding: 1.5rem 2.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
}

.contact-card h3 {
  margin: 0 0 0.5rem;
  font-family: 'Caudex', serif;
  font-size: 1.3rem;
  font-weight: 400;
}

.phone {
  font-size: 1.2rem;
  color: var(--text-light);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.phone:hover {
  text-decoration: underline;
}

.invitation-note {
  margin: 0;
  padding: 1rem 2rem;
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  font-size: 1rem;
  color: var(--muted-light);
  letter-spacing: 0.03em;
}

/* ===================== */
/* FOOTER                */
/* ===================== */
.footer {
  position: absolute;
  bottom: 12vh;
  left: 0;
  right: 0;
  text-align: center;
}

.section-contact {
  position: relative;
}

.footer p {
  margin: 0;
  color: var(--muted-light);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

/* ===================== */
/* RESPONSIVE            */
/* ===================== */
@media (max-width: 600px) {
  /* Section 1 - Hero */
  .hero {
    min-height: calc(100vh + 54px);
    min-height: calc(100dvh + 54px);
  }

  .hero-bg {
    background-size: cover;
    background-position: top center;
    background-color: #3a5a40;
  }

  .hero-inner {
    padding: 1.2rem 0.9rem;
    width: 88vw;
  }

  .names {
    margin-bottom: 1.2rem;
  }

  .names-couple,
  .names-child {
    font-size: 1.6rem;
  }

  .countdown {
    gap: 0.4rem;
    margin-bottom: 1.2rem;
  }

  .cd-item {
    padding: 0.6rem 0.3rem;
  }

  .cd-num {
    font-size: 1.4rem;
  }

  .cd-label {
    font-size: 0.8rem;
  }

  .hero-location {
    margin-bottom: 1rem;
  }

  .venue-name {
    font-size: 1.1rem;
  }

  .venue-place {
    font-size: 1.2rem;
  }

  .venue-date {
    font-size: 1.6rem;
  }

  .hero-message {
    padding: 0.8rem;
    font-size: 1rem;
  }

  /* Section 2 - Map */
  .section-map {
    padding-top: 6vh;
  }

  .map-container {
    width: 90vw;
  }

  .map-wrap {
    height: min(50vh, 400px);
  }

  /* Section 3 - Venue */
  .venue-container {
    width: 88vw;
  }

  .venue-title {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
  }

  .venue-card {
    padding: 1.2rem 1rem;
  }

  .venue-text {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  /* Section 4 - Stay */
  .section-stay .container {
    width: 88vw;
  }

  .stay-cards {
    gap: 0.8rem;
  }

  .stay-card {
    padding: 1rem 0.9rem;
  }

  .stay-card h3 {
    font-size: 1.1rem;
  }

  /* Section 5 - Contact */
  .contact-cards {
    gap: 1rem;
  }

  .contact-card {
    padding: 1rem 1.5rem;
  }

  .contact-card h3 {
    font-size: 1.1rem;
  }

  .phone {
    font-size: 1.1rem;
  }

  .invitation-note {
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
  }
}
