/* ══════════════════════════════════════
   CWG HOLDINGS — Shared Stylesheet
   ══════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  --navy:   #1B2E5B;
  --navy-d: #0F1C3A;
  --red:    #D72631;
  --red-d:  #B01E29;
  --black:  #0A0A0A;
  --white:  #FFFFFF;
  --surf:   #F4F5F7;
  --surf-d: #E2E4EA;
  --muted:  #6B7280;
  --body:   #2C2C2C;
  --fd: 'Barlow Condensed', sans-serif;
  --fb: 'Barlow', sans-serif;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--fb); color: var(--body); background: var(--white); overflow-x: hidden; line-height: 1.6; }
img  { display: block; max-width: 100%; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }

/* ── UTILITIES ── */
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }

.label {
  font-family: var(--fd);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.label.dim { color: rgba(255,255,255,.4); }

.h1 {
  font-family: var(--fd);
  font-size: clamp(24px, 3.4vw, 46px);
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--navy);
}
.h1.lt { color: var(--white); }

.body-p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 540px;
}
.body-p.lt { color: rgba(255,255,255,.68); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  font-family: var(--fd);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: .25s var(--ease);
}
.btn-red   { background: var(--red);   color: #fff; }
.btn-red:hover   { background: var(--red-d);   transform: translateY(-2px); }
.btn-ol    { background: transparent;  color: #fff; border: 2px solid rgba(255,255,255,.65); }
.btn-ol:hover    { background: #fff; color: var(--navy); transform: translateY(-2px); }
.btn-navy  { background: var(--navy);  color: #fff; }
.btn-navy:hover  { background: var(--navy-d);  transform: translateY(-2px); }

/* ── SCROLL REVEAL ── */
.rv { opacity: 0; transform: translateY(22px) scale(0.99); transition: opacity .7s ease, transform .7s ease; }
.rv.on { opacity: 1; transform: translateY(0) scale(1); }
.d1 { transition-delay: .10s; }
.d2 { transition-delay: .20s; }
.d3 { transition-delay: .30s; }
.d4 { transition-delay: .40s; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
}

/* ══════════════════════
   HEADER
   ══════════════════════ */
#hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  padding: 18px 0;
  transition: background .3s, padding .3s, box-shadow .3s;
}
#hdr.scrolled {
  background: var(--navy);
  padding: 11px 0;
  box-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.hdr-in { display: flex; align-items: center; justify-content: space-between; }

.logo { font-family: var(--fd); font-weight: 900; color: #fff; letter-spacing: .5px; text-transform: uppercase; line-height: 1; display: flex; flex-direction: column; gap: 5px; }
.logo-top  { font-size: 20px; font-weight: 900; line-height: 1; }
.logo-cw   { color: #db7333; }
.logo-grp  { color: rgba(255,255,255,.72); }
.logo-hold { font-family: var(--fd); font-size: 8.5px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: #1f345f; background: rgba(255,255,255,.88); padding: 3px 9px 2px; display: inline-block; }
.logo-sub  { font-size: 8px; font-weight: 600; letter-spacing: 2px; color: rgba(255,255,255,.4); text-transform: uppercase; }

nav ul  { display: flex; gap: 28px; align-items: center; }
nav a {
  font-family: var(--fd);
  font-size: 12px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,.82); transition: color .2s;
}
nav a:hover     { color: var(--red); }
nav a.cta-link  { background: var(--red); color: #fff; padding: 9px 20px; }
nav a.cta-link:hover { background: var(--red-d); color: #fff; }
nav a:not(.cta-link) { position: relative; }
nav a:not(.cta-link)::after { content: ''; position: absolute; bottom: -3px; left: 0; width: 0; height: 2px; background: var(--red); transition: width .22s ease; }
nav a:not(.cta-link):hover::after { width: 100%; }

.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; border: none; background: none; padding: 4px; }
.burger span { display: block; width: 24px; height: 2px; background: #fff; transition: .3s; }

/* ── MOBILE NAV ── */
.mob-nav { display: flex; position: fixed; inset: 0; background: var(--navy); z-index: 950; flex-direction: column; align-items: center; justify-content: center; gap: 24px; opacity: 0; pointer-events: none; transform: translateY(-6px); transition: opacity .28s ease, transform .28s ease; }
.mob-nav.open { opacity: 1; pointer-events: all; transform: translateY(0); }
.mob-nav a { font-family: var(--fd); font-size: 36px; font-weight: 900; color: #fff; text-transform: uppercase; letter-spacing: 2px; opacity: 0; transform: translateY(14px); transition: color .2s, opacity .25s ease, transform .25s ease; }
.mob-nav.open a { opacity: 1; transform: translateY(0); }
.mob-nav.open a:nth-of-type(1) { transition-delay: .08s; }
.mob-nav.open a:nth-of-type(2) { transition-delay: .14s; }
.mob-nav.open a:nth-of-type(3) { transition-delay: .20s; }
.mob-nav.open a:nth-of-type(4) { transition-delay: .26s; }
.mob-nav.open a:nth-of-type(5) { transition-delay: .32s; }
.mob-nav.open a:nth-of-type(6) { transition-delay: .38s; }
.mob-nav.open a:nth-of-type(7) { transition-delay: .44s; }
.mob-nav a:hover { color: var(--red); }
.mob-x { position: absolute; top: 22px; right: 26px; background: none; border: none; font-size: 32px; color: #fff; cursor: pointer; line-height: 1; opacity: 0; transition: opacity .2s .08s; }
.mob-nav.open .mob-x { opacity: 1; }

/* ══════════════════════
   PARTNER TICKER (standalone bar below hero)
   ══════════════════════ */
.partner-ticker {
  display: flex;
  align-items: center;
  height: 52px;
  overflow: hidden;
  background: var(--white);
  border-bottom: 2px solid var(--red);
}
.tick-label {
  background: var(--red);
  color: #fff;
  font-family: var(--fd);
  font-size: 10px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  padding: 0 22px;
  height: 100%;
  display: flex; align-items: center;
  white-space: nowrap; flex-shrink: 0;
}
.tick-outer { overflow: hidden; flex: 1; height: 100%; }
.tick-track {
  display: flex; height: 100%;
  animation: tick 34s linear infinite;
  will-change: transform;
}
.hero-ticker:hover .tick-track { animation-play-state: paused; }
.tick-item {
  display: inline-flex; align-items: center;
  white-space: nowrap; padding: 0 28px;
  font-family: var(--fd);
  font-size: 13px; font-weight: 700;
  color: var(--navy);
  letter-spacing: .5px; text-transform: uppercase; gap: 16px;
}
.tick-item::after { content: '·'; color: var(--red); font-size: 20px; }
@keyframes tick { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ══════════════════════
   STATS STRIP
   ══════════════════════ */
#stats { background: var(--navy); border-top: 2px solid var(--red); border-bottom: 2px solid var(--red); }
.stats-g { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { text-align: center; padding: 28px 16px; border-right: 1px solid rgba(255,255,255,.08); }
.stat:last-child { border-right: none; }
.stat-n { font-family: var(--fd); font-size: clamp(28px, 3.5vw, 44px); font-weight: 900; color: #fff; line-height: 1; margin-bottom: 6px; }
.stat-l { font-family: var(--fd); font-size: 11px; font-weight: 600; color: rgba(255,255,255,.55); letter-spacing: 2px; text-transform: uppercase; }

/* ══════════════════════
   CERTIFICATIONS
   ══════════════════════ */
#certs { padding: 72px 0; background: var(--navy); border-top: 2px solid var(--red); }
.certs-hdr { text-align: center; margin-bottom: 48px; }
.certs-g { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; }
.cert { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); padding: 28px 16px; text-align: center; transition: .3s var(--ease); }
.cert:hover { background: rgba(215,38,49,.14); border-color: var(--red); transform: translateY(-4px); }
.cert-ico { width: 48px; height: 48px; margin: 0 auto 14px; background: var(--red); display: flex; align-items: center; justify-content: center; }
.cert-ico svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cert-name { font-family: var(--fd); font-size: 16px; font-weight: 800; color: #fff; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 5px; }
.cert-full { font-size: 10px; color: rgba(255,255,255,.42); line-height: 1.45; }
.certs-note { text-align: center; margin-top: 24px; font-size: 11px; color: rgba(255,255,255,.28); font-style: italic; }

/* ══════════════════════
   FOOTER
   ══════════════════════ */
#footer { background: var(--navy-d); padding: 60px 0 30px; }
.foot-g { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 44px; margin-bottom: 44px; }
.foot-brand-name { font-family: var(--fd); font-size: 24px; font-weight: 900; color: #fff; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 12px; }
.fbn-cw { color: #db7333; }
.fbn-g  { color: rgba(255,255,255,.6); }
.foot-p { font-size: 13px; color: rgba(255,255,255,.42); line-height: 1.75; margin-bottom: 22px; }
.foot-soc { display: flex; gap: 9px; }
.soc { width: 34px; height: 34px; background: rgba(255,255,255,.07); display: flex; align-items: center; justify-content: center; font-family: var(--fd); font-size: 10px; font-weight: 700; color: rgba(255,255,255,.5); text-transform: uppercase; transition: .2s; }
.soc:hover { background: var(--red); color: #fff; }
.foot-title { font-family: var(--fd); font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #fff; margin-bottom: 16px; padding-bottom: 9px; border-bottom: 2px solid var(--red); }
.foot-links li { margin-bottom: 8px; }
.foot-links a { font-size: 13px; color: rgba(255,255,255,.42); transition: color .2s; }
.foot-links a:hover { color: var(--red); }
.foot-c { font-size: 13px; color: rgba(255,255,255,.42); margin-bottom: 8px; line-height: 1.55; }
.foot-c a { color: rgba(255,255,255,.42); transition: color .2s; }
.foot-c a:hover { color: var(--red); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.07); flex-wrap: wrap; gap: 10px; }
.foot-copy { font-size: 11px; color: rgba(255,255,255,.25); }
.foot-reg  { font-size: 10px; color: rgba(255,255,255,.18); }

/* ══════════════════════
   PAGE HERO (interior pages)
   ══════════════════════ */
.page-hero {
  position: relative;
  height: 56vh;
  min-height: 380px;
  display: flex; align-items: flex-end;
  overflow: hidden;
  padding-bottom: 56px;
}
.page-hero-bg {
  position: absolute; inset: -6%;
  background-size: cover; background-position: center;
  will-change: transform;
}
.page-hero-ov {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,.85) 0%, rgba(27,46,91,.5) 60%, rgba(10,10,10,.35) 100%);
}
.page-hero-body { position: relative; z-index: 2; }
.page-hero-eye {
  font-family: var(--fd); font-size: 11px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--red); margin-bottom: 10px;
}
.page-hero-h1 {
  font-family: var(--fd);
  font-size: clamp(32px, 5.2vw, 64px);
  font-weight: 900;
  line-height: .95;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -1px;
}
.page-hero-sub {
  font-size: 14px;
  color: rgba(255,255,255,.65);
  margin-top: 12px;
  max-width: 520px;
  line-height: 1.65;
}

/* ══════════════════════
   SHARED SECTION PADDING
   ══════════════════════ */
.sec { padding: 100px 0; }
.sec-sm { padding: 64px 0; }

/* ══════════════════════
   CTA BAND
   ══════════════════════ */
.cta-band { padding: 88px 0; background: var(--red); text-align: center; }
.cta-band-h { font-family: var(--fd); font-size: clamp(28px, 4.8vw, 62px); font-weight: 900; color: #fff; text-transform: uppercase; letter-spacing: -1px; margin-bottom: 12px; line-height: .95; }
.cta-band-sub { font-size: 15px; color: rgba(255,255,255,.78); margin-bottom: 40px; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ══════════════════════
   CONTACT FORM
   ══════════════════════ */
.contact-g { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; }
.c-detail { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 28px; }
.c-icon { width: 42px; height: 42px; background: var(--red); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.c-icon svg { width: 19px; height: 19px; fill: none; stroke: #fff; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.c-lbl { font-family: var(--fd); font-size: 9px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--red); margin-bottom: 3px; }
.c-val { font-size: 13px; color: rgba(255,255,255,.72); line-height: 1.7; }
.c-val a { color: rgba(255,255,255,.72); transition: color .2s; }
.c-val a:hover { color: var(--red); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.fg { margin-bottom: 13px; }
.fg label { display: block; font-family: var(--fd); font-size: 9px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.38); margin-bottom: 6px; }
.fg input, .fg select, .fg textarea { width: 100%; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); color: #fff; padding: 12px 14px; font-family: var(--fb); font-size: 14px; outline: none; transition: border-color .2s; -webkit-appearance: none; }
.fg input:focus, .fg select:focus, .fg textarea:focus { border-color: var(--red); }
.fg select option { background: var(--black); color: #fff; }
.fg textarea { height: 110px; resize: vertical; }
.form-btn { width: 100%; padding: 16px; background: var(--red); color: #fff; border: none; font-family: var(--fd); font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; transition: .25s; margin-top: 5px; }
.form-btn:hover { background: var(--red-d); }
.form-note { margin-top: 12px; font-size: 10px; color: rgba(255,255,255,.22); }

/* ══════════════════════
   RESPONSIVE
   ══════════════════════ */
@media (max-width: 1024px) {
  .certs-g { grid-template-columns: repeat(3, 1fr); }
  .foot-g  { grid-template-columns: 1fr 1fr; }
  .stats-g { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  nav ul { display: none; }
  .burger { display: flex; }
  .logo-top { font-size: 16px; }
  .certs-g { grid-template-columns: repeat(2, 1fr); }
  .contact-g { grid-template-columns: 1fr; gap: 44px; }
  .form-row { grid-template-columns: 1fr; }
  .foot-g { grid-template-columns: 1fr 1fr; gap: 28px; }
  .stats-g { grid-template-columns: 1fr 1fr; }
  .tick-track { animation-duration: 10s; }
  .sec { padding: 68px 0; }
  .sec-sm { padding: 48px 0; }
  .page-hero { min-height: 340px; padding-bottom: 44px; }
  .cta-band { padding: 68px 0; }
  .wrap { padding: 0 20px; }
}
@media (max-width: 480px) {
  .tick-track { animation-duration: 8s; }
  .logo-top  { font-size: 13px; }
  .logo-hold { font-size: 7px; letter-spacing: 2px; padding: 2px 7px 2px; }
  .certs-g { grid-template-columns: repeat(2, 1fr); }
  .cta-btns { flex-direction: column; align-items: center; }
  .foot-g { grid-template-columns: 1fr; gap: 24px; }
  .sec { padding: 52px 0; }
  .sec-sm { padding: 36px 0; }
  .page-hero { min-height: 290px; padding-bottom: 36px; }
  .cta-band { padding: 52px 0; }
  .wrap { padding: 0 16px; }
  .stat { padding: 22px 12px; }
  .cta-band-h { letter-spacing: -.5px; }
}
