/* ============================================================
   ACE UNLOCKS — Global Styles
   Fonts: Manrope (Google Fonts) — 800 display, 500 body
   Design: Light premium service brand — white/red/yellow
   ============================================================ */

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

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --red:        #D62828;
  --red-dark:   #B01E1E;
  --yellow:     #FFD60A;
  --yellow-dim: #F0C800;
  --bg:         #FAFAFA;
  --bg-off:     #F2F0ED;
  --bg-dark:    #1A1A1A;
  --text:       #1A1A1A;
  --text-mid:   #444444;
  --text-muted: #888888;
  --white:      #FFFFFF;
  --border:     rgba(26,26,26,0.10);

  --font:       'Manrope', sans-serif;
  --radius:     6px;
  --header-h:   72px;
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── Loader ─────────────────────────────────────────────── */
#loader {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-brand {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--white);
}
.loader-brand span { color: var(--red); }
.loader-bar-wrap {
  width: 200px;
  height: 2px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
  overflow: hidden;
}
#loader-bar {
  height: 100%;
  width: 0%;
  background: var(--red);
  border-radius: 2px;
  transition: width 0.1s linear;
}
#loader-percent {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45);
}

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 900;
  display: flex;
  align-items: center;
  padding: 0 40px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  background: rgba(250,250,250,0.97);
  box-shadow: 0 1px 0 var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
/* Transparent state (homepage before scroll) — white text over dark hero */
.site-header:not(.scrolled) .header-nav a {
  color: rgba(255,255,255,0.82);
}
.site-header:not(.scrolled) .header-nav a:hover {
  color: var(--white);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}
.header-logo img {
  height: 56px;
  width: auto;
}
.header-logo .logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}
.header-logo .logo-text span { color: var(--red); }
.header-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.header-nav a {
  font-size: 1.0rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-mid);
  transition: color 0.2s ease;
}
.header-nav a:hover { color: var(--red); }
.header-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}
.header-phone:hover { color: var(--red); }
.header-phone svg { width: 18px; height: 18px; fill: var(--red); flex-shrink: 0; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  background: var(--red);
  color: var(--white) !important;
  font-size: 1.0rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.15s ease !important;
}
.nav-cta:hover { background: var(--red-dark) !important; transform: translateY(-1px); color: var(--white) !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: auto;
  padding: 10px 12px;
  background: var(--red);
  border-radius: var(--radius);
  cursor: pointer;
  z-index: 10;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s 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); }

/* Mobile nav drawer */
.mobile-nav {
  display: flex;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 800;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-16px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}
.mobile-nav.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: all;
}
.mobile-nav a {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  transition: color 0.2s;
}
.mobile-nav a:hover { color: var(--red); }
.mobile-nav .mobile-call {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--red);
  color: var(--white);
  border-radius: var(--radius);
  font-size: 1.1rem;
  font-weight: 800;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 36px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.15s var(--ease-out), box-shadow 0.15s ease, background 0.2s ease;
}
.btn-red {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(214,40,40,0.30);
}
.btn-red:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(214,40,40,0.40);
}
.btn-red:active { transform: translateY(0); }
.btn-large { padding: 22px 48px; font-size: 1.15rem; }
.btn-xl { padding: 26px 60px; font-size: 1.3rem; }
.btn svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }

/* ── Section base ────────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.section-heading {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 20px;
}
.section-heading em { font-style: normal; color: var(--red); }
.section-body {
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.75;
  color: var(--text-mid);
  max-width: 560px;
}
.section-sub {
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.65;
  color: var(--text-mid);
  margin-bottom: 40px;
  max-width: 600px;
}

/* ── Common layout helpers ───────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
.pad { padding: 100px 40px; }
.pad-lg { padding: 130px 40px; }

/* ── Mobile Floating CTA ─────────────────────────────────── */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 700;
  background: var(--red);
}
.mobile-cta-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 10px 20px;
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.mobile-cta-bar svg { width: 18px; height: 18px; fill: var(--white); }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.65);
  padding: 72px 40px 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px 40px;
  max-width: 1200px;
  margin: 0 auto 60px;
}
.footer-brand img {
  height: 52px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 16px;
}
.footer-tagline {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.50);
  margin-top: 12px;
}
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  transition: background 0.2s ease;
  flex-shrink: 0;
}
.footer-social a:hover { background: var(--red); }
.footer-social svg { width: 16px; height: 16px; fill: rgba(255,255,255,0.65); }
.footer-social a:hover svg { fill: var(--white); }
.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
}
.footer-col p, .footer-col a {
  display: block;
  font-size: 0.88rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--yellow); }
.footer-col .footer-phone {
  color: var(--yellow);
  font-weight: 700;
  font-size: 1.0rem;
}
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.30);
}
.footer-badges {
  display: flex;
  gap: 16px;
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.badge svg { width: 10px; height: 10px; fill: var(--yellow); }

/* ── Scroll animation initial states ────────────────────── */
/* NOTE: initial opacity/transform states are set exclusively by GSAP (app.js)
   to avoid CSS vs GSAP conflicts. No CSS opacity:0 here. */

/* ── Reduced motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  [data-anim], [data-stagger] > * {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .header-nav { gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .site-header { padding: 0 20px; }
  .header-logo img { height: 48px; }
  .header-nav, .header-phone { display: none; }
  .nav-toggle { display: flex; }
  .mobile-cta-bar { display: block; }
  .container { padding: 0 20px; }
  .pad { padding: 72px 20px; }
  .pad-lg { padding: 90px 20px; }
  .section-heading { font-size: clamp(2rem, 7vw, 2.8rem); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .site-footer { padding-bottom: 100px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .btn-xl { padding: 20px 40px; font-size: 1.1rem; }
}
