/*
Theme Name: Cookietown
Theme URI: https://cookietown.nl
Author: Cookietown
Author URI: https://cookietown.nl
Description: Ambachtelijk WordPress thema voor Cookietown — versgebakken koekjes, bonbons en taarten op bestelling.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cookietown
Tags: custom-colors, custom-menu, featured-images, responsive-layout, one-column
*/

/* ============================================
   COOKIETOWN THEME — MAIN STYLESHEET
   ============================================ */

:root {
  --cream: #FDF6EC;
  --warm-white: #FFFBF5;
  --brown-dark: #2C1A0E;
  --brown-mid: #5C3D1E;
  --brown-light: #A0674A;
  --caramel: #C8813A;
  --gold: #E8A94D;
  --chocolate: #3D1C08;
  --text: #2C1A0E;
  --text-muted: #7A5C45;
  --border: rgba(160, 103, 74, 0.2);
  --radius: 1.5rem;
  --max-width: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ============ TYPOGRAPHY ============ */

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--chocolate);
}

/* ============ LAYOUT UTILITIES ============ */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section { padding: 6rem 2rem; }
.section--dark { background: var(--chocolate); }
.section--light { background: var(--warm-white); }

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--caramel);
  margin-bottom: 1rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid rgba(200, 129, 58, 0.3);
  border-radius: 2rem;
}

.section--dark .section-tag {
  color: var(--gold);
  border-color: rgba(232, 169, 77, 0.3);
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900;
  margin-bottom: 1rem;
}

.section-title em { font-style: italic; color: var(--caramel); }
.section--dark .section-title { color: var(--cream); }
.section--dark .section-title em { color: var(--gold); }

.section-body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 600px;
}

.section--dark .section-body { color: rgba(253,246,236,0.7); max-width: 560px; margin: 0 auto 2.5rem; text-align: center; }

.divider {
  width: 48px;
  height: 3px;
  background: var(--caramel);
  border-radius: 2px;
  margin: 1.25rem 0 1.5rem;
}

.section--dark .divider {
  background: var(--gold);
  margin: 1.25rem auto 1.5rem;
}

/* ============ BUTTONS ============ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: 3rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
  text-decoration: none;
}

.btn--primary {
  background: var(--chocolate);
  color: var(--cream);
  box-shadow: 0 4px 20px rgba(44, 26, 14, 0.25);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(44,26,14,0.3); }

.btn--secondary {
  background: transparent;
  color: var(--brown-mid);
  border: 1.5px solid var(--border);
}
.btn--secondary:hover { border-color: var(--caramel); color: var(--caramel); }

.btn--gold {
  background: var(--gold);
  color: var(--chocolate);
  font-weight: 600;
}
.btn--gold:hover { background: #d49a3c; }

.btn--ghost {
  background: rgba(253,246,236,0.1);
  color: var(--cream);
  border: 1px solid rgba(253,246,236,0.2);
}
.btn--ghost:hover { background: rgba(253,246,236,0.18); border-color: rgba(253,246,236,0.4); }

/* ============ NAVIGATION ============ */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  background: rgba(253, 246, 236, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(44,26,14,0.08);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--chocolate);
  text-decoration: none;
  letter-spacing: -0.02em;
  line-height: 1;
}
.site-logo span { color: var(--caramel); }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.main-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brown-mid);
  transition: color 0.2s;
}
.main-nav a:hover { color: var(--caramel); }

.main-nav .btn--primary {
  font-size: 0.85rem;
  padding: 0.55rem 1.3rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--chocolate);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ============ HERO ============ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -150px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(232,169,77,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -50px; left: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(200,129,58,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--caramel);
  margin-bottom: 1.5rem;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(200,129,58,0.35);
  border-radius: 2rem;
  animation: fadeUp 0.8s ease both;
}

.hero h1 {
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s 0.1s ease both;
}
.hero h1 em { font-style: italic; color: var(--caramel); }

.hero-sub {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.8s 0.2s ease both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp 0.8s 0.3s ease both;
}

.hero-visual { animation: fadeIn 1s 0.4s ease both; }

.hero-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.hero-card {
  background: var(--warm-white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  border: 1px solid var(--border);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.hero-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(44,26,14,0.1); }

.hero-card--featured {
  grid-column: 1 / -1;
  background: var(--chocolate);
}

.hero-card .emoji { font-size: 2.5rem; margin-bottom: 0.75rem; display: block; }

.hero-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--chocolate);
}
.hero-card--featured h3 { color: var(--gold); }

