/* ═══════════════════════════════════════════
   WTECH GROUP — LANDING (HUB) STYLESHEET
   Design source: Figma "WTech / Landing Page"
   ═══════════════════════════════════════════ */


:root {
  --black:    #0d0d0e;
  --dark:     #1e1e1e;
  --light:    #f5f5f5;
  --gray:     #9f9f9f;
  --mid-gray: #a2a2a2;
  --muted:    #8e9a9d;
  --white:    #ffffff;
  --divider:  #4b4b4b;
  --maxw:     1440px;
  --pad:      clamp(20px, 4vw, 40px);
  --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; }

/* ── Lenis smooth scroll ── */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }
body {
  font-family: 'Manrope', sans-serif;
  background: var(--white);
  color: var(--black);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ── shared eyebrow label ── */
.eyebrow {
  font-size: 14px; font-weight: 500; letter-spacing: 0.5px;
  text-transform: uppercase; color: var(--gray);
}
.eyebrow--center { text-align: center; }

/* ── pill button ── */
.btn-pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 44px; border-radius: 999px;
  background: var(--white); color: var(--black);
  font-size: 16px; font-weight: 500; line-height: 1.6;
  border: 1px solid var(--light); cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.btn-pill:hover { background: var(--black); color: var(--white); transform: translateY(-1px); }

/* ═══════════════ HERO ═══════════════ */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  overflow: hidden; color: var(--white);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
/* extra height gives the parallax translate headroom (no edge gap) */
.hero-bg img { position: absolute; left: 0; top: -9%; width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.2) 50.44%, rgba(102,102,102,0.2) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.5) 100%);
}

/* ── FIXED SCROLL-AWARE NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent;
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}
.nav-inner {
  max-width: var(--maxw); width: 100%; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--pad);
  transition: padding 0.35s ease;
}
.nav-logo { display: block; line-height: 0; }
.nav-logo img { height: 42px; width: auto; transition: filter 0.35s ease; }
.nav-links { display: flex; gap: 42px; }
.nav-links a {
  font-size: 16px; font-weight: 500;
  text-underline-offset: 4px; text-decoration: underline;
  text-decoration-thickness: 1px;
  transition: color var(--transition), opacity var(--transition);
}
.nav-links a:hover { opacity: 0.65; }

.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-burger span { display: block; width: 24px; height: 2px; border-radius: 2px; transition: 0.3s; }

/* theme: over DARK sections — transparent bar, light text/logo */
.nav[data-theme="dark"] .nav-links a { color: var(--light); }
.nav[data-theme="dark"] .nav-burger span { background: var(--white); }
.nav[data-theme="dark"] .nav-logo img { filter: none; }

/* theme: over LIGHT sections — solid bar, dark text/logo */
.nav[data-theme="light"] {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 8px 30px rgba(0,0,0,0.05);
}
.nav[data-theme="light"] .nav-inner { padding-top: 16px; padding-bottom: 16px; }
.nav[data-theme="light"] .nav-links a { color: var(--black); }
.nav[data-theme="light"] .nav-burger span { background: var(--black); }
.nav[data-theme="light"] .nav-logo img { filter: brightness(0); }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile menu — solid static overlay, above the nav, with an explicit close button */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200; display: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 34px;
  background: #0d0d0e;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--white); font-size: 26px; font-weight: 500; letter-spacing: -0.3px; }
.mobile-menu a:active { opacity: 0.6; }
.mobile-menu-close {
  position: absolute; top: 18px; right: 18px;
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: none; border: none; color: var(--white); font-size: 40px; line-height: 1;
  cursor: pointer; padding: 0;
}

/* hero content */
.hero-inner {
  position: relative; z-index: 2;
  max-width: var(--maxw); width: 100%; margin: auto auto 0;
  padding: 0 var(--pad) clamp(60px, 12vh, 140px);
  align-self: center;
}
.hero-title {
  font-size: clamp(38px, 6vw, 64px); font-weight: 400;
  line-height: 1.06; letter-spacing: -2.5px;
}
.hero-sub {
  margin-top: 22px; max-width: 620px;
  font-size: clamp(16px, 2vw, 20px); font-weight: 500; line-height: 1.6;
  color: rgba(255,255,255,0.92);
}
.hero-inner .btn-pill { margin-top: 32px; }

