/* ============================================================
   4 Front Consultants — hand-coded by Total Effex
   Palette: brand red #FF0000 / ink #101114 / paper #FFFFFF
            surface #F3F4F6 / slate #565B63
   Type:    Archivo (900 display, 400/500 body)
   ============================================================ */

:root {
  --red: #FF0000;
  --red-deep: #C90000;
  --ink: #101114;
  --paper: #FFFFFF;
  --surface: #F3F4F6;
  --slate: #565B63;
  --line: #E2E4E8;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(16, 17, 20, .08);
  --shadow-lift: 0 18px 44px rgba(16, 17, 20, .14);
  --font: 'Archivo', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.22, .8, .3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--ink);
  color: #fff; padding: 10px 18px; z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Signature: hazard line ---------- */
.hazard-line {
  height: 6px;
  background: repeating-linear-gradient(
    -45deg,
    var(--red) 0 14px,
    var(--ink) 14px 28px
  );
  background-size: 40px 6px;
}
@media (prefers-reduced-motion: no-preference) {
  .hero .hazard-line { animation: hazard-shift 18s linear infinite; }
  @keyframes hazard-shift { to { background-position: 200px 0; } }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px; gap: 24px;
}
.brand img { width: 220px; height: auto; }
.nav-list { display: flex; gap: 6px; list-style: none; }
.nav-list a {
  display: block; padding: 10px 14px; color: var(--ink);
  font-weight: 500; font-size: .95rem; border-radius: 6px;
  transition: color .2s, background .2s;
}
.nav-list a:hover { text-decoration: none; background: var(--surface); }
.nav-list a.active { color: var(--red-deep); box-shadow: inset 0 -3px 0 var(--red); border-radius: 6px 6px 0 0; }
.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 8px;
  font-weight: 700; font-size: 1rem; letter-spacing: .01em;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
  cursor: pointer; border: 2px solid transparent; text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 8px 22px rgba(255, 0, 0, .28); }
.btn-red:hover { background: var(--red-deep); box-shadow: 0 12px 28px rgba(201, 0, 0, .32); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #26282e; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-ghost-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--red-deep); margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 3px; background: var(--red); border-radius: 2px;
}
.eyebrow-light { color: #fff; }
.eyebrow-light::before { background: #fff; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.015em; }
.display {
  font-weight: 900; font-stretch: 92%;
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  text-transform: uppercase;
}
.section-title {
  font-weight: 900; font-stretch: 94%;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  text-transform: uppercase; margin-bottom: 16px;
}
.lede { font-size: 1.12rem; color: var(--slate); max-width: 62ch; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.hero-media {
  position: absolute; inset: 0;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; opacity: .34;
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(16,17,20,.92) 30%, rgba(16,17,20,.45) 75%, rgba(255,0,0,.18));
}
.hero-inner {
  position: relative; z-index: 1;
  padding: clamp(72px, 11vw, 140px) 24px;
  max-width: 1180px; margin: 0 auto;
}
.hero .display { max-width: 15ch; }
.hero .display em { font-style: normal; color: var(--red); }
.hero-sub { margin: 22px 0 34px; font-size: 1.15rem; color: #D6D8DD; max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .hazard-line { position: absolute; left: 0; right: 0; bottom: 0; }

/* Page hero (inner pages) */
.page-hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.page-hero .hero-inner { padding: clamp(56px, 8vw, 96px) 24px; }
.page-hero .display { font-size: clamp(2rem, 4.4vw, 3.4rem); }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--surface); }
.section-head { max-width: 720px; margin-bottom: 42px; }

/* ---------- Stats (animated counters) ---------- */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px; margin-top: 48px;
}
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; position: relative; overflow: hidden;
}
.stat::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: repeating-linear-gradient(-45deg, var(--red) 0 10px, var(--ink) 10px 20px);
}
.stat-num {
  font-size: 2.6rem; font-weight: 900; font-stretch: 92%; line-height: 1;
  color: var(--red-deep);
}
.stat-label { margin-top: 8px; color: var(--slate); font-weight: 500; }

/* ---------- Service cards ---------- */
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
}
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease);
}
.card:hover .card-media img { transform: scale(1.05); }
.card-disc {
  position: absolute; left: 20px; bottom: -22px; width: 52px; height: 52px;
  border-radius: 50%; background: var(--red); color: #fff;
  display: grid; place-items: center; font-weight: 900; font-size: 1.3rem;
  box-shadow: 0 8px 18px rgba(201, 0, 0, .35); z-index: 1;
}
.card-body { padding: 36px 24px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-title { font-weight: 800; font-size: 1.25rem; text-transform: uppercase; letter-spacing: -.01em; }
.card-text { color: var(--slate); flex: 1; }
.card-link { font-weight: 700; color: var(--red-deep); }
.card-link::after { content: " →"; transition: margin .2s; }
.card:hover .card-link::after { margin-left: 4px; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lift); position: relative; }
.split-media::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: repeating-linear-gradient(-45deg, var(--red) 0 14px, var(--ink) 14px 28px);
}
.checklist { list-style: none; display: grid; gap: 14px; margin-top: 20px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; }
.checklist .tick {
  flex: none; width: 26px; height: 26px; margin-top: 2px; border-radius: 50%;
  background: var(--red); color: #fff; display: grid; place-items: center;
  font-size: .8rem; font-weight: 900;
}

