/* ============================================================
   CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Typography */
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Montserrat", Helvetica, Arial, sans-serif;
  --fw-regular: 400;
  --fw-light: 300;
  --fs-h1: 30px;
  --fs-h2: 24px;
  --fs-body: 14px;

  /* Colours */
  --clr-dark: #000000;
  --clr-white: #ffffff;
  --clr-text: #333333;

  /* Grid — desktop 12 columns */
  --cols: 12;
  --gutter: 24px;
  --outer-pad: 40px;
  --max-w: 1440px;
}

/* ============================================================
   RESET
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img,
iframe {
  display: block;
}

address {
  font-style: normal;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ============================================================
   BASE
   ============================================================ */
body {
  font-family: var(--font-sans);
  font-weight: var(--fw-light);
  font-size: var(--fs-body);
  color: var(--clr-text);
  line-height: 1.4;
  background-color: var(--clr-dark);
}

/* ============================================================
   GRID CONTAINER
   Every section places one .grid-container inside it.
   Children are positioned with grid-column.
   ============================================================ */
.grid-container {
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  column-gap: var(--gutter);
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--outer-pad);
  padding-right: var(--outer-pad);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  background-color: var(--clr-dark);
  padding: 0;
}

.nav-inner {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.nav-btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: var(--fw-light);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-white);
  border: 1px solid var(--clr-white);
  border-top: none;
  border-radius: 0 0 8px 8px;
  padding: 9px 22px;
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}

.nav-btn:hover {
  background-color: var(--clr-white);
  color: var(--clr-dark);
}

.nav-btn:focus-visible {
  outline: 2px solid var(--clr-white);
  outline-offset: 2px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background-color: var(--clr-dark);
  padding: 105px 0 110px;
  color: var(--clr-white);
  text-align: center;
}

/* Desktop: 6 of 12 columns, centred (cols 4–9) */
.hero-content {
  grid-column: 4 / 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.site-logo {
  margin-bottom: 50px;
  width: 160px;
  height: auto;
}

h1 {
  font-family: var(--font-serif);
  font-weight: var(--fw-regular);
  font-size: var(--fs-h1);
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--clr-white);
}

.lead {
  font-size: var(--fs-body);
  color: var(--clr-white);
  max-width: 45ch;
}

/* ============================================================
   VIDEO SECTION
   ============================================================ */
.video-section {
  position: relative;
  background-color: var(--clr-dark);
  padding-bottom: 54px;
}

.video-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 33.333%;
  background-color: var(--clr-white);
  z-index: 0;
}

.video-section .grid-container {
  position: relative;
  z-index: 1;
}

/* Desktop: cols 2–12 (11 of 12, flush to the right of the container) */
.video-wrapper {
  grid-column: 1 / -1;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================================
   CONTENT SECTION
   ============================================================ */
.content-section {
  background-color: var(--clr-white);
  padding: 54px 0 69px 0;
}

/* Desktop: 6 of 12 columns, centred */
.content-inner {
  align-items: center;
  grid-column: 4 / 10;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
  color: var(--clr-text);
}

/* ============================================================
   CONTACT / CTA SECTION
   ============================================================ */
.contact-section {
  background-color: var(--clr-white);
  padding: 0 0 144px;
}

h2 {
  font-family: var(--font-serif);
  font-weight: var(--fw-regular);
  font-size: var(--fs-h2);
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--clr-text);
}

/* Desktop: 6 of 12 columns, centred */
.contact-inner {
  grid-column: 4 / 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 33px;
  text-align: center;
  color: var(--clr-text);
}

.section-divider {
  border: none;
  border-top: 2px solid var(--clr-dark);
  width: 29px;
  margin-bottom: 10px;
}

.contact-inner a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(51, 51, 51, 0.35);
  transition: text-decoration-color 0.2s ease;
}

.contact-inner a:hover {
  text-decoration-color: var(--clr-text);
}

.contact-inner a:focus-visible {
  outline: 2px solid var(--clr-text);
  outline-offset: 2px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background-color: var(--clr-dark);
  text-align: center;
  color: var(--clr-white);
  display: flex;
  justify-content: center;
  align-items: center;
  padding-block: 0.75rem;
}

.site-footer a {
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.site-footer a:hover {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .nav-btn,
  .contact-inner a {
    transition: none;
  }

  .video-wrapper iframe {
    display: none;
  }

  .video-wrapper {
    background-color: #111111;
  }
}

/* ============================================================
   TABLET PORTRAIT — 8 columns  (≤ 1024 px)
   ============================================================ */
@media (max-width: 1024px) {
  :root {
    --cols: 8;
    --gutter: 20px;
    --outer-pad: 24px;
  }

  /* 6 of 8 columns, centred (1 col margin each side) */
  .hero-content {
    grid-column: 2 / 8;
  }
  /* Video full width on tablet, flush to viewport edges */
  .video-wrapper {
    grid-column: 1 / -1;
  }
  .video-section .grid-container {
    padding-left: 0;
    padding-right: 0;
  }
  .content-inner {
    grid-column: 2 / 8;
  }
  .contact-inner {
    grid-column: 2 / 8;
  }
}

/* ============================================================
   SMARTPHONE — 4 columns  (≤ 767 px)
   ============================================================ */
@media (max-width: 767px) {
  :root {
    --cols: 4;
    --gutter: 16px;
    --outer-pad: 16px;
  }

  /* All elements full width on mobile */
  .hero-content,
  .video-wrapper,
  .content-inner,
  .contact-inner {
    grid-column: 1 / -1;
  }

  .hero {
    padding: 48px 0 56px;
  }
  .video-section {
    padding-bottom: 48px;
  }
  .video-section .grid-container {
    padding-left: 0;
    padding-right: 0;
  }
  .content-section {
    padding: 56px 0 40px;
  }
  .contact-section {
    padding: 16px 0 56px;
  }
}
