/* =========================================
   PLEKKIE — style.css
   Modern informational landing page
========================================= */

/* ---- Custom Properties ---- */
:root {
  --turquoise:       #2BB7B8;
  --turquoise-dark:  #229899;
  --turquoise-light: rgba(43, 183, 184, 0.1);
  --black:           #111111;
  --white:           #ffffff;
  --grey-light:      #f5f5f5;
  --grey:            #888888;
  --grey-border:     #e8e8e8;
  --grey-bg:         #f8f8f8;
  --text-secondary:  #555555;

  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --container:      1200px;
  --nav-height:     70px;
  --radius:         16px;
  --radius-sm:      10px;
  --section-pad:    clamp(72px, 9vw, 128px);

  --shadow-sm: 0 1px 4px rgba(0,0,0,0.07);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);

  --transition: 0.2s ease;
}

/* =========================================
   RESET & BASE
========================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
  max-width: 100%;
}

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

ul {
  list-style: none;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* =========================================
   LAYOUT HELPERS
========================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

/* =========================================
   BUTTONS
========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 12px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: var(--turquoise);
  color: var(--white);
  border-color: var(--turquoise);
}

.btn-primary:hover {
  background: var(--turquoise-dark);
  border-color: var(--turquoise-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(43, 183, 184, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--black);
  border-color: var(--grey-border);
}

.btn-outline:hover {
  border-color: var(--black);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-lg {
  padding: 17px 36px;
  font-size: 16px;
  border-radius: 14px;
}

/* Form submit button (inside turquoise section) */
.btn-submit {
  background: var(--black);
  color: var(--white);
  border: none;
  padding: 0 28px;
  height: 56px;
  border-radius: 12px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--transition);
}

.btn-submit:hover {
  background: #2a2a2a;
  transform: translateY(-1px);
}

/* =========================================
   NAVIGATION
========================================= */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
  border-color: var(--grey-border);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: 24px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.logo-text {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #3F6465;
  letter-spacing: 0;
}

.logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.logo-img-footer {
  height: 32px;
  /* Invert to white so the logo is leesbaar op donkere footer achtergrond */
  filter: brightness(0) invert(1);
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 14px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--grey);
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}

.nav-link:hover {
  color: var(--black);
  background: var(--grey-light);
}

.nav-cta {
  margin-left: 10px;
  padding: 10px 20px;
  font-size: 14px;
}

/* Hamburger button (hidden on desktop) */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background var(--transition);
}

.hamburger:hover {
  background: var(--grey-light);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

/* Hamburger open state — animates to X */
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================
   HERO
========================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

/* Subtle dot grid background */
.hero-bg-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #cecece 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.4;
  pointer-events: none;
}

/* Gradient vignette fades dots at edges */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at 70% 50%, transparent 20%, rgba(255,255,255,0.85) 80%),
    linear-gradient(to bottom, rgba(255,255,255,0.5) 0%, transparent 20%, transparent 80%, rgba(255,255,255,0.9) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  padding-top: clamp(40px, 5vw, 72px);
  padding-bottom: clamp(60px, 7vw, 100px);
}

/* Hero badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--turquoise-light);
  color: var(--turquoise-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
  letter-spacing: 0.1px;
}

.badge-dot {
  display: block;
  width: 7px;
  height: 7px;
  background: var(--turquoise);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.8); }
}

/* Hero title */
.hero-title {
  font-size: clamp(42px, 5.5vw, 76px);
  font-weight: 900;
  letter-spacing: clamp(-2px, -0.03em, -3px);
  line-height: 1.04;
  color: var(--black);
  margin-bottom: 22px;
}

/* Hero subtitle */
.hero-subtitle {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 460px;
  margin-bottom: 38px;
}

