/* ============================================================
   ARAYA FILMS · Portfolio Website
   style.css — Master Stylesheet
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Arimo:ital,wght@0,400;0,700;1,400;1,700&family=Bebas+Neue&family=Manrope:wght@500;600&display=swap');

/* ── CSS Custom Properties ────────────────────────────────── */
:root {
  color-scheme: dark;
  --color-bg: #090909;
  --color-text: #f2f2f2;
  --color-footer-bg: #090909;
  --color-dark: #1a1a1a;
  --font-primary: 'Arimo', Arial, sans-serif;
  --font-logo: 'Bebas Neue', 'Arial Black', Impact, sans-serif;
  --header-pad-top: 32px;
  --header-pad-h: 60px;
  --transition-base: 0.3s ease;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

/* ============================================================
   HEADER — Shared Component
   ============================================================ */
.site-header {
  padding: var(--header-pad-top) var(--header-pad-h) 20px;
  position: relative;
  z-index: 10;
}

/* Social row + Logo row */
.header__top {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 18px;
}

/* Social icons — absolutely positioned top-left of header top row */
.header__social {
  display: flex;
  align-items: center;
  gap: 14px;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.header__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  transition: opacity var(--transition-base);
}

.header__social a:hover {
  opacity: 0.55;
}

.header__social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Logo */
.header__logo a {
  font-family: var(--font-logo);
  font-size: 40px;
  font-weight: 400;
  letter-spacing: 3px;
  color: var(--color-text);
  text-decoration: none;
  transition: opacity var(--transition-base);
}

.header__logo a:hover {
  opacity: 0.7;
}

/* Navigation */
.header__nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
}

.header__nav a {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: var(--color-text);
  text-decoration: none;
  transition: opacity var(--transition-base);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.header__nav a:hover {
  opacity: 0.6;
}

.header__nav a.active {
  border-bottom: 1px solid currentColor;
}

/* Hamburger — hidden on desktop */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: currentColor;
  transition: var(--transition-base);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   FOOTER — Shared Component
   ============================================================ */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px 32px;
  padding: 36px var(--header-pad-h) 28px;
  text-align: center;
  margin-top: 60px;
}

.footer__links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px 20px;
  flex-wrap: wrap;
}

.footer__links a {
  text-transform: uppercase;
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text);
  text-decoration: underline;
  letter-spacing: 0.3px;
  transition: opacity var(--transition-base);
}

.footer__credits {
  order: -1;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-family: 'Manrope', var(--font-primary);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.4px;
  text-align: left;
}

.footer__links a:hover {
  opacity: 0.55;
}

.footer__links .sep {
  font-size: 13px;
  color: var(--color-text);
  margin: 0 8px;
}

/* ============================================================
   HOME PAGE
   ============================================================ */
.hero {
  padding: 20px var(--header-pad-h) 0;
}

.hero__image {
  width: 100%;
  height: 82vh;
  min-height: 500px;
  object-fit: cover;
  display: block;
}

/* ============================================================
   VIDEO PAGE
   ============================================================ */
.video-page {
  padding: 0 var(--header-pad-h);
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.filter-bar__item {
  font-family: var(--font-primary);
  font-size: 14px;
  color: var(--color-text);
  cursor: pointer;
  padding: 4px 0;
  background: none;
  border: none;
  font-weight: 400;
  transition: opacity var(--transition-base);
  letter-spacing: 0.3px;
}

.filter-bar__item:hover {
  opacity: 0.55;
}

.filter-bar__item.active {
  font-weight: 700;
}

.filter-bar__sep {
  font-size: 14px;
  color: var(--color-text);
  margin: 0 12px;
  user-select: none;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}

.video-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.video-card.hidden {
  display: none;
}

.video-card__title {
  font-family: 'Manrope', var(--font-primary);
  font-size: clamp(15px, 1.2vw, 17px);
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
  padding: 16px 0;
  line-height: 1.5;
  letter-spacing: -0.15px;
}

.video-card__thumbnail-wrap {
  order: -1;
  flex-shrink: 0;
  border-radius: 3px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background-color: var(--color-dark);
}

.video-card__thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
  display: block;
}

.video-card:hover .video-card__thumbnail,
.video-card:focus-visible .video-card__thumbnail {
  transform: scale(1.07);
}

/* ============================================================
   PHOTO PAGE
   ============================================================ */

/* Photo page — header overlaid on dark banner */
.photo-page .site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  color: #ffffff;
}

