/* ── Spirit Connect Power Labs ── */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg: #eceef1;
  --bg-alt: #e2e5ea;
  --bg-white: #f6f7f9;
  --fg: #1a1d28;
  --fg-dim: #555b6e;
  --card: rgba(255, 255, 255, 0.72);
  --card-alt: rgba(255, 255, 255, 0.55);
  --border: rgba(0, 0, 0, 0.06);
  --border-hover: rgba(0, 140, 200, 0.3);

  --brand: #0090cc;
  --brand-light: #00b4f0;
  --brand-glow: rgba(0, 180, 240, 0.12);
  --nav-bg: rgba(236, 238, 241, 0.88);

  --radius: 12px;
  --maxw: 1280px;
  --shadow: 0 2px 8px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 36px rgba(0,0,0,.09);

  --font: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); transition: color .2s; text-decoration: none; }
a:hover { color: var(--brand-light); }

.container { width: min(92%, var(--maxw)); margin-inline: auto; padding-inline: 1.5rem; }

/* ══════════════════════════════════════
   NAVIGATION — light frosted glass
   ══════════════════════════════════════ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 0; }
.brand { display: flex; align-items: center; gap: .75rem; font-weight: 700; color: var(--fg); font-size: 1rem; text-decoration: none; }
.menu { display: flex; align-items: center; gap: 2rem; }
.nav a, .drop-toggle { color: var(--fg-dim); font-weight: 500; font-size: 0.92rem; text-decoration: none; transition: color .2s; }
.nav a:hover, .drop-toggle:hover { color: var(--brand); }
.cta {
  display: inline-block; padding: .55rem 1.2rem; border-radius: 8px;
  background: var(--brand); color: #fff !important; font-weight: 600;
  box-shadow: 0 2px 12px var(--brand-glow);
  transition: all .25s;
}
.cta:hover { background: var(--brand-light); color: #fff !important; box-shadow: 0 4px 20px rgba(0,180,240,.2); transform: translateY(-1px); }

/* Dropdown */
.dropdown { position: relative; }
.drop-toggle { background: transparent; border: 0; padding: .5rem 0; cursor: pointer; font: inherit; font-weight: 500; display: flex; align-items: center; gap: .25rem; }
.drop-menu {
  position: absolute; top: calc(100% + .5rem); left: 0; min-width: 240px;
  background: rgba(246, 247, 249, 0.97);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg); border-radius: var(--radius); padding: .5rem;
  display: none; z-index: 999;
}
.drop-menu a { display: block; padding: .7rem 1rem; border-radius: 8px; color: var(--fg-dim); white-space: nowrap; transition: all .2s; }
.drop-menu a:hover { background: var(--brand-glow); color: var(--brand); }
@media(min-width:881px) {
  .dropdown:hover .drop-menu, .dropdown:focus-within .drop-menu { display: block; }
  .drop-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
}
.hamburger { display: none; background: transparent; border: 0; cursor: pointer; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--fg-dim); margin: 5px 0; transition: all .2s; }
@media(max-width:880px) {
  .hamburger { display: block; }
  .menu {
    position: absolute; right: 0; top: 100%;
    background: rgba(246, 247, 249, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border); border-top: 0;
    box-shadow: var(--shadow-lg); border-radius: 0 0 var(--radius) var(--radius);
    padding: 1rem; width: min(92vw, 340px);
    display: none; flex-direction: column; align-items: stretch; gap: .5rem;
  }
  .dropdown .drop-menu { position: static; display: none; background: rgba(0,0,0,.02); box-shadow: none; margin: .25rem 0; border: 1px solid var(--border); }
  .dropdown.open .drop-menu { display: block; }
  .menu.open { display: flex; }
}
.drop-toggle:focus, .menu a:focus { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ══════════════════════════════════════
   HERO — video overlay (kept darker for contrast)
   ══════════════════════════════════════ */
.hero {
  position: relative; overflow: hidden;
  padding: 10rem 0 7rem; min-height: 85vh;
  display: flex; align-items: center;
  background: #1a2236;
  color: #fff;
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(26,34,54,.25) 0%, rgba(26,34,54,.55) 60%, rgba(26,34,54,.8) 100%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-video {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; opacity: 0.8;
}
.hero .bg { display: none; }
.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.5rem); line-height: 1.1;
  margin: 0 0 1rem; font-weight: 800; letter-spacing: -0.03em; color: #fff;
}
.hero p.lead { max-width: 680px; color: rgba(255,255,255,.72); font-size: 1.12rem; margin: 0 0 2rem; line-height: 1.7; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.badge {
  display: inline-block; padding: .4rem .9rem;
  background: rgba(0, 180, 240, 0.12);
  color: #5ce0ff !important;
  border: 1px solid rgba(0, 180, 240, 0.25);
  border-radius: 999px;
  font-size: .8rem; font-weight: 600; margin-bottom: 1.2rem;
  letter-spacing: .06em; text-transform: uppercase;
}

/* ══════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════ */
.btn {
  display: inline-block; border-radius: 10px; padding: .75rem 1.4rem;
  font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer;
  text-decoration: none; transition: all .25s;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 2px 16px var(--brand-glow); }
.btn-primary:hover { background: var(--brand-light); color: #fff; transform: translateY(-2px); box-shadow: 0 4px 24px rgba(0,180,240,.2); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.2); }
.btn-ghost:hover { border-color: var(--brand-light); color: var(--brand-light); background: rgba(0,180,240,.08); }

/* Light-context ghost for non-hero sections */
.section .btn-ghost { background: #fff; color: var(--fg); border-color: var(--border); }
.section .btn-ghost:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-glow); }

/* ══════════════════════════════════════
   SECTIONS — alternating light shades
   ══════════════════════════════════════ */
.section {
  padding: 5rem 0;
  background: var(--bg);
  color: var(--fg);
}
.section-alt {
  background: var(--bg-white);
}
.section h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  margin: 0 0 1rem; font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.section .lead { color: var(--fg-dim); }
.section p { color: var(--fg-dim); }
.section a:not(.btn) { color: var(--brand); }

/* ══════════════════════════════════════
   GRID & CARDS
   ══════════════════════════════════════ */
.lead { max-width: 720px; font-size: 1.1rem; line-height: 1.7; }
.grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; margin-top: 2rem; }
@media(min-width:720px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  backdrop-filter: blur(8px);
  transition: all .3s ease;
}
.card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 8px 28px rgba(0,0,0,.07);
  transform: translateY(-3px);
}
.card h3 {
  margin: 0 0 .75rem; font-size: 1.15rem; font-weight: 600;
  color: var(--fg);
}
.card p { color: var(--fg-dim); margin: 0; line-height: 1.65; }
.card img { transition: transform .3s ease; border-radius: 8px; }
.card:hover img { transform: scale(1.03); }