/* CTA buttons group */
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---- Phone Mockup ---- */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-frame {
  position: relative;
  width: clamp(210px, 22vw, 268px);
  aspect-ratio: 9 / 19.5;
  background: #1a1a1a;
  border-radius: 44px;
  padding: 12px;
  box-shadow:
    0 0 0 1.5px #2a2a2a,
    0 0 0 3px #111,
    var(--shadow-lg),
    0 40px 80px rgba(0,0,0,0.2);
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 26px;
  background: #1a1a1a;
  border-radius: 0 0 18px 18px;
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--grey-light);
  border-radius: 34px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-screenshot-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 20px;
  color: #aaa;
  font-size: 11.5px;
  line-height: 1.5;
}

.phone-home-bar {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 4px;
  background: rgba(255,255,255,0.28);
  border-radius: 4px;
}

/* Floating status cards (decorative) */
.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--white);
  border-radius: 12px;
  padding: 11px 16px;
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--black);
}

.card-1 {
  right: -16px;
  top: 16%;
  animation: float 3.2s ease-in-out infinite;
}

.card-2 {
  left: -24px;
  bottom: 22%;
  animation: float 3.2s ease-in-out 1.6s infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.busy  { background: #ff6b6b; }
.status-dot.quiet { background: #51cf66; }

/* =========================================
   SECTION — SHARED
========================================= */
.section {
  padding: var(--section-pad) 0;
}

.section-grey {
  background: var(--grey-light);
}

/* Centered section header */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto clamp(48px, 6vw, 80px);
}

.section-tag {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--turquoise-dark);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 14px;
  color: var(--black);
}

.section-subtitle {
  font-size: clamp(15px, 1.7vw, 18px);
  color: #666;
  line-height: 1.65;
}

/* =========================================
   HOW IT WORKS — STEPS
========================================= */
#hoe-het-werkt {
  background: var(--white);
}

/* 5-column grid: step / arrow / step / arrow / step */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 16px;
  align-items: start;
  max-width: 880px;
  margin: 0 auto;
}

.step {
  position: relative;
  text-align: center;
  padding: 8px 12px;
}

/* Large decorative number (watermark behind content) */
.step-number {
  display: block;
  font-size: clamp(72px, 10vw, 108px);
  font-weight: 900;
  color: rgba(43, 183, 184, 0.1);
  line-height: 1;
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  user-select: none;
  letter-spacing: -4px;
  pointer-events: none;
}

.step-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: var(--turquoise-light);
  border-radius: 20px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.step-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--black);
  position: relative;
  z-index: 1;
}

.step-desc {
  font-size: 15px;
  color: #666;
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

/* Arrow between steps */
.step-connector {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 28px; /* roughly centres with icon */
  color: #bbb;
}

/* =========================================
   FEATURES GRID
========================================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--grey-border);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--turquoise-light);
  border-radius: 14px;
  margin-bottom: 18px;
}

.feature-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--black);
}

.feature-desc {
  font-size: 15px;
  color: #666;
  line-height: 1.65;
}

/* =========================================
   FOR CAFES
========================================= */
#voor-cafes {
  background: var(--white);
}

.cafes-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 88px);
  align-items: center;
}

.cafes-content .section-title,
.cafes-content .section-subtitle {
  text-align: left;
}

.cafes-content .section-subtitle {
  max-width: 420px;
  margin-bottom: 32px;
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 38px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15.5px;
  color: #444;
  line-height: 1.6;
}

.benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--turquoise-light);
  border-radius: 8px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Café image/illustration placeholder */
.cafe-image-placeholder {
  background: var(--grey-light);
  border-radius: 24px;
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #aaa;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
  border: 2px dashed var(--grey-border);
}

/* =========================================
   EARLY ACCESS
========================================= */
.section-turquoise {
  background: var(--turquoise);
}

.early-inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.section-turquoise .section-title {
  color: var(--white);
}

.early-subtitle {
  font-size: clamp(15px, 1.7vw, 18px);
  color: rgba(255,255,255,0.88);
  line-height: 1.65;
  margin-bottom: 38px;
}

.email-form {
  width: 100%;
}

.form-row {
  display: flex;
  gap: 10px;
  max-width: 500px;
  margin: 0 auto 14px;
}

