/* ============================================
   THE GREAT MEDIA — Global Styles
   Dark minimal, Linear/Vercel aesthetic
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Geist:wght@300;400;500;600;700&family=Playfair+Display:ital@1&display=swap');

:root {
  --bg:       #000000;
  --surface:  #0a0a0a;
  --surface2: #111111;
  --surface3: #1a1a1a;
  --border:   rgba(255,255,255,.08);
  --border2:  rgba(255,255,255,.04);
  --red:      #E8192C;
  --red2:     #ff3347;
  --white:    #ffffff;
  --grey1:    rgba(255,255,255,.9);
  --grey2:    rgba(255,255,255,.65);
  --grey3:    rgba(255,255,255,.4);
  --grey4:    rgba(255,255,255,.18);
  --ease:     cubic-bezier(.4,0,.2,1);
  --ease-out: cubic-bezier(0,.55,.45,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body {
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
* { min-width: 0; }

/* SCROLLBAR */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 2px; }

/* ============ CURSOR ============ */
@media(hover:hover) {
  body { cursor: none; }
  #cursor {
    position: fixed; width: 8px; height: 8px;
    background: var(--red); border-radius: 50%;
    pointer-events: none; z-index: 9999;
    transform: translate(-50%,-50%);
    transition: width .2s, height .2s, background .2s;
  }
  #cursor-ring {
    position: fixed; width: 32px; height: 32px;
    border: 1px solid rgba(232,25,44,.4); border-radius: 50%;
    pointer-events: none; z-index: 9998;
    transform: translate(-50%,-50%);
    transition: all .15s var(--ease);
  }
  #cursor.hover { width: 14px; height: 14px; }
  #cursor-ring.hover { width: 52px; height: 52px; border-color: var(--red); }
}

/* ============ NAV ============ */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: 64px; padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  background: #000;
  border-bottom: 1px solid rgba(255,255,255,.15);
  transition: border-color .3s;
}
#nav.scrolled {
  border-color: rgba(255,255,255,.2);
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; }
.nav-logo-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.15rem; letter-spacing: 2.5px; color: var(--white);
}
.nav-logo-text span { color: var(--red); }
.nav-links {
  display: flex; align-items: center; gap: 6px; list-style: none;
}
.nav-links a {
  font-size: .83rem; font-weight: 500; color: rgba(255,255,255,.72);
  padding: 7px 14px; border-radius: 6px;
  transition: color .2s, background .2s; letter-spacing: .2px;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a.active { background: rgba(255,255,255,.06); }
.nav-cta {
  font-size: .82rem; font-weight: 600;
  background: var(--white) !important; color: var(--bg) !important;
  padding: 8px 18px !important; border-radius: 6px;
  transition: opacity .2s !important; letter-spacing: .2px;
}
.nav-cta:hover { opacity: .88 !important; background: var(--white) !important; }

/* HAMBURGER */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.hamburger span {
  display: block; width: 20px; height: 1.5px;
  background: var(--white); border-radius: 2px; transition: all .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* MOBILE DRAWER */
#drawer {
  position: fixed; top: 0; right: -100%;
  width: min(300px, 82vw); height: 100vh;
  background: #080808; border-left: 1px solid var(--border);
  z-index: 600; transition: right .38s var(--ease);
  display: flex; flex-direction: column;
  padding: 80px 28px 36px; gap: 4px; overflow-y: auto;
}
#drawer.open { right: 0; }
#drawer-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.7);
  z-index: 590; opacity: 0; pointer-events: none; transition: opacity .38s;
}
#drawer-overlay.open { opacity: 1; pointer-events: all; }
#drawer a {
  font-size: .95rem; font-weight: 500; color: var(--grey2);
  padding: 13px 0; border-bottom: 1px solid var(--border2);
  transition: color .2s; display: block;
}
#drawer a:hover { color: var(--white); }
.drawer-cta-btn {
  margin-top: 20px; background: var(--white) !important;
  color: var(--bg) !important; text-align: center;
  border-radius: 7px; padding: 14px !important;
  font-weight: 700 !important; border-bottom: none !important;
  font-size: .9rem !important;
}
.drawer-wa-btn {
  background: #25D366 !important; color: var(--white) !important;
  text-align: center; border-radius: 7px;
  padding: 13px !important; font-weight: 600 !important;
  border-bottom: none !important; margin-top: 8px;
}

