:root {
  --green: #173c2d;
  --deep: #0d2119;
  --cream: #f5efe3;
  --paper: #fbf8f1;
  --ink: #18231e;
  --gold: #c8a56a;
  --line: rgba(23, 60, 45, 0.18);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
  line-height: 1.55;
  position: relative;
  isolation: isolate;
}

body:before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url("images/background.png") center 55% / min(78vw, 820px) auto no-repeat;
  opacity: 0.055;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 5vw;
  background: rgba(251, 248, 241, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}

.brand:first-letter {
  font-size: 1.35rem;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

nav {
  display: flex;
  gap: 26px;
  align-items: center;
  font-size: 0.86rem;
  font-weight: 600;
}

nav a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.nav-cta {
  background: var(--green);
  color: var(--cream);
  padding: 10px 17px;
  border-radius: 999px;
}

.hero {
  padding: 0 3vw 3vw;
}

.hero-image {
  min-height: 650px;
  display: flex;
  align-items: flex-end;
  padding: 7vw;
  border-radius: 0 0 28px 28px;
  color: #fff;
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(90deg, rgba(8, 25, 18, 0.88), rgba(8, 25, 18, 0.16) 75%), url("images/gallery/trailer/trailer-wide-02.jpg");
  background-size: cover;
  background-position: center 52%;
}

.hero-image:after {
  content: "CHEESY MONKEY";
  position: absolute;
  right: -50px;
  top: 45px;
  font-family: "Playfair Display", serif;
  font-size: clamp(4rem, 12vw, 10rem);
  opacity: 0.055;
  transform: rotate(90deg);
}

.hero-image > div {
  max-width: 720px;
  position: relative;
  z-index: 1;
}

.eyebrow,
.kicker {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  text-transform: uppercase;
}

.hero h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.02;
  margin: 18px 0;
}

.hero h1 {
  font-size: clamp(3.2rem, 7vw, 6.5rem);
  letter-spacing: -0.04em;
}

em {
  color: var(--gold);
  font-style: normal;
}

.hero p {
  font-size: 1.15rem;
  max-width: 570px;
  color: #f2eee6;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 30px;
}

.button {
  display: inline-block;
  border-radius: 999px;
  padding: 14px 23px;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
}

.light {
  background: var(--cream);
  color: var(--green);
}

.darkbtn {
  background: var(--green);
  color: var(--cream);
}

.text-link {
  font-weight: 600;
}

.section {
  padding: 100px 7vw;
}

.intro,
.events,
.gallery {
  max-width: var(--max);
  margin: auto;
}

.intro-grid,
.events,
.dates-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8vw;
  align-items: center;
}

.intro h2,
.heading h2,
.events h2,
.dates h2,
.contact h2 {
  font-size: clamp(3rem, 6vw, 5.7rem);
  letter-spacing: -0.04em;
}

.intro h2 span {
  color: #8b978e;
}

.copy {
  font-size: 1.08rem;
  max-width: 540px;
}

.dark {
  background: var(--green);
  color: var(--cream);
}

.gold {
  color: #d5bf91;
}

.heading {
  max-width: 650px;
  margin-bottom: 45px;
}

.heading h2 {
  margin-top: 12px;
}

.heading p {
  color: #d8ddd7;
  max-width: 560px;
}

.pizza-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.pizza-grid article {
  background: #f4eee3;
  color: var(--ink);
  border-radius: 18px;
  overflow: hidden;
}

.card-image {
  height: 300px;
}

.card-image img,
.event-photo img,
.gallery-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-image img {
  object-position: center;
}

.card-copy {
  padding: 22px 23px 26px;
}

.card-copy h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.55rem;
  margin: 0 0 6px;
}

.card-copy p {
  margin: 0;
  color: #59645e;
}

.placeholder {
  position: relative;
  background-color: #263e32;
  background-image: radial-gradient(circle at 20% 20%, rgba(200, 165, 106, 0.22), transparent 26%), radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08), transparent 30%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder span {
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  font-weight: 700;
}

.events > div:first-child {
  max-width: 570px;
}

.events p {
  font-size: 1.05rem;
}

.event-photo {
  min-height: 560px;
  border-radius: 22px;
  overflow: hidden;
}

.event-photo img {
  object-position: center 55%;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr .9fr;
  grid-template-rows: 240px 240px;
  gap: 14px;
}

.gallery-grid > div {
  border-radius: 16px;
  overflow: hidden;
}

.tall {
  grid-row: span 2;
}

.wide {
  grid-column: span 2;
}

.gallery-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.gallery-toggle {
  flex: none;
  border: 1px solid rgba(245, 239, 227, 0.42);
  border-radius: 999px;
  padding: 10px 16px;
  background: transparent;
  color: var(--cream);
  font: 600 0.82rem "DM Sans", Arial, sans-serif;
  cursor: pointer;
}

.gallery-toggle:hover,
.gallery-toggle:focus-visible {
  background: rgba(245, 239, 227, 0.12);
}

.gallery-toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.gallery-grid {
  grid-template-columns: 1.1fr .9fr .9fr;
  grid-template-rows: clamp(190px, 20vw, 280px) clamp(190px, 20vw, 280px);
}