/* ══════════════════════════════════════
   FOOTER — light
   ══════════════════════════════════════ */
.footer {
  margin-top: 0;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 2.5rem 0; color: var(--fg-dim); font-size: .92rem;
}
.footer strong { color: var(--fg); }
.footer a { color: var(--fg-dim); transition: color .2s; }
.footer a:hover { color: var(--brand); }
.footer .cols { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media(min-width:800px) { .footer .cols { grid-template-columns: 2fr 1fr 1fr; } }
.small { font-size: .88rem; }
.footer .brand img { filter: drop-shadow(0 2px 6px rgba(0,0,0,.08)); }

/* ══════════════════════════════════════
   TYPOGRAPHY
   ══════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700; line-height: 1.2;
  color: var(--fg);
}
h2 { margin-bottom: 1.5rem; }

/* News */
.card .small {
  display: block; margin-bottom: .5rem;
  font-weight: 600; color: var(--brand); font-size: .82rem;
  letter-spacing: .03em;
}

/* Focus / A11Y */
a:focus-visible, button:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

/* Images */
img { max-width: 100%; height: auto; }

/* ══════════════════════════════════════
   CASE STUDY
   ══════════════════════════════════════ */
.section-case-study { padding: 4rem 0; }
.case-study-content { display: grid; gap: 3rem; align-items: center; grid-template-columns: 1fr; }
@media(min-width:900px) { .case-study-content { grid-template-columns: 1fr 1fr; } }
.case-study-text { display: flex; flex-direction: column; }
.section-badge {
  display: inline-block; padding: .4rem .9rem;
  background: rgba(0, 180, 240, 0.08); color: var(--brand);
  border: 1px solid rgba(0, 140, 200, 0.2); border-radius: 999px;
  font-size: .8rem; font-weight: 600; margin-bottom: 1rem;
  letter-spacing: .04em; text-transform: uppercase; width: fit-content;
}
.case-study-text h2 { font-size: clamp(1.5rem,3.5vw,2.2rem); margin: 0 0 1.5rem; }
.case-study-text .lead { max-width: 100%; margin-bottom: 2rem; }
.case-study-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }
.case-study-visual { display: flex; align-items: center; justify-content: center; }
.visual-placeholder { width: 100%; display: flex; align-items: center; justify-content: center; }
.visual-placeholder img { max-width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow-lg); }

/* ══════════════════════════════════════
   IMAGE GALLERY
   ══════════════════════════════════════ */
.image-gallery { position: relative; width: 100%; max-width: 600px; margin: 0 auto; }
.gallery-container { position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.gallery-slides { display: flex; transition: transform .5s ease-in-out; }
.gallery-slide { min-width: 100%; display: flex; align-items: center; justify-content: center; }
.gallery-slide img { width: 100%; height: auto; display: block; border-radius: var(--radius); }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.9); backdrop-filter: blur(8px);
  border: 1px solid var(--border); width: 40px; height: 40px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--brand); transition: all .2s; z-index: 10;
}
.gallery-nav:hover { background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.1); transform: translateY(-50%) scale(1.1); }
.gallery-nav.prev { left: 10px; }
.gallery-nav.next { right: 10px; }
.gallery-dots { display: flex; justify-content: center; gap: .5rem; margin-top: 1rem; }
.gallery-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); border: none; cursor: pointer; transition: all .2s; padding: 0; }
.gallery-dot.active { background: var(--brand); width: 24px; border-radius: 5px; }

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media(max-width:720px) {
  .hero { padding: 6rem 0 3.5rem; min-height: 70vh; }
  .section { padding: 3rem 0; }
  .card { padding: 1.25rem; }
  .case-study-content { gap: 2rem; }
  .case-study-actions { flex-direction: column; }
  .case-study-actions .btn { width: 100%; text-align: center; }
  .gallery-nav { width: 35px; height: 35px; font-size: 1.2rem; }
}
