/* Moroccan Sweet House — componenten. Alle waarden komen uit tokens.css. */

.skip-link {
  position: absolute; left: var(--sp-4); top: -100px; z-index: 100;
  background: var(--brand-700); color: var(--on-dark); padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-sm); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: var(--sp-4); }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: var(--text-sm); font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-500);
}
.eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--amber); transform: rotate(45deg); border-radius: 2px; }
.lead { font-size: var(--text-lg); color: var(--text-soft); }
.section-head { display: grid; gap: var(--sp-3); margin-bottom: var(--sp-12); }
.section-head--center { text-align: center; justify-items: center; }
.section-head--center p { margin-inline: auto; }

/* Zellige-ster (8-puntige ster) als decoratief motief */
.star-rule { display: flex; align-items: center; gap: var(--sp-3); color: var(--amber); }
.star-rule::before, .star-rule::after { content: ""; height: 1px; flex: 1; background: currentColor; opacity: .6; }
.star-rule svg { width: 22px; height: 22px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(236, 208, 160, .97); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid #d4b27a; box-shadow: 0 2px 12px rgba(59, 29, 7, .06);
}
.header-inner { display: flex; align-items: center; gap: var(--sp-6); min-height: 72px; }
.brand { flex: none; display: flex; align-items: center; gap: var(--sp-3); min-height: 48px; text-decoration: none; color: var(--brand-700); margin-right: auto; }
.brand img { width: 64px; height: auto; }
.brand span { font: 700 1.05rem/1.05 var(--font-body); letter-spacing: .08em; text-transform: uppercase; }
.brand small { display: block; font-size: .72rem; letter-spacing: .12em; font-weight: 500; color: var(--text-soft); }
.nav ul { display: flex; gap: var(--sp-6); list-style: none; padding: 0; }
.nav a { color: var(--brand-700); text-decoration: none; font-weight: 500; padding: var(--sp-2) 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-color: var(--amber); }
.header-cta { display: flex; gap: var(--sp-2); }
.header-cta .btn { padding-inline: var(--sp-4); min-height: 44px; }
.nav-toggle { display: none; }

@media (max-width: 1080px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
    background: none; border: 1px solid var(--brand-700); border-radius: 12px; color: var(--brand-700); cursor: pointer;
  }
  .nav-toggle svg { width: 24px; height: 24px; }
  .nav {
    position: absolute; inset: 100% 0 auto 0; background: #ecd0a0; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow); display: none;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: var(--sp-2) var(--sp-4) var(--sp-4); }
  .nav a { display: block; padding: var(--sp-3) 0; border-bottom: 1px solid var(--border); }
  .header-cta .btn--call { display: none; }
}
@media (max-width: 480px) {
  .brand img { width: 52px; }
  .brand span { font-size: .9rem; }
  .brand small { display: none; }
  .header-cta .btn { padding-inline: var(--sp-3); }
  .header-cta .btn .label { display: none; }
  .header-inner { gap: var(--sp-2); }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(var(--sp-8), 6vw, var(--sp-16)) clamp(var(--sp-16), 8vw, var(--sp-24)); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cpath d='M32 14l5.3 12.7L50 32l-12.7 5.3L32 50l-5.3-12.7L14 32l12.7-5.3z' fill='none' stroke='%23e79937' stroke-opacity='.35'/%3E%3C/svg%3E");
  mask-image: linear-gradient(to right, #000 0%, transparent 60%);
  -webkit-mask-image: linear-gradient(to right, #000 0%, transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(var(--sp-8), 5vw, var(--sp-16)); align-items: center; }
.hero h1 { margin-block: var(--sp-4) var(--sp-6); }
.hero h1 em { font-style: italic; color: var(--brand-500); font-weight: 500; }
.hero .lead { margin-bottom: var(--sp-8); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-8); }
.trust { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-6); list-style: none; padding: 0; color: var(--brand-700); font-weight: 500; font-size: var(--text-sm); }
.trust li { display: flex; align-items: center; gap: var(--sp-2); }
.trust svg { width: 20px; height: 20px; color: var(--brand-500); flex: none; }

.hero-media { position: relative; }
.hero-media .frame {
  border-radius: 200px 200px var(--radius) var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
  border: 6px solid var(--surface); aspect-ratio: 4 / 5;
}
.hero-media .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; left: -24px; bottom: 32px; background: var(--brand-700); color: var(--on-dark);
  border-radius: var(--radius); padding: var(--sp-4) var(--sp-6); box-shadow: var(--shadow-lg);
  display: grid; gap: 2px; max-width: 260px;
}
.hero-badge strong { font: 600 var(--text-xl)/1.1 var(--font-display); color: var(--honey); white-space: nowrap; }
.hero-badge span { font-size: var(--text-sm); color: var(--on-dark-soft); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 460px; margin-inline: auto; width: 100%; }
  .hero-badge { left: 8px; bottom: 16px; }
}