.photo-page .header__logo a,
.photo-page .header__nav a,
.photo-page .header__social svg {
  color: #ffffff;
  fill: #ffffff;
}

.photo-page .header__nav a.active {
  border-bottom-color: #ffffff;
}

.photo-page .header__social a {
  color: #ffffff;
}

.photo-banner {
  position: relative;
  width: 100%;
  height: 50vh;
  min-height: 340px;
  overflow: hidden;
}

.photo-banner__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-banner__text {
  position: absolute;
  bottom: 32px;
  right: 60px;
  font-family: var(--font-primary);
  font-size: 22px;
  font-weight: 700;
  font-style: italic;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 40px var(--header-pad-h) 0;
}

.photo-gallery__column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.photo-gallery__item {
  overflow: hidden;
  cursor: pointer;
}

.photo-gallery__item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.photo-gallery__item:hover img {
  transform: scale(1.03);
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-page-content {
  padding: 30px var(--header-pad-h) 0;
}

.about {
  display: grid;
  grid-template-columns: 40% 1fr;
  gap: 60px;
  align-items: start;
}

.about__image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
}

.about__text {
  padding-top: 10px;
}

.about__text p {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.75;
  margin-bottom: 24px;
}

.about__text p:last-child {
  margin-bottom: 0;
}

.about__text em {
  font-style: italic;
}

.about__text strong {
  font-weight: 700;
}

.about__maori {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 700;
  font-style: normal;
  margin-bottom: 8px !important;
}

/* ============================================================
   WAZZA PAGE
   ============================================================ */

/* Header overlaid on hero */
.wazza-page .site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  color: #ffffff;
}

.wazza-page .header__logo a,
.wazza-page .header__nav a,
.wazza-page .header__social svg {
  color: #ffffff;
  fill: #ffffff;
}

.wazza-page .header__nav a.active {
  border-bottom-color: #ffffff;
}

.wazza-page .header__social a {
  color: #ffffff;
}

.wazza-hero {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 500px;
  overflow: hidden;
}

.wazza-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Dark content section */
.wazza-content {
  background-color: var(--color-dark);
  padding: 70px var(--header-pad-h);
  text-align: center;
}

.wazza-content__text {
  max-width: 720px;
  margin: 0 auto 48px;
}

.wazza-content__text p {
  font-family: var(--font-primary);
  font-size: 18px;
  color: #e0e0e0;
  line-height: 1.8;
  margin-bottom: 20px;
}

.wazza-content__text p:last-child {
  margin-bottom: 0;
}

.wazza-content__text em {
  font-style: italic;
}

.wazza-content__credits {
  font-family: var(--font-primary);
  font-size: 15px;
  color: #aaaaaa;
  line-height: 1.7;
}

.wazza-video {
  max-width: 860px;
  margin: 0 auto;
}

.wazza-video__embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
}

.wazza-video__embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Wazza page footer override */
.wazza-page .site-footer {
  background-color: var(--color-dark);
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 40px;
}

.wazza-page .site-footer .footer__links a,
.wazza-page .site-footer .sep {
  color: #aaaaaa;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-page {
  position: relative;
  min-height: 100vh;
}

.contact-page .site-header {
  position: relative;
  z-index: 10;
}

.contact__bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.contact {
  display: grid;
  grid-template-columns: 40% 1fr;
  gap: 60px;
  padding: 40px var(--header-pad-h) 80px;
  position: relative;
  z-index: 5;
  align-items: start;
}

.contact__info {
  color: #ffffff;
  padding-top: 20px;
}

.contact__info h2 {
  font-family: var(--font-primary);
  font-size: 26px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 28px;
  color: #ffffff;
}

.contact__info p {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.75;
  margin-bottom: 14px;
}

.contact__info p:last-child {
  margin-bottom: 0;
}

.contact__info em {
  font-style: italic;
}

.contact__info strong {
  font-weight: 700;
}

.contact__info .gear-list {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.80);
  line-height: 1.7;
  margin-bottom: 20px;
}

.contact__info .contact-details {
  margin-top: 24px;
}

.contact__info .contact-details a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
}

.contact__info .contact-details a:hover {
  color: #ffffff;
}

/* Contact Form Card */
.contact__form-wrap {
  background-color: #151515;
  padding: 48px 40px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
}

.form__heading {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 28px;
}

.form__group {
  margin-bottom: 22px;
}

