/* Como pizzabar — homepage in stijl Lucky Folks, groene textuur */

:root {
  --green-dark: #1a2e23;
  --green-mid: #253a2e;
  --green-deep: #0f1a14;
  --broken-white: #f3f2ea;
  --cream: #f0f4e3;
  --cream-muted: rgba(240, 244, 227, 0.72);
  --cream-soft: rgba(240, 244, 227, 0.45);
  --line: rgba(240, 244, 227, 0.2);
  --overlay: rgba(15, 26, 20, 0.35);
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-display: "Italiana", var(--font-serif);
  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: clamp(3.5rem, 9vw, 6rem);
  --space-4xl: clamp(5rem, 14vw, 9rem);
  --header-h: 4.75rem;
  --content-max: 72rem;
  --radius: 0.25rem;
  --radius-frame: clamp(1rem, 2.5vw, 1.75rem);
  --radius-frame-inner: clamp(0.65rem, 2vw, 1.35rem);
  --radius-pill: 999px;
  --frame-pad: clamp(0.5rem, 1.25vw, 0.85rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --anim-duration: 0.65s;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--cream);
  background-color: var(--green-dark);
  background-image:
    linear-gradient(var(--overlay), var(--overlay)),
    url("../images/texture-green.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }
}

/* Variant met gebroken-wit kader (index.html) */

body.has-frame {
  background-color: var(--broken-white);
  background-image: none;
  padding: clamp(0.75rem, 2.5vw, 1.5rem);
}

body.has-frame .site-frame {
  max-width: 80rem;
  margin: 0 auto;
  background-color: var(--broken-white);
  border-radius: var(--radius-frame);
  padding: var(--frame-pad);
  box-shadow: 0 8px 40px rgba(26, 46, 35, 0.12);
}

body.has-frame .site-frame__inner {
  min-height: calc(100dvh - 2 * clamp(0.75rem, 2.5vw, 1.5rem) - 2 * var(--frame-pad));
  border-radius: var(--radius-frame-inner);
  overflow: hidden;
  color: var(--cream);
  background-color: var(--green-dark);
  background-image:
    linear-gradient(var(--overlay), var(--overlay)),
    url("../images/texture-green.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

@media (max-width: 768px) {
  body.has-frame .site-frame__inner {
    background-attachment: scroll;
  }
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  left: var(--space-md);
  top: var(--space-md);
  z-index: 100;
  width: auto;
  height: auto;
  padding: var(--space-sm) var(--space-md);
  background: var(--cream);
  color: var(--green-dark);
  border-radius: var(--radius);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-md);
  min-height: var(--header-h);
  padding: var(--space-sm) clamp(0.75rem, 3vw, 2.5rem);
  background: rgba(26, 46, 35, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header__logo {
  display: block;
  line-height: 0;
  justify-self: start;
}

.header-actions {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(0.4rem, 2vw, 0.75rem);
}

.header-actions .btn {
  padding: 0.55rem clamp(0.85rem, 2.5vw, 1.35rem);
  font-size: clamp(0.65rem, 2vw, 0.8125rem);
  white-space: nowrap;
}

.site-header__logo-img {
  display: block;
  height: 2rem;
  width: auto;
  background: transparent;
}

@media (max-width: 720px) {
  .site-header {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    justify-items: center;
    gap: var(--space-sm);
    padding-block: var(--space-md);
  }

  .site-header__logo {
    grid-column: 1;
    justify-self: center;
  }

  .header-actions {
    grid-column: 1;
  }

  .hero--banner {
    padding-top: var(--space-2xl);
  }
}

@media (max-width: 380px) {
  .header-actions .btn {
    padding: 0.5rem 0.7rem;
    letter-spacing: 0.1em;
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background 0.22s var(--ease),
    color 0.22s var(--ease),
    border-color 0.22s var(--ease),
    transform 0.22s var(--ease),
    box-shadow 0.22s var(--ease);
}

.btn--reserve {
  background: var(--cream);
  color: var(--green-dark);
  border-color: var(--cream);
}

.btn--reserve:hover {
  background: #fafcf2;
  border-color: #fafcf2;
  transform: translateY(-2px);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(240, 244, 227, 0.2);
}

.btn--reserve:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);
}

.btn--reserve:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 3px;
}

.btn--outline {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}

.btn--outline:hover {
  background: rgba(240, 244, 227, 0.08);
  transform: translateY(-1px);
}

.btn--small {
  min-height: 2.25rem;
  padding: 0.45rem 1.1rem;
  font-size: 0.75rem;
}

/* Media placeholders */

.media-frame {
  margin: 0;
  width: 100%;
}

.media-frame__inner {
  display: grid;
  place-items: center;
  width: 100%;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(15, 26, 20, 0.5);
  overflow: hidden;
}

.media-frame__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-soft);
  text-align: center;
  padding: var(--space-md);
}

