/* ============================================
   WAVES REACH™ — Design System
   Palette: Deep navy + electric cyan, premium-human voice
   ============================================ */

:root {
  --bg-deep: #050B14;
  --bg-panel: #0A1322;
  --bg-panel-2: #0E1B2E;
  --line: rgba(120, 200, 230, 0.14);
  --text-primary: #F2F6FA;
  --text-muted: #93A8BC;
  --cyan: #3DD9F0;
  --cyan-soft: rgba(61, 217, 240, 0.35);
  --blue: #2E6FE0;
  --gradient-text: linear-gradient(90deg, #ffffff 0%, #BFEFFA 60%, #3DD9F0 100%);
  --shadow-glow: 0 0 60px rgba(61, 217, 240, 0.12);
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--cyan);
  display: inline-block;
}

/* ---------- Header ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 11, 20, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 18px;
}
.brand img { height: 34px; width: auto; }
.brand .reach { color: var(--cyan); }

nav.main-nav {
  display: flex;
  gap: 30px;
}
nav.main-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  position: relative;
  padding: 6px 0;
  transition: color .2s;
}
nav.main-nav a:hover, nav.main-nav a.active { color: var(--text-primary); }
nav.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--cyan);
  border-radius: 2px;
}

.cta-btn {
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  color: #04101C;
  font-weight: 700;
  font-size: 14.5px;
  padding: 13px 26px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(61,217,240,0.15);
  transition: transform .2s, box-shadow .2s;
}
.cta-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(61,217,240,0.22); }

.cta-outline {
  border: 1px solid var(--cyan-soft);
  color: var(--cyan);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 999px;
  display: inline-block;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  margin: 0 auto;
  transition: transform .25s, opacity .25s;
}
.menu-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero sections ---------- */
.hero {
  position: relative;
  min-height: 95vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  text-align: left;
  overflow: hidden;
  padding: 160px 60px 56px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,11,20,0.45) 0%, rgba(5,11,20,0.45) 60%, rgba(5,11,20,0.7) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0;
  animation: rise 1s ease both;
}

.hero-row {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0.7;
  animation: rise 1.1s ease both;
  margin-bottom: 18px;
}
.hero-mark img { height: 40px; margin-bottom: 8px; filter: drop-shadow(0 0 8px rgba(61,217,240,0.18)); }
.hero-mark .wordmark {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-primary);
}
.hero-mark .wordmark .reach { color: var(--cyan); }
.hero-mark .tag {
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-top: 5px;
}
.hero h1 {
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  line-height: 1.18;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 16px;
}
.hero p.sub {
  font-size: .96rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 0 22px;
  line-height: 1.6;
}
.tagline {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--cyan);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 1rem;
  margin-bottom: 34px;
}

.scroll-cue {
  margin-top: 30px;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.scroll-cue .line {
  width: 1px; height: 30px;
  background: linear-gradient(180deg, var(--cyan), transparent);
  animation: pulse-line 2s infinite;
}

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse-line { 0%,100% { opacity: .3; } 50% { opacity: 1; } }

/* ---------- Cinematic full-bleed section ---------- */
.cinema {
  position: relative;
  min-height: 68vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 140px 28px;
}
.cinema .bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 65%;
  z-index: 0;
}
.cinema .bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,11,20,0.55) 0%, rgba(5,11,20,0.7) 45%, rgba(5,11,20,0.92) 80%, var(--bg-deep) 100%);
}
.cinema .inner {
  position: relative;
  z-index: 2;
  max-width: 740px;
}
.cinema h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  line-height: 1.2;
  margin-bottom: 18px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cinema p {
  color: #D7E4ED;
  font-size: .98rem;
  line-height: 1.65;
}

/* anchor offset so sticky header never overlaps a scrolled-to section */
section[id] { scroll-margin-top: 86px; }

.hero-divider {
  height: 150px;
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-deep) 70%, rgba(5,11,20,0.85) 100%);
}
@media (max-width: 880px) {
  .hero-divider { height: 80px; }
}

/* ---------- Sections generic ---------- */
section { padding: 130px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  margin: 16px 0 14px;
}
.section-head p { color: var(--text-muted); font-size: 1.02rem; }

