/* --------------------------------------------------
   RESET & BASE
-------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #222;
  background: #f5f5f5;
}

/* Spacing scale */
:root {
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3rem;

  --radius: 8px;
  --radius-lg: 12px;

  --max-width: 960px;
}

/* --------------------------------------------------
   HEADER (Sticky + Shadow on Scroll)
-------------------------------------------------- */
header {
  background: #e7bd8d;

  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-lg);

  position: sticky;
  top: 0;
  z-index: 1000;

  box-shadow: 0 0 0 transparent;
  transition: box-shadow 0.25s ease;
}


header::before {
  content: "";
  position: absolute;
  inset: 0;                         /* cover entire header */
  border-radius: inherit;           /* match rounding if you add any */
  box-shadow: 0 0 10px 5px rgba(0,0,0,0.15);  /* soft feather */
  z-index: -1;                      /* sit behind header */
}


body.scrolled header {
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  color: black(28, 61, 110);
}

.logo img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  box-shadow: 0 0 9px 3px rgba(0,0,0,0.18);
}

.nav {
  display: flex;
  align-items: center;
}

.app-buttons {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.appstore-btn {
  padding: 10px 16px;
  background: #FEF1BD;
  color: black;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.15s ease;
  box-shadow: 0 0 9px 3px rgba(0,0,0,0.18);
}

.appstore-btn:hover {
  background: #009e42;
  transform: translateY(-1px);
}

/* --------------------------------------------------
   SECTIONS
-------------------------------------------------- */
.section {
  position: relative;               /* allow pseudo-element positioning */
  max-width: var(--max-width);
  margin: var(--space-lg) auto;
  padding: var(--space-lg) var(--space-md);
  background: white;
  border-radius: var(--radius);
  z-index: 1;                       /* keep content above the glow */
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;                         /* stretch to full size */
  border-radius: inherit;           /* match the section’s rounding */
  box-shadow: 0 0 10px 5px rgba(0,0,0,0.15); /* soft feather */
  z-index: -1;                      /* sit behind the section */
}


.section h2 {
  margin-bottom: var(--space-md);
  font-size: 2rem;
  text-align: center;
}

/* --------------------------------------------------
   HERO (with intro animation)
-------------------------------------------------- */
.hero {
  text-align: center;
}

.hero h2,
.hero p {
  opacity: 0;
  transform: translateY(10px);
  animation: heroFade 0.8s ease forwards;
}

.hero h2 {
  animation-delay: 0.1s;
}

.hero p {
  animation-delay: 0.25s;
}

@keyframes heroFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* --------------------------------------------------
   SLIDESHOW
-------------------------------------------------- */
figure {
  position: relative;
}

.slideshow {
  display: flex;
  overflow-x: auto; /* keeps horizontal scrolling */
  scroll-snap-type: x mandatory;
  gap: 1rem;
  padding: 1rem;
}

.slideshow figure {
  flex: 0 0 auto;
  text-align: center;
  scroll-snap-align: start;
  margin: 0;
}

.slideshow figcaption {
  font-weight: bold;
  margin-bottom: 0.5em; /* space between caption and image */
  color: #333;
}

.slideshow img {
  width: 294px;
  height: auto;
  border-radius: var(--radius-lg);
  scroll-snap-align: start;
  flex-shrink: 0;
}

.info-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  padding: 10px 14px;
  font-size: 1rem;
  border-radius: 40%;
  background: rgba(0,0,0,0.65);
  color: white;
  border: none;
  cursor: pointer;

  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}


@media (hover: hover) {
  figure:hover .info-btn {
    opacity: 1;
  }
}
/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */
footer {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  color: #6b7280;
  font-size: 0.85rem;
}

/* --------------------------------------------------
   ANIMATION SYSTEM (Fade-in, Slide-up, Stagger)
-------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.35s; }

/* --------------------------------------------------
   MOBILE (≤700px)
-------------------------------------------------- */
/* Mobile layout */
@media (max-width: 700px) {

  header {
    flex-direction: column;
    text-align: center;
    gap: var(--space-sm);
  }

  .app-buttons {
    flex-direction: column;
    width: 100%;
  }

  .appstore-btn {
    width: 90%;
    text-align: center;
  }

  .slideshow {
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: visible;
    scroll-snap-type: none;
  }

  .slideshow img {
    width: 100%;
    max-width: 100%;
  }

  .section h2 {
    font-size: 1.6rem;
  }
}

/* Mobile devices that do NOT support hover (touch screens) */
@media (hover: none) {
  .info-btn {
    opacity: 1;
  }
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  max-width: 400px;
  width: 90%;
  box-shadow: 0 0 40px 20px rgba(0,0,0,0.15);
  position: relative;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}
