/* TheAIR.Tech - site styles (hand-built, no page-builder framework) */

:root {
  --black: #000;
  --grey-90: #191919;
  --grey-80: #333;
  --grey-75: #404040;
  --grey-60: #666;
  --white: #fff;
  --blue: #478ac9;      /* active menu item (old palette-1) */
  --red-hover: #db545a; /* menu hover (old palette-2) */
  --sheet: 1140px;
  --gutter: 20px;
  --body-font: "Open Sans", Arial, Helvetica, sans-serif;
  --head-font: Roboto, Arial, Helvetica, sans-serif;
  --display-font: Anton, Impact, "Arial Narrow", sans-serif;
  --alt-font: Montserrat, Arial, Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--body-font);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, h5, h6 { font-family: var(--head-font); font-weight: 500; line-height: 1.2; margin: 0; }
p { margin: 20px 0 0; }
.sheet { width: min(var(--sheet), calc(100% - 2 * var(--gutter))); margin: 0 auto; position: relative; }
.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;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--white); color: var(--black);
  padding: 10px 16px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header { border: 1px solid var(--grey-75); background: var(--black); position: relative; z-index: 20; }
.site-header .sheet { min-height: 158px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.logo { align-self: flex-start; display: block; width: 306px; margin-top: 22px; }
.logo img { width: 100%; height: auto; }
.main-nav ul { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; }
.main-nav a {
  display: block; padding: 10px 16px; text-decoration: none; color: var(--white); font-size: 1rem;
  transition: color .2s;
}
.main-nav a:hover, .main-nav a:focus-visible { color: var(--red-hover); }
.main-nav a[aria-current="page"] { color: var(--blue); }
.menu-toggle { display: none; }

/* home page: header sits over the hero video */
.overlap .site-header { position: absolute; top: 0; left: 0; right: 0; background: transparent; }

@media (max-width: 991px) {
  .site-header .sheet { min-height: 110px; align-items: center; }
  .logo { width: 220px; margin: 16px 0; }
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
    background: none; border: 0; color: var(--white); cursor: pointer; padding: 0;
  }
  .menu-toggle svg { width: 24px; height: 24px; fill: currentColor; }
  .main-nav {
    position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .95);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
  }
  .main-nav.open { opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; align-items: center; margin: 0; }
  .main-nav a { font-size: 1.25rem; padding: 12px 20px; }
  .menu-close {
    position: absolute; top: 20px; right: 20px; width: 48px; height: 48px; background: none; border: 0;
    color: var(--white); font-size: 36px; line-height: 1; cursor: pointer;
  }
  body.menu-open { overflow: hidden; }
}
@media (min-width: 992px) { .menu-close { display: none; } }

/* ---------- Video helpers (YouTube shown "cover" style, controls cropped away) ---------- */
.video-cover { position: absolute; inset: 0; overflow: hidden; background: var(--black); }
.video-cover iframe {
  position: absolute; top: 50%; left: 50%; border: 0; pointer-events: none;
  width: 178%; height: 178%; transform: translate(-50%, -50%);
}

