/* ===== VARMT TEMA - KORV & CAVA ===== */
:root {
  --wine:       #8B1A1A;
  --wine-dark:  #5C0F0F;
  --wine-light: #B03030;
  --gold:       #C9972B;
  --gold-light: #E8C060;
  --cream:      #FDF3E7;
  --cream-dark: #F5E4CC;
  --terra:      #C4623A;
  --terra-light:#E8956D;
  --text-dark:  #3D1202;
  --text-mid:   #6B3020;
  --white:      #FFFAF5;
  --shadow:     rgba(61, 18, 2, 0.15);
}

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

body {
  font-family: 'Lato', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  min-height: 100vh;
}

h1, h2, h3 { font-family: 'Playfair Display', serif; }

/* ===== NAVBAR ===== */
.navbar {
  background: var(--wine-dark);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px var(--shadow);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 62px;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; color: var(--gold-light);
  text-decoration: none; font-weight: 700;
  letter-spacing: 0.5px;
}
.nav-links a {
  color: var(--cream); text-decoration: none;
  margin-left: 1.4rem; font-size: 0.9rem;
  font-weight: 700; letter-spacing: 0.5px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold-light); }
.lang-flags { display: inline-flex; align-items: center; gap: 0.3rem; margin-left: 1.4rem; }
.lang-flag { font-size: 1.2rem; opacity: 0.45; transition: opacity 0.2s; text-decoration: none; margin-left: 0 !important; }
.lang-flag:hover, .lang-flag.active { opacity: 1; }
.nav-toggle {
  display: none; background: none; border: none;
  color: var(--cream); font-size: 1.6rem; cursor: pointer;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--wine-dark) 0%, var(--wine) 40%, var(--terra) 100%);
  color: var(--white);
  text-align: center;
  padding: 5rem 1.5rem 4rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-badge {
  display: inline-block;
  background: var(--gold); color: var(--wine-dark);
  font-weight: 700; font-size: 0.8rem;
  padding: 0.3rem 1rem; border-radius: 20px;
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.hero h1 {
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  line-height: 1.1; margin-bottom: 0.5rem;
  text-shadow: 2px 3px 8px rgba(0,0,0,0.3);
}
.hero h1 em { color: var(--gold-light); font-style: italic; }
.hero-subtitle {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  opacity: 0.9; margin-bottom: 0.5rem;
  font-family: 'Playfair Display', serif; font-style: italic;
}
.hero-date {
  font-size: 1rem; opacity: 0.75; margin-bottom: 2.5rem;
  letter-spacing: 1px;
}
.hero-emojis { font-size: 2.5rem; margin-bottom: 2rem; animation: bounce 2s infinite; }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ===== COUNTDOWN ===== */
.countdown {
  display: flex; justify-content: center; gap: 1rem;
  flex-wrap: wrap; margin-bottom: 3rem;
}
.countdown-block {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 12px; padding: 1rem 1.2rem;
  min-width: 80px; text-align: center;
}
.countdown-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem; font-weight: 700;
  color: var(--gold-light); line-height: 1;
}
.countdown-label { font-size: 0.7rem; opacity: 0.8; letter-spacing: 1px; text-transform: uppercase; margin-top: 0.3rem; }

/* ===== CTA BUTTONS ===== */
.cta-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 0.85rem 2rem;
  border-radius: 50px; font-weight: 700;
  font-size: 0.95rem; text-decoration: none;
  transition: all 0.2s; cursor: pointer; border: none;
  letter-spacing: 0.5px;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--wine-dark);
  box-shadow: 0 4px 15px rgba(201, 151, 43, 0.4);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201, 151, 43, 0.5); }
.btn-outline {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline:hover { background: rgba(255,255,255,0.15); }
.btn-wine {
  background: linear-gradient(135deg, var(--wine), var(--wine-light));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(139, 26, 26, 0.35);
}
.btn-wine:hover { transform: translateY(-2px); }
.btn-terra {
  background: linear-gradient(135deg, var(--terra), var(--terra-light));
  color: var(--white);
}

/* ===== SECTIONS ===== */
.section {
  max-width: 1000px; margin: 0 auto;
  padding: 4rem 1.5rem;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--wine-dark); text-align: center;
  margin-bottom: 0.5rem;
}
.section-title em { color: var(--terra); font-style: italic; }
.section-divider {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--terra));
  margin: 0.8rem auto 2.5rem; border-radius: 2px;
}

