/*
 * Stylesheet for Tante Immerda website
 *
 * The colour palette and typography for this project are derived from
 * the design guidelines supplied by the customer.  We’ve defined
 * a handful of CSS custom properties up top so that colours can be
 * adjusted easily in one place.  Open Sans is used for body copy while
 * Montserrat provides a modern yet friendly tone for headings.
 */

:root {
  --pink-bg: #cf0096;       /* bright pink used for page backgrounds */
  --magenta: #fb0487;       /* vivid magenta accent colour */
  --purple-dark: #390029;    /* deep purple used for footer and overlays */
  --pink-light: #fd9be2;     /* light pink for subtle accents */
  --pink-super-light: #ffe4f8; /* very light pink for copy and highlights */
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  /* Use a fun snack pattern as the page background */
  background-color: var(--pink-bg);
  background-image: url('assets/snacks-bg.png');
  background-size: 320px;
  background-repeat: repeat;
  color: var(--pink-super-light);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  position: relative;
  /* Add a semi‑transparent dark background so the logo, heading and
     burger menu remain legible on the busy snack pattern.  A subtle
     blur helps the header stand out without feeling heavy. */
  background-color: rgba(57, 0, 41, 0.85);
  backdrop-filter: blur(4px);
  border-bottom-left-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
}

header .logo {
  width: 64px;
  height: 64px;
  margin-bottom: 0.25rem;
  /* Animate the logo on page load: circular fly‑in motion.
     The logo starts off‑screen and scales up while rotating into place. */
  opacity: 0;
  animation: logoFlyIn 1.8s ease-out forwards;
}

/* Logo fly‑in animation
   The element travels along a curved path towards its final position, scaling up and fading in. */
@keyframes logoFlyIn {
  0% {
    transform: translate(-300px, -300px) scale(0.1) rotate(-720deg);
    opacity: 0;
  }
  50% {
    transform: translate(40px, 60px) scale(1.1) rotate(90deg);
    opacity: 1;
  }
  100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    opacity: 1;
  }
}

header h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  margin: 0;
  /* Use a light tone with slight shadow for better contrast over the dark header */
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
  text-align: center;
}

header .tagline {
  font-size: 1rem;
  margin: 0.25rem 0 0 0;
  /* Lighten tagline text and add subtle shadow for readability */
  color: #ffe4f8;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
  text-align: center;
}

/* Hamburger button */
.burger {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 28px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 1100;
}

.burger div {
  width: 100%;
  height: 3px;
  /* Use a high‑contrast colour for the burger lines so they remain
     visible against the dark header. */
  background-color: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Navigation overlay used on small screens */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(57, 0, 41, 0.95);
  color: var(--pink-super-light);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1050;
}

.nav-overlay.open {
  display: flex;
}

.nav-overlay a {
  color: var(--pink-super-light);
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  margin: 0.5rem 0;
  transition: color 0.2s ease;
}

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

main.content {
  padding: 1.5rem 1.5rem 4rem;
  max-width: 860px;
  margin: 1rem auto 2rem;
  text-align: center;
  background-color: rgba(57, 0, 41, 0.8); /* dark overlay for readability */
  border-radius: 16px;
}

.content p {
  font-size: 1.1rem;
  margin: 1rem 0;
  color: var(--pink-super-light);
}

.content a {
  color: var(--pink-super-light);
  text-decoration: underline;
}

/* Hero section styling */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.hero-content {
  max-width: 480px;
  text-align: center;
}

.hero-content h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  margin: 0 0 0.5rem 0;
  color: var(--pink-super-light);
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--pink-super-light);
}

.hero-image img {
  width: 220px;
  height: auto;
}

/* CTA Button */
.button {
  display: inline-block;
  background-color: var(--magenta);
  color: var(--purple-dark);
  padding: 0.6rem 1.4rem;
  border-radius: 24px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 0.8rem;
  transition: background-color 0.2s ease;
}

.button:hover {
  background-color: var(--pink-light);
}

/* Features grid */
.features-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.feature-card {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 1rem;
  text-align: center;
  backdrop-filter: blur(4px);
  color: var(--pink-super-light);
}

.feature-card .icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.feature-card h3 {
  font-size: 1.2rem;
  margin: 0.2rem 0;
  font-weight: 600;
  color: var(--pink-super-light);
}

.feature-card p {
  font-size: 0.9rem;
  margin: 0;
  color: var(--pink-light);
}

/* Map section */
.map-section h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--pink-super-light);
}

/* Peeking Tante image */
.peeking-tante {
  position: absolute;
  right: 0;
  bottom: -50px;
  width: 160px;
  height: auto;
  transform: translateX(50%);
  z-index: 50;
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .hero {
    flex-direction: row;
    align-items: center;
    text-align: left;
  }
  .hero-content {
    text-align: left;
  }
  .hero-content h2 {
    font-size: 2.6rem;
  }
  .hero-image img {
    width: 280px;
  }
  .button {
    margin-top: 1rem;
  }
  .peeking-tante {
    width: 200px;
  }
}

/* Feature list on the homepage */
/* Deprecated list styling removed */

.map-container img,
.map-container iframe {
  width: 100%;
  max-width: 640px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Layout for the introductory section */
.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.intro-text {
  max-width: 500px;
}

.intro-illustration {
  width: 180px;
  height: auto;
}

@media (min-width: 768px) {
  .intro {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
  .intro-illustration {
    width: 240px;
    margin-left: 2rem;
  }
  .intro-text {
    max-width: 520px;
    text-align: left;
  }
}

/* Video page styling */
.video-container {
  width: 100%;
  max-width: 720px;
  margin: 2rem auto;
}

.video-player {
  position: relative;
  background-color: var(--purple-dark);
  border-radius: 12px;
  padding-top: 56.25%; /* 16:9 ratio */
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.video-player .play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  color: var(--pink-light);
  cursor: pointer;
}

.video-container p {
  margin-top: 1rem;
  font-size: 1.2rem;
  color: var(--pink-light);
}

/* Gallery slider */
.slider {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.slides {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.slide {
  display: none;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.slider button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(57, 0, 41, 0.7);
  color: var(--pink-super-light);
  border: none;
  font-size: 2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
}

.slider button.prev {
  left: -20px;
}

.slider button.next {
  right: -20px;
}

.gallery-caption {
  margin-top: 1rem;
  font-size: 1.2rem;
  color: var(--pink-light);
}

/* Footer navigation bar */
.footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--purple-dark);
  color: var(--pink-light);
  padding: 0.5rem 0;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  z-index: 100;
}

.footer a {
  color: var(--pink-light);
  text-decoration: none;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer a.active {
  color: var(--pink-super-light);
}

.footer a .icon {
  font-size: 1.4rem;
  line-height: 1;
  margin-bottom: 0.1rem;
}

/* Larger screens adjustments */
@media (min-width: 768px) {
  header {
    flex-direction: row;
    justify-content: center;
    padding: 1.5rem;
  }
  header .logo {
    width: 80px;
    height: 80px;
    margin-bottom: 0;
    margin-right: 1rem;
  }
  header h1 {
    font-size: 3rem;
    text-align: left;
  }
  header .tagline {
    font-size: 1.2rem;
    text-align: left;
  }
  .burger {
    top: 1.5rem;
    right: 1.5rem;
  }
  .slider button.prev {
    left: -30px;
  }
  .slider button.next {
    right: -30px;
  }
}