/* ═══════════════════════════════════════════════════
   SKYLINE ENGINEERING — Global Stylesheet
   ═══════════════════════════════════════════════════ */
/* FIX: Removed DM Serif Display — Barlow + Barlow Condensed only */
@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700&family=Barlow:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300&display=swap");

:root {
  --ink: #0d0d0d;
  --ink-80: #1a1a1a;
  --ink-60: #2e2e2e;
  --paper: #f4f2ee;
  --white: #ffffff;
  --blue: #49bdf5;
  --orange: #f27e07;
  --rule: rgba(13, 13, 13, 0.1);
  --rule-light: rgba(255, 255, 255, 0.08);
  --gutter: clamp(24px, 5.5vw, 100px);
  --serif: "Barlow", Georgia, serif;
  --sans: "Barlow", system-ui, sans-serif;
  --mono: "Barlow Condensed", sans-serif;
  --max: 1380px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
}
button {
  font-family: inherit;
}

/* ── CONTAINER ───────────────────────────────────── */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ── NAVIGATION ──────────────────────────────────── */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 200;
  transition:
    background 0.4s,
    box-shadow 0.4s;
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px var(--gutter);
  transition: padding 0.4s;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.nav-logo img {
  height: 40px;
  flex-shrink: 0;
}
/* FIX: logo-light shown by default (matches the active class in HTML),
   logo-dark hidden until JS adds .active on scroll */
.nav-logo .logo-light {
  display: block;
}
.nav-logo .logo-dark {
  display: none;
}
.nav-logo .logo-light:not(.active) {
  display: none;
}
.nav-logo .logo-dark.active {
  display: block;
}

.nav-wordmark {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  transition: color 0.4s;
  display: block;
  line-height: 1.3;
}
.nav-tagline {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--orange);
  display: block;
}
#nav.stuck .nav-wordmark {
  color: var(--ink);
}
#nav ul {
  display: flex;
  gap: 34px;
  list-style: none;
}
#nav ul li a {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.3s;
  position: relative;
  padding-bottom: 2px;
}
#nav ul li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--blue);
  transition: width 0.3s;
}
#nav ul li a:hover {
  color: var(--white);
}
#nav ul li a:hover::after {
  width: 100%;
}
#nav.stuck {
  background: var(--white);
  box-shadow: 0 1px 0 var(--rule);
}
#nav.stuck .nav-inner {
  padding-top: 16px;
  padding-bottom: 16px;
}
#nav.stuck ul li a {
  color: rgba(13, 13, 13, 0.55);
}
#nav.stuck ul li a:hover {
  color: var(--ink);
}
.nav-cta {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 11px 22px;
  border: 1px solid var(--blue);
  color: var(--blue);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.3s,
    color 0.3s;
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--blue);
  color: var(--ink);
}

/* ── HAMBURGER ───────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  padding: 10px;
  flex-shrink: 0;
  transition: border-color 0.3s;
}
.nav-hamburger:hover {
  border-color: var(--blue);
}
.nav-hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}
#nav.stuck .nav-hamburger {
  border-color: rgba(13, 13, 13, 0.2);
}
#nav.stuck .nav-hamburger span {
  background: var(--ink);
}
.nav-hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ── MOBILE DRAWER ───────────────────────────────── */
.nav-mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 199;
  background: var(--ink);
  padding: 100px var(--gutter) 48px;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.nav-mobile-drawer.open {
  opacity: 1;
  pointer-events: all;
}
.nav-mobile-links {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.nav-mobile-links li {
  border-bottom: 1px solid var(--rule-light);
}
.nav-mobile-links li:first-child {
  border-top: 1px solid var(--rule-light);
}
.nav-mobile-links li a {
  display: block;
  font-family: var(--sans);
  font-size: clamp(1.6rem, 7vw, 2.4rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  padding: 18px 0;
  transition: color 0.25s, padding-left 0.25s;
}
.nav-mobile-links li a:hover {
  color: var(--white);
  padding-left: 10px;
}
.nav-mobile-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.nav-mobile-footer p {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
}
.nav-mobile-cta {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 17px 28px;
  background: var(--orange);
  color: var(--white);
  border: 1px solid var(--orange);
  text-decoration: none;
  display: block;
  text-align: center;
  transition: background 0.3s, color 0.3s;
}
.nav-mobile-cta:hover {
  background: transparent;
  color: var(--orange);
}

/* ── BUTTONS ─────────────────────────────────────── */
.btn-fill {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 17px 36px;
  background: var(--orange);
  color: var(--white);
  border: 1px solid var(--orange);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition:
    background 0.3s,
    color 0.3s;
}
.btn-fill:hover {
  background: transparent;
  color: var(--orange);
}
.btn-fill.dark {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}
.btn-fill.dark:hover {
  background: transparent;
  color: var(--ink);
}

/* Outline Button with Solid White Fill on Hover */
.btn-ghost {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 17px 36px;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition:
    background 0.3s,
    border-color 0.3s,
    color 0.3s;
}
.btn-ghost:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
}

.btn-link {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--orange);
  padding-bottom: 3px;
  transition:
    color 0.3s,
    letter-spacing 0.3s;
  display: inline-block;
}
.btn-link:hover {
  color: var(--orange);
  letter-spacing: 2px;
}
.btn-link.light {
  color: var(--white);
  border-color: var(--blue);
}
.btn-link.light:hover {
  color: var(--blue);
}