/* ===== PROGRAM ===== */
.program-grid {
  display: grid; gap: 1.2rem;
}
.program-item {
  background: var(--white);
  border-radius: 14px;
  padding: 1.4rem 1.6rem;
  display: flex; align-items: flex-start; gap: 1.2rem;
  box-shadow: 0 2px 12px var(--shadow);
  border-left: 4px solid var(--gold);
}
.program-time {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; font-weight: 700;
  color: var(--wine); min-width: 60px;
}
.program-icon { font-size: 1.6rem; }
.program-desc h3 { color: var(--text-dark); margin-bottom: 0.2rem; }
.program-desc p { color: var(--text-mid); font-size: 0.9rem; }

/* ===== HÄLSNING FORM ===== */
.form-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 4px 24px var(--shadow);
  max-width: 680px; margin: 0 auto;
}
.form-group { margin-bottom: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 550px) { .form-row { grid-template-columns: 1fr; } }
.gdpr-text { margin-top: 1.5rem; font-size: 0.78rem; color: var(--text-mid); opacity: 0.7; text-align: center; line-height: 1.5; }
label {
  display: block;
  font-weight: 700; font-size: 0.9rem;
  color: var(--wine-dark); margin-bottom: 0.5rem;
  letter-spacing: 0.3px;
}
input[type="text"], input[type="tel"], input[type="email"], input[type="file"], textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--cream-dark);
  border-radius: 10px;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--cream);
  transition: border-color 0.2s;
}
input[type="text"]:focus, input[type="tel"]:focus, input[type="email"]:focus, textarea:focus {
  outline: none; border-color: var(--gold);
}
.input-icon-wrap { position: relative; }
.input-icon-wrap .input-icon {
  position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%);
  font-size: 1rem; pointer-events: none; opacity: 0.6;
}
.input-icon-wrap input { padding-left: 2.4rem; }
textarea { min-height: 130px; resize: vertical; }
.file-hint { font-size: 0.8rem; color: var(--text-mid); margin-top: 0.4rem; }

/* ===== QUIZ ===== */
.quiz-form { max-width: 700px; margin: 0 auto; }
.quiz-question {
  background: var(--white);
  border-radius: 16px; padding: 1.8rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 12px var(--shadow);
}
.quiz-question h3 {
  font-size: 1.1rem; color: var(--wine-dark); margin-bottom: 1.2rem;
}
.quiz-options { display: grid; gap: 0.6rem; }
.quiz-option {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.7rem 1rem;
  border: 2px solid var(--cream-dark);
  border-radius: 10px; cursor: pointer;
  transition: all 0.2s; font-size: 0.95rem;
}
.quiz-option:hover { border-color: var(--gold); background: var(--cream); }
.quiz-option input[type="radio"] { accent-color: var(--wine); }
.quiz-option.selected { border-color: var(--wine); background: var(--cream); }