.media-frame--card .media-frame__inner {
  aspect-ratio: 4 / 3;
}

.media-frame__inner--photo {
  display: block;
  border-style: solid;
  background: #0f1a14;
}

.media-frame--card .media-frame__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.media-frame--card .media-frame__img--portrait {
  object-position: center 35%;
}

/* Fade-in on load */

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.anim-fade {
  opacity: 0;
  animation: fade-up var(--anim-duration) var(--ease) forwards;
}

.anim-fade--1 {
  animation-delay: 0.08s;
}

.anim-fade--2 {
  animation-delay: 0.22s;
}

.anim-fade--3 {
  animation-delay: 0.36s;
}

.anim-fade--4 {
  animation-delay: 0.5s;
}

.anim-fade--5 {
  animation-delay: 0.68s;
}

/* Hero — centered banner */

.hero--banner {
  min-height: min(92dvh, 44rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-3xl) clamp(1rem, 4vw, 2.5rem) var(--space-2xl);
  max-width: var(--content-max);
  margin: 0 auto;
}

.hero__banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 32rem;
  margin: 0 auto;
  gap: 0;
}

.hero__eyebrow {
  margin: 0 0 var(--space-md);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-soft);
}

.hero__brand {
  margin: 0 0 var(--space-md);
  line-height: 0;
}

.hero__brand-img {
  display: block;
  width: min(100%, clamp(14rem, 72vw, 28rem));
  height: auto;
  margin: 0 auto;
}

.hero__tagline {
  margin: 0 0 var(--space-lg);
  max-width: 22rem;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.8vw, 1.5rem);
  font-style: italic;
  color: var(--cream-muted);
  line-height: 1.35;
}

.hero__lead {
  margin: 0;
  max-width: 28rem;
  font-family: var(--font-sans);
  font-size: clamp(0.9375rem, 2.2vw, 1.0625rem);
  font-weight: 400;
  line-height: 1.65;
  color: var(--cream-muted);
}

.hero__lead strong {
  color: var(--cream);
  font-weight: 600;
}

/* Split section */

.split {
  padding: var(--space-2xl) clamp(1rem, 4vw, 2.5rem) var(--space-4xl);
  max-width: var(--content-max);
  margin: 0 auto;
}

.split__grid {
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .split__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }
}

.split-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-xl);
  color: var(--cream);
  background: rgba(15, 26, 20, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition:
    transform 0.22s var(--ease),
    box-shadow 0.22s var(--ease),
    background 0.22s var(--ease),
    border-color 0.22s var(--ease);
}

.split-card:hover {
  transform: translateY(-4px);
  border-color: rgba(240, 244, 227, 0.35);
  background: rgba(15, 26, 20, 0.72);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.split-card:active {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.split-card .media-frame {
  margin: calc(var(--space-xl) * -1) calc(var(--space-xl) * -1) var(--space-lg);
  width: calc(100% + var(--space-xl) * 2);
}

.split-card .media-frame__inner {
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: none;
  overflow: hidden;
}

.split-card .media-frame__img {
  transition: transform 0.35s var(--ease);
}

.split-card:hover .media-frame__img {
  transform: scale(1.05);
}

.split-card--alt {
  background: rgba(240, 244, 227, 0.06);
}

.split-card--alt:hover {
  background: rgba(240, 244, 227, 0.1);
}

.split-card__label {
  margin-bottom: var(--space-sm);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--cream-soft);
}

.split-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.2vw, 2.65rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: var(--cream);
}