/* ============ COOKIE ============ */
#cookie {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 700;
  background: #0c0c0c; border-top: 1px solid var(--border);
  padding: 16px 5%; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; flex-wrap: wrap;
  transform: translateY(100%); transition: transform .5s var(--ease);
}
#cookie.show { transform: translateY(0); }
.cookie-text { font-size: .78rem; color: var(--grey3); line-height: 1.5; max-width: 560px; }
.cookie-text a { color: var(--red); }
.cookie-btns { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-ok {
  background: var(--white); color: var(--bg);
  border: none; padding: 8px 18px; border-radius: 5px;
  font-size: .78rem; font-weight: 700; cursor: pointer;
}
.cookie-no {
  background: transparent; color: var(--grey3);
  border: 1px solid var(--border); padding: 8px 14px; border-radius: 5px;
  font-size: .78rem; cursor: pointer; transition: color .2s;
}
.cookie-no:hover { color: var(--white); }

/* ============ SHARED SECTIONS ============ */
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 5%; }
section { padding: 96px 0; }
.section-wrap { padding: 96px 5%; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .68rem; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--red); margin-bottom: 16px;
}
.eyebrow::before {
  content: ''; width: 16px; height: 1.5px;
  background: var(--red); display: block; flex-shrink: 0;
}
.display-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  letter-spacing: .5px; line-height: .92; color: var(--white);
}
.display-title .accent { color: var(--red); }
.display-title .italic { font-style: italic; font-family: 'Playfair Display', serif; }
.body-lg { font-size: 1.05rem; line-height: 1.78; color: var(--grey2); font-weight: 400; }
.body-md { font-size: .92rem; line-height: 1.76; color: var(--grey2); }
.body-sm { font-size: .82rem; line-height: 1.72; color: var(--grey3); }

/* DIVIDER */
.divider { width: 100%; height: 1px; background: var(--border2); margin: 0; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 7px;
  font-size: .86rem; font-weight: 600; letter-spacing: .2px;
  transition: all .2s var(--ease); border: none; cursor: pointer;
  font-family: 'Geist', sans-serif; white-space: nowrap;
  text-decoration: none;
}
.btn-primary { background: var(--white); color: var(--bg); }
.btn-primary:hover { opacity: .88; transform: translateY(-1px); }
.btn-danger { background: var(--red); color: var(--white); box-shadow: 0 4px 18px rgba(232,25,44,.25); }
.btn-danger:hover { background: var(--red2); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(232,25,44,.35); }
.btn-outline { background: transparent; color: var(--white); border: 1px solid var(--border); }
.btn-outline:hover { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.04); }
.btn-sm { padding: 9px 18px; font-size: .8rem; }
.btn-lg { padding: 15px 32px; font-size: .92rem; }
.btn-icon { padding: 12px 22px 12px 18px; }

/* ============ CARDS ============ */
.card {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 12px; padding: 28px 24px;
  transition: border-color .25s, transform .25s;
}
.card:hover { border-color: rgba(255,255,255,.14); transform: translateY(-3px); }
.card-red:hover { border-color: rgba(232,25,44,.25); }