/* ---------- Aanbod / bestellen ---------- */
.menu { background: var(--surface); border-block: 1px solid var(--border); }
.order-layout { display: grid; grid-template-columns: 1fr 380px; gap: var(--sp-8); align-items: start; }
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); list-style: none; padding: 0; }
.product {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.product:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.product img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.product-body { padding: var(--sp-6); display: grid; gap: var(--sp-2); flex: 1; align-content: start; }
.product-tag {
  justify-self: start; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  background: var(--brand-100); color: var(--brand-700); padding: 2px 10px; border-radius: 999px;
}
.product h3 { font-size: var(--text-lg); }
.product p { color: var(--text-soft); font-size: var(--text-sm); }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: 0 var(--sp-6) var(--sp-6); }
.price { font: 600 var(--text-xl)/1 var(--font-display); color: var(--brand-700); }
.price small { display: block; font: 500 .8rem/1.4 var(--font-body); color: var(--text-soft); }

.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--text-soft); border-radius: 999px; background: var(--surface); }
.stepper button {
  width: 44px; height: 44px; border: 0; background: none; font-size: 1.4rem; line-height: 1; color: var(--brand-700);
  cursor: pointer; border-radius: 999px;
}
.stepper button:hover { background: var(--brand-100); }
.stepper button:disabled { color: var(--border); cursor: default; background: none; }
.stepper output { min-width: 2ch; text-align: center; font-weight: 700; font-size: var(--text-lg); color: var(--brand-700); }

