:root {
  --bg-light: #f3ded2;
  --bg-lighter: #f7eee7;
  --accent: #d6a18f;
  --gold: #c9a45a;
  --text-main: #5a3a30;
  --shadow: 0 4px 20px rgba(0,0,0,0.12);
}

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

html { 
  scroll-behavior: smooth;
  overflow-y: scroll;  
  overflow-x: hidden;
  width: 100%;    
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background: var(--bg-light);
  width: 100%;
  overflow-x: hidden;
  position: relative;
}


/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  padding: 2rem 8vw 4rem;
  display: flex;
  flex-direction: column;

  background:
    linear-gradient(to bottom right, rgba(212, 179, 140, 0.65), rgba(209, 170, 125, 0.65)),
    url("../images/baggrund.png") center/cover no-repeat;

  background-attachment: fixed;
  position: relative;
  overflow: hidden;
}

/* ---------- NAV ---------- */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--text-main);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.95rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;

  background: rgba(255, 229, 229, 0.18);   /* much softer */
  border: 1px solid rgba(255,255,255,0.25);

  backdrop-filter: blur(4px);

  transition: 
    background 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
}



.nav-links a:hover {
  background: rgba(255,255,255,0.65);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

.nav-cta {
  background: var(--accent);
  color: white !important;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}


.nav-cta:hover {
  background: rgba(214, 161, 143, 1);
}

.nav-links a:active {
  transform: translateY(0);
  box-shadow: none;
}


/* ---------- HERO TEXT ---------- */
.hero-content {
  margin-top: 18vh;
  max-width: 560px;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.8rem;
}

.hero-names {
  font-family: "Great Vibes", cursive;
  font-size: clamp(3rem, 5vw, 4.2rem);
  margin: 0.4rem 0;
}

.hero-text {
  font-family: "Playfair Display", serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
}

.hero-date {
  font-size: 1rem;
  margin-bottom: 1.2rem;
}

/* ---------- COUNTDOWN ---------- */
.countdown {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.8rem;
  flex-wrap: wrap;
}

.countdown-item {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  text-align: center;
  min-width: 76px;
  border: 1px solid rgba(201, 164, 90, 0.45);
}

.countdown-item span {
  display: block;
  font-weight: 600;
  font-size: 1.1rem;
}

.countdown-item small {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- BUTTON ---------- */
.btn-primary {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  font-weight: 500;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.btn-primary:hover { filter: brightness(1.02); }

/* ---------- SECTIONS ---------- */
.section,
.section-alt {
  position: relative;
  padding: 4rem 8vw;
}

.section { background: var(--bg-lighter); }
.section-alt { background: #f0e4dd; }

.section h2,
.section-alt h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.9rem;
  margin-bottom: 1rem;
}

.section p,
.section-alt p {
  max-width: 700px;
  line-height: 1.6;
}

/* GOLDEN SEPARATOR */
.section::before,
.section-alt::before {
  content: "";
  position: absolute;
  top: 1.6rem;
  left: 50%;
  transform: translateX(-50%) scaleX(0.35);
  transform-origin: center;

  width: min(580px, 86vw);
  height: 4px;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(201, 164, 90, 0.25),
    rgba(201, 164, 90, 0.95),
    rgba(201, 164, 90, 0.25),
    transparent
  );

  opacity: 0;
  animation: glowSeparator 2.2s ease-out forwards;
}

@keyframes glowSeparator {
  0%   { opacity: 0; transform: translateX(-50%) scaleX(0.35); }
  60%  { opacity: 1; transform: translateX(-50%) scaleX(1); }
  100% { opacity: 0.9; transform: translateX(-50%) scaleX(1); }
}

/* ---------- FORM ---------- */
.form-container {
  margin-top: 2rem;
  width: 100%;
  max-width: 760px;
}

.form-container iframe {
  width: 100%;
  border: 0;
  border-radius: 12px;
  box-shadow: var(--shadow);
  min-height: 1000px;
  background: white;
}

/* ---------- MAP ---------- */
.map-container {
  margin-top: 2rem;
  width: 100%;
  height: 450px;
  max-width: 980px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

/* ---------- GALLERY ---------- */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
  max-width: 980px;
}

/* ---------- FOOTER ---------- */
.footer {
  text-align: center;
  padding: 2.4rem 1rem 3rem;
  font-size: 0.9rem;
  background: rgba(255,255,255,0.25);
}

/* ---------- TABLET ---------- */
@media (max-width: 820px) {
  .nav-links {
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero-content {
    margin-top: 12vh; /* tablet */
  }
}

/* ===== Sebber Kloster “story” card ===== */
.place-story{
  margin-top: 1.4rem;
  max-width: 980px;
  padding: 1.2rem 1.2rem;
  border-radius: 18px;

  background: rgba(255,255,255,0.45);
  border: 1px solid rgba(201, 164, 90, 0.28);
  box-shadow: 0 10px 26px rgba(0,0,0,0.08);

  backdrop-filter: blur(6px);
}

.place-lead{
  font-family: "Playfair Display", serif;
  letter-spacing: 0.02em;
  opacity: 0.95;
  margin-bottom: 0.35rem;
}

.place-title{
  font-family: "Playfair Display", serif;
  color: var(--accent);
  margin: 0.25rem 0 0.6rem;
}

.place-facts{
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.9rem 0 0.2rem;
}

.place-facts .fact{
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 249, 236, 0.70);
  border: 1px solid rgba(201,164,90,0.35);
  font-size: 0.9rem;
}

.place-details{
  margin-top: 0.8rem;
  border-radius: 14px;
  padding: 0.7rem 0.9rem;
  background: rgba(255,255,255,0.35);
  border: 1px solid rgba(201,164,90,0.22);
}

.place-details summary{
  cursor: pointer;
  font-family: "Playfair Display", serif;
  letter-spacing: 0.03em;
}

.place-list{
  margin: 0.7rem 0 0.2rem 1.1rem;
  line-height: 1.6;
}

.place-note{
  margin-top: 0.9rem;
  font-size: 0.92rem;
  opacity: 0.9;
}

/* ===== Fancy reveal ===== */
.reveal-on-scroll{
  opacity: 0;
  transform: translateY(16px);
  filter: blur(6px);
  transition: opacity 700ms ease, transform 700ms ease, filter 700ms ease;
}

.reveal-on-scroll.is-visible{
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* =====================
   PHONE RESPONSIVE
===================== */
@media (max-width: 650px) {
  /* iOS Safari often hates background-attachment: fixed */
  .hero {
    background-image: url("/images/baggrundSmall.png");
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    padding: 1.25rem 6vw 2.5rem;
    min-height: 92vh;
  }

  .hero-content {
    margin-top: 10vh;
    max-width: 100%;
  }

  .hero-kicker { font-size: 0.75rem; }
  .hero-text   { font-size: 0.78rem; letter-spacing: 0.12em; }
  .hero-date   { font-size: 0.95rem; }

  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  /* Logo gets its own row */
  .logo {
    font-size: 0.9rem;       /* keep original size */
    letter-spacing: 0.18em;
  }

  /* Links row */
  .nav-links {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0.45rem;
  }

  .nav-links a {
    white-space: nowrap;
    font-size: 0.75rem;
    padding: 0.25rem 0.45rem;
  }

  /* sections tighter */
  .section,
  .section-alt {
    padding: 3rem 6vw;
  }

  /* cards a bit tighter */
  .card {
    padding: 1rem 1rem;
    border-radius: 14px;
  }

  /* map shorter on phone */
  .map-container {
    height: 320px;
  }
}


@media (max-width: 450px) {

  .nav-links a {
    font-size: 0.7rem;
    padding: 0.22rem 0.35rem;
  }

}

