/* Silent Disco Roosendaal - shared styles */

:root {
  --color-bg: #FAF6F2;
  --color-text: #2B211E;
  --color-accent: #AE1C28;
  --color-accent-secondary: #C79A45;
  --color-neutral: #8C8279;

  /* One width for header, content and footer; text fills it instead of stopping halfway.
     60rem still fits three 18rem card columns side by side. */
  --max-width: 60rem;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
}

a {
  color: var(--color-accent);
}

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

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

/* Header / nav */

.site-header {
  border-bottom: 1px solid #eee0d5;
  background: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--color-text);
}

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

.site-logo-img--large {
  height: 60px;
  width: 60px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--color-accent-secondary);
}

/* Cart icon / badge */

.cart-toggle {
  position: relative;
  display: inline-flex;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  color: var(--color-text);
}

.cart-toggle svg {
  display: block;
}

.cart-toggle:hover {
  color: var(--color-accent-secondary);
}

.cart-badge {
  position: absolute;
  top: -0.35rem;
  right: -0.5rem;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.25rem;
}

.cart-badge[data-count="0"] {
  display: none;
}

/* Buttons */

.btn {
  display: inline-block;
  border: none;
  border-radius: var(--radius);
  padding: 0.65rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background: #931722;
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-accent-secondary);
}

.btn-secondary:hover {
  background: #f3e6cf;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(30rem, 75vh, 42rem);
  padding: 5rem 0;
  text-align: center;
  color: #fff;
}

/* Photo backdrop at full strength: no opacity and no fade into the page */
.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 70%; /* keeps the crowd with headphones in frame, crops the empty tent roof */
}

/* Dark glow over the photo: a black glow behind the text (was gold, changed on request)
   on a brown-black wash in --color-text that keeps a warm undertone */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, rgba(0, 0, 0, 0.35), transparent 75%),
    linear-gradient(to bottom, rgba(43, 33, 30, 0.45), rgba(43, 33, 30, 0.6));
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* White text, no text-shadow (removed on request): the dark overlay on the photo keeps it readable */
.hero h1,
.hero p {
  color: #fff;
}