/* ============ TICKER ============ */
.ticker-wrap { overflow: hidden; background: var(--red); padding: 11px 0; }
.ticker-track { display: flex; white-space: nowrap; animation: ticker 36s linear infinite; }
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  font-family: 'Bebas Neue', sans-serif; font-size: .88rem;
  letter-spacing: 1.5px; color: rgba(255,255,255,.9);
  padding: 0 24px; display: inline-flex; align-items: center; gap: 0;
  white-space: nowrap; flex-shrink: 0;
}
.ticker-item::after { content: ' · '; opacity: .5; padding: 0 8px; }
@keyframes ticker { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ============ REVEAL ANIMATIONS ============ */
.reveal, .reveal-up, .reveal-left, .reveal-right {
  opacity: 0; transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal, .reveal-up { transform: translateY(24px); }
.reveal-left { transform: translateX(-24px); }
.reveal-right { transform: translateX(24px); }
.reveal.v, .reveal-up.v, .reveal-left.v, .reveal-right.v {
  opacity: 1; transform: none;
}
.d1{transition-delay:.08s} .d2{transition-delay:.16s}
.d3{transition-delay:.24s} .d4{transition-delay:.32s}
.d5{transition-delay:.40s} .d6{transition-delay:.48s}

/* ============ PAGE HERO ============ */
.page-hero {
  padding: 140px 5% 80px; border-bottom: 1px solid var(--border2);
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: attr(data-title);
  position: absolute; bottom: -20px; right: 4%;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(80px, 14vw, 160px);
  color: rgba(255,255,255,.025); pointer-events: none;
  letter-spacing: 6px; line-height: 1; white-space: nowrap;
}

/* ============ FOOTER ============ */
#footer {
  background: var(--bg); border-top: 1px solid var(--border2);
  padding: 64px 5% 32px;
}
.footer-top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 44px; border-bottom: 1px solid var(--border2);
  margin-bottom: 24px;
}
.footer-brand {}
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo img { width: 34px; height: 34px; border-radius: 6px; object-fit: cover; }
.footer-logo-name {
  font-family: 'Bebas Neue', sans-serif; font-size: 1.05rem;
  letter-spacing: 2px; color: var(--white);
}
.footer-logo-name span { color: var(--red); }
.footer-tagline {
  font-size: .84rem; color: rgba(255,255,255,.65); line-height: 1.75;
  max-width: 240px; margin-bottom: 20px;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 7px;
  background: var(--surface3); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s;
}
.footer-social a:hover { background: var(--red); border-color: var(--red); }
.footer-social svg { width: 15px; height: 15px; fill: var(--white); }
.footer-col-title {
  font-size: .7rem; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 18px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: .86rem; color: rgba(255,255,255,.72); transition: color .2s;
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
}
.footer-copy { font-size: .76rem; color: rgba(255,255,255,.55); line-height: 1.6; }
.footer-copy span { color: var(--red); }
.footer-pacra {
  font-size: .72rem; color: rgba(255,255,255,.55);
  display: flex; align-items: center; gap: 6px;
}
.footer-pacra::before { content: '✓'; color: var(--red); font-weight: 700; }

/* ============ RESPONSIVE ============ */
@media(max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media(max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  #mobile-cta { display: block; }
  #wa-float { bottom: 76px; }
  section, .section-wrap { padding: 64px 6%; }
  .page-hero { padding: 110px 6% 56px; }
  .page-hero::after { display: none; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 6px; }
  #cookie { flex-direction: column; }

  /* Fix left-lean on mobile */
  body { overflow-x: hidden; width: 100%; }
  * { max-width: 100%; word-break: break-word; }
  p, h1, h2, h3, h4, span, li, a { overflow-wrap: break-word; word-break: normal; hyphens: none; }
  #footer { padding: 48px 6% 24px; }
  .footer-top { padding: 0 0 36px; }
  .footer-links { padding-left: 0; }

  /* Fix sub/body text wrapping word by word */
  .body-lg, .body-md, .body-sm,
  .hero-sub, .cta-band-sub,
  .svc-preview-desc, .work-desc,
  .testi-body, .about-body,
  .service-block-desc, .case-desc {
    word-break: normal;
    overflow-wrap: normal;
    white-space: normal;
    max-width: 100%;
    width: 100%;
  }
}
@media(max-width: 480px) {
  section, .section-wrap { padding: 56px 4%; }
  .page-hero { padding: 96px 4% 48px; }
  .display-title { font-size: clamp(2.2rem, 9vw, 3rem); }
}

/* ===== GLOBAL CONTENT CENTERING ===== */
.page-hero > *:not(.page-hero::after),
.service-block > .service-block-inner,
.about-grid,
.faq-grid,
.apply-layout,
.work-grid,
.portfolio-grid,
.cases-grid,
.home-section > .eyebrow,
.home-section > h2,
.home-section > p,
.home-section > div[style],
.home-section > .svc-preview-grid,
.home-section > .case-preview-grid,
.home-section > .testi-grid {
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
}

/* Page sections use padding for horizontal spacing - just ensure max-width */
.service-block { max-width: 100%; }
.service-block-inner { max-width: 1160px; margin: 0 auto; }
.trust-bar { max-width: 100%; }
.trust-bar > .trust-item { }

/* Section wrappers */
section[style*="padding:0 5%"] > * { max-width: 1160px; margin-left: auto; margin-right: auto; }



/* ===== FOOTER STACKING FIX ===== */
.footer-top {
  display: grid !important;
  grid-template-columns: 1.6fr 1fr 1fr 1fr !important;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--border2);
  margin-bottom: 24px;
}
@media(max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr !important;
    gap: 32px;
  }
}
@media(max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  #footer {
    padding: 48px 6% 40px !important;
  }
  .footer-tagline { max-width: 100% !important; }
  .footer-bottom {
    flex-direction: column !important;
    text-align: center !important;
    gap: 6px !important;
  }
  .footer-copy { text-align: center !important; }
}
