/*
Theme Name: Egbert Broers
Theme URI: https://egbertbroers.nl
Author: Studio Stoffertjes
Author URI: https://studio.stoffertjes.com
Description: Thema voor Egbert Broers, sigarenspecialist op het Fnidsen in Alkmaar sinds 1883. Vaste opmaak — de pagina's staan in de themabestanden, niet in de WordPress-editor.
Version: 1.3
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: egbert-broers
*/

/* Egbert Broers — Anno 1883
   Vintage sigarenzaak-sfeer, moderne clean opmaak (referentie: Devialet-layout) */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;900&family=Inter:wght@400;500;600;700&family=Pinyon+Script&display=swap');

:root {
  --bordeaux: #6d1f2b;
  --bordeaux-dark: #4a141d;
  --wood: #2e1c12;
  --wood-light: #4a2f1c;
  --brass: #b8863f;
  --brass-light: #d9b06e;
  --brass-text: #7d581e;
  --cream: #f3e8d3;
  --paper: #faf6ee;
  --paper-soft: #f1e9db;
  --ink: #241a13;
  --ink-soft: #6b5d4f;
  --line: rgba(46, 28, 18, 0.12);
  --shadow: 0 24px 48px rgba(46, 28, 18, 0.16);
  --radius: 18px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-word {
  font-family: 'Playfair Display', serif;
  color: var(--wood);
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

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

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

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-text);
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--brass-text);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--wood);
  color: var(--paper);
  padding: 12px 20px;
  z-index: 999;
}
.skip-link:focus { left: 16px; top: 16px; }

/* Nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 238, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand .brand-word {
  font-size: 21px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.brand .brand-sub {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--brass-text);
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.nav-links a {
  position: relative;
  padding: 6px 0;
  color: var(--ink);
  transition: color 0.25s var(--ease-soft);
}

.nav-links a.active,
.nav-links a:hover { color: var(--bordeaux); }

.nav-right { display: flex; align-items: center; gap: 20px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    background 0.3s var(--ease-soft), color 0.3s var(--ease-soft);
}

.btn-primary {
  background: var(--bordeaux);
  color: var(--paper);
}
.btn-primary:hover { background: var(--bordeaux-dark); transform: translateY(-2px); box-shadow: 0 12px 24px rgba(74, 20, 29, 0.25); }
.btn-primary:active { transform: translateY(0); transition-duration: 0.1s; }

.btn-ghost {
  background: transparent;
  border-color: var(--wood);
  color: var(--wood);
}
.btn-ghost:hover { background: var(--wood); color: var(--paper); transform: translateY(-2px); }
.btn-ghost:active { transform: translateY(0); transition-duration: 0.1s; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span {
  width: 100%;
  height: 2px;
  background: var(--wood);
  display: block;
  transform-origin: center;
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease-soft), width 0.25s var(--ease-soft);
}
.nav-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  padding: 90px 0 40px;
  text-align: center;
  position: relative;
}

.hero .eyebrow { justify-content: center; display: flex; margin-bottom: 22px; }

.hero h1 {
  font-family: 'Pinyon Script', cursive;
  font-size: clamp(52px, 15vw, 190px);
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.2;
}

.hero .tagline {
  margin: 18px auto 0;
  max-width: 480px;
  font-size: 17px;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 34px;
}

.hero-stage {
  position: relative;
  margin: 64px auto 0;
  max-width: 620px;
}

.hero-podium {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(184, 134, 63, 0.35);
}

.photo-placeholder {
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(160deg, rgba(0,0,0,0.28), transparent 60%),
    linear-gradient(135deg, var(--wood-light), var(--wood) 55%, var(--bordeaux-dark));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-placeholder svg { width: 30%; opacity: 0.5; }

.photo-placeholder {
  overflow: hidden;
}

.photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.hero-podium::after {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -18px;
  height: 36px;
  background: radial-gradient(ellipse at center, rgba(46,28,18,0.32), transparent 70%);
  filter: blur(6px);
}

.scroll-cue {
  margin: 40px auto 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: hero-in 0.9s var(--ease) both 0.6s, bob 2.4s ease-in-out infinite 1.5s;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@keyframes hero-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero .eyebrow,
.hero h1,
.hero .tagline,
.hero-actions,
.hero-stage {
  animation: hero-in 0.9s var(--ease) both;
}
.hero h1 { animation-delay: 0.08s; }
.hero .tagline { animation-delay: 0.18s; }
.hero-actions { animation-delay: 0.28s; }
.hero-stage { animation-delay: 0.4s; }

/* Section shell */
.section { padding: 110px 0; }
.section-tight { padding: 70px 0; }
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section-header h2 {
  font-size: clamp(30px, 4vw, 42px);
  margin-top: 16px;
}
.section-header p {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 16px;
}