/* ---------- Home: hero ---------- */
.hero { position: relative; min-height: 601px; overflow: hidden; display: flex; align-items: flex-end; }
.hero .video-cover iframe { width: max(178%, 316vh); height: max(178%, 100vw); }
.hero-text {
  position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between;
  gap: 30px; padding: 230px 0 33px;
}
.hero h1 {
  font-family: var(--display-font); font-weight: 400; font-size: 3.75rem; line-height: .8;
  text-transform: uppercase; letter-spacing: .01em; text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
.hero p { margin: 0; max-width: 616px; text-align: right; font-size: 1.125rem; text-shadow: 0 1px 10px rgba(0, 0, 0, .5); }
@media (max-width: 767px) {
  .hero { min-height: 520px; }
  .hero-text { flex-direction: column-reverse; align-items: flex-start; padding: 180px 0 50px; }
  .hero p { text-align: left; }
  .hero h1 { font-size: 3rem; }
}

/* ---------- Home: services ---------- */
.service { padding: 50px 0; }
.service .sheet { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.service-video { position: relative; min-height: 451px; margin: 20px; overflow: hidden; }
.service-copy { padding: 20px 60px; }
.service h2 { text-transform: uppercase; font-size: 1.5rem; }
@media (max-width: 1199px) { .service-video { min-height: 372px; } }
@media (max-width: 991px) {
  .service .sheet { gap: 20px; }
  .service-video { min-height: 285px; margin: 0; }
  .service-copy { padding: 10px 0; }
}
@media (max-width: 767px) {
  .service { padding: 30px 0; }
  .service .sheet { grid-template-columns: 1fr; }
  .service-video { min-height: 0; aspect-ratio: 16 / 10; }
}

/* ---------- Home: full-bleed photo ---------- */
.photo-band {
  min-height: 724px; background: #fff url("../../images/bg.jpg") 50% 50% / cover no-repeat;
}
@media (max-width: 991px) { .photo-band { min-height: 562px; background-position: 17% 50%; } }
@media (max-width: 575px) { .photo-band { min-height: 300px; } }

/* ---------- Home: team ---------- */
.team { background: var(--grey-80); padding: 70px 0 60px; }
.team-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 50px 10px; }
.member { padding: 10px; }
.member img { width: 223px; max-width: 100%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; margin: 0 auto; }
.member h3 { font-family: var(--alt-font); font-weight: 700; font-size: 1.25rem; margin-top: 18px; }
.member ul { list-style: none; margin: 22px 0 0; padding: 0; }
.member li::before { content: "-"; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { display: block; width: 32px; height: 32px; color: var(--grey-75); transition: color .2s; }
.socials a:hover, .socials a:focus-visible { color: var(--white); }
.socials svg { width: 100%; height: 100%; display: block; }
@media (max-width: 991px) { .team-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .team-list { grid-template-columns: 1fr; } .member img { width: 223px; margin: 0; } }

/* ---------- Home: contact ---------- */
.contact {
  background: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, .1)), url("../../images/aerial-reconnaisance-scaled.jpg") 50% 50% / cover no-repeat;
  padding: 60px 0 40px;
}
.contact .sheet { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.contact-info { padding: 30px 29px; text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }
.contact-info h2 { font-family: var(--alt-font); font-weight: 700; font-size: 1.5rem; }
.contact-list { list-style: none; margin: 89px 0 0; padding: 0; max-width: 417px; }
.contact-list li { padding: 20px 30px 15px 0; }
.contact-list h3 { font-family: var(--alt-font); font-weight: 700; font-size: 1.25rem; display: flex; align-items: center; gap: 8px; }
.contact-list h3 img { width: 1.1em; height: 1.1em; filter: invert(1); }
.contact-list p { margin-top: 20px; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

.contact-form { padding: 30px; }
.contact-form form { max-width: 509px; margin: 4px auto 0; padding: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 30px 30px; }
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; margin-bottom: 5px; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.field input, .field textarea {
  font: inherit; color: #111; background: var(--white); border: 0; border-bottom: 2px solid var(--white);
  padding: 10px 12px; width: 100%; border-radius: 0;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn-submit {
  grid-column: 1 / -1; width: 100%; border: 0; cursor: pointer; border-radius: 50px;
  background: var(--grey-90); color: var(--white); font: 700 1rem var(--body-font);
  text-transform: uppercase; letter-spacing: 2px; padding: 14px 0 15px; transition: background .2s, color .2s;
}
.btn-submit:hover, .btn-submit:focus-visible { background: var(--white); color: var(--black); }
.btn-submit[disabled] { opacity: .6; cursor: wait; }
.form-status { grid-column: 1 / -1; margin: 0; padding: 12px 16px; display: none; }
.form-status.ok { display: block; background: #2e7d32; }
.form-status.err { display: block; background: #b3261e; }
@media (max-width: 991px) {
  .contact .sheet { grid-template-columns: 1fr; }
  .contact-list { margin-top: 30px; }
  .contact-form { padding: 0 0 30px; }
}
@media (max-width: 575px) {
  .contact-info { padding: 20px 0; }
  .contact-form form { grid-template-columns: 1fr; padding: 0; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--grey-80); padding: 50px 0 30px; text-align: center; font-size: .9rem; }
.site-footer p { margin: 0; }

/* ---------- Gallery page ---------- */
.gallery-intro { background: var(--grey-80); padding: 79px 0 40px; }
.gallery-intro h1 { font-size: 2.25rem; font-weight: 400; max-width: 606px; }
.gallery-intro .cols { display: grid; grid-template-columns: 1fr 1fr; margin-top: 35px; }
.gallery-intro .cols > div { padding: 30px 22px 30px 30px; }
.gallery-intro .cols p { margin: 0; line-height: 1.8; }
.mail-link {
  display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 2.25rem; letter-spacing: 1px;
  text-decoration: none; color: var(--white); transition: color .2s; word-break: break-all;
}
.mail-link img { width: 36px; height: 36px; filter: invert(1); }
.mail-link:hover, .mail-link:focus-visible { color: var(--blue); }
.gallery-intro .cols > div:last-child { display: flex; align-items: flex-end; }
@media (max-width: 991px) {
  .gallery-intro h1 { font-size: 1.75rem; }
  .gallery-intro .cols { grid-template-columns: 1fr; }
  .gallery-intro .cols > div { padding: 20px 0; }
  .mail-link { font-size: 1.75rem; }
}
@media (max-width: 575px) { .mail-link { font-size: 1.35rem; } .mail-link img { width: 26px; height: 26px; } }

.photographer { padding: 70px 0 60px; }
.signature { display: block; margin: 0 auto 70px; width: fit-content; }
.signature img { margin: 0 auto; }
.signature.frank img { width: 300px; }
.signature.matthew img { width: 330px; }
.signature.timothy img { width: 253px; }
.photo-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.photo-grid a { display: block; position: relative; overflow: hidden; aspect-ratio: 368 / 268; background: var(--grey-90); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, opacity .3s; }
.photo-grid a::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .35); opacity: 0; transition: opacity .3s; }
.photo-grid a:hover::after, .photo-grid a:focus-visible::after { opacity: 1; }
.photo-grid a:hover img { transform: scale(1.03); }
@media (max-width: 767px) { .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
@media (max-width: 575px) { .photo-grid { grid-template-columns: 1fr; } .signature { margin-bottom: 40px; } }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .94); display: none;
  align-items: center; justify-content: center; padding: 50px 70px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lightbox button {
  position: absolute; background: none; border: 0; color: var(--white); cursor: pointer;
  font-size: 44px; line-height: 1; width: 56px; height: 56px; opacity: .8;
}
.lightbox button:hover, .lightbox button:focus-visible { opacity: 1; }
.lb-close { top: 10px; right: 10px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
.lb-caption { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; font-size: .9rem; color: #ccc; padding: 0 20px; margin: 0; }
.lb-caption a { color: var(--white); font-weight: 700; margin-left: 6px; }
.lb-caption a:hover, .lb-caption a:focus-visible { color: var(--blue); }
@media (max-width: 575px) { .lightbox { padding: 60px 8px; } .lb-prev, .lb-next { top: auto; bottom: 30px; transform: none; } }

/* ---------- MSFS / Rooivalk page ---------- */
.rooivalk {
  background: var(--black) url("../../images/TheAIRtech_RooivalkWIPPoster.jpg") 50% 50% / contain no-repeat;
  min-height: 846px; display: flex; align-items: flex-end;
}
.rooivalk-card {
  background: var(--white); color: #111; width: 565px; max-width: 100%; border-radius: 20px 20px 0 0;
  padding: 32px 30px 30px; margin: 0 0 30px 5px; text-align: center;
}
.rooivalk-card h1 { font-size: 1.25rem; font-weight: 300; text-align: left; line-height: 1.4; }
.btn-outline {
  display: inline-block; margin-top: 32px; padding: 10px 30px; border: 2px solid var(--black); color: var(--black);
  text-decoration: none; font-weight: 700; text-transform: uppercase; transition: background .2s, color .2s;
}
.btn-outline:hover, .btn-outline:focus-visible { background: var(--black); color: var(--white); }
@media (max-width: 991px) {
  .rooivalk { min-height: 0; flex-direction: column; align-items: stretch; background: var(--black); }
  .rooivalk-poster { display: block !important; }
  .rooivalk-card { margin: 0 auto 30px; }
}
.rooivalk-poster { display: none; }

/* ---------- Filmography ---------- */
.film-intro { padding-bottom: 60px; }
.film-lede { max-width: 640px; line-height: 1.8; margin-top: 30px; }
.film .trailer { margin: 20px; }
.yt-facade { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--grey-90); overflow: hidden; }
.yt-facade img { width: 100%; height: 100%; object-fit: cover; color: transparent; font-size: 0; transition: transform .4s ease, opacity .3s; }
.yt-facade:hover img, .yt-facade:focus-visible img { transform: scale(1.03); opacity: .85; }
.yt-play {
  position: absolute; left: 50%; top: 50%; width: 78px; height: 78px; margin: -39px 0 0 -39px; border-radius: 50%;
  background: rgba(0, 0, 0, .65); border: 2px solid var(--white); transition: background .2s, transform .2s;
}
.yt-play::after {
  content: ""; position: absolute; left: 31px; top: 23px; border-style: solid; border-width: 15px 0 15px 24px;
  border-color: transparent transparent transparent var(--white);
}
.yt-facade:hover .yt-play, .yt-facade:focus-visible .yt-play { background: var(--red-hover); transform: scale(1.06); }
.trailer iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.film-kind { margin: 0 0 10px; font-size: .85rem; letter-spacing: 2px; text-transform: uppercase; color: #aaa; }
.film-role { margin: 20px 0 0; line-height: 1.7; }
.film-role a { color: var(--white); font-weight: 700; }
.film-role a:hover, .film-role a:focus-visible { color: var(--blue); }
.film-role span { display: block; font-size: .8rem; letter-spacing: 2px; text-transform: uppercase; color: #aaa; margin-bottom: 4px; }
.film-meta { list-style: none; margin: 20px 0 0; padding: 0; font-size: .95rem; color: #ddd; }
.film-meta li { padding: 2px 0; }
.film-meta li:first-child { font-weight: 700; }
.film-link a { color: var(--white); font-weight: 700; text-decoration: none; }
.film-link a:hover, .film-link a:focus-visible { color: var(--blue); }
@media (max-width: 991px) { .film .trailer { margin: 0; } }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: flex; align-items: center; text-align: center; padding: 80px 0; }
.notfound h1 { font-family: var(--display-font); font-weight: 400; font-size: 5rem; line-height: 1; }
.notfound a { color: var(--blue); }
