/* ============================================================
   Major Media Group — styles
   Brand colours live in :root. Change them once, they apply everywhere.
   ============================================================ */
:root {
  --navy: #1c2a4f;
  --navy-deep: #131d3a;
  --steel: #9aa3ad;
  --ink: #0b0e14;
  --ink-2: #12161f;
  --paper: #f5f4f0;
  --white: #ffffff;
  --text: #1a1d24;
  --muted: #5b6270;
  --accent: #e8a33d;          /* safety-orange highlight, used sparingly */

  --font-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --pad: clamp(20px, 5vw, 48px);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.8rem, 7.5vw, 6rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h3 { font-size: 1.55rem; font-weight: 700; }
p  { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--pad)); margin-inline: auto; }
.wrap-wide { width: min(1500px, 100% - 2 * var(--pad)); margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 100;
}
.skip:focus { left: 8px; }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .9rem;
  color: var(--accent);
  margin-bottom: .75rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 1.05rem;
  padding: .85em 1.6em;
  border: 2px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.btn-ghost { color: var(--white); border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: -webkit-sticky; position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,.1);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-block: 10px;
}
.brand img { height: 60px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  color: var(--ink); text-decoration: none;
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: .1em; font-size: 1rem; opacity: .85;
}
.nav a:hover { opacity: 1; }
.nav-cta {
  padding: .5em 1.1em; border: 2px solid var(--steel); border-radius: var(--radius); opacity: 1 !important;
}
.nav-cta:hover { background: var(--ink); color: var(--white) !important; border-color: var(--ink); }

.nav-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer;
}
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 6px 0; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid rgba(0,0,0,.1);
  }
  .nav.open { display: flex; }
  .nav a { padding: 18px var(--pad); border-top: 1px solid rgba(0,0,0,.06); }
  .nav-cta {
    margin: 14px var(--pad); padding: .9em 1.6em;
    border: 2px solid var(--navy); border-radius: var(--radius);
    background: var(--navy); color: var(--white) !important;
    text-align: center;
  }
  .nav-cta:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
}

/* ---------- Mobile scrollbar ---------- */
@media (max-width: 820px) {
  html, body {
    scrollbar-width: none;      /* Firefox */
    -ms-overflow-style: none;   /* older Edge/IE */
  }
  html::-webkit-scrollbar, body::-webkit-scrollbar {
    display: none;              /* Chrome, Safari, mobile browsers */
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: clamp(560px, 88vh, 900px);
  display: flex; align-items: flex-end;
  color: var(--white); background: var(--ink);
  isolation: isolate;
}
.hero-bg, .hero-bg img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%;
  z-index: -2;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(11,14,20,.35) 0%, rgba(11,14,20,.15) 40%, rgba(11,14,20,.85) 100%),
    linear-gradient(90deg, rgba(11,14,20,.55) 0%, rgba(11,14,20,0) 60%);
}
.hero-content { padding-block: clamp(60px, 10vh, 120px) clamp(72px, 12vh, 140px); max-width: 820px; }
.hero h1 { text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.35rem); max-width: 34em; color: rgba(255,255,255,.9); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.6rem; }

/* ---------- Statement band ---------- */
.band {
  background: var(--navy); color: var(--white);
  padding-block: clamp(28px, 4vw, 44px);
  position: relative;
}
.band::before {
  /* angled edge nod to the reference site */
  content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 24px;
  background: var(--navy); clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.band p { margin: 0; font-size: clamp(1.1rem, 1.7vw, 1.4rem); line-height: 1.5; max-width: 60em; }
.band strong { color: var(--white); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-dark { background: var(--ink); color: var(--white); }
.section-dark h2 { color: var(--white); }

/* ---------- Services ---------- */
.services {
  display: grid; gap: 2px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  background: var(--steel);
}
.service {
  background: var(--white); padding: 36px 30px 34px; position: relative;
  border-top: 5px solid var(--navy);
  transition: transform .2s ease;
}
.service:hover { transform: translateY(-4px); }
.service-num {
  font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; line-height: 1;
  color: var(--steel); display: block; margin-bottom: 14px;
}
.service h3 { color: var(--navy); }
.service p { margin: 0; color: var(--muted); }
.services-note {
  margin-top: 40px; max-width: 62em; color: var(--muted);
  padding-left: 18px; border-left: 3px solid var(--accent);
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  grid-auto-rows: 240px;
  grid-auto-flow: dense;
}
.tile {
  overflow: hidden; position: relative; background: var(--ink-2); display: block;
}
.tile.tall { grid-row: span 2; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .3s; }
.tile:hover img { transform: scale(1.04); }
.tile::after {
  content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 0 var(--accent); transition: box-shadow .2s;
}
.tile:hover::after { box-shadow: inset 0 0 0 3px var(--accent); }
@media (min-width: 900px) {
  .gallery { grid-auto-rows: 280px; grid-template-columns: repeat(4, 1fr); }
  .tile:first-child { grid-column: span 2; }
}

/* ---------- About ---------- */
.about {
  display: grid; gap: clamp(32px, 6vw, 80px);
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
}
.about-media { position: relative; }
.portrait { width: 100%; border-radius: var(--radius); }
.candid {
  position: absolute; right: -8%; bottom: -10%; width: 48%;
  border: 6px solid var(--paper); border-radius: var(--radius);
  box-shadow: 0 20px 40px rgba(0,0,0,.2);
}
.about-text h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); color: var(--navy); }
.about-text p { color: #333944; }
.stats {
  list-style: none; padding: 0; margin: 2.2rem 0 0;
  display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border-top: 2px solid var(--navy); padding-top: 24px;
}
.stats strong {
  display: block; font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; color: var(--navy); line-height: 1;
}
.stats span { display: block; color: var(--muted); font-size: .95rem; margin-top: 6px; }
@media (max-width: 820px) {
  .about { grid-template-columns: 1fr; }
  .about-media { max-width: 460px; margin-bottom: 40px; }
}

/* ---------- Contact ---------- */
.contact { position: relative; color: var(--white); background: var(--navy-deep); isolation: isolate; overflow: hidden; }
.contact-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
  z-index: -2; opacity: .35; filter: saturate(.6);
}
.contact::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(19,29,58,.95) 0%, rgba(19,29,58,.75) 60%, rgba(19,29,58,.5) 100%);
}
.contact-inner { max-width: 820px; }
.contact h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
.contact-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.5rem; }
.contact .btn-primary { background: var(--white); color: var(--navy); border-color: var(--white); }
.contact .btn-primary:hover { background: var(--paper); }
.contact-name { margin-top: 1.4rem; color: var(--steel); font-family: var(--font-display); text-transform: uppercase; letter-spacing: .12em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--steel); font-size: .92rem; }
.footer-inner { display: flex; align-items: center; gap: 18px; padding-block: 26px; flex-wrap: wrap; }
.footer-inner p { margin: 0; flex: 1; }
.footer-inner a { color: var(--steel); text-decoration: none; }
.footer-inner a:hover { color: var(--white); }
.footer-inner img { mix-blend-mode: screen; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(5,7,11,.94);
  display: flex; align-items: center; justify-content: center;
}
.lightbox img { max-width: min(94vw, 1600px); max-height: 90vh; width: auto; height: auto; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox button {
  position: absolute; background: none; border: 0; color: var(--white); cursor: pointer;
  font-size: 2.6rem; line-height: 1; padding: 12px 18px; opacity: .8;
}
.lightbox button:hover { opacity: 1; }
.lb-close { top: 10px; right: 14px; }
.lb-prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 6px; top: 50%; transform: translateY(-50%); }
.lightbox[hidden] { display: none; }
body.lb-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