/* ---------- Accordion (interactive) ---------- */
.accordion { display: grid; gap: 12px; }
.acc-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow .25s var(--ease);
}
.acc-item.open { box-shadow: var(--shadow); border-color: transparent; }
.acc-btn {
  width: 100%; display: flex; align-items: center; gap: 16px;
  padding: 18px 20px; background: none; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 1.02rem; text-align: left;
  color: var(--ink);
}
.acc-btn .acc-meta {
  margin-left: auto; flex: none; font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: #fff;
  background: var(--ink); padding: 5px 10px; border-radius: 999px;
}
.acc-btn .acc-meta-online { background: var(--red); }
.acc-btn .acc-arrow {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--line); display: grid; place-items: center;
  transition: transform .3s var(--ease), background .3s, border-color .3s;
  font-size: .8rem;
}
.acc-item.open .acc-arrow { transform: rotate(180deg); background: var(--red); border-color: var(--red); color: #fff; }
.acc-panel { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.acc-panel-inner { padding: 0 20px 20px 66px; color: var(--slate); }
.acc-disc {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface); color: var(--red-deep); font-weight: 900;
  display: grid; place-items: center; font-size: .85rem;
}

/* ---------- Course filter ---------- */
.course-tools { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.course-search {
  flex: 1 1 260px; padding: 13px 18px; border: 2px solid var(--line);
  border-radius: 8px; font: inherit; font-size: 1rem;
}
.course-search:focus { outline: none; border-color: var(--red); }
.filter-btn {
  padding: 11px 18px; border-radius: 999px; border: 2px solid var(--line);
  background: #fff; font: inherit; font-weight: 700; font-size: .88rem;
  cursor: pointer; transition: all .2s;
}
.filter-btn:hover { border-color: var(--ink); }
.filter-btn.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.no-results { display: none; padding: 32px; text-align: center; color: var(--slate); }

/* ---------- Tabs ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.tab-btn {
  padding: 13px 24px; border-radius: 8px; border: 2px solid var(--line);
  background: #fff; font: inherit; font-weight: 700; cursor: pointer;
  transition: all .2s;
}
.tab-btn.active { background: var(--red); border-color: var(--red); color: #fff; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade-up .4s var(--ease); }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.contact-form { display: grid; gap: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .95rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 16px; border: 2px solid var(--line);
  border-radius: 8px; font: inherit; font-size: 1rem; background: #fff;
  transition: border-color .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--red); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }
.form-note { font-size: .88rem; color: var(--slate); }
.form-status { padding: 14px 18px; border-radius: 8px; font-weight: 600; display: none; }
.form-status.ok { display: block; background: #E8F7EC; color: #14532D; }
.form-status.err { display: block; background: #FDEBEB; color: #9B1C1C; }
.contact-card {
  background: var(--ink); color: #fff; border-radius: var(--radius);
  padding: 34px 30px; position: relative; overflow: hidden;
}
.contact-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: repeating-linear-gradient(-45deg, var(--red) 0 14px, #fff 14px 28px);
}
.contact-card h3 { text-transform: uppercase; font-weight: 800; margin: 18px 0 6px; font-size: 1.05rem; }
.contact-card a { color: #fff; font-weight: 600; }
.contact-card .muted { color: #B9BCC3; font-size: .95rem; }
.cred-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.cred-badges span {
  font-size: .75rem; font-weight: 700; letter-spacing: .04em;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  padding: 6px 10px; border-radius: 999px;
}

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(115deg, var(--red-deep), var(--red) 65%); color: #fff; padding: clamp(48px, 7vw, 80px) 0; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta-title { font-weight: 900; font-stretch: 94%; text-transform: uppercase; font-size: clamp(1.5rem, 3vw, 2.2rem); max-width: 22ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #C9CBD1; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px; padding: clamp(48px, 7vw, 72px) 24px;
}
.footer-logo { background: #fff; padding: 10px 14px; border-radius: 8px; margin-bottom: 18px; width: 200px; }
.footer-heading { color: #fff; text-transform: uppercase; font-size: .85rem; letter-spacing: .12em; margin-bottom: 16px; }
.footer-links { list-style: none; display: grid; gap: 10px; }
.footer-links a { color: #C9CBD1; }
.footer-links a:hover { color: #fff; }
.footer-creds { font-size: .78rem; color: #8A8E97; margin-top: 14px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  padding-top: 22px; padding-bottom: 22px; font-size: .85rem; color: #8A8E97;
}
.footer-bottom a { color: #C9CBD1; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .12s; }
.reveal-d2 { transition-delay: .24s; }
.reveal-d3 { transition-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn, .card-media img { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .brand img { width: 180px; }
  .nav-toggle {
    display: grid; gap: 5px; background: none; border: 0; padding: 10px; cursor: pointer;
  }
  .nav-toggle-bar { width: 26px; height: 3px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .nav-list {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; flex-direction: column; gap: 0; padding: 10px 16px 18px;
    box-shadow: var(--shadow-lift);
  }
  .nav-list.open { display: flex; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .acc-panel-inner { padding-left: 20px; }
}

/* ---------- Social row ---------- */
.social-row { display: flex; gap: 14px; padding-bottom: 26px; }
.social-row a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.18);
  transition: background .2s, transform .2s;
}
.social-row a:hover { background: var(--red); transform: translateY(-2px); }