.cart {
  position: sticky; top: 96px; background: var(--brand-900); color: var(--on-dark);
  border-radius: var(--radius); padding: var(--sp-6); box-shadow: var(--shadow-lg); display: grid; gap: var(--sp-4);
}
.cart h3 { color: var(--on-dark); font-size: var(--text-lg); }
.cart-lines { list-style: none; padding: 0; display: grid; gap: var(--sp-2); font-size: var(--text-sm); }
.cart-lines li { display: flex; justify-content: space-between; gap: var(--sp-3); }
.cart-empty { color: var(--on-dark-soft); font-size: var(--text-sm); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid rgba(254,197,110,.35); padding-top: var(--sp-3); }
.cart-total strong { font: 600 var(--text-xl)/1 var(--font-display); color: var(--honey); }
.cart-total span { font-size: var(--text-sm); color: var(--on-dark-soft); }
.cart-free { font-size: var(--text-sm); color: var(--honey); display: flex; gap: var(--sp-2); align-items: center; }
.cart-free svg { width: 18px; height: 18px; flex: none; }
.field { display: grid; gap: 4px; }
.field label { font-size: var(--text-sm); font-weight: 500; color: var(--on-dark-soft); }
.field input, .field textarea {
  font: inherit; font-size: 1rem; color: var(--text); background: var(--surface);
  border: 1.5px solid transparent; border-radius: var(--radius-sm); padding: var(--sp-3); min-height: 44px; width: 100%;
}
.field textarea { min-height: 72px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--honey); outline-offset: 1px; }
.cart .btn { width: 100%; }
.cart .btn--wa[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.cart-note { font-size: .82rem; color: var(--on-dark-soft); text-align: center; }
.cart-note a { color: var(--honey); }
.cart-error { color: #ffd7d2; font-size: var(--text-sm); min-height: 1.2em; }

@media (max-width: 1000px) {
  .order-layout { grid-template-columns: 1fr; }
  .cart { position: static; }
}
@media (max-width: 600px) {
  .products { grid-template-columns: 1fr; }
}

/* ---------- Levering & uren (donkere band) ---------- */
.delivery { background: var(--brand-700); color: var(--on-dark); position: relative; overflow: hidden; }
.delivery::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23fec56e'%3E%3Cpath d='M40 16l7 17 17 7-17 7-7 17-7-17-17-7 17-7z'/%3E%3Crect x='26' y='26' width='28' height='28' transform='rotate(45 40 40)'/%3E%3C/g%3E%3C/svg%3E");
}
.delivery .container { position: relative; z-index: 1; }
.delivery h2, .delivery h3 { color: var(--on-dark); }
.delivery .eyebrow { color: var(--honey); }
.delivery .lead { color: var(--on-dark-soft); }
.delivery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); margin-top: var(--sp-12); }
.dcard { background: rgba(59, 29, 7, .55); border: 1px solid rgba(254, 197, 110, .3); border-radius: var(--radius); padding: var(--sp-8) var(--sp-6); display: grid; gap: var(--sp-3); align-content: start; }
.dcard .ico { width: 48px; height: 48px; border-radius: 12px; background: var(--honey); color: var(--brand-900); display: grid; place-items: center; }
.dcard .ico svg { width: 26px; height: 26px; }
.dcard p { color: var(--on-dark-soft); }
.hours { width: 100%; border-collapse: collapse; font-size: var(--text-base); }
.hours th, .hours td { text-align: left; padding: var(--sp-2) 0; border-bottom: 1px dashed rgba(254, 197, 110, .3); }
.hours th { font-weight: 500; color: var(--on-dark-soft); }
.hours td { text-align: right; font-weight: 600; color: var(--honey); font-variant-numeric: tabular-nums; }
.hours tr.is-today th, .hours tr.is-today td { color: #fff; }
.hours tr.is-today th::after { content: " · vandaag"; color: var(--honey); font-weight: 600; }
@media (max-width: 860px) { .delivery-grid { grid-template-columns: 1fr; } }

/* ---------- Hoe bestellen ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-8); list-style: none; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: var(--sp-2); position: relative; padding-top: var(--sp-12); }
.steps li::before {
  content: ""; position: absolute; top: 2px; left: 2px; width: 40px; height: 40px;
  border-radius: 10px; transform: rotate(45deg); background: var(--brand-100); border: 1.5px solid var(--amber);
}
.steps li::after {
  content: counter(step); position: absolute; top: 0; left: 0; width: 44px; height: 44px;
  display: grid; place-items: center; color: var(--brand-700); font: 700 1.2rem/1 var(--font-display);
}
.steps h3 { font-size: var(--text-lg); }
.steps p { color: var(--text-soft); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Galerij ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: var(--sp-4); }
.gallery figure { border-radius: var(--radius); overflow: hidden; position: relative; background: var(--brand-100); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery .tall { grid-row: span 2; }
.gallery .wide { grid-column: span 2; }
.gallery figcaption {
  position: absolute; left: var(--sp-3); bottom: var(--sp-3); background: rgba(59, 29, 7, .82); color: var(--on-dark);
  font-size: .8rem; padding: 4px 10px; border-radius: 999px;
}
@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery .wide { grid-column: span 2; }
}

/* ---------- Over ons ---------- */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(var(--sp-8), 5vw, var(--sp-16)); align-items: center; }
.about-logo { background: var(--bg); border-radius: 50%; aspect-ratio: 1; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--border), var(--shadow); padding: 8%; max-width: 380px; width: 100%; margin-inline: auto; }
.about-logo img { }
.about p + p { margin-top: var(--sp-4); }
.about p { color: var(--text-soft); }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { background: var(--surface); border-block: 1px solid var(--border); }
.faq-list { max-width: 820px; margin-inline: auto; display: grid; gap: var(--sp-3); }
.faq details { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.faq summary {
  cursor: pointer; list-style: none; padding: var(--sp-4) var(--sp-6); min-height: 44px;
  font-weight: 600; color: var(--brand-700); display: flex; justify-content: space-between; gap: var(--sp-4); align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--brand-500); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 var(--sp-6) var(--sp-6); color: var(--text-soft); }

