/* ============================================================
   NextTechWaves — Global Stylesheet
   Design System: Teal + Gold + Warm White, Neumorphic, Premium
   Fonts: Playfair Display (headings) + Inter (body)
   ============================================================ */

/* ---------- Fonts ----------
   Loaded via <link rel="preconnect"> + <link rel="stylesheet"> in each
   page <head> (faster, non-blocking) instead of a render-blocking @import. */

/* ---------- Design Tokens ---------- */
:root {
  /* Brand colors */
  --teal:        #1F6F5C;
  --teal-dark:   #155244;
  --teal-light:  #2E9579;
  --gold:        #D9A53B;
  --gold-dark:   #B8862A;
  --ink:         #2B2722;
  --ink-soft:    #5A554E;
  --bg:          #FAFAF9;
  --bg-alt:      #F0F0EE;
  --white:       #FFFFFF;
  --line:        #E5E4E0;

  /* Typography */
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing / shape */
  --radius:    20px;
  --radius-sm: 14px;
  --radius-lg: 28px;
  --maxw:      1200px;

  /* Neumorphic shadow */
  --shadow-neu: 8px 8px 16px rgba(0,0,0,0.06), -8px -8px 16px rgba(255,255,255,0.8);
  --shadow-neu-sm: 5px 5px 10px rgba(0,0,0,0.05), -5px -5px 10px rgba(255,255,255,0.7);
  --shadow-soft: 0 18px 40px rgba(43,39,34,0.10);
  --shadow-card: 0 10px 30px rgba(31,111,92,0.08);

  /* Transition */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
}

/* Hard guard: nothing may create a sideways scroll */
section, header, footer, .container { max-width: 100%; }
img, video, canvas, svg { max-width: 100%; }

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* When Lenis smooth-scroll is active */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.12; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); letter-spacing: -0.5px; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -0.3px; }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.7rem); }
h4 { font-size: 1.15rem; }
p  { color: var(--ink-soft); font-size: 1.05rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--teal);
  background: rgba(31,111,92,0.08);
  padding: 7px 16px; border-radius: 100px;
  margin-bottom: 22px;
}
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

.text-gold { color: var(--gold); }
.text-teal { color: var(--teal); }
.serif-italic { font-family: var(--font-head); font-style: italic; font-weight: 400; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(70px, 10vw, 130px) 0; position: relative; }
.section-head { max-width: 680px; margin: 0 auto 60px; text-align: center; }
.section-head p { margin-top: 16px; font-size: 1.1rem; }
.center { text-align: center; }

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 9999;
  pointer-events: none; border-radius: 50%;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor-dot  { width: 7px; height: 7px; background: var(--gold); }
.cursor-ring {
  width: 38px; height: 38px; border: 1.5px solid rgba(217,165,59,0.7);
  transition: width .25s var(--ease), height .25s var(--ease),
              background .25s var(--ease), border-color .25s var(--ease);
}
.cursor-ring.is-hover {
  width: 62px; height: 62px;
  background: rgba(217,165,59,0.12); border-color: var(--gold);
}
@media (hover: none), (max-width: 900px) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  padding: 18px 0; transition: all .4s var(--ease);
}
.nav.scrolled {
  padding: 10px 0;
  background: rgba(250,250,249,0.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px rgba(43,39,34,0.06);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 11px; font-family: var(--font-head); font-weight: 600; font-size: 1.3rem; }
.nav-logo img { width: 40px; height: 40px; object-fit: contain; }
.nav-logo span small { display: block; font-family: var(--font-body); font-size: 0.62rem; font-weight: 500; letter-spacing: 2px; color: var(--teal); text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  position: relative; padding: 9px 16px; font-size: 0.95rem; font-weight: 500;
  color: var(--ink); border-radius: 100px; transition: color .25s var(--ease);
}
.nav-links a::after {
  content: ''; position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%);
  width: 0; height: 2px; background: var(--gold); border-radius: 2px; transition: width .3s var(--ease);
}
.nav-links a:hover { color: var(--teal); }
.nav-links a.active { color: var(--teal); }
.nav-links a.active::after { width: 20px; }

.nav-cta {
  background: var(--teal); color: var(--white) !important;
  padding: 11px 24px !important; border-radius: 100px;
  font-weight: 600; transition: all .3s var(--ease);
  box-shadow: 0 8px 20px rgba(31,111,92,0.25);
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(31,111,92,0.32); }