/* Scales with the viewport: 3rem on phones up to 4.25rem on desktop */
.hero h1 {
  font-size: clamp(3rem, 6vw, 4.25rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

/* Slightly heavier weight so the thinner body text holds up over the busy photo */
.hero p {
  max-width: 40rem;
  margin: 0 auto 2rem;
  font-weight: 500;
}

/* The outline button would disappear on the photo, so it gets a white variant here */
.hero .btn-secondary {
  color: #fff;
  border-color: #fff;
  background: rgba(43, 33, 30, 0.35);
}

.hero .btn-secondary:hover {
  background: rgba(43, 33, 30, 0.6);
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Generic sections */

/* Tightened from 4.5rem on request, so the gaps between sections are smaller */
section {
  padding: 2.5rem 0;
}

/* The last element's own bottom margin would add to the gap, so the padding alone sets it */
section .container > :last-child {
  margin-bottom: 0;
}

section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

/* The first heading gets no top margin, so the section padding alone sets the gap above it;
   later headings in the same section (Over ons) keep theirs */
section .container > h2:first-child {
  margin-top: 0;
}

main h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
}

.link-arrow::after {
  content: "\2192";
  transition: transform 0.15s ease;
}

.link-arrow:hover::after {
  transform: translateX(3px);
}

.placeholder-note {
  color: var(--color-neutral);
  font-size: 0.9rem;
  font-style: italic;
}

/* Cards (testimonials, gallery, products) */

/* Columns stay wide enough for readable card text: 1 column on mobile, 2 on tablet, 3 on desktop */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1.5rem;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(43, 33, 30, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(43, 33, 30, 0.1);
}

/* Customer review card (Home) */
.review {
  margin: 0;
}

.review-stars {
  margin: 0 0 0.5rem;
  color: var(--color-accent-secondary);
  font-size: 1.25rem;
  letter-spacing: 0.15em;
}

.review blockquote {
  margin: 0;
}

.review figcaption {
  margin-top: 0.75rem;
  color: var(--color-neutral);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Photo cards in the Sfeerbeelden gallery (Home): the photo fills the whole card */
.gallery-photo {
  margin: 0;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.gallery-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Expandable card (Diensten: Silent Disco Bingo): the whole card toggles its <details> */

.card-expandable {
  cursor: pointer;
}

.card-details summary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
  cursor: pointer;
}

.card-details summary::-webkit-details-marker {
  display: none;
}

/* Gold chevron: points down when closed, up when open */
.card-details summary::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid var(--color-accent-secondary);
  border-bottom: 2px solid var(--color-accent-secondary);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.15s ease;
}

.card-details[open] summary::after {
  transform: translateY(2px) rotate(-135deg);
}

.card-details summary:focus-visible {
  outline: 2px solid var(--color-accent-secondary);
  outline-offset: 2px;
  border-radius: 4px;
}

.card-expandable:hover .card-details summary {
  color: var(--color-accent-secondary);
}

.card-details .when-open,
.card-details[open] .when-closed {
  display: none;
}

.card-details[open] .when-open {
  display: inline;
}

.card-details[open] > :not(summary) {
  animation: card-unfold 0.2s ease;
}

@keyframes card-unfold {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.step-icon {
  color: var(--color-accent-secondary);
  margin-bottom: 0.6rem;
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.card ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

/* Client logo strip (marquee behaviour is added by assets/js/logo-marquee.js) */

.client-logos p {
  color: var(--color-neutral);
}

.logo-marquee {
  margin-top: 1.5rem;
  overflow: hidden;
}

.logo-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  row-gap: 1.5rem;
}

.logo-track li {
  flex-shrink: 0;
  padding: 0 2rem;
}

.logo-track img {
  height: 4.5rem;
  width: auto;
}

.logo-marquee.is-animated {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.logo-marquee.is-animated .logo-track {
  flex-wrap: nowrap;
  justify-content: flex-start;
  width: max-content;
  animation: logo-marquee var(--marquee-duration, 30s) linear infinite;
}

.logo-marquee.is-animated:hover .logo-track {
  animation-play-state: paused;
}

/* The track holds two identical halves, so shifting it by exactly half loops seamlessly */
@keyframes logo-marquee {
  to {
    transform: translateX(-50%);
  }
}

/* Product list: one white panel, a row per product with the add-to-cart button on the right */

.product-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0 1.25rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(43, 33, 30, 0.06);
}

.product-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1rem 0;
}

.product-row + .product-row {
  border-top: 1px solid #eee0d5;
}

.product-row h3 {
  margin: 0;
  font-size: 1.05rem;
}

.product-row p {
  color: var(--color-neutral);
  font-size: 0.9rem;
  margin: 0.25rem 0 0;
}

.product-row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.product-qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

/* Quantity fields on Diensten and in the cart panel (neither sits inside a form, so they're styled here) */
.qty-input {
  width: 4.5rem;
  padding: 0.45rem 0.5rem;
  border: 1px solid #ddccb8;
  border-radius: 8px;
  font: inherit;
  background: #fff;
  color: var(--color-text);
  text-align: center;
}

.qty-input:focus {
  outline: 2px solid var(--color-accent-secondary);
  outline-offset: 1px;
}

.qty-input[aria-invalid="true"] {
  border-color: var(--color-accent);
}

/* Takes its own line under the product row, and only once it has a message */
.product-row .qty-error {
  flex-basis: 100%;
  margin: 0;
  color: var(--color-accent);
  text-align: right;
}

.product-row .qty-error:empty {
  display: none;
}

/* Forms */

form .field {
  margin-bottom: 1rem;
}

form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

form input,
form textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid #ddccb8;
  border-radius: var(--radius);
  font: inherit;
  background: #fff;
  color: var(--color-text);
}

form input:focus,
form textarea:focus {
  outline: 2px solid var(--color-accent-secondary);
  outline-offset: 1px;
}

.form-status {
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.form-status.success {
  color: #2f6b3a;
}

.form-status.error {
  color: var(--color-accent);
}

/* Required-field marks and inline validation */

.required-mark {
  color: var(--color-accent);
  margin-left: 0.2rem;
}

form input[aria-invalid="true"],
form textarea[aria-invalid="true"] {
  border-color: var(--color-accent);
}

.field-error {
  color: var(--color-accent);
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

/* Cart panel */

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(360px, 100vw);
  background: var(--color-bg);
  border-left: 1px solid #eee0d5;
  box-shadow: -4px 0 16px rgba(43, 33, 30, 0.08);
  transform: translateX(100%);
  transition: transform 0.2s ease;
  z-index: 20;
  overflow-y: auto;
  padding: 1.5rem;
}

.cart-panel.open {
  transform: translateX(0);
}

.cart-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.cart-panel-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--color-text);
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(43, 33, 30, 0.3);
  z-index: 15;
  display: none;
}