/* About / geschiedenis */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 48px;
  align-items: start;
}
.about-grid .divider { background: var(--line); }
.about-grid p { color: var(--ink-soft); font-size: 15.5px; }
.about-grid p + p { margin-top: 16px; }

.about-lead {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  margin-bottom: 56px;
}

.about-year {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.about-year-num {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(72px, 12vw, 120px);
  line-height: 0.85;
  letter-spacing: -0.02em;
  color: var(--brass);
  -webkit-text-stroke: 1.5px var(--brass);
  -webkit-text-fill-color: transparent;
}

.about-intro {
  max-width: 640px;
}
.about-intro h2 {
  font-size: clamp(30px, 4vw, 42px);
  margin-top: 16px;
}
.about-intro p {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 16px;
}

/* Photo row */
.photo-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.photo-row.photo-row-2 { grid-template-columns: repeat(2, 1fr); }
.photo-row .photo-placeholder {
  border-radius: var(--radius);
  aspect-ratio: 5 / 4;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.photo-row .photo-placeholder:hover img {
  transform: scale(1.06);
}

/* Collectie (assortiment carousel, referentie: Devialet-collectiesectie) */
.collectie-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  margin-bottom: 48px;
}

.collectie-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.collectie-side-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.collectie-arrow {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--wood);
  cursor: pointer;
  transition: background 0.3s var(--ease-soft), color 0.3s var(--ease-soft), transform 0.3s var(--ease);
}
.collectie-arrow:hover {
  background: var(--wood);
  color: var(--paper);
  transform: scale(1.08);
}
.collectie-arrow:active { transform: scale(0.95); transition-duration: 0.1s; }

.collectie-slide {
  position: relative;
  width: min(560px, 100%);
  min-height: 320px;
}

.collectie-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 56px 48px;
  text-align: center;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  pointer-events: none;
}
.collectie-card.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  position: relative;
}

.collectie-card .card-icon {
  margin: 0 auto 22px;
  width: 56px;
  height: 56px;
  border-radius: 16px;
}
.collectie-card .card-icon svg { width: 26px; height: 26px; }
.collectie-card h3 { font-size: 26px; }
.collectie-card p { margin-top: 14px; color: var(--ink-soft); font-size: 15px; }
.collectie-card .card-link { margin-top: 20px; font-size: 14px; }

.collectie-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.collectie-title {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
  text-transform: uppercase;
}

.collectie-pagination {
  display: flex;
  gap: 16px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.collectie-pagination span {
  cursor: pointer;
  color: var(--ink-soft);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.3s var(--ease-soft), border-color 0.3s var(--ease-soft);
}
.collectie-pagination span.active {
  color: var(--bordeaux);
  border-color: var(--bordeaux);
}

@media (max-width: 640px) {
  .collectie-stage { gap: 14px; }
  .collectie-side-label { display: none; }
  .collectie-arrow { width: 42px; height: 42px; font-size: 17px; }
  .collectie-card { padding: 40px 26px; }
}

/* Assortiment cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.card {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--wood);
  color: var(--brass-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 22px; height: 22px; }

.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--ink-soft); }
.card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--bordeaux);
}

/* Praktische info panel */
.panel {
  background: var(--wood);
  color: var(--cream);
  border-radius: 28px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.panel h2, .panel h3 { color: var(--paper); }
.panel .eyebrow { color: var(--brass-light); }
.panel .eyebrow::before { background: var(--brass-light); }
.panel .hours-list li span:last-child { color: var(--brass-light); }
.panel .hours-list li { border-bottom-color: rgba(243, 232, 211, 0.14); }

.hours-list { list-style: none; padding: 0; margin: 20px 0 0; }
.hours-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.hours-list li span:last-child { color: var(--brass-text); font-weight: 600; }

.contact-lines { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.contact-lines a { font-weight: 600; transition: color 0.25s var(--ease-soft); }
.contact-lines a:hover { color: var(--brass-light); }

/* Reviews (Google Maps JavaScript API, zie brief.md) */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  min-height: 120px;
}
.review-card {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.review-stars {
  color: var(--brass-text);
  font-size: 16px;
  letter-spacing: 3px;
}
.review-quote {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 15px;
  font-style: italic;
  line-height: 1.6;
}
.review-author {
  display: block;
  margin-top: 18px;
  font-weight: 600;
  color: var(--wood);
  font-size: 13.5px;
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: 90px 0;
}
.cta-band h2 { font-size: clamp(28px, 4vw, 40px); }
.cta-band p { margin: 16px 0 32px; color: var(--ink-soft); }

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 48px 0;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-grid .brand-sub { margin-top: 8px; color: var(--ink-soft); font-size: 13px; }
.footer-lines { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--ink-soft); }
.footer-note { margin-top: 32px; font-size: 12.5px; color: var(--ink-soft); text-align: center; }

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: start;
}

.info-card {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.info-card h3 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brass-text); margin-bottom: 6px; }
.info-card + .info-card { margin-top: 20px; }

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-top: 20px;
}
.map-frame iframe { width: 100%; height: 260px; border: 0; display: block; }

