/* ============ TOKENS ============ */
:root {
  --navy: #071736;        /* header, logo strip background */
  --near-black: #131313;  /* section background */
  --yellow: #eec300;        /* headings, eyebrow accents */
  --purple: #5865F2;      /* primary buttons, links, accent text */
  --purple-hover: #574dc9;
  --white: #ffffff;
  --gray: #b8bcc8;        /* body copy on dark background */
  --yellow-band: #eec300; /* newsletter section background */
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--near-black);
  color: var(--white);
  line-height: 1.6;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

img { max-width: 100%; display: block; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  border: none;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
.btn-purple {
  background: var(--purple);
  color: #fff;
}
.btn-purple:hover { background: var(--purple-hover); }
.btn-lg { padding: 16px 32px; font-size: 15px; }
.btn-outline-yellow {
  background: transparent;
  border: 2px solid var(--yellow);
  color: var(--yellow);
}

/* ============ HEADER ============ */
.site-header {
  background: var(--navy);
  padding: 16px 0;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo { color: #fff; font-weight: 700; font-size: 20px; text-decoration: none; }
.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  padding-bottom: 4px;
}
.main-nav a.active { border-bottom: 2px solid var(--yellow); }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-home { background-image: url('images/hero.jpg'); }
.hero-services { background-image: url('images/hero-services.jpg'); }
.hero-about { background-image: url('images/hero-about.jpg'); }
.hero-case-studies { background-image: url('images/hero-case-studies.jpg'); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,15,36,0.55), rgba(10,15,36,0.9));
}
.hero-content {
  position: relative;
  text-align: center;
  max-width: 760px;
}
.eyebrow {
  color: var(--yellow);
  font-size: 13px;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.eyebrow-purple { color: var(--purple); }
.hero h1 {
  font-size: 42px;
  margin: 0 0 20px;
  line-height: 1.2;
}
.accent-purple { color: var(--purple); }
.accent-yellow { color: var(--yellow); }
.accent-white { color: var(--white); }

.hero-sub {
  color: var(--gray);
  font-size: 16px;
  margin-bottom: 32px;
}

/* ============ SECTIONS ============ */
.section { padding: 80px 0; background-color: #071736; }
.section-dark{ background: var(--near-black);}
.two-col {
  display: flex;
  align-items: center;
  gap: 60px;
}
.two-col.reverse { flex-direction: row-reverse; }
.col-text, .col-image { flex: 1; }
.heading-yellow { color: var(--yellow); font-size: 32px; margin: 0 0 20px; }
.col-text p { color: var(--gray); margin-bottom: 16px; }
.col-image img { border-radius: 8px; }

.narrow{
  background-color: #071736;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.middle{
  background-color: #071736;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.value-list {
  color: var(--gray);
  padding-left: 20px;
  margin-bottom: 28px;
}
.value-list li { margin-bottom: 10px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.service-card {
  background: #eec300;
  border: 4px solid var(--near-black);
  border-radius: 10px;
  padding: 28px;
  text-align: left;
}
.service-card h3 {
  color: var(--purple-hover);
  font-size: 20px;
  margin: 0 0 12px;
}
.service-card p {
  color: var(--near-black);
  margin: 0;
  font-size: 14px;
  font-weight: 400;
}

.vertical-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.vertical-card {
  position: relative;
  height: 400px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.vertical-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.2));
}
.vertical-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px;
}
.vertical-content h3 {
  color: #eec300;
  font-size: 17px;
  margin: 0 0 6px;
}
.vertical-content p {
  color: var(--gray);
  font-size: 13px;
  margin: 0;
}
.checklist {
  list-style: none;
  padding-left: 0;
  color: var(--gray);
}
.checklist li {
  margin-bottom: 10px;
}

@media (max-width: 900px) {
  .vertical-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .vertical-grid { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .card-grid { grid-template-columns: 1fr; }
}

html {
  scroll-behavior: smooth;
}

/* ============ CLIENT LOGOS ============ */
.client-strip {
  background: var(--navy);
  padding: 50px 0;
}
.logo-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 30px;
  align-items: center;
}
.logo-grid img { max-height: 32px; margin: 0 auto; filter: grayscale(0); }

/* ============ NEWSLETTER ============ */
.newsletter {
  background: var(--yellow-band);
  color: #1a1a1a;
  padding: 20px 0;
  text-align: center;
}
.newsletter h3 { font-size: 32px; margin-bottom: 20px; }
.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.newsletter-form input {
  padding: 12px 16px;
  border-radius: 6px;
  border: none;
  width: 280px;
  max-width: 60%;
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--yellow-band);
  color: #131313;
  padding: 15
  px 0;
  border-top: 1px solid rgba(0,0,0,0.15);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}
.socials { display: flex; gap: 14px; align-items: center; }
.socials img { width: 20px; height: 20px; }

/* ============ CONTACT OVERLAY (white popup, purple button) ============ */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.overlay.active { display: flex; }
.popup {
  background: #fff;
  color: #1a1a1a;
  padding: 32px;
  border-radius: 10px;
  width: 90%;
  max-width: 420px;
  position: relative;
}
.popup h2 { margin-top: 0; font-size: 20px; }
.close-btn {
  position: absolute;
  top: 12px; right: 16px;
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: #555;
}
.popup form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}
.popup input, .popup textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
}
.popup textarea { min-height: 80px; resize: vertical; }
.popup .btn-purple { width: 100%; }

/* ============ RESPONSIVE ============ */
@media (max-width: 800px) {
  .two-col, .two-col.reverse { flex-direction: column; }
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: 30px; }
}

/* ============ HAMBURGER MENU ============ */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 800px) {
  .menu-toggle { display: flex; }

  .main-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 20px 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.open {
    max-height: 400px; /* enough to fit all links */
  }
  .main-nav a { padding: 8px 0; width: 100%; }
  .header-inner { position: relative; }
}
