@import url('/reset.css');

:root {
  /* FÄRGSCHEMA */
  --bg-color: #FAF8F5;
  --card-bg: #ffffff;
  --card-bg-glass: #ffffff7e;
  --primary: #cfb2b7;
  --hover: #8c9c81;
  --btn-hover: #4a5442;
  --text-main: #3e3e3e;
  --text-muted: #555555;
  --text-light: #777777;
  --accent-white: #ffffff;

  /* FONT SIZES */
  --fs-base: clamp(16px, 1.5vw, 20px);
  --fs-nav: 13px;
  --fs-hero-title: clamp(48px, 8vw, 68px);
  --fs-hero-subtitle: 20px;
  --fs-hero-place: 15px;
  --fs-hero-text: 16px;
  --fs-countdown-num: 26px;
  --fs-countdown-label: 9px;
  --fs-btn: 14px;
  --fs-section-title: 42px;
  --fs-section-p: 16px;

  /* Mobil-specifika fontstorlekar */
  --fs-mobile-hero-title: 52px;
  --fs-mobile-countdown-num: 20px;
  --fs-mobile-countdown-label: 8px;

  scroll-behavior: smooth;
}

/* BAS */
body {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: var(--fs-base);
  background-color: var(--bg-color);
  color: var(--text-main);
  text-align: center;
  overflow-x: hidden;
  line-height: 1.6;
}

/* NAV */
nav {
  padding: 30px 15px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
  background: transparent;
}

nav a {
  text-decoration: none;
  color: var(--primary);
  font-size: var(--fs-nav);
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

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

/* HERO */
.hero {
  position: relative;
  padding: 60px 40px;
  max-width: 550px;
  margin: 20px auto 60px auto !important;
  background: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
  min-height: max-content;
  z-index: 10;
}

/* NAMN */
.names {
  font-family: 'Great Vibes', cursive;
  font-size: var(--fs-hero-title);
  color: var(--primary);
  margin: 10px 0 30px 0;
  position: relative;
  z-index: 3;
  line-height: 1.1;
}

/* HERO BILD */
.hero img.main-img {
  display: block;
  margin: 0 auto;
  width: 280px;
  max-width: 100%;
  filter: grayscale(80%) sepia(10%) contrast(90%);
  position: relative;
  z-index: 3;
}

/* BLOMMOR */
.flower {
  position: fixed;
  top: 0;
  height: 100vh;
  width: auto;
  pointer-events: none;
  z-index: 999;
  filter: sepia(0.2);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 75%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 0%, black 75%, transparent 100%);
}

/* Placering */
.flower.left {
  left: 3%;
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

.flower.right {
  right: 3%;
  clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
}

@media (max-width: 768px) {
  .flower.left {
    left: -10%;
  }

  .flower.right {
    right: -10%;
  }
}

/* INFO TEXT */
.subtitle {
  font-size: var(--fs-hero-subtitle);
  font-weight: 600;
  margin-top: 40px;
  letter-spacing: 1px;
  color: var(--text-main);
}

.place {
  font-size: var(--fs-hero-place);
  letter-spacing: 1px;
  margin-top: 5px;
  color: var(--text-light);
}

.text {
  margin: 30px auto;
  max-width: 500px;
  font-size: var(--fs-hero-text);
  color: var(--text-muted);
  position: relative;
  z-index: 3;
}

/* COUNTDOWN */
.countdown {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 30px auto;
  position: relative;
  z-index: 3;
}

.cd-box {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.4);
  padding: 15px 12px;
  border-radius: 8px;
  min-width: 60px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.cd-box span {
  font-family: 'Playfair Display', serif;
  font-size: var(--fs-countdown-num);
  color: var(--primary);
  line-height: 1;
  margin-bottom: 5px;
}

.cd-box label {
  font-size: var(--fs-countdown-label);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-light);
}

/* KNAPP */
.btn {
  display: inline-block;
  padding: 14px 35px;
  background-color: var(--primary);
  color: var(--accent-white);
  border-radius: 30px;
  text-decoration: none;
  font-size: var(--fs-btn);
  letter-spacing: 2px;
  margin-top: 20px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
}

.btn:hover {
  background-color: var(--btn-hover);
  transform: translateY(-2px);
}

/* SEKTIONER (RESA, BOENDE, SCHEMA) */
.section {
  max-width: 600px;
  margin: 60px auto !important;
  padding: 40px 20px;
  background: var(--card-bg-glass);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  backdrop-filter: blur(10px);
}
/* GOOGLE MAP */
.map {
  margin-top: 25px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.map iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}
h2 {
  font-family: 'Great Vibes', cursive;
  font-size: var(--fs-section-title);
  color: var(--primary);
  margin-bottom: 20px;
  font-weight: normal;
}

.section p {
  color: var(--text-muted);
  font-size: var(--fs-section-p);
  margin-bottom: 10px;
}

/* FOOTER ART NEDTILL */
.footer-art-container {
  width: 100vw;
  position: relative;
  z-index: 1000;
  margin-top: 40px;
  padding-top: 150px;
  background: linear-gradient(to bottom, rgba(250, 248, 245, 0) 0%, var(--bg-color) 100px);
}

.footer-art {
  width: 100%;
  display: block;
}

/* BLOMMOR & DEKORATION (inga animationer på mobilen heller) */

/* MOBIL RESPONSIBILITY */
@media(max-width: 768px) {

  nav {
    padding: 20px 10px;
    gap: 15px;
  }

  .hero {
    margin: 10px 15px;
    padding: 50px 20px;
  }

  .names {
    font-size: var(--fs-mobile-hero-title);
  }

  /* Countdown Mobile */
  .countdown {
    gap: 10px;
  }

  .cd-box {
    min-width: 50px;
    padding: 12px 6px;
  }

  .cd-box span {
    font-size: var(--fs-mobile-countdown-num);
  }

  .cd-box label {
    font-size: var(--fs-mobile-countdown-label);
    letter-spacing: 1px;
  }

  .section {
    margin: 40px 15px;
    padding: 30px 15px;
  }
}