.cart-overlay.open {
  display: block;
}

.cart-line {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee0d5;
}

.cart-line img,
.cart-line-img-placeholder {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--radius);
  background: #eee0d5;
  flex-shrink: 0;
}

.cart-line-info {
  flex: 1;
}

.cart-line-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.qty-stepper {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.qty-stepper button {
  background: none;
  border: 1px solid var(--color-accent-secondary);
  border-radius: 4px;
  width: 1.5rem;
  height: 1.5rem;
  cursor: pointer;
  line-height: 1;
  color: var(--color-text);
}

.qty-stepper button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.qty-stepper .qty-input {
  width: 3.5rem;
  padding: 0.2rem 0.3rem;
  font-size: 0.9rem;
}

.qty-unit {
  color: var(--color-neutral);
  font-size: 0.85rem;
}

.cart-line-remove {
  background: none;
  border: none;
  color: var(--color-neutral);
  cursor: pointer;
  font-size: 1rem;
}

.cart-line-remove:hover {
  color: var(--color-accent);
}

.cart-empty {
  color: var(--color-neutral);
  font-size: 0.9rem;
}

/* Icon lines (e.g. location, email) */

.icon-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-line svg {
  color: var(--color-accent-secondary);
  flex-shrink: 0;
}

.icon-line a {
  text-decoration: none;
}

.icon-line a:hover {
  color: var(--color-accent);
}

/* Contact page: logo top right, as tall as the block from the "Contact" heading down to the Facebook row;
   an empty line of space separates that block from the form */

.contact-intro {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-logo {
  position: relative;
  align-self: stretch;
  aspect-ratio: 1 / 1;
}

.contact-logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Over ons: logo top right at about the size of the Contact page logo, text wraps around it */

.page-logo {
  float: right;
  width: 10.5rem;
  height: 10.5rem;
  margin: 0 0 1rem 1.5rem;
}

/* Over ons: justified text, no word hyphenation (on request) */

.page-over-ons p {
  text-align: justify;
  hyphens: none;
  /* every paragraph stops at the left edge of the logo: logo width + its left margin */
  margin-right: calc(10.5rem + 1.5rem);
}

@media (max-width: 640px) {
  .page-over-ons p {
    margin-right: 0;
  }
}

/* Social icons */

.social-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--color-text);
  text-decoration: none;
}

.social-link svg {
  color: var(--color-accent-secondary);
  flex-shrink: 0;
}

.social-link:hover {
  color: var(--color-accent);
}

.social-link:hover svg {
  color: var(--color-accent);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}

/* Footer */

.site-footer {
  border-top: 1px solid #eee0d5;
  color: var(--color-neutral);
  font-size: 0.9rem;
  padding: 2rem 0;
  margin-top: 2rem;
}

.site-footer a {
  color: var(--color-neutral);
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer .social-link svg {
  color: var(--color-neutral);
}

.site-footer .social-link:hover svg {
  color: var(--color-accent-secondary);
}

/* Below this width the nav no longer fits next to the logo, so it moves to its own row */
@media (max-width: 960px) {
  .site-header .container {
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .site-nav ul {
    gap: 0.85rem;
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .card:hover {
    transform: none;
  }
}