/* ═══════════════ WHO WE ARE ═══════════════ */
.who {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(70px, 12vh, 150px) var(--pad);
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(0, 3fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: start;
}
.who .eyebrow { margin-bottom: 0; padding-top: 6px; }
.who-statement {
  max-width: none; margin: 0;
  font-size: clamp(20px, 2.4vw, 34px); font-weight: 500;
  line-height: 1.3; letter-spacing: -0.6px; color: var(--black);
}
.who-statement .muted { color: var(--muted); }

/* ═══════════════ COMPANIES ═══════════════ */
.companies {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(20px, 3vh, 40px) var(--pad) clamp(70px, 12vh, 140px);
}
.companies .eyebrow--center { margin-bottom: 20px; }
.companies-title {
  text-align: center;
  font-size: clamp(34px, 5vw, 64px); font-weight: 400;
  line-height: 1.06; letter-spacing: -2.5px;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.cards {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 20px);
}
.card {
  position: relative; display: block;
  aspect-ratio: 679 / 406; min-height: 320px;
  border-radius: 4px; overflow: hidden;
  color: var(--white); isolation: isolate;
}
.card-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
/* extra height gives the scroll-parallax room without exposing a gap */
.card-media img {
  position: absolute; left: 0; top: -10%;
  width: 100%; height: 120%; object-fit: cover; will-change: transform;
}
.card-shade {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.35) 45%, rgba(0,0,0,0.85) 100%);
}
.card-body {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  padding: clamp(22px, 3vw, 34px);
}
.card-name {
  font-size: clamp(20px, 2.2vw, 26px); font-weight: 500;
  letter-spacing: -0.78px; line-height: 1.2;
}
.card-desc {
  margin-top: 12px; max-width: 421px;
  font-size: 16px; font-weight: 500; line-height: 1.6; color: #aeaeae;
}
.card-link {
  display: inline-block; margin-top: 18px;
  font-size: 16px; font-weight: 500; color: var(--light);
  text-decoration: underline; text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
.card:hover .card-link { color: var(--white); }

/* ═══════════════ FOOTER ═══════════════ */
.footer { background: var(--dark); color: var(--light); }

.footer-connect {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(70px, 10vh, 120px) var(--pad);
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start;
}
.connect-head .eyebrow { margin-bottom: 24px; }
.connect-title {
  font-size: clamp(48px, 8vw, 90px); font-weight: 400;
  line-height: 0.95; letter-spacing: -4.5px; color: var(--light);
}
.connect-form { display: flex; flex-direction: column; gap: 0; }
.field { border-bottom: 1px solid var(--light); padding: 24px 0; }
.field input, .field textarea {
  width: 100%; background: none; border: none; outline: none; resize: vertical;
  font-family: inherit; font-size: 16px; font-weight: 500; color: var(--light);
}
.field:focus-within { border-bottom-color: #fff; box-shadow: 0 1px 0 #fff; }
.form-note a { color: inherit; }
.field input::placeholder, .field textarea::placeholder { color: rgba(245,245,245,0.7); }
.connect-form .btn-pill { align-self: flex-start; margin-top: 40px; }
.form-note { margin-top: 16px; font-size: 14px; color: var(--gray); }

.footer-aside {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--pad) 40px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start;
}
.aside-logo { height: 84px; width: auto; margin-bottom: 26px; }
.aside-addr { font-size: 16px; font-weight: 500; line-height: 1.6; color: var(--gray); }
.aside-cols { display: flex; gap: clamp(40px, 8vw, 120px); flex-wrap: wrap; justify-content: flex-end; }
.aside-col { display: flex; flex-direction: column; gap: 14px; }
.aside-col a { font-size: 16px; font-weight: 500; color: var(--mid-gray); transition: color var(--transition); }
.aside-col a:hover { color: var(--light); }

.footer-bottom { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad) 40px; }
.footer-divider { border: none; height: 1px; background: var(--divider); margin-bottom: 34px; }
.footer-legal {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 16px; font-weight: 500; color: var(--mid-gray);
}
.legal-links { display: flex; gap: clamp(24px, 6vw, 108px); }
.legal-links a { color: var(--mid-gray); transition: color var(--transition); }
.legal-links a:hover { color: var(--light); }

/* ═══════════════ REVEAL ANIM ═══════════════ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; padding: 8px; }
  /* Company cards stack to one column; drop min-height so the aspect-ratio
     derives height from the (container) WIDTH — otherwise min-height x ratio
     forces the card wider than the phone and the right edge gets clipped */
  .cards { grid-template-columns: 1fr; }
  .card { aspect-ratio: 16 / 10; min-height: 0; min-width: 0; }
  /* Who: stack eyebrow above statement, full-width left-aligned */
  .who { grid-template-columns: 1fr; gap: clamp(20px, 5vw, 32px); }
  .who .eyebrow { padding-top: 0; }
  .who-statement { letter-spacing: -0.4px; }
  .footer-connect { grid-template-columns: 1fr; gap: 40px; }
  .footer-aside { grid-template-columns: 1fr; }
  .aside-cols { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .card { aspect-ratio: 4 / 3; min-height: 0; }
  .hero-inner { padding-bottom: clamp(48px, 10vh, 90px); }
  .hero-title { letter-spacing: -1.5px; }
  .hero-sub { max-width: 100%; }
  .connect-title { letter-spacing: -2px; }
  .card-desc { max-width: 100%; }
  .aside-cols { gap: 36px 48px; }
  .footer-legal { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .nav-logo img { height: 34px; }
  .aside-logo { height: 64px; }
  .hero-title { letter-spacing: -1px; }
  .hero-inner .btn-pill,
  .connect-form .btn-pill { width: 100%; }
  .btn-pill { padding: 14px 32px; }
  .aside-cols { flex-direction: column; gap: 28px; }
  .legal-links { gap: 20px 32px; flex-wrap: wrap; }
}