.email-input {
  flex: 1;
  height: 56px;
  padding: 0 20px;
  border: 2px solid transparent;
  border-radius: 12px;
  font-family: var(--font);
  font-size: 15px;
  background: var(--white);
  color: var(--black);
  outline: none;
  transition: border-color var(--transition);
}

.email-input:focus {
  border-color: rgba(0,0,0,0.15);
}

.email-input::placeholder {
  color: #aaa;
}

.form-note {
  font-size: 13px;
  color: rgba(255,255,255,0.68);
  margin-top: 14px;
}

/* Success message */
.form-success {
  font-size: 14px;
  font-weight: 600;
  min-height: 0;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease, margin 0.3s ease;
}

.form-success.show {
  max-height: 60px;
  opacity: 1;
  color: var(--white);
  background: rgba(0,0,0,0.18);
  border-radius: 8px;
  padding: 10px 16px;
  margin: 14px auto 0;
  max-width: 500px;
}

/* =========================================
   FOOTER
========================================= */
footer {
  background: var(--black);
  color: var(--white);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 48px;
  padding-bottom: 32px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-logo-text {
  color: var(--white);
}

.footer-tagline {
  font-size: 14px;
  color: #555;
  margin-top: 2px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
}

.footer-link {
  font-size: 14px;
  color: #666;
  transition: color var(--transition);
}

.footer-link:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid #1e1e1e;
  padding: 18px 0;
}

.footer-bottom p {
  font-size: 13px;
  color: #444;
  text-align: center;
}

/* =========================================
   SCROLL ANIMATIONS
========================================= */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children of steps grid */
.steps-grid > .step:nth-child(1) { transition-delay: 0s; }
.steps-grid > .step:nth-child(3) { transition-delay: 0.12s; }
.steps-grid > .step:nth-child(5) { transition-delay: 0.24s; }

/* Stagger feature cards */
.features-grid > .feature-card:nth-child(1) { transition-delay: 0s; }
.features-grid > .feature-card:nth-child(2) { transition-delay: 0.08s; }
.features-grid > .feature-card:nth-child(3) { transition-delay: 0.16s; }
.features-grid > .feature-card:nth-child(4) { transition-delay: 0.24s; }

/* =========================================
   RESPONSIVE — TABLET (≤ 900px)
========================================= */
@media (max-width: 900px) {
  /* Hero: stack vertically */
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-visual {
    order: -1; /* phone above text on mobile */
  }

  .phone-frame {
    width: clamp(180px, 45vw, 240px);
  }

  .card-1 { right: 4px; }
  .card-2 { left: 4px; }

  /* For cafes: stack vertically */
  .cafes-inner {
    grid-template-columns: 1fr;
  }

  .cafes-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .cafes-content .section-title,
  .cafes-content .section-subtitle {
    text-align: center;
    max-width: 100%;
  }

  .benefits-list {
    max-width: 460px;
    text-align: left;
  }
}

/* =========================================
   RESPONSIVE — MOBILE (≤ 640px)
========================================= */
@media (max-width: 640px) {
  /* Show hamburger, hide nav links */
  .hamburger { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 4px;
    border-bottom: 1px solid var(--grey-border);
    box-shadow: var(--shadow-md);
  }

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

  .nav-link {
    padding: 12px 14px;
    font-size: 16px;
    color: var(--black);
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 8px;
    justify-content: center;
  }

  /* Hero */
  .hero-title {
    letter-spacing: -1.8px;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
    max-width: 340px;
  }

  .hero-ctas .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Hide floating cards on small screens */
  .card-1, .card-2 { display: none; }

  /* Steps: single column */
  .steps-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin: 0 auto;
  }

  .step-connector { display: none; }

  /* Features: single column */
  .features-grid {
    grid-template-columns: 1fr;
  }

  /* Email form: stack vertically */
  .form-row {
    flex-direction: column;
  }

  .btn-submit {
    width: 100%;
    justify-content: center;
  }

  /* Footer: stack */
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}