.hero-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }
.hero-card--featured p { color: rgba(253,246,236,0.7); }

/* ============ TRUST BAR ============ */

.trust-bar {
  background: var(--chocolate);
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: rgba(253,246,236,0.85);
}

.trust-item::before {
  content: '';
  display: block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* ============ PRODUCTS ============ */

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}

.product-card {
  background: var(--cream);
  border-radius: 1.75rem;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(44,26,14,0.12); }

.product-card__image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.product-card__placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.product-card__placeholder--1 { background: linear-gradient(135deg, #3D1C08, #7B3F20); }
.product-card__placeholder--2 { background: linear-gradient(135deg, #7B3F20, #C8813A); }
.product-card__placeholder--3 { background: linear-gradient(135deg, #C8813A, #E8A94D); }

.product-card__body { padding: 1.75rem; }

.product-card__body h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--chocolate);
  margin-bottom: 0.6rem;
}

.product-card__body p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.tag-list { display: flex; gap: 0.4rem; flex-wrap: wrap; }

.tag {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 2rem;
  background: rgba(200,129,58,0.12);
  color: var(--caramel);
  border: 1px solid rgba(200,129,58,0.25);
}

/* ============ ABOUT ============ */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.about-feature {
  background: var(--warm-white);
  border-radius: 1.25rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
}
.about-feature .icon { font-size: 1.5rem; margin-bottom: 0.75rem; display: block; }
.about-feature h4 { font-size: 0.95rem; font-weight: 700; color: var(--chocolate); margin-bottom: 0.3rem; }
.about-feature p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }

.about-quote-card {
  background: var(--chocolate);
  border-radius: 2rem;
  padding: 3rem 2.5rem;
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.about-quote-card::before {
  content: '🍫';
  position: absolute;
  font-size: 10rem;
  bottom: -2rem; right: -1rem;
  opacity: 0.08;
}
.about-quote-card blockquote {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.about-quote-card cite {
  font-size: 0.85rem;
  color: rgba(253,246,236,0.6);
  font-style: normal;
  display: block;
}

/* ============ OCCASIONS ============ */

.occasions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.occasion-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid var(--border);
  transition: transform 0.2s, background 0.2s;
}
.occasion-card:hover { transform: translateY(-4px); background: var(--chocolate); }
.occasion-card:hover h4 { color: var(--cream); }
.occasion-card:hover p { color: rgba(253,246,236,0.7); }

.occasion-card .icon { font-size: 2.5rem; margin-bottom: 1rem; display: block; }
.occasion-card h4 { font-size: 1rem; font-weight: 700; color: var(--chocolate); margin-bottom: 0.4rem; transition: color 0.2s; }
.occasion-card p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; transition: color 0.2s; }

/* ============ CONTACT ============ */

.contact-inner { text-align: center; }

.contact-options {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* ============ FOOTER ============ */

.site-footer {
  background: var(--brown-dark);
  padding: 2rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--cream);
  text-decoration: none;
}
.footer-logo span { color: var(--gold); }

.footer-copy { font-size: 0.8rem; color: rgba(253,246,236,0.4); }

/* ============ ANIMATIONS ============ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ============ RESPONSIVE ============ */

@media (max-width: 1024px) {
  .products-grid { grid-template-columns: 1fr 1fr; }
  .occasions-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero { padding: 7rem 1.5rem 3rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .section { padding: 4rem 1.5rem; }
  .products-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .occasions-grid { grid-template-columns: 1fr 1fr; }
  .main-nav ul { display: none; }
  .main-nav.is-open ul {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: rgba(253,246,236,0.98);
    backdrop-filter: blur(12px);
    padding: 2rem;
    gap: 1.5rem;
    align-items: center;
    border-bottom: 1px solid var(--border);
  }
  .menu-toggle { display: flex; }
  .trust-bar { gap: 1.5rem; }
}

@media (max-width: 480px) {
  .occasions-grid { grid-template-columns: 1fr; }
  .about-features { grid-template-columns: 1fr; }
}

/* ============ WORDPRESS DEFAULTS ============ */

.wp-block-image { margin: 2rem 0; }
.aligncenter { text-align: center; }
.alignleft { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