.form-card {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 40px;
}

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--wood);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  transition: border-color 0.3s var(--ease-soft), box-shadow 0.3s var(--ease-soft);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(184, 134, 63, 0.16);
}
.field textarea { resize: vertical; min-height: 130px; }

.form-note {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.form-status {
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--bordeaux);
  display: none;
  align-items: center;
  gap: 8px;
}
.form-status svg { flex-shrink: 0; color: var(--brass); }
.form-status.visible {
  display: flex;
  animation: hero-in 0.5s var(--ease) both;
}

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-stagger.in-view > * {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.in-view > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.in-view > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.in-view > *:nth-child(3) { transition-delay: 0.24s; }
.reveal-stagger.in-view > *:nth-child(4) { transition-delay: 0.36s; }

/* Responsive */
@media (max-width: 980px) {
  .about-lead { margin-bottom: 40px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-grid .divider { display: none; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: 1fr; }
  .panel { grid-template-columns: 1fr; padding: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
}

.mobile-only { display: none; }

@media (max-width: 720px) {
  .nav-right .btn-ghost, .nav-right .btn-primary { display: none; }
  .menu-toggle { display: flex; }
  .photo-row { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
  .mobile-only { display: block; }

  .nav-links {
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    padding: 0 32px;
    gap: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    border-bottom: 1px solid transparent;
    transition: max-height 0.45s var(--ease), opacity 0.3s var(--ease-soft),
      padding 0.45s var(--ease), border-color 0.3s var(--ease-soft);
  }

  .nav-open .nav-links {
    max-height: 420px;
    opacity: 1;
    padding: 24px 32px;
    gap: 20px;
    pointer-events: auto;
    border-bottom-color: var(--line);
  }

  .nav-links .btn { display: inline-flex; }
}

/* Contactformulier via een plugin (Contact Form 7)
   De velden zitten in <div class="field">, dus de opmaak hierboven geldt al.
   Hieronder alleen wat de plugin zelf toevoegt. */
.form-plugin .wpcf7-form-control-wrap { display: block; }

.form-plugin input[type="submit"] { width: 100%; }

.form-plugin .wpcf7-not-valid-tip {
  margin-top: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--bordeaux);
}

.form-plugin .wpcf7-response-output {
  margin: 16px 0 0;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  font-size: 13.5px;
  color: var(--bordeaux);
}

/* Zonder tekst erin hoort er geen leeg kadertje te staan. */
.form-plugin .wpcf7-response-output:empty { display: none; }

/* De laadindicator van de plugin blijft normaal onzichtbaar, maar houdt dan wel
   ruimte bezet. Daarom pas tonen zodra er echt verzonden wordt. */
.form-plugin .wpcf7-spinner { display: none; }

.form-plugin form.submitting .wpcf7-spinner {
  display: block;
  visibility: visible;
  margin: 14px auto 0;
}

/* Bedankt-blok: komt in de plaats van het formulier zodra het bericht weg is */
.form-inhoud.form-verborgen { display: none; }

.form-bedankt {
  display: none;
  text-align: center;
  padding: 30px 8px 14px;
}

.form-bedankt.zichtbaar {
  display: block;
  animation: hero-in 0.6s var(--ease) both;
}

.form-bedankt:focus { outline: none; }

.bedankt-vink {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(184, 134, 63, 0.16);
  color: var(--brass-text);
}

.form-bedankt h3 { font-size: 24px; }

.form-bedankt p {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 14.5px;
}