.form__label {
  display: block;
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--color-text);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form__input,
.form__textarea {
  width: 100%;
  font-family: var(--font-primary);
  font-size: 15px;
  color: var(--color-text);
  background-color: #202020;
  border: 1px solid #444;
  padding: 12px 14px;
  outline: none;
  transition: border-color var(--transition-base), background-color var(--transition-base);
  border-radius: 0;
  -webkit-appearance: none;
}

.form__input:focus,
.form__textarea:focus {
  border-color: #999;
  background-color: #262626;
}

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

.form__submit {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text);
  background-color: #202020;
  border: 1.5px solid #777;
  padding: 13px 36px;
  cursor: pointer;
  transition: background-color var(--transition-base), color var(--transition-base);
  margin-top: 8px;
}

.form__submit:hover {
  background-color: #000;
  color: #fff;
}

/* Contact page footer */
.contact-page .site-footer {
  position: relative;
  z-index: 5;
  margin-top: 0;
  padding: 24px var(--header-pad-h);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
}

.contact-page .site-footer .footer__links a,
.contact-page .site-footer .sep {
  color: rgba(255, 255, 255, 0.75);
}

/* Success message */
.form__success {
  display: none;
  padding: 14px 20px;
  background: #14291b;
  border-left: 3px solid #4caf50;
  font-size: 14px;
  color: #a7e3b2;
  margin-top: 12px;
  font-family: var(--font-primary);
}

.form__success.visible {
  display: block;
}

/* ============================================================
   RESPONSIVE — Tablet (768px–1023px)
   ============================================================ */
