/* ==========================================================================
   Apex Leadworks Co — brand stylesheet
   Palette: navy / sky-blue / silver (trust, integrity, honesty)
   ========================================================================== */

:root {
  --navy: #0B2A4A;
  --navy-deep: #081D33;
  --navy-deeper: #05141F;
  --sky-light: #8FD3F4;
  --sky-mid: #4FA8DA;
  --sky-deep: #1B4F72;
  --silver: #7C8E9E;
  --silver-light: #C7D3DE;
  --ink: #24333F;
  --paper: #FFFFFF;
  --paper-tint: #F5F9FC;
  --border: #E1E8EE;

  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --shadow-sm: 0 2px 10px rgba(11, 42, 74, 0.08);
  --shadow-md: 0 12px 32px rgba(11, 42, 74, 0.14);

  --container: 1140px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 18px;
  line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 16px; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sky-deep);
  margin-bottom: 14px;
}

.lede {
  font-size: 1.1rem;
  color: var(--silver);
  max-width: 640px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--sky-light), var(--sky-mid));
  color: var(--navy-deep);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { box-shadow: var(--shadow-md); }

.btn-outline {
  border-color: rgba(255,255,255,0.55);
  color: #fff;
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

.btn-outline-navy {
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: #fff; }

.btn-block { width: 100%; }

.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
}

.brand-logo { height: 46px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.main-nav a {
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--navy);
  position: relative;
  padding: 6px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--sky-mid);
  transition: width 0.2s ease;
}
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--navy);
  margin: 6px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 65%, var(--navy) 100%);
  color: #fff;
  overflow: hidden;
  padding: 96px 0 0;
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  padding-bottom: clamp(140px, 22vw, 260px);
}

.hero h1 { color: #fff; }

.hero .lede {
  color: var(--silver-light);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.15rem;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 34px;
}

.hero-mountain {
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  width: 100%;
  height: clamp(80px, 14vw, 190px);
  line-height: 0;
  z-index: 1;
  opacity: 0.9;
  pointer-events: none;
}
.hero-mountain svg { width: 100%; height: 100%; display: block; }

.hero-eyebrow {
  color: var(--sky-light);
}

/* ---------- Capability strip ---------- */
.capability-strip {
  background: var(--paper-tint);
  border-bottom: 1px solid var(--border);
  padding: 26px 0;
}
.capability-strip .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  flex-wrap: wrap;
}
.capability-strip p {
  margin: 0;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.98rem;
}
.capability-strip .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--sky-mid);
  display: inline-block;
}

/* ---------- Services ---------- */
.services { padding: 100px 0; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section-head .lede { margin-left: auto; margin-right: auto; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 30px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.service-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sky-light), var(--sky-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.service-icon svg { width: 28px; height: 28px; stroke: var(--navy-deep); }

.service-card p { color: var(--silver); margin-bottom: 0; }
.service-card p + p { margin-top: 12px; }

/* ---------- Why section ---------- */
.why {
  background: var(--paper-tint);
  padding: 100px 0;
}
.why-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: start;
}
.why-copy .lede { color: var(--ink); opacity: 0.75; }

.principle-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 20px;
}
.principle-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}
.principle-list .check {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  margin-top: 2px;
}
.principle-list strong { display: block; color: var(--navy); margin-bottom: 3px; }
.principle-list span.desc { color: var(--silver); font-size: 0.94rem; }

/* ---------- Contact ---------- */
.contact {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  padding: 100px 0;
}
.contact .section-head h2 { color: #fff; }
.contact .section-head .lede { color: var(--silver-light); }
.contact .eyebrow { color: var(--sky-light); }

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: start;
}

.contact-info {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-md);
  padding: 34px;
}
.contact-info h3 { color: #fff; }
.contact-info p { color: var(--silver-light); }

.contact-method {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.contact-method:first-of-type { border-top: none; }
.contact-method .icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-method .icon svg { width: 22px; height: 22px; stroke: var(--sky-light); }
.contact-method a, .contact-method span.value { font-weight: 600; color: #fff; }
.contact-method .label { display: block; font-size: 0.8rem; color: var(--silver); margin-bottom: 2px; }

.contact-form {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 38px;
  box-shadow: var(--shadow-md);
}
.contact-form h3 { color: var(--navy); }

.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 7px;
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--ink);
  transition: border-color 0.18s ease;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--sky-mid);
}
.form-row textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.82rem; color: var(--silver); margin-top: 14px; margin-bottom: 0; }
.form-status {
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  display: none;
}
.form-status.success { color: #1b7a4a; display: block; }
.form-status.error { color: #b0392c; display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deeper);
  color: var(--silver-light);
  padding: 50px 0 30px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo { height: 36px; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a { font-size: 0.9rem; font-weight: 500; color: var(--silver-light); }
.footer-nav a:hover { color: #fff; }

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--silver);
}
.footer-bottom a:hover { color: #fff; }

/* ---------- WhatsApp floating button ---------- */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sky-light), var(--sky-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; stroke: var(--navy-deep); }

/* Note: deliberately no scroll-triggered hide/reveal here. Content stays
   visible unconditionally so nothing depends on JS running or on a
   crawler simulating scroll to see it. */

/* ---------- Privacy page ---------- */
.legal-page { padding: 70px 0 100px; }
.legal-page .container { max-width: 780px; }
.legal-page h2 { margin-top: 40px; }
.legal-page ul { padding-left: 22px; }
.legal-page li { margin-bottom: 8px; }
.legal-back { display: block; margin-bottom: 22px; font-weight: 600; color: var(--sky-deep); }
.legal-page .eyebrow { display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    top: 96px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 24px 20px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-130%);
    transition: transform 0.25s ease;
  }
  .main-nav.is-open { transform: translateY(0); }
  .main-nav a { padding: 14px 0; width: 100%; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: block; }
  .header-actions .btn-primary.nav-cta { display: none; }
  .hero { padding-top: 60px; }
  .hero-inner { padding-bottom: 70px; }
  .services, .why, .contact { padding: 70px 0; }
  .contact-form { padding: 26px; }
  .contact-info { padding: 26px; }
}