.gallery-grid > .gallery-panel {
  position: relative;
  min-width: 0;
  min-height: 0;
  isolation: isolate;
  background: #20382c;
}

.gallery-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.035);
  transition: opacity 1.25s ease;
  will-change: transform, opacity;
}

.gallery-panel img.is-active {
  z-index: 1;
  opacity: 1;
  animation: gallery-drift 9s ease-in-out both;
}

.gallery-panel:nth-child(2) img.is-active {
  animation-name: gallery-drift-reverse;
}

.gallery-panel:nth-child(3) img.is-active {
  animation-name: gallery-drift-soft;
}

@keyframes gallery-drift {
  from {
    transform: scale(1.035) translate3d(-0.5%, 0, 0);
  }
  to {
    transform: scale(1.12) translate3d(0.5%, -0.5%, 0);
  }
}

@keyframes gallery-drift-reverse {
  from {
    transform: scale(1.04) translate3d(0.4%, 0.3%, 0);
  }
  to {
    transform: scale(1.12) translate3d(-0.4%, -0.3%, 0);
  }
}

@keyframes gallery-drift-soft {
  from {
    transform: scale(1.035) translate3d(0, 0.3%, 0);
  }
  to {
    transform: scale(1.105) translate3d(0.3%, -0.3%, 0);
  }
}

.contact {
  max-width: 900px;
  margin: auto;
  text-align: center;
}

.contact h2 {
  margin-bottom: 25px;
}

.contact-intro {
  font-size: 1.18rem;
  line-height: 1.6;
  max-width: 760px;
  margin: 0 auto 10px;
  color: #2b3d35;
}

.contact p {
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto 30px;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
  margin-top: 24px;
}

.booking-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(23, 60, 45, 0.12);
  background: rgba(255, 255, 255, 0.54);
  border-radius: 22px;
  text-align: left;
  box-shadow: 0 12px 30px rgba(23, 60, 45, 0.04);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.booking-form label {
  display: grid;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #31473d;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
  width: 100%;
  border: 1px solid rgba(23, 60, 45, 0.18);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  padding: 13px 14px;
  font: 600 0.96rem "DM Sans", Arial, sans-serif;
}

.booking-form input::placeholder,
.booking-form textarea::placeholder {
  color: #6f7f77;
}

.booking-form textarea {
  min-height: 140px;
  resize: vertical;
}

.booking-form button {
  justify-self: start;
  margin-top: 6px;
}

.contact-details {
  text-align: left;
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 0;
}

.contact-detail-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(23, 60, 45, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.08));
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(23, 60, 45, 0.03);
  text-align: center;
}

.contact-note {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ink);
}

.contact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0 8px;
  justify-content: center;
}

.contact-details .contact-actions {
  justify-content: center;
  margin: 0;
}

.follow-us {
  display: grid;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(23, 60, 45, 0.12);
  justify-items: center;
}

.follow-label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: #59645e;
}

.social {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 0;
  font-weight: 700;
  align-items: center;
}

.contact-details .social {
  justify-content: center;
  margin: 0;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: var(--green);
}

.facebook-icon {
  background: #1877f2;
}

.instagram-icon {
  background: linear-gradient(135deg, #feda75, #d62976, #4f5bd5);
}

.contact small {
  color: #78827d;
  font-size: 0.72rem;
}

footer {
  background: var(--deep);
  color: #bfc8c2;
  padding: 30px 6vw;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.75rem;
}

footer strong {
  color: var(--cream);
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

footer strong img {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 50%;
  vertical-align: middle;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-status {
  min-height: 1.2em;
  margin: 0;
  font-size: 0.9rem;
  color: #234b3d;
  font-weight: 600;
}

.form-status.is-error {
  color: #7a2d2d;
}

.form-status.is-success {
  color: #1a5d42;
}

.whatsapp-btn {
  background: #25d366;
  color: #0a1f16;
  border: 1px solid rgba(10, 31, 22, 0.12);
}

.whatsapp-btn:hover {
  background: #1ebc59;
}

@media (max-width: 800px) {
  nav a:not(.nav-cta) {
    display: none;
  }

  .hero-image {
    min-height: 620px;
    padding: 10vw 7vw;
  }

  .hero h1 {
    font-size: clamp(3rem, 14vw, 5rem);
  }

  .section {
    padding: 75px 7vw;
  }

  .intro-grid,
  .events,
  .dates-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .pizza-grid {
    grid-template-columns: 1fr;
  }

  .card-image {
    height: 270px;
  }

  .event-photo {
    min-height: 420px;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 220px 220px;
  }

  .gallery-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: clamp(150px, 42vw, 230px) clamp(150px, 42vw, 230px) clamp(175px, 48vw, 250px);
    grid-template-areas: "tall pizza-one" "tall pizza-two" "wide wide";
  }

  .gallery-grid > .tall {
    grid-area: tall;
  }

  .gallery-grid > .pizza-one {
    grid-area: pizza-one;
  }

  .gallery-grid > .pizza-two {
    grid-area: pizza-two;
  }

  .gallery-grid > .wide {
    grid-area: wide;
  }

  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-panel img,
  .gallery-panel img.is-active {
    animation: none;
    transition: none;
    transform: none;
  }

  .gallery-toggle {
    display: none;
  }
}
