/* ==========================================================================
   Karel Debedts — kareldebedts.be
   Palette, type scale and section rhythm carried over from the previous site.
   ========================================================================== */

:root {
  --navy:        #000F2B;  /* headings                        */
  --ink:         #3A3A3A;  /* body copy                       */
  --teal:        #1A6C7A;  /* accent / buttons                */
  --sand:        #D5C295;  /* Same-Day Edit band              */
  --deep:        #0A4663;  /* footer                          */
  --white:       #FFFFFF;
  --rule:        #E2E2E2;

  --serif: 'Cormorant', Georgia, 'Times New Roman', serif;
  --sans:  'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --wrap: 1140px;
  --pad:  20px;
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video, svg, iframe { display: block; max-width: 100%; }
p { margin: 0 0 1em; }
a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--white);
  color: var(--teal);
  padding: 12px 20px;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   Hero — a fixed-ratio banner, deliberately not full-screen.
   The clip is a self-hosted MP4 (see scripts/build-hero.sh), already cropped
   to 2.55:1 so `cover` fills the banner at any viewport shape.

   The photo paints with the rest of the page; the video streams from Bunny and
   is not touched until the page has finished loading, then crossfades over it.
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  height: 57vh;
  min-height: 360px;
  max-height: 720px;
  overflow: hidden;
  background: #0b0b0b;
}

.hero__still,
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  outline: none;
}

.hero__video {
  opacity: 0;
  transition: opacity .9s ease;
}
.hero__video.is-playing { opacity: 1; }

/* The Bunny footage is 16:9 with cinematic bars baked in. On a wide banner the
   cover-crop swallows them; on narrow or portrait viewports it does not, so the
   video is oversized just enough to push them out of frame. The photo behind it
   is a normal 3:2 frame and is left alone. */
@media (max-aspect-ratio: 1.4 / 1) {
  .hero__video { height: 148%; top: -24%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__video { transition: none; }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .52);
  opacity: .5;
  pointer-events: none;
}

@media (max-width: 767px) {
  .hero { height: 295px; min-height: 0; }
  .hero__overlay { opacity: 0; }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section { position: relative; }

.section--intro    { padding: 106px 0; }
.section--sand     { padding: 63px 0 43px; background: var(--sand); color: var(--white); }
.section--trailers { padding: 106px 0 0; }
.section--contact  { padding: 56px 0 14vh; }

@media (max-width: 767px) {
  .section--intro    { padding: 30px 0 40px; }
  .section--sand     { padding: 34px 0 24px; }
  .section--trailers { padding: 35px 0 0; }
  .section--contact  { padding: 12px 0 60px; }
}

/* Wave dividers -------------------------------------------------------- */

.wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  line-height: 0;
  direction: ltr;
  overflow: hidden;
  pointer-events: none;
}
.wave svg {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  display: block;
  fill: var(--white);
}
.wave--sand   svg { width: 192%; height: 55px; }
.wave--footer svg { width: 181%; height: 34px; }

@media (max-width: 767px) {
  .wave--sand svg { width: 300%; height: 57px; }
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

.display {
  margin: 0 0 44px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(35px, 4.4vw, 59px);
  line-height: 1.05;
  color: var(--navy);
  text-align: center;
  letter-spacing: .005em;
}

.section--sand .display {
  color: var(--white);
  margin-bottom: 20px;
}

.lede {
  max-width: 660px;
  margin: 0 auto 40px;
  text-align: center;
  line-height: 1.55;
}

.section--sand .lede {
  color: var(--white);
  text-shadow: 0 0 10px rgba(0, 0, 0, .3);
  max-width: 645px;
}

@media (max-width: 767px) {
  .display { margin-bottom: 18px; }
  .lede    { margin-bottom: 28px; }
}

/* --------------------------------------------------------------------------
   Intro: copy beside the round portrait
   -------------------------------------------------------------------------- */

.intro__grid {
  display: grid;
  grid-template-columns: 60% 40%;
  align-items: center;
  gap: 20px;
}

.intro__text {
  text-align: center;
  line-height: 1.5;
}

.intro__cta { margin: 34px 0 0; }

.intro__portrait { text-align: center; }

.intro__portrait img {
  width: 65%;
  max-width: 52%;
  height: auto;
  margin-inline: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 1000px;
}

@media (max-width: 880px) {
  .intro__grid { grid-template-columns: 1fr; gap: 0; }
  .intro__portrait { order: -1; margin-bottom: 30px; }
  .intro__portrait img { width: 172px; max-width: 46%; }
  .intro__cta { margin-top: 28px; }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 16px 40px;
  border: 2px solid var(--teal);
  background: var(--white);
  color: var(--teal);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--teal);
  color: var(--white);
}

.btn--solid {
  background: var(--teal);
  color: var(--white);
}
.btn--solid:hover,
.btn--solid:focus-visible {
  background: var(--white);
  color: var(--teal);
}
.btn[disabled] { opacity: .55; cursor: default; }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.section--sand :focus-visible { outline-color: var(--white); }

/* --------------------------------------------------------------------------
   Bunny Stream players
   -------------------------------------------------------------------------- */

.player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
.player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.player--wide {
  max-width: 757px;
  margin: 0 auto;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
  padding-bottom: 14vh;
}

@media (max-width: 767px) {
  .video-grid { grid-template-columns: 1fr; padding-bottom: 60px; }
}

/* --------------------------------------------------------------------------
   Contact form
   -------------------------------------------------------------------------- */

.form {
  max-width: 760px;
  margin-inline: auto;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 620px) {
  .form__row { grid-template-columns: 1fr; }
}

.field { margin-bottom: 20px; }

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navy);
}

.field .req { color: var(--teal); }
.field .opt {
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: #8A8A8A;
}

.field input,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--rule);
  border-radius: 0;
  background: #FCFCFC;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  transition: border-color .2s ease, background-color .2s ease;
}

.field textarea { resize: vertical; min-height: 140px; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--white);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #B3403A; }

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__actions { margin-top: 8px; text-align: center; }

.form__status {
  margin: 20px 0 0;
  min-height: 1.5em;
  text-align: center;
  font-size: 15px;
}
.form__status.is-ok    { color: var(--teal); font-weight: 500; }
.form__status.is-error { color: #B3403A; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  position: relative;
  padding: 50px 0 119px;
  background: var(--deep);
  color: var(--white);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding-top: 20px;
}

.footer__title {
  margin: 0 0 10px;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--white);
}

.site-footer p {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 300;
}

.site-footer a {
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .35);
}
.site-footer a:hover { border-bottom-color: var(--white); }

@media (max-width: 767px) {
  .site-footer { padding: 40px 0 85px; }
  .footer__grid { grid-template-columns: 1fr; gap: 26px; }
}

/* -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