.split-card__hint {
  margin: var(--space-md) 0 0;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: var(--cream-muted);
}

/* Footer */

.site-footer {
  padding: var(--space-3xl) clamp(1rem, 4vw, 2.5rem) var(--space-2xl);
  border-top: 1px solid var(--line);
  background: rgba(15, 26, 20, 0.65);
}

.site-footer__grid {
  display: grid;
  gap: var(--space-2xl);
  max-width: var(--content-max);
  margin: 0 auto var(--space-2xl);
}

@media (min-width: 640px) {
  .site-footer__grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: var(--space-xl);
  }
}

.site-footer__logo {
  display: block;
  height: 2.25rem;
  width: auto;
  margin-bottom: var(--space-sm);
  background: transparent;
}

.site-footer__tag {
  margin: 0 0 var(--space-md);
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-soft);
}

.site-footer__social {
  display: flex;
  gap: var(--space-sm);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--cream);
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.site-footer__social-link:hover {
  background: rgba(240, 244, 227, 0.1);
  border-color: var(--cream-soft);
}

.site-footer__social-icon {
  width: 1.15rem;
  height: 1.15rem;
}

.site-footer__route {
  margin: var(--space-sm) 0 var(--space-md);
}

.site-footer__text--contact {
  margin-top: 0;
}

.site-footer__label {
  margin: 0 0 var(--space-xs);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-soft);
}

.site-footer__text {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--cream-muted);
  line-height: 1.65;
}

.site-footer__link {
  color: var(--cream);
  text-decoration: none;
}

.site-footer__link:hover {
  text-decoration: underline;
}

.site-footer__copy {
  margin: 0;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  text-align: center;
  color: var(--cream-soft);
}

.version-switch {
  margin: var(--space-md) auto 0;
  max-width: var(--content-max);
  text-align: center;
  font-size: 0.75rem;
}

.version-switch__link {
  color: var(--cream-soft);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.version-switch__link:hover {
  color: var(--cream);
  text-decoration: underline;
}

/* Reserveren modal */

body.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 2rem);
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 26, 20, 0.72);
  backdrop-filter: blur(4px);
}

.modal__dialog {
  position: relative;
  width: min(100%, 26rem);
  padding: var(--space-xl) var(--space-xl) var(--space-lg);
  color: var(--cream);
  background:
    linear-gradient(var(--overlay), var(--overlay)),
    url("../images/texture-green.png") center / cover no-repeat;
  background-color: var(--green-dark);
  border: 1px solid var(--line);
  border-radius: var(--radius-frame);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--cream-soft);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.modal__close:hover {
  color: var(--cream);
  background: rgba(240, 244, 227, 0.08);
  border-color: var(--line);
}

.modal__close:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 2px;
}

.modal__title {
  margin: 0 2rem var(--space-md) 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.modal__text {
  margin: 0 0 var(--space-lg);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--cream-muted);
}

.modal__phone {
  margin: 0 0 var(--space-lg);
}

.modal__phone-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.5rem;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--green-dark);
  background: var(--cream);
  border-radius: var(--radius-pill);
  transition: background 0.22s var(--ease), transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.modal__phone-link:hover {
  background: #fafcf2;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.modal__phone-link:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 3px;
}

.modal__btn {
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .anim-fade {
    opacity: 1;
    animation: none;
    transform: none;
  }

  .btn,
  .split-card,
  .split-card .media-frame__img {
    transition: none;
  }

  .split-card:hover {
    transform: none;
  }

  .split-card:hover .media-frame__img {
    transform: none;
  }
}
