/* ==========================================================================
   Industry Bioscoop – landing page
   ========================================================================== */

@font-face {
  font-family: "Big Shoulders Display";
  src: url("fonts/big-shoulders-display-latin.698f9960.woff2") format("woff2");
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --red: #e30613;          /* Veghel */
  --red-dim: #b1050f;
  --blue: #273583;         /* Cuijk */
  --blue-dim: #1e2966;
  --charcoal: #333333;     /* info band + footer */
  --white: #ffffff;

  --font-display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --ease-out: cubic-bezier(.2, .7, .2, 1);

  /* film grain, tiled over the colour panels */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

/* --- Base ---------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  background: var(--charcoal);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
p,
address {
  margin: 0;
}

a {
  color: inherit;
}

::selection {
  background: var(--white);
  color: var(--charcoal);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --- Layout ---------------------------------------------------------------
   Two columns. Each cinema spans two rows: the colour panel on top and the
   address info below, so both info blocks line up in one dark band.
   ------------------------------------------------------------------------- */

.cinemas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: minmax(20rem, 1fr) auto;
}

.cinema {
  --cinema-color: var(--red);
  --cinema-color-dim: var(--red-dim);

  display: grid;
  grid-row: span 2;
  grid-template-rows: 1fr auto; /* fallback */
  grid-template-rows: subgrid;
}

.cinema--cuijk {
  --cinema-color: var(--blue);
  --cinema-color-dim: var(--blue-dim);
}

/* --- Colour panel (the big clickable area) -------------------------------- */

.cinema__panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.75rem, 4.5vh, 3rem);
  padding: clamp(3rem, 8vh, 6rem) 1.5rem;
  background-color: var(--cinema-color);
  background-image:
    radial-gradient(90% 70% at 50% 38%, rgb(255 255 255 / .09), transparent 70%),
    radial-gradient(140% 110% at 50% 50%, transparent 55%, rgb(0 0 0 / .26));
  text-align: center;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .5s var(--ease-out);
}

.cinema__panel::before,
.cinema__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* Spotlight that follows the mouse (position is set in script.js) */
.cinema__panel::before {
  background: radial-gradient(36rem circle at var(--spot-x, 50%) var(--spot-y, 45%), rgb(255 255 255 / .16), transparent 65%);
  opacity: 0;
  transition: opacity .6s var(--ease-out);
}

.cinema__panel::after {
  background-image: var(--grain);
  opacity: .28;
  mix-blend-mode: overlay;
}

.cinema__panel:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: -14px;
}

.cinema__panel:active {
  background-color: var(--cinema-color-dim);
}

/* Text logo */
.cinema__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  font: inherit;
}

.cinema__logo {
  display: block;
  width: min(22rem, 70%);
  height: auto;
}

.cinema__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.45vw, 1.35rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .32em;
  text-transform: uppercase;
}

.cinema__brand::before,
.cinema__brand::after {
  content: "";
  width: 2.25rem;
  height: 2px;
  background: currentColor;
}

/* letter-spacing adds space after the last letter; mirror it on the left */
.cinema__brand::before {
  margin-right: .32em;
}

.cinema__city {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 11vw, 11.5rem);
  font-weight: 800;
  line-height: .82;
  letter-spacing: .01em;
  text-transform: uppercase;
  transition: transform .7s var(--ease-out);
}

/* Call to action */
.cinema__cta {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  padding: .95em 1.6em .9em;
  border: 2px solid var(--white);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition:
    background-color .35s var(--ease-out),
    color .35s var(--ease-out);
}

.cinema__arrow {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .35s var(--ease-out);
}

/* Hover + keyboard focus: highlight the chosen cinema, dim the other one */
.cinema__panel:focus-visible::before {
  opacity: 1;
}

.cinema__panel:focus-visible .cinema__cta {
  background-color: var(--white);
  color: var(--cinema-color);
}

.cinemas:has(.cinema__panel:focus-visible) .cinema__panel:not(:focus-visible) {
  background-color: var(--cinema-color-dim);
}

@media (hover: hover) {
  .cinema__panel:hover::before {
    opacity: 1;
  }

  .cinema__panel:hover .cinema__cta {
    background-color: var(--white);
    color: var(--cinema-color);
  }

  .cinemas:has(.cinema__panel:hover) .cinema__panel:not(:hover) {
    background-color: var(--cinema-color-dim);
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .cinema__panel:hover .cinema__city {
    transform: scale(1.04);
  }

  .cinema__panel:hover .cinema__arrow {
    transform: translateX(.3em);
  }
}

/* --- Info band (name, address, link) -------------------------------------- */

.cinema__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .85rem;
  padding: clamp(2rem, 5vh, 3rem) 1.5rem;
  background: var(--charcoal);
  text-align: center;
}

.cinema + .cinema .cinema__info {
  border-left: 1px solid rgb(255 255 255 / .08);
}

.cinema__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.cinema__address {
  font-size: .95rem;
  font-style: normal;
  line-height: 1.6;
  color: rgb(255 255 255 / .78);
}

.cinema__link {
  font-size: .95rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .3em;
}

.cinema__link:hover {
  text-decoration-thickness: 2px;
}

.cinema__link:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
  border-radius: 2px;
}

/* --- Footer ---------------------------------------------------------------- */

.site-footer {
  padding: 1.1rem 1.5rem calc(1.1rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgb(255 255 255 / .08);
  font-size: .8rem;
  text-align: center;
  color: rgb(255 255 255 / .6);
}

/* --- Entrance animation ---------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .cinema__title,
  .cinema__cta {
    animation: rise .9s var(--ease-out) backwards;
  }

  .cinema__cta {
    animation-delay: .12s;
  }

  .cinema--cuijk .cinema__title {
    animation-delay: .08s;
  }

  .cinema--cuijk .cinema__cta {
    animation-delay: .2s;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
}

/* --- Small screens: stack the cinemas ------------------------------------- */

@media (max-width: 45rem) {
  .cinemas {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .cinema {
    grid-row: auto;
    grid-template-rows: 1fr auto;
    min-height: 50vh;
    min-height: 50svh;
    background-color: var(--cinema-color);
  }

  .cinema__panel {
    gap: 1.5rem;
    padding-block: 3.5rem 2rem;
  }

  .cinema__brand {
    gap: .75rem;
  }

  .cinema__brand::before,
  .cinema__brand::after {
    width: 1.5rem;
  }

  .cinema__city {
    font-size: clamp(4.5rem, 24vw, 7.5rem);
  }

  /* The panel already shows the name and the link, so keep only the address */
  .cinema__info {
    padding-block: 1.1rem;
    background: rgb(0 0 0 / .18);
  }

  .cinema + .cinema .cinema__info {
    border-left: 0;
  }

  .cinema__name,
  .cinema__link {
    display: none;
  }

  .cinema__address {
    font-size: .9rem;
    color: var(--white);
  }
}