/* ===== QUIZ RESULTAT ===== */
.result-hero {
  text-align: center; padding: 3rem 1.5rem;
  background: linear-gradient(135deg, var(--wine-dark), var(--terra));
  color: var(--white); border-radius: 20px; margin-bottom: 2rem;
}
.result-score {
  font-family: 'Playfair Display', serif;
  font-size: 5rem; color: var(--gold-light); line-height: 1;
}
.result-answers { display: grid; gap: 1rem; }
.answer-item {
  background: var(--white); border-radius: 12px; padding: 1.2rem 1.4rem;
  box-shadow: 0 2px 8px var(--shadow);
  border-left: 4px solid var(--cream-dark);
}
.answer-item.correct { border-color: #4CAF50; }
.answer-item.wrong   { border-color: var(--terra); }

/* ===== GALLERI ===== */
.galleri-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.galleri-card {
  background: var(--white); border-radius: 16px;
  overflow: hidden; box-shadow: 0 3px 15px var(--shadow);
  transition: transform 0.2s;
}
.galleri-card:hover { transform: translateY(-4px); }
.galleri-card img {
  width: 100%; height: 200px; object-fit: cover;
}
.galleri-card-body { padding: 1.2rem; }
.galleri-namn {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; color: var(--wine); margin-bottom: 0.5rem;
}
.galleri-msg { font-size: 0.9rem; color: var(--text-mid); line-height: 1.5; }
.galleri-date { font-size: 0.75rem; color: #aaa; margin-top: 0.6rem; }

/* ===== TACK-SIDA ===== */
.tack-hero {
  text-align: center; padding: 5rem 1.5rem;
}
.tack-icon { font-size: 5rem; margin-bottom: 1rem; animation: spin 3s linear infinite; }
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== FLASH ===== */
.flash-container { max-width: 700px; margin: 1rem auto; padding: 0 1rem; }
.flash {
  padding: 0.9rem 1.2rem; border-radius: 10px;
  margin-bottom: 0.5rem; font-weight: 700;
}
.flash-error { background: #fde8e8; color: var(--wine-dark); border: 1px solid var(--wine); }
.flash-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #4CAF50; }

/* ===== BILDSPEL ===== */
.slideshow {
  position: absolute; inset: 0; z-index: 0;
}
.slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 25%;
  opacity: 0; transition: opacity 1.5s ease-in-out;
  animation: kenburns 14s ease-in-out infinite alternate;
  transform-origin: center 25%;
}
.slide.active { opacity: 1; }
@keyframes kenburns {
  0%   { transform: scale(1); }
  100% { transform: scale(1.13); }
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(61,18,2,0.55) 0%,
    rgba(92,15,15,0.5) 40%,
    rgba(40,10,2,0.7) 100%
  );
}
.hero-main { position: relative; overflow: hidden; }
.hero-inner { position: relative; z-index: 2; }

/* scroll-down knapp */
.scroll-down { margin-top: 2rem; display: inline-block; }

/* ===== STARTSIDA – NY LAYOUT ===== */
.hero-main {
  padding: 3.5rem 1.5rem 2.5rem;
  min-height: 55vh;
  display: flex; align-items: center; justify-content: center;
}
.hero-inner { text-align: center; }
.hero-name {
  font-size: clamp(3.5rem, 12vw, 7rem);
  line-height: 1; margin: 0.8rem 0 0.4rem;
  text-shadow: 3px 4px 12px rgba(0,0,0,0.3);
}
.hero-name em { color: var(--gold-light); font-style: italic; }
.hero-tagline {
  font-size: clamp(1rem, 3vw, 1.3rem);
  opacity: 0.85; margin-bottom: 2rem;
  font-family: 'Playfair Display', serif; font-style: italic;
}
.countdown-wrap { margin-top: 1rem; }
.countdown-label-top {
  font-size: 0.8rem; opacity: 0.7;
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 0.8rem;
}
.countdown-num { font-size: clamp(2rem, 8vw, 3.5rem); }

/* ===== UPLOAD SECTION ===== */
.upload-section {
  max-width: 680px; margin: 0 auto;
  padding: 2.5rem 1.5rem 1rem;
}
.upload-intro { text-align: center; margin-bottom: 2rem; }
.upload-intro h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--wine-dark); margin-bottom: 0.8rem;
}
.upload-intro h2 em { color: var(--terra); font-style: italic; }
.upload-intro p {
  color: var(--text-mid); font-size: 1.05rem; line-height: 1.7;
  max-width: 520px; margin: 0 auto;
}
.upload-card {
  background: var(--white); border-radius: 20px;
  padding: 2rem; box-shadow: 0 6px 30px var(--shadow);
}