/* ── SECTION TYPOGRAPHY ──────────────────────────── */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--orange);
  flex-shrink: 0;
}
.eyebrow.blue {
  color: var(--blue);
}
.eyebrow.blue::before {
  background: var(--blue);
}
.eyebrow.faint {
  color: rgba(255, 255, 255, 0.3);
}
.eyebrow.faint::before {
  background: rgba(255, 255, 255, 0.3);
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.section-title.light {
  color: var(--white);
}
.section-sub {
  font-size: 1rem;
  color: rgba(13, 13, 13, 0.55);
  font-weight: 300;
  line-height: 1.75;
  max-width: 500px;
}
.section-sub.light {
  color: rgba(255, 255, 255, 0.5);
}

/* ── CTA BAND ────────────────────────────────────── */
.cta-band {
  background: var(--orange);
  padding: clamp(60px, 8vw, 100px) var(--gutter);
}
.cta-band-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-band h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 10px;
}
.cta-band p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 300;
  max-width: 420px;
}
.btn-white {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 17px 36px;
  background: var(--white);
  color: var(--orange);
  border: 1px solid var(--white);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
  transition:
    background 0.3s,
    color 0.3s;
}
.btn-white:hover {
  background: transparent;
  color: var(--white);
}

/* ── FOOTER ──────────────────────────────────────── */
footer {
  background: var(--ink-80);
  padding: 72px var(--gutter) 36px;
}
.footer-top {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 60px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--rule-light);
  margin-bottom: 32px;
}
.footer-brand p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.7;
  margin-top: 18px;
  max-width: 280px;
}
.footer-col-title {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 20px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-col ul li a:hover {
  color: var(--white);
}
.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.18);
}
.footer-bottom span {
  color: var(--orange);
}

/* ── SCROLL REVEAL ───────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.75s ease,
    transform 0.75s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.d1 {
  transition-delay: 0.1s;
}
.d2 {
  transition-delay: 0.2s;
}
.d3 {
  transition-delay: 0.3s;
}
.d4 {
  transition-delay: 0.4s;
}
.d5 {
  transition-delay: 0.5s;
}

/* ── PAGE HERO (inner pages) ─────────────────────── */
.page-hero {
  padding: 180px var(--gutter) 100px;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(73, 189, 245, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(73, 189, 245, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.page-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-top: 16px;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}
.page-hero p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 300;
  line-height: 1.75;
  max-width: 540px;
  border-left: 2px solid var(--orange);
  padding-left: 20px;
}

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 1100px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}
@media (max-width: 860px) {
  /* FIX: hide desktop nav links and CTA, show hamburger instead */
  #nav ul {
    display: none;
  }
  .nav-cta {
    display: none;
  }
  .nav-hamburger {
    display: flex;
  }
  .nav-mobile-drawer {
    display: flex;
  }
}
@media (max-width: 700px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .cta-band-inner {
    flex-direction: column;
  }
}