/* ---------- Contact ---------- */
.contact-card {
  background: var(--brand-900); color: var(--on-dark); border-radius: calc(var(--radius) * 1.5);
  padding: clamp(var(--sp-8), 6vw, var(--sp-16)); display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--sp-12);
  position: relative; overflow: hidden;
}
.contact-card::before {
  content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; opacity: .14;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23fec56e' stroke-width='1.2'%3E%3Crect x='20' y='20' width='60' height='60'/%3E%3Crect x='20' y='20' width='60' height='60' transform='rotate(45 50 50)'/%3E%3Ccircle cx='50' cy='50' r='16'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;
}
.contact-card h2 { color: var(--on-dark); }
.contact-card .eyebrow { color: var(--honey); }
.contact-card .lead { color: var(--on-dark-soft); margin-block: var(--sp-4) var(--sp-8); }
.contact-card .actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.contact-card .btn--secondary { color: var(--on-dark); border-color: var(--honey); }
.contact-card .btn--secondary:hover { background: var(--honey); color: var(--brand-900); }
.channels { list-style: none; padding: 0; display: grid; gap: var(--sp-4); align-content: center; position: relative; }
.channels a {
  display: flex; align-items: center; gap: var(--sp-4); color: var(--on-dark); text-decoration: none;
  padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-sm); border: 1px solid rgba(254, 197, 110, .25); min-height: 56px;
}
.channels a:hover { background: rgba(254, 197, 110, .1); border-color: var(--honey); }
.channels svg { width: 26px; height: 26px; color: var(--honey); flex: none; }
.channels small { display: block; color: var(--on-dark-soft); font-size: .8rem; }
.channels strong { font-weight: 600; word-break: break-word; }
@media (max-width: 860px) { .contact-card { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { padding-block: var(--sp-16) var(--sp-8); font-size: var(--text-sm); color: var(--text-soft); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--sp-8); padding-bottom: var(--sp-8); border-bottom: 1px solid var(--border); }
.footer-grid h2 { font: 700 .8rem/1.2 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--brand-700); margin-bottom: var(--sp-3); }
.footer-grid ul { list-style: none; padding: 0; display: grid; gap: var(--sp-2); }
.footer-grid a { color: var(--text-soft); text-decoration: none; }
.footer-grid a:hover { color: var(--brand-500); text-decoration: underline; }
.footer-brand img { width: 120px; margin-bottom: var(--sp-3); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-3); padding-top: var(--sp-6); }
.footer-bottom a { color: var(--text-soft); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Zwevende WhatsApp-knop (mobiel) ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 60px; height: 60px; border-radius: 50%;
  background: var(--wa); color: #fff; display: none; place-items: center; box-shadow: var(--shadow-lg);
}
.wa-float svg { width: 30px; height: 30px; }
@media (max-width: 900px) { .wa-float { display: grid; } }

/* ---------- Eenvoudige pagina's (privacy, 404) ---------- */
.page { padding-block: var(--sp-16); }
.page h1 { font-size: var(--text-2xl); margin-bottom: var(--sp-6); }
.page h2 { font-size: var(--text-lg); margin: var(--sp-8) 0 var(--sp-3); }
.page p, .page li { color: var(--text-soft); }
.page ul { padding-left: 1.2em; display: grid; gap: var(--sp-2); }
.page .btn { margin-top: var(--sp-8); }

/* ---------- Scroll-reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

.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; }
[lang="ar"] { white-space: nowrap; }
@media (max-width: 400px) {
  .contact-card { padding: var(--sp-8) var(--sp-4); }
  .channels a { gap: var(--sp-3); padding-inline: var(--sp-3); }
  .channels strong { font-size: .95rem; }
}

/* ---------- Reviews (chatbubbels, zoals de originele berichten) ---------- */
.review-grid { list-style: none; padding: 0; columns: 3 300px; column-gap: var(--sp-6); }
.review {
  break-inside: avoid; margin-bottom: var(--sp-6); position: relative;
  background: var(--surface); border: 1px solid var(--border); border-radius: 22px 22px 22px 6px;
  padding: var(--sp-12) var(--sp-6) var(--sp-6); box-shadow: var(--shadow);
}
.review::before {
  content: "“"; position: absolute; top: .05em; left: var(--sp-6);
  font: 600 4.5rem/1 var(--font-display); color: var(--amber);
}
.review blockquote p { font: 500 var(--text-lg)/1.45 var(--font-display); color: var(--brand-700); max-width: none; }
.review-meta { margin-top: var(--sp-4); font-size: var(--text-sm); font-weight: 600; color: var(--text-soft); display: flex; align-items: center; gap: var(--sp-2); }
.review-meta::before { content: ""; width: 8px; height: 8px; background: var(--amber); transform: rotate(45deg); border-radius: 2px; }
.reviews-more { text-align: center; max-width: none; margin-top: var(--sp-6); }
.nav a, .btn, .brand span { white-space: nowrap; }
.header-cta .btn--call { display: none; }
@media (max-width: 1240px) { .nav ul { gap: var(--sp-4); } }
@media (max-width: 480px) { .brand span { white-space: normal; } }