/* ===== DROPZONE ===== */
.dropzone {
  position: relative;
  border: 3px dashed var(--cream-dark);
  border-radius: 16px; background: var(--cream);
  min-height: 160px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s;
  margin-bottom: 1.5rem; overflow: hidden;
}
.dropzone:hover, .dropzone.drag-over {
  border-color: var(--gold); background: #fff9f0;
}
.dropzone-input {
  position: absolute; inset: 0;
  opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.dropzone-content { text-align: center; padding: 1.5rem; pointer-events: none; }
.dropzone-icon { font-size: 3rem; margin-bottom: 0.5rem; }
.dropzone-text { font-weight: 700; color: var(--wine-dark); font-size: 1.05rem; }
.dropzone-hint { font-size: 0.8rem; color: var(--text-mid); margin-top: 0.3rem; }
.dropzone-preview { width: 100%; }
.dropzone-preview img {
  width: 100%; max-height: 280px; object-fit: cover;
  border-radius: 12px; display: block;
}
.remove-img {
  display: block; width: 100%; margin-top: 0.5rem;
  background: none; border: none; color: var(--terra);
  font-size: 0.85rem; cursor: pointer; font-weight: 700;
  padding: 0.4rem;
}

/* ===== SEND BUTTON ===== */
.btn-send {
  width: 100%; padding: 1.1rem;
  background: linear-gradient(135deg, var(--wine), var(--terra));
  color: var(--white); border: none; border-radius: 50px;
  font-family: 'Lato', sans-serif; font-size: 1.1rem;
  font-weight: 700; cursor: pointer; letter-spacing: 0.5px;
  transition: all 0.2s; margin-top: 0.5rem;
  box-shadow: 0 4px 20px rgba(139,26,26,0.3);
}
.btn-send:hover { transform: translateY(-2px); box-shadow: 0 6px 25px rgba(139,26,26,0.4); }

/* ===== ANTAL / GALLERI LÄNK ===== */
.antal-wrap {
  text-align: center; margin-top: 1.5rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
}
.antal-bubble {
  background: var(--white); border-radius: 50px;
  padding: 0.6rem 1.4rem; font-weight: 700;
  color: var(--wine-dark); font-size: 0.95rem;
  box-shadow: 0 2px 10px var(--shadow);
}
.galleri-link {
  color: var(--terra); font-weight: 700; text-decoration: none;
  font-size: 0.9rem; transition: color 0.2s;
}
.galleri-link:hover { color: var(--wine); }

/* ===== BOTTOM LINKS ===== */
.bottom-links {
  display: flex; justify-content: center; gap: 2rem;
  padding: 2rem 1rem 1rem; flex-wrap: wrap;
}
.bottom-links a {
  color: var(--text-mid); text-decoration: none;
  font-weight: 700; font-size: 0.9rem;
  transition: color 0.2s;
}
.bottom-links a:hover { color: var(--wine); }

/* ===== FOOTER ===== */
footer {
  background: var(--wine-dark); color: rgba(255,255,255,0.7);
  text-align: center; padding: 1.5rem;
  font-size: 0.9rem; margin-top: 4rem;
}

/* ===== INFO CARDS ===== */
.info-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem; margin-bottom: 3rem;
}
.info-card {
  background: var(--white); border-radius: 16px;
  padding: 2rem 1.5rem; text-align: center;
  box-shadow: 0 3px 15px var(--shadow);
}
.info-card-icon { font-size: 2.5rem; margin-bottom: 0.8rem; }
.info-card h3 { color: var(--wine); margin-bottom: 0.4rem; }
.info-card p  { color: var(--text-mid); font-size: 0.9rem; line-height: 1.5; }

/* ===== RESPONSIVE ===== */
@media (max-width: 650px) {
  .nav-links { display: none; flex-direction: column; position: absolute;
    top: 62px; left: 0; right: 0; background: var(--wine-dark);
    padding: 1rem 1.5rem; gap: 0.8rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { margin-left: 0; font-size: 1rem; }
  .nav-toggle { display: block; }
  .hero { padding: 3rem 1rem 2.5rem; }
  .countdown-num { font-size: 2rem; }
  .form-card { padding: 1.5rem; }
}
