/* Schøne Flensted — bryllupshjemmeside */

:root {
  --terracotta: #A45F53;
  --pink: #E4C3BE;
  --footer-pink: #DDB7B1;
  --periwinkle: #AABDF6;
  --ink: #000;
  --grey: #404040;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: #fff;
  line-height: 1.5;
}

/* ---------- Fixed rose background (parallax) ---------- */
.rose-bg {
  background-image: url('../images/roser-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

@media (max-width: 900px), (hover: none) {
  /* fixed backgrounds perform poorly on mobile */
  .rose-bg { background-attachment: scroll; }
}

/* ---------- Side navigation ---------- */
.side-nav {
  position: fixed;
  top: 60px;
  left: 60px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.side-nav a {
  font-family: 'Playfair Display', 'Didot', serif;
  font-style: italic;
  font-size: 19px;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  border-radius: 100px;
  padding: 4px 22px 6px;
  width: fit-content;
  transition: background .25s, color .25s;
}

.side-nav a:hover { background: #f3e3e0; }

.side-nav a.active {
  background: var(--pink);
  color: #fff;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.script-heading {
  font-family: 'Dancing Script', cursive;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0,0,0,.15);
  line-height: 1;
}

.hero-top { font-size: clamp(48px, 8vw, 105px); }

.hero-photos {
  display: flex;
  gap: clamp(24px, 15vw, 220px);
  margin: 30px 0;
}

.hero-photos img {
  width: clamp(120px, 18vw, 235px);
  aspect-ratio: 235 / 370;
  object-fit: cover;
}

.hero-names {
  font-size: clamp(56px, 11vw, 143px);
  margin-top: -80px;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .hero-names { margin-top: -30px; }
}

/* ---------- Generic sections ---------- */
.white-section {
  background: #fff;
  padding: 90px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-heading {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(30px, 4vw, 40px);
  text-align: center;
  margin-bottom: 60px;
}

.rose-divider { height: 320px; }
.rose-divider-small { height: 140px; }

/* ---------- Tid og sted ---------- */
.details {
  display: flex;
  align-items: center;
  gap: 90px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 960px;
}

.details-photo {
  width: 312px;
  height: 318px;
  object-fit: cover;
}

.details-label {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 4px;
  color: var(--terracotta);
  text-transform: none;
  margin: 34px 0 14px;
}

.details-text .details-label:first-child { margin-top: 0; }

.didot {
  font-family: 'Playfair Display', 'Didot', serif;
  font-style: italic;
  font-size: 19px;
  letter-spacing: 3px;
  line-height: 1.9;
}

.didot-link {
  font-family: 'Playfair Display', 'Didot', serif;
  font-style: italic;
  color: var(--ink);
}

/* ---------- Program ---------- */
.program-images {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.program-images img {
  width: min(592px, 100%);
  height: auto;
}

/* ---------- Vigtig info ---------- */
.info-text {
  max-width: 580px;
  font-size: 17px;
}

.info-text p { margin-bottom: 22px; }

.info-text strong { font-weight: 700; }

/* ---------- Toastmaster ---------- */
.toastmaster {
  display: flex;
  gap: 60px;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 960px;
}

.toastmaster img {
  width: min(340px, 100%);
  height: auto;
}

.toastmaster-text {
  max-width: 440px;
  font-size: 17px;
}

.toastmaster-text p { margin-bottom: 20px; }

.toastmaster-text a { color: inherit; }

/* ---------- Ønskeliste ---------- */
.wishlist { text-align: center; }

.wishlist p {
  font-size: 15px;
  margin-bottom: 26px;
}

.wishlist a { color: inherit; }

/* ---------- Tilmelding / RSVP ---------- */
.rsvp { text-align: center; }

.rsvp-heading {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(26px, 3.5vw, 35px);
  color: var(--grey);
}

.rsvp-deadline {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  margin: 40px 0 60px;
}

.btn-pill {
  font-family: 'Playfair Display', 'Didot', serif;
  font-style: italic;
  font-size: 20px;
  color: #fafafa;
  background: var(--pink);
  border-radius: 100px;
  padding: 16px 44px;
  text-decoration: none;
  transition: background .25s;
}

.btn-pill:hover { background: #d8aca6; }

/* ---------- Footer ---------- */
footer {
  background: var(--footer-pink);
  font-family: 'Fraunces', serif;
  font-size: 15px;
  letter-spacing: 4px;
  text-align: center;
  padding: 46px 20px;
}

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

/* ---------- Kort page ---------- */
.map-page { background: var(--periwinkle); }

.map-intro {
  padding: 120px 24px 70px;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.map-intro h1 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 28px;
  letter-spacing: 10px;
  text-transform: uppercase;
  margin-bottom: 50px;
}

.map-intro .didot { margin-bottom: 26px; letter-spacing: 1px; }

.map-embed iframe {
  display: block;
  width: 100%;
  height: 60vh;
  min-height: 420px;
  border: 0;
}

/* ---------- Tilmelding form page ---------- */
.form-page { background: #fff; }

.form-hero {
  padding: 150px 24px 30px;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.form-hero h1 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(26px, 3.5vw, 35px);
  color: var(--grey);
  margin-bottom: 26px;
}

.form-hero .didot { margin-bottom: 10px; letter-spacing: 1px; }

.form-hero .rsvp-deadline { margin: 20px 0 0; }

.rsvp-form {
  width: min(560px, 100%);
  font-size: 17px;
}

.form-section-heading {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 22px;
  margin-bottom: 34px;
}

.rsvp-form .field { display: block; margin-bottom: 28px; }

.rsvp-form .field span { display: block; margin-bottom: 8px; font-weight: 400; }

.rsvp-form input[type="text"],
.rsvp-form input[type="tel"],
.rsvp-form input[type="email"] {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  border: 1px solid #c9c9c9;
  border-radius: 4px;
  background: #fff;
}

.rsvp-form input:focus {
  outline: none;
  border-color: var(--terracotta);
}

.rsvp-form fieldset {
  border: 0;
  margin-bottom: 30px;
}

.rsvp-form legend { margin-bottom: 12px; }

.rsvp-form .choice {
  display: block;
  margin-bottom: 10px;
  cursor: pointer;
}

.rsvp-form .choice small { color: #555; margin-left: 24px; display: inline-block; }

.rsvp-form input[type="radio"] { accent-color: var(--terracotta); margin-right: 6px; }

.req { color: var(--terracotta); }

.form-error { color: #b00020; margin-bottom: 20px; }

.rsvp-form .btn-pill {
  border: 0;
  cursor: pointer;
  display: inline-block;
  margin-top: 10px;
}

.rsvp-thanks { text-align: center; padding: 40px 0 80px; }

.rsvp-thanks a { color: inherit; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .side-nav {
    top: 0; left: 0; right: 0;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px;
    justify-content: center;
    background: rgba(255,255,255,.65);
    backdrop-filter: blur(6px);
  }
  .side-nav a { font-size: 15px; padding: 3px 14px 5px; }
  .details { gap: 40px; }
  .white-section { padding: 70px 20px; }
  .rose-divider { height: 180px; }
  .map-intro { padding-top: 110px; }
}