/* Mobile menu */
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: all .3s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(80%, 320px);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 14px;
    background: var(--white); padding: 40px; transform: translateX(100%);
    transition: transform .45s var(--ease); box-shadow: -20px 0 50px rgba(0,0,0,0.1);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.2rem; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 100px; font-weight: 600; font-size: 1rem;
  transition: all .3s var(--ease); white-space: nowrap;
}
.btn-primary { background: var(--teal); color: var(--white); box-shadow: 0 10px 26px rgba(31,111,92,0.28); }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-3px); box-shadow: 0 16px 32px rgba(31,111,92,0.35); }
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 10px 26px rgba(217,165,59,0.32); }
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-3px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-3px); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--bg); border-radius: var(--radius);
  padding: 34px; box-shadow: var(--shadow-neu);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 12px 12px 24px rgba(0,0,0,0.08), -12px -12px 24px rgba(255,255,255,0.9); }
.card-icon {
  width: 58px; height: 58px; border-radius: 16px;
  display: grid; place-items: center; margin-bottom: 22px;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  color: var(--white); font-size: 1.5rem;
  box-shadow: 0 10px 22px rgba(31,111,92,0.25);
}
.card-icon.gold { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: var(--ink); box-shadow: 0 10px 22px rgba(217,165,59,0.3); }
.card h3 { margin-bottom: 12px; }
.card p { font-size: 1rem; }

/* ============================================================
   SCROLL REVEAL (used by GSAP / fallback)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(40px); }
.reveal-left  { opacity: 0; transform: translateX(-50px); }
.reveal-right { opacity: 0; transform: translateX(50px); }
.reveal-scale { opacity: 0; transform: scale(0.92); }
/* If JS fails, show content anyway */
.no-js .reveal, .no-js .reveal-left, .no-js .reveal-right, .no-js .reveal-scale {
  opacity: 1; transform: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: #D8D4CD; padding: 80px 0 32px; position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 56px; }
.footer-brand .nav-logo { color: var(--white); margin-bottom: 18px; }
.footer-brand p { color: #A9A49B; max-width: 320px; }
.footer h4 { color: var(--white); font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 20px; }
.footer-col a { display: block; padding: 7px 0; color: #A9A49B; transition: color .25s var(--ease); overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.88rem; color: #8E8980; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,0.06); transition: all .3s var(--ease); }
.footer-social a:hover { background: var(--teal); transform: translateY(-3px); }

@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ============================================================
   MEDIA PLACEHOLDER (for images/video coming later)
   ============================================================ */
.media-placeholder {
  position: relative; width: 100%; border-radius: var(--radius-lg);
  background:
    repeating-linear-gradient(45deg, var(--bg-alt) 0, var(--bg-alt) 12px, #EAEAE7 12px, #EAEAE7 24px);
  border: 2px dashed #C9C8C3; display: grid; place-items: center; overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.media-placeholder .ph-label {
  text-align: center; color: var(--ink-soft); padding: 24px;
}
.media-placeholder .ph-label .ph-icon { font-size: 2.4rem; margin-bottom: 10px; opacity: .5; }
.media-placeholder .ph-label strong { display: block; color: var(--ink); font-size: 0.98rem; margin-bottom: 4px; }
.media-placeholder .ph-label small { font-size: 0.82rem; opacity: .8; }
.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-4-3  { aspect-ratio: 4 / 3; }
.ratio-1-1  { aspect-ratio: 1 / 1; }
.ratio-3-4  { aspect-ratio: 3 / 4; }
.media-placeholder video, .media-placeholder img { width: 100%; height: 100%; object-fit: cover; }

/* Tap-to-unmute button on autoplay videos */
.video-sound-btn {
  position: absolute;
  bottom: 14px; right: 14px;
  z-index: 4;
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(43, 39, 34, 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 9px 15px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  transition: background .25s var(--ease), transform .25s var(--ease);
  animation: vs-nudge 2.6s ease-in-out 1s 3;
}
.video-sound-btn:hover { background: var(--teal); transform: translateY(-2px); }
.video-sound-btn.is-on { background: var(--teal); animation: none; }
.video-sound-btn .vs-ico { font-size: 1rem; line-height: 1; }

@keyframes vs-nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); box-shadow: 0 10px 22px rgba(0,0,0,0.3); }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 40px; } .split.reverse > :first-child { order: 0; } }

.divider-soft { height: 1px; background: var(--line); border: none; margin: 0; }