/* fade-in on scroll */
.reveal { opacity: 0; transform: translateY(28px) scale(0.97); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.3,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0) scale(1); }

/* ---------- Image-text pair cards ---------- */
.pair-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.pair-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-panel);
  min-height: 440px;
  display: flex;
  align-items: flex-end;
}
.pair-card img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.pair-card:hover img { transform: scale(1.04); }
.pair-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(5,11,20,0.92) 100%);
  z-index: 1;
}
.pair-text {
  position: relative;
  z-index: 2;
  padding: 30px 28px;
}
.pair-text h3 { font-size: 1.35rem; margin-bottom: 10px; }
.pair-text p { color: #D7E4ED; font-size: .95rem; max-width: 380px; }

/* ---------- Solutions cards ---------- */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.sol-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.sol-card .img-wrap { height: 230px; overflow: hidden; }
.sol-card img { width: 100%; height: 100%; object-fit: cover; }
.sol-body { padding: 26px 24px 30px; flex: 1; display: flex; flex-direction: column; }
.sol-body .tag { color: var(--cyan); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; margin-bottom: 10px; }
.sol-body h3 { font-size: 1.3rem; margin-bottom: 10px; }
.sol-body p.desc { color: var(--text-muted); font-size: .94rem; margin-bottom: 22px; flex: 1; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery-grid .g-item {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  border: 1px solid var(--line);
}
.gallery-grid .g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-grid .g-item:hover img { transform: scale(1.06); }
.g-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(180deg, transparent, rgba(5,11,20,0.95));
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--cyan);
  text-transform: uppercase;
  font-weight: 700;
}

/* ---------- Contact form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
.contact-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 34px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 7px;
  letter-spacing: 0.02em;
}
.field input, .field textarea {
  width: 100%;
  background: var(--bg-panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 14px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(61,217,240,0.15);
}
.field.hook label { color: var(--cyan); font-weight: 600; }
.submit-btn {
  width: 100%;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  color: #04101C;
  font-weight: 700;
  border: none;
  padding: 15px;
  border-radius: 10px;
  font-size: 15px;
  cursor: pointer;
  margin-top: 6px;
}
.contact-info h2 { font-size: 1.9rem; margin-bottom: 18px; }
.contact-info p { color: var(--text-muted); margin-bottom: 28px; }
.info-row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.info-row .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); margin-top: 8px; flex-shrink: 0; }
.info-row strong { display: block; font-size: 14px; }
.info-row span { color: var(--text-muted); font-size: 13.5px; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
  margin-top: 20px;
  background: var(--bg-panel);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.footer-grid h4 {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
  font-family: 'Space Grotesk', sans-serif;
}
.footer-grid p, .footer-grid a {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.8;
  display: block;
}
.footer-grid a:hover { color: var(--cyan); }
.footer-grid .brand-block .brand { margin-bottom: 12px; }
.footer-grid .brand-block p { color: var(--text-muted); max-width: 280px; }
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.footer-row .brand { font-size: 15px; }
footer .legal { color: var(--text-muted); font-size: 12.5px; }

@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Misc shared ---------- */
.divider { height: 1px; background: var(--line); margin: 0 auto; width: 100%; }
.center { text-align: center; }
.btn-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .menu-toggle { display: flex; }
  .hero { align-items: center; justify-content: center; text-align: center; padding: 130px 24px 70px; }
  .hero-inner { max-width: 100%; }
  .hero-row { flex-direction: column; align-items: center; gap: 26px; }
  .hero-mark { opacity: 0.7; }
  .hero-mark img { height: 42px; }
  .scroll-cue { align-items: center; }
  nav.main-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(5, 11, 20, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: max-height .3s ease, opacity .25s ease;
    z-index: 99;
  }
  nav.main-nav.is-open {
    max-height: 70vh;
    opacity: 1;
    pointer-events: auto;
  }
  nav.main-nav a {
    padding: 16px 28px;
    border-bottom: 1px solid var(--line);
    width: 100%;
  }
  nav.main-nav a.active::after { display: none; }
  nav.main-nav a.active { color: var(--cyan); }
  .pair-grid, .solutions-grid, .gallery-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  .hero-inner { animation: none; }
}
