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

html {
  scroll-behavior: smooth;
  background: #121212; /* fallback canvas colour behind the fixed video */
}

body {
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  color: #e0e0e0;
  background: transparent; /* let the fixed video show through */
}

/* ── Fixed background video ──────────────────────────────── */
#bg-video {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -1;
}

a { color: #d65050; text-decoration: none; transition: color .2s; }
a:hover { color: #ff7070; }

img { max-width: 100%; height: auto; display: block; border-radius: 6px; }

ul { list-style: none; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.narrow   { max-width: 760px; }

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(18, 18, 18, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.5rem; font-weight: 700; color: #fff;
  letter-spacing: .04em;
}
.logo:hover { color: #d65050; }

.nav-links {
  display: flex; gap: 2rem;
}
.nav-links a {
  color: #bbb; font-size: .9rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
}
.nav-links a:hover { color: #fff; }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: #fff;
  transition: transform .3s;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh; min-height: 500px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  text-align: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(18,18,18,.7) 0%,
    rgba(18,18,18,.4) 50%,
    rgba(18,18,18,.85) 100%
  );
}
.hero-content {
  position: relative; z-index: 1;
}
.hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700; color: #fff;
  letter-spacing: .08em;
  margin-bottom: .25em;
}
.tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 300; color: rgba(255,255,255,.8);
  letter-spacing: .04em;
}

/* ── Sections ────────────────────────────────────────────── */
.section {
  padding: 6rem 0;
  background: #121212; /* explicit — must cover the fixed video */
}
.section-dark {
  background: #1a1a1a;
}
.section h2 {
  font-size: 2rem; font-weight: 700; color: #fff;
  margin-bottom: 1.5rem;
}
.section-intro {
  max-width: 640px;
  margin-bottom: 3rem;
  color: #aaa;
}

/* ── Two-column layout ───────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.two-col.reverse .col-image { order: -1; }

.col-text p { margin-bottom: 1rem; color: #ccc; }

.services-list {
  margin-top: 1rem;
}
.services-list li {
  position: relative;
  padding-left: 1.2em;
  margin-bottom: .75rem;
  color: #ccc;
}
.services-list li::before {
  content: '\2022';
  position: absolute; left: 0;
  color: #d65050; font-weight: 700;
}

/* ── Expertise grid ──────────────────────────────────────── */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.expertise-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  padding: 2rem;
  transition: border-color .3s, transform .3s;
}
.expertise-card:hover {
  border-color: rgba(214,80,80,.4);
  transform: translateY(-2px);
}
.expertise-card h3 {
  color: #d65050;
  font-size: 1.1rem;
  margin-bottom: .75rem;
}
.expertise-card p { color: #aaa; font-size: .95rem; }

/* ── Parallax ────────────────────────────────────────────── */
/* Transparent windows into the fixed background video.
   The ::before overlay keeps text readable. */
.parallax {
  min-height: 360px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  position: relative;
  background: transparent;
}
.parallax::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(18,18,18,.6);
  z-index: 1;
}
.parallax-content {
  position: relative; z-index: 2;
  max-width: 700px;
  padding: 2rem;
}
.parallax-content h2 {
  font-size: 1.8rem; color: #fff;
  margin-bottom: .75rem;
}
.parallax-content p {
  color: rgba(255,255,255,.7);
  font-size: 1.1rem;
}

/* ── Contact ─────────────────────────────────────────────── */
.contact-block { text-align: center; }
.contact-block p { color: #aaa; margin-bottom: 1rem; }
.contact-email a {
  font-size: 1.4rem; font-weight: 600; color: #d65050;
}

/* ── Page content (support, etc.) ────────────────────────── */
.page-content {
  padding-top: 8rem;
}
.page-content h1 {
  font-size: 2.4rem; color: #fff;
  margin-bottom: 1.5rem;
}
.page-content h2 {
  font-size: 1.6rem; color: #fff;
  margin-top: 2rem; margin-bottom: .75rem;
}
.page-content h3 {
  font-size: 1.2rem; color: #d65050;
  margin-top: 1.5rem; margin-bottom: .5rem;
}
.page-content p {
  color: #ccc; margin-bottom: 1rem;
}
.page-content ul {
  margin-bottom: 1rem; padding-left: 1.5em;
  list-style: disc;
}
.page-content li {
  color: #ccc; margin-bottom: .4rem;
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: #0e0e0e;
  padding: 3rem 0 1.5rem;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-col h3 {
  color: #fff; font-size: 1rem;
  margin-bottom: .75rem;
}
.footer-col p,
.footer-col a { color: #888; font-size: .9rem; }
.footer-col ul li { margin-bottom: .4rem; }
.footer-col a:hover { color: #d65050; }

.copyright {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.06);
}
.copyright p { color: #555; font-size: .85rem; }

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: rgba(18,18,18,.98);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .two-col.reverse .col-image { order: 0; }

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

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

  /* Fixed video is unreliable on mobile — hide it and use the poster image */
  #bg-video { display: none; }
  .hero,
  .parallax {
    background: url('/images/video-poster.jpg') center/cover no-repeat;
  }
}
