/* ==========================================================================
   Maximum Impact — base styles
   ========================================================================== */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f4f6f8;
  --color-dark: #14171a;
  --color-dark-alt: #1e2226;
  --color-text: #2b2f33;
  --color-muted: #6b7278;
  --color-accent: #009fff;
  --color-accent-dark: #0077c2;
  --color-border: #e4e7ea;

  --font-heading: "Roboto Slab", Georgia, serif;
  --font-body: "Roboto", Arial, sans-serif;

  --container-width: 1140px;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: var(--color-accent-dark);
  text-decoration: none;
}

a:hover {
  color: var(--color-accent);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.25;
  margin: 0 0 0.6em;
  color: var(--color-dark);
}

h1 { font-size: clamp(1.8rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(1.5rem, 4vw, 2.5rem);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--color-accent-dark);
  margin-bottom: 0.75em;
}

.btn {
  display: inline-block;
  padding: 0.85em 1.8em;
  border-radius: 34px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 159, 255, 0.35);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 159, 255, 0.4);
}

.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: var(--color-dark);
}

.btn-outline:hover {
  background: var(--color-dark);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.btn-outline-light:hover {
  background: #fff;
  color: var(--color-dark);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
}

.brand img {
  height: 46px;
  width: auto;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  padding: 8px 12px;
}

.brand span {
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5em 0;
  position: relative;
}

.main-nav a:hover,
.main-nav a.active {
  color: #fff;
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
}

@media (max-width: 820px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--color-dark-alt);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .main-nav.open {
    max-height: 340px;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
  }

  .main-nav a {
    display: block;
    padding: 0.9em 20px;
  }

  .main-nav a.active::after {
    display: none;
  }

  .main-nav a.active {
    background: rgba(255, 255, 255, 0.06);
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  background: var(--color-dark);
  color: #fff;
  overflow: hidden;
}

.hero-media {
  position: relative;
  width: 100%;
}

.hero-media img {
  width: 100%;
  height: auto;
}

.hero-content {
  padding: clamp(1.75rem, 5vw, 3rem) 20px;
  max-width: var(--container-width);
  margin: 0 auto;
  text-align: center;
}

.hero-content h1 {
  color: #fff;
}

.hero-content .subhead {
  color: var(--color-accent);
  font-weight: 700;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  margin-bottom: 0.75em;
}

.hero-content p.lead {
  max-width: 720px;
  margin: 0 auto 1.5em;
  color: rgba(255, 255, 255, 0.85);
}

/* Large screens: overlay the copy on top of the image so the shot still
   reads as a full-bleed hero, without ever cropping the photo itself. */
@media (min-width: 900px) {
  .hero-media {
    aspect-ratio: 16 / 9;
    max-height: 82vh;
    overflow: hidden;
  }

  .hero-media img {
    height: 100%;
    object-fit: cover;
    object-position: center 55%;
  }

  /* Darkening gradient lives on its own layer, behind the text. Putting the
     gradient directly on the same element as the text causes Chrome/Windows
     to leave a faint rasterised box behind the glyphs (a known compositing
     quirk when text sits on a translucent background). */
  .hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 12, 14, 0.55) 0%, rgba(10, 12, 14, 0.35) 45%, rgba(10, 12, 14, 0.75) 100%);
    pointer-events: none;
  }

  .hero-content {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}

/* ==========================================================================
   Cards / grids
   ========================================================================== */

.grid {
  display: grid;
  gap: 1.75rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  height: 100%;
}

.card .icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 159, 255, 0.12);
  color: var(--color-accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1em;
  font-size: 1.3rem;
}

.card h3 {
  margin-bottom: 0.4em;
}

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

/* ==========================================================================
   About split section
   ========================================================================== */

.split {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }

  .split.reverse .split-media {
    order: 2;
  }
}

.split-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.split-media.photo-crop img {
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  object-position: center 72%;
}

.equipment-list {
  list-style: none;
  margin: 1.25em 0;
  padding: 0;
  display: grid;
  gap: 0.6em;
}

.equipment-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6em;
}

.equipment-list li::before {
  content: "\2713";
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.75rem;
  margin-top: 0.15em;
}

/* ==========================================================================
   Video / project embeds
   ========================================================================== */

.video-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
}

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

.project {
  display: grid;
  gap: 1.5rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

@media (min-width: 860px) {
  .project {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }

  .project.reverse .video-frame {
    order: 2;
  }
}

.project:last-child {
  margin-bottom: 0;
}

.role-tag {
  display: inline-block;
  background: rgba(0, 159, 255, 0.12);
  color: var(--color-accent-dark);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.3em 0.9em;
  border-radius: 20px;
  margin-top: 0.5em;
}

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band {
  background: var(--color-dark);
  color: #fff;
  text-align: center;
}

.cta-band h2,
.cta-band p {
  color: #fff;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

/* ==========================================================================
   Contact page
   ========================================================================== */

.contact-cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  max-width: 780px;
  margin: 0 auto;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
}

.contact-card .icon {
  margin: 0 auto 1em;
}

.contact-card a {
  font-weight: 700;
  font-size: 1.05rem;
  word-break: break-word;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: clamp(2rem, 5vw, 3rem) 0 1.5rem;
}

.footer-top {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.75em;
}

.footer-brand img {
  height: 38px;
  width: auto;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  padding: 6px 9px;
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.85em;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6em;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.75);
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  font-size: 0.85rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
}

/* ==========================================================================
   Page banner (for interior pages)
   ========================================================================== */

.page-banner {
  background: var(--color-dark);
  color: #fff;
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.page-banner h1 {
  color: #fff;
  margin-bottom: 0.3em;
}

.page-banner p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 620px;
  margin: 0 auto;
}
