/*
Theme Name: Taffne
Theme URI: https://taffne.grass-sites.com
Author: Coffeeshop Taffne
Description: Lichtgewicht custom starter theme voor Coffeeshop Taffne, gebouwd voor snelheid en een warme, gezellige uitstraling.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: taffne
*/

/* ==========================================================================
   Brand tokens
   ========================================================================== */
:root {
  --color-primary: #242935;
  --color-primary-soft: #323847;
  --color-accent: #c99a3e;
  --color-accent-light: #e6bd6f;
  --color-cream: #faf5ea;
  --color-cream-alt: #f2e9d8;
  --color-text: #242935;
  --color-text-soft: #5a5f70;
  --color-white: #ffffff;
  --font-heading: 'Quicksand', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 16px 40px rgba(36, 41, 53, 0.12);
  --max-width: 1180px;
}

/* ==========================================================================
   Fonts (self-hosted)
   ========================================================================== */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('assets/fonts/inter-var.woff2') format('woff2');
}

@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('assets/fonts/quicksand-var.woff2') format('woff2');
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--color-primary);
}
p { margin: 0 0 1em; }
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 96px 0;
}
.section--alt { background: var(--color-cream-alt); }
.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-size: 0.8rem;
  margin-bottom: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
  border: none;
}
.btn--primary {
  background: var(--color-accent);
  color: var(--color-primary);
}
.btn--primary:hover { background: var(--color-accent-light); transform: translateY(-2px); }
.btn--ghost {
  background: transparent;
  color: var(--color-white);
  border: 1.5px solid rgba(255,255,255,0.6);
}
.btn--ghost:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}
.btn--outline:hover { background: var(--color-primary); color: var(--color-white); }

/* ==========================================================================
   Header / sticky nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 245, 234, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(36,41,53,0.06);
  transition: box-shadow 0.3s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(36,41,53,0.08); }
.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--color-primary);
  letter-spacing: 0.01em;
}
.site-logo span { color: var(--color-accent); }
.primary-nav ul { display: flex; gap: 32px; align-items: center; }
.primary-nav a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-primary);
  position: relative;
  padding: 4px 0;
}
.primary-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--color-accent);
  transition: width 0.25s ease;
}
.primary-nav a:hover::after { width: 100%; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--color-white);
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  will-change: transform;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(36,41,53,0.35) 0%, rgba(36,41,53,0.55) 55%, rgba(36,41,53,0.88) 100%);
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 88px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.hero__content.is-visible { opacity: 1; transform: translateY(0); }
.hero h1 {
  color: var(--color-white);
  font-size: clamp(2.4rem, 5vw, 4rem);
  max-width: 16ch;
  margin-bottom: 20px;
}
.hero p {
  font-size: 1.15rem;
  max-width: 46ch;
  color: rgba(255,255,255,0.88);
  margin-bottom: 32px;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ==========================================================================
   Reveal-on-scroll (fade only)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   About
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.about-grid__image { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); }
.about-stats {
  display: flex;
  gap: 32px;
  margin-top: 28px;
}
.about-stat__num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--color-accent);
}
.about-stat__label { font-size: 0.9rem; color: var(--color-text-soft); }

/* ==========================================================================
   Opening hours
   ========================================================================== */
.hours-card {
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 56px;
  max-width: 640px;
  margin: 0 auto;
  box-shadow: var(--shadow-soft);
}
.hours-card h2 { color: var(--color-white); text-align: center; }
.hours-list { margin-top: 24px; }
.hours-list li {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  font-family: var(--font-heading);
  font-weight: 600;
}
.hours-list li:last-child { border-bottom: none; }
.hours-list .day { color: rgba(255,255,255,0.75); font-weight: 500; font-family: var(--font-body); }
.hours-list .time { color: var(--color-accent-light); }
.hours-note {
  text-align: center;
  margin-top: 24px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
}

/* ==========================================================================
   Location
   ========================================================================== */
.location-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: stretch;
}
.location-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-soft);
}
.location-card__row {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(36,41,53,0.08);
}
.location-card__row:last-child { border-bottom: none; }
.location-card__icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--color-cream-alt);
  color: var(--color-accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  min-height: 340px;
}
.map-frame iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* ==========================================================================
   Reviews
   ========================================================================== */
.reviews-wrap { text-align: center; }
.stars {
  color: var(--color-accent);
  font-size: 1.6rem;
  letter-spacing: 4px;
  margin-bottom: 12px;
}
.review-score {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 3rem;
  color: var(--color-primary);
}
.review-count { color: var(--color-text-soft); margin-bottom: 32px; }
.review-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
  margin-top: 40px;
}
.review-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}
.review-card .stars { font-size: 1rem; margin-bottom: 12px; }
.review-card p { color: var(--color-text-soft); font-size: 0.95rem; }
.review-card__name { font-family: var(--font-heading); font-weight: 600; color: var(--color-primary); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.contact-grid__image { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); }
.contact-list { margin-top: 24px; }
.contact-list li { padding: 10px 0; font-family: var(--font-heading); font-weight: 600; }
.contact-list a:hover { color: var(--color-accent); }

/* ==========================================================================
   Age gate
   ========================================================================== */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}
.age-gate__inner { max-width: 420px; }
.age-gate__logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.6rem;
  margin-bottom: 24px;
}
.age-gate__logo span { color: var(--color-accent-light); }
.age-gate h2 { color: var(--color-white); }
.age-gate p { color: rgba(255,255,255,0.75); margin-bottom: 28px; }
.age-gate__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
html.age-verified .age-gate { display: none; }
html:not(.age-verified) body { overflow: hidden; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 32px;
}
.site-footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.site-footer .site-logo { color: var(--color-white); }
.site-footer .site-logo span { color: var(--color-accent-light); }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a:hover { color: var(--color-accent-light); }
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.footer-social a:hover { border-color: var(--color-accent-light); color: var(--color-accent-light); }
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.85rem;
}

/* ==========================================================================
   Legal / generic page
   ========================================================================== */
.legal-page { padding: 96px 0; max-width: 780px; margin: 0 auto; }
.legal-page h1 { margin-bottom: 24px; }
.legal-page h2 { margin-top: 2em; font-size: 1.3rem; }
.legal-page p, .legal-page li { color: var(--color-text-soft); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .about-grid, .location-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .review-cards { grid-template-columns: 1fr; }
  .hours-card { padding: 36px 28px; }
  .section { padding: 64px 0; }
}
@media (max-width: 720px) {
  .primary-nav { position: fixed; inset: 72px 0 0 0; background: var(--color-cream); padding: 24px; transform: translateX(100%); transition: transform 0.3s ease; overflow-y: auto; }
  .primary-nav.is-open { transform: translateX(0); }
  .primary-nav ul { flex-direction: column; align-items: flex-start; gap: 20px; }
  .primary-nav a { font-size: 1.2rem; }
  .nav-toggle { display: block; }
  .hero { min-height: 92vh; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero__content { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero__media img { transform: none !important; }
}