@media (max-width: 1023px) {
  :root {
    --header-pad-h: 36px;
  }

  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .photo-gallery {
    grid-template-columns: repeat(2, 1fr);
    padding: 30px 36px 0;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about__image {
    max-width: 460px;
  }

  .contact {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 30px 36px 60px;
  }
}

/* ============================================================
   RESPONSIVE — Mobile (≤767px)
   ============================================================ */
@media (max-width: 767px) {
  :root {
    --header-pad-h: 20px;
    --header-pad-top: 20px;
  }

  /* Header mobile */
  .site-header {
    padding: 20px 20px 16px;
  }

  .header__top {
    margin-bottom: 0;
  }

  .header__logo a {
    font-size: 28px;
  }

  .hamburger {
    display: flex;
  }

  .header__nav {
    display: none;
    flex-direction: column;
    gap: 18px;
    padding: 24px 0 16px;
    border-top: 1px solid rgba(255,255,255,0.2);
    margin-top: 16px;
  }

  .header__nav.open {
    display: flex;
  }

  /* Photo & Wazza page mobile nav */
  .photo-page .header__nav,
  .wazza-page .header__nav {
    border-top-color: rgba(255,255,255,0.25);
  }

  .hero__image {
    height: 55vw;
    min-height: 260px;
  }

  .hero {
    padding: 16px 20px 0;
  }

  .video-page {
    padding: 0 20px;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .photo-gallery {
    grid-template-columns: 1fr;
    padding: 24px 20px 0;
  }

  .photo-banner__text {
    font-size: 16px;
    right: 20px;
    bottom: 20px;
  }

  .about-page-content {
    padding: 20px 20px 0;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about__text p {
    font-size: 16px;
  }

  .wazza-hero {
    height: 60vw;
    min-height: 260px;
  }

  .wazza-content {
    padding: 48px 20px;
  }

  .wazza-content__text p {
    font-size: 16px;
  }

  .contact {
    grid-template-columns: 1fr;
    padding: 20px 20px 40px;
    gap: 28px;
  }

  .contact__form-wrap {
    padding: 28px 20px;
  }

  .form__row {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    gap: 0;
    flex-wrap: wrap;
  }

  .site-footer {
    padding: 28px 20px 20px;
    margin-top: 40px;
  }

  .header__social {
    gap: 10px;
  }

  .header__social svg {
    width: 17px;
    height: 17px;
  }
}

/* ============================================================
   UTILITY — Page transition fade-in
   ============================================================ */
body {
  animation: pageFade 0.4s ease both;
}

@keyframes pageFade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* Video lightbox */
.video-card[data-youtube-id]{cursor:pointer}
.lightbox{position:fixed;inset:0;background:rgba(0,0,0,.88);display:none;align-items:center;justify-content:center;z-index:1000}
.lightbox.open{display:flex}
.lightbox__frame{width:min(92vw,1100px);aspect-ratio:16/9}
.lightbox__frame iframe{width:100%;height:100%;border:0}
.lightbox__close{position:absolute;top:18px;right:28px;background:none;border:0;color:#fff;font-size:44px;cursor:pointer;line-height:1}

/* Home hero video */
.hero__video{width:100%;height:82vh;min-height:500px;border:0;display:block;background:#000}
@media (max-width:767px){.hero__video{height:56vw;min-height:220px}}

/* ============================================================
   MOBILE REFINEMENTS
   ============================================================ */
html { overflow-x: clip; }
body { overflow-x: hidden; }
/* Keep one scrollbar and keep fixed video overlays relative to the viewport. */
body.video-page-body { overflow-x: clip; animation: none; }
iframe, video { max-width: 100%; }

@media (max-width: 1023px) {
  .header__nav { gap: 20px; flex-wrap: wrap; }
  .header__logo a { font-size: 34px; }
}

@media (max-width: 767px) {
  /* Logo on its own centered row; social icons + hamburger share a row above */
  .header__top {
    flex-wrap: wrap;
    justify-content: flex-start;
    row-gap: 12px;
  }
  .header__social {
    position: static;
    transform: none;
    order: 1;
  }
  .hamburger {
    position: absolute;
    top: 14px;
    right: 14px;
    transform: none;
    display: flex;
    color: var(--color-text);
    padding: 10px;
  }
  .header__logo {
    order: 3;
    width: 100%;
    text-align: center;
  }
  .header__logo a { font-size: 30px; letter-spacing: 2px; }
  .header__social a { width: 32px; height: 32px; }

  /* Light text on dark-overlay pages */
  .photo-page .hamburger,
  .wazza-page .hamburger { color: #fff; }

  .header__nav {
    text-align: center;
    margin-top: 12px;
  }
  .header__nav a { font-size: 16px; padding: 4px 0; }
  .photo-page .header__nav.open,
  .wazza-page .header__nav.open {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    padding: 20px 0;
  }

  .hero__video { height: 56vw; min-height: 220px; }
  .filter-bar { padding: 16px 0; row-gap: 6px; }
  .filter-bar__item { padding: 6px 4px; font-size: 15px; }
  .video-grid { gap: 28px; }
  .about__image { max-width: 100%; }
  .contact__info h2 { font-size: 22px; }
  .form__input, .form__textarea { font-size: 16px; } /* prevents iOS zoom */
  .form__submit { width: 100%; }
  .lightbox__close { top: 8px; right: 16px; }
}

@media (max-width: 380px) {
  .header__logo a { font-size: 26px; }
  .footer__links a, .footer__links .sep { font-size: 12px; }
}

/* Home hero video: wrapper (desktop = unchanged, mobile = tall cropped/vertical) */
.hero__video-wrap{position:relative;width:100%;overflow:hidden;background:#000}
@media (max-width:767px){
  .hero__video-wrap{height:calc(100svh - 150px);min-height:480px}
  .hero__video{
    position:absolute;top:0;left:50%;
    height:100%;width:calc((100svh - 150px) * 16 / 9);min-width:calc(480px * 16 / 9);
    transform:translateX(-50%);
    pointer-events:none;max-width:none;
  }
}

/* Hide YouTube's title/channel bar on the home hero by cropping it out of view */
.hero__video-wrap{height:82vh;min-height:500px}
.hero__video{
  position:absolute;left:0;top:-80px;
  width:100%;height:calc(100% + 160px);min-height:0;
  pointer-events:none;
}
@media (max-width:767px){
  .hero__video-wrap{height:calc(100svh - 150px);min-height:480px}
  .hero__video{
    left:50%;top:-80px;
    height:calc(100% + 160px);
    width:calc((100svh - 150px + 160px) * 16 / 9);
    min-width:calc((480px + 160px) * 16 / 9);
    transform:translateX(-50%);
    max-width:none;
  }
}

/* Tap-to-play fallback for hero video */
.hero__play{position:absolute;inset:0;margin:auto;width:76px;height:76px;border-radius:50%;border:2px solid #fff;background:rgba(0,0,0,.45);color:#fff;font-size:28px;cursor:pointer;z-index:3;padding-left:4px}
.hero__play[hidden]{display:none}

/* Cover the hero with a centered 16:9 YouTube player at any viewport size. */
.hero__video-wrap{height:82vh;min-height:500px;container-type:size;background:#000}
.hero__video{position:absolute;inset:auto;top:50%;left:50%;width:max(100cqw,177.778cqh);height:max(100cqh,56.25cqw);min-height:0;min-width:0;max-width:none;transform:translate(-50%,-50%);pointer-events:none}
@media (max-width:767px){
  .hero__video-wrap{height:calc(100svh - 150px);min-height:480px}
}
