/* ==========================================================================
   High-Octane Infotech: site styles
   Palette "Midnight and Signal Red", matched to the logo.
   Change the variables below to recolour the whole site.
   ========================================================================== */
:root {
  --navy-950: #07142B;   /* hero, header, footer */
  --navy-900: #0B1F3F;   /* main text, dark panels */
  --navy-700: #1C3A6E;   /* decorative lines */
  --red: #D62828;        /* logo red: primary buttons, highlights */
  --red-dark: #B01E1E;   /* button hover */
  --paper: #F6F7F9;      /* page background */
  --surface: #FFFFFF;    /* cards */
  --text: #0B1F3F;
  --muted: #4A5A72;      /* secondary text on light */
  --on-dark: #FFFFFF;
  --on-dark-muted: #B8C5D8;
  --line: #DDE3EB;
  --whatsapp: #25D366;
  --radius: 14px;
  --display: "Archivo", "Arial Narrow", sans-serif;
  --body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font-family: var(--body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--navy-900); text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }
.site-header :focus-visible, .hero :focus-visible, .site-footer :focus-visible,
.dark-panel :focus-visible, .cta-band :focus-visible { outline-color: #FFFFFF; }

h1, h2, h3 { font-family: var(--display); font-stretch: 112%; font-weight: 800; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: #FFFFFF; color: var(--navy-900); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 32px); }
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head h2 { font-size: clamp(30px, 3.8vw, 46px); }
.section-head p { margin-top: 14px; color: var(--muted); font-size: clamp(17px, 1.6vw, 19px); }
.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 280px)), 1fr)); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 13px 26px; border-radius: 10px; border: 2px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--red); color: #FFFFFF; }
.btn-primary:hover { background: var(--red-dark); color: #FFFFFF; }
.btn-light { border-color: rgba(255,255,255,.7); color: #FFFFFF; }
.btn-light:hover { background: #FFFFFF; color: var(--navy-900); }
.btn-dark { background: var(--navy-900); color: #FFFFFF; }
.btn-dark:hover { background: var(--navy-950); color: #FFFFFF; }
.btn-outline { border-color: var(--navy-900); color: var(--navy-900); background: transparent; }
.btn-outline:hover { background: var(--navy-900); color: #FFFFFF; }
.btn-white { background: #FFFFFF; color: var(--navy-900); }
.btn-white:hover { background: var(--navy-950); color: #FFFFFF; }
.btn-whatsapp { background: var(--whatsapp); color: #06301A; }
.btn-whatsapp:hover { background: #1EBE5A; color: #06301A; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn[disabled] { opacity: .7; cursor: progress; }

/* ---------- Header ---------- */
.site-header { background: var(--navy-950); color: var(--on-dark); position: relative; z-index: 20; border-bottom: 1px solid rgba(255,255,255,.08); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: #FFFFFF; text-decoration: none; }
.brand:hover { color: #FFFFFF; }
.brand-mark { display: flex; align-items: center; justify-content: center; background: #FFFFFF; border-radius: 10px; height: 52px; padding: 4px 7px; }
.brand-mark img { display: block; height: 44px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--display); font-stretch: 118%; font-weight: 800; font-size: 20px; }
.brand-sub { font-size: 13px; color: var(--on-dark-muted); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 28px; }
.nav a { color: #FFFFFF; text-decoration: none; font-weight: 600; padding: 10px 0; }
.nav a:hover { color: #FFFFFF; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.nav .nav-phone { font-weight: 500; color: var(--on-dark-muted); }
.nav .btn { padding: 11px 20px; min-height: 46px; }
.nav .btn:hover { text-decoration: none; }
.nav-toggle {
  display: none; align-items: center; gap: 8px; min-height: 46px; padding: 10px 14px;
  background: transparent; color: #FFFFFF; border: 1px solid rgba(255,255,255,.35); border-radius: 10px;
  font: inherit; font-weight: 600; cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 980px) {
  .header-inner { column-gap: 12px; }
  .js .nav-toggle { display: inline-flex; }
  .js .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 12px; border-top: 1px solid rgba(255,255,255,.12); }
  .js .nav.open { display: flex; }
  .js .nav a { padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .js .nav a[aria-current="page"] { text-underline-offset: 6px; }
  .js .nav .btn { margin-top: 14px; border-bottom: 0; }
}

/* ---------- Hero ---------- */
.hero { background: var(--navy-950); color: var(--on-dark); position: relative; overflow: hidden; }
.hero-art { position: absolute; right: -120px; top: -40px; width: 760px; height: auto; pointer-events: none; }
.hero-inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: clamp(36px, 5vw, 64px); padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(104px, 11vw, 150px); }
.hero-copy { flex: 999 1 540px; min-width: 0; }
.hero h1 { font-size: clamp(38px, 5.8vw, 76px); font-stretch: 120%; line-height: 1.02; }
.hero-lead { margin-top: 24px; max-width: 34em; font-size: clamp(17px, 1.8vw, 20px); color: var(--on-dark-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.finder { flex: 1 1 340px; background: var(--surface); color: var(--text); border-radius: 18px; padding: clamp(24px, 3vw, 34px); display: flex; flex-direction: column; gap: 14px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.finder h2 { font-size: 26px; }
.finder label { font-weight: 600; font-size: 15px; }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-link { font-size: 15px; text-decoration: none; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; }
.chip-link:hover { border-color: var(--red); color: var(--red); }
.finder-note { font-size: 15px; color: var(--muted); margin-top: 4px; }

.input, .select, .textarea { width: 100%; font: inherit; color: var(--text); background: #FFFFFF; padding: 13px 14px; border: 2px solid #A9B6C8; border-radius: 10px; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--navy-900); }
.textarea { resize: vertical; }

/* Formats strip overlapping the hero edge */
.formats { position: relative; z-index: 2; margin-top: clamp(-80px, -7vw, -56px); }
.formats-card { background: var(--line); gap: 1px; overflow: hidden; border-radius: 18px; box-shadow: 0 20px 50px -28px rgba(7,20,43,.45); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.format { background: var(--surface); padding: clamp(22px, 2.6vw, 32px); }
.format h3 { font-size: 20px; display: flex; align-items: center; gap: 10px; }
.format h3 svg { width: 24px; height: 24px; color: var(--red); flex: none; }
.format p { margin-top: 8px; color: var(--muted); font-size: 16px; }

/* ---------- Cards and lists ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); }
.pillar { border-top: 3px solid var(--red); padding-top: 22px; }
.pillar h3 { font-size: 22px; }
.pillar p { margin-top: 10px; color: var(--muted); }

.track { display: block; text-decoration: none; border-top: 2px solid var(--navy-900); padding: 20px 0 28px; }
.track strong { display: block; font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 22px; }
.track span { display: block; margin-top: 6px; color: var(--muted); }
.track:hover { border-top-color: var(--red); }
.track:hover strong { color: var(--red); }

.course-card { display: flex; flex-direction: column; gap: 12px; }
.course-cat { font-size: 14px; font-weight: 700; color: var(--red); }
.course-card h3 { font-size: 22px; line-height: 1.2; }
.course-card .blurb { color: var(--muted); }
.course-meta { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 4px 0 0; font-size: 15px; }
.course-meta dt { color: var(--muted); }
.course-meta dd { margin: 0; font-weight: 600; }
.course-actions { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.course-actions .btn { min-height: 46px; padding: 11px 20px; }
.wa-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.wa-link svg { width: 18px; height: 18px; color: #128C4A; }

.dark-panel { background: var(--navy-900); color: var(--on-dark); border-radius: 22px; padding: clamp(32px, 5vw, 64px); position: relative; overflow: hidden; }
.dark-panel .section-head p { color: var(--on-dark-muted); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { display: flex; flex-direction: column; gap: 8px; }
.step-num { font-family: var(--display); font-stretch: 125%; font-weight: 900; font-size: 46px; line-height: 1; color: var(--red); }
.steps strong { font-size: 20px; }
.steps span:last-child { color: var(--on-dark-muted); }

.service-item { border-top: 1px solid #C5D0DE; padding: 22px 0; }
.service-item h3 { font-family: var(--body); font-stretch: 100%; font-weight: 700; font-size: 20px; letter-spacing: 0; }
.service-item p { margin-top: 6px; color: var(--muted); }
.service-card h2 { font-size: 26px; }
.service-card > p { margin-top: 8px; color: var(--muted); }
.service-card ul { margin: 14px 0 0; padding-left: 20px; color: var(--muted); }

.split { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 64px); align-items: center; }
.split > * { flex: 1 1 420px; min-width: 0; }
.quote { font-family: var(--display); font-stretch: 108%; font-weight: 700; font-size: clamp(24px, 2.8vw, 34px); line-height: 1.25; border-left: 0; margin: 0; }
.quote-mark { display: block; width: 56px; height: 4px; background: var(--red); margin-bottom: 22px; }
.text-link { font-weight: 700; display: inline-block; margin-top: 22px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--red); color: #FFFFFF; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding-top: clamp(48px, 6vw, 72px); padding-bottom: clamp(48px, 6vw, 72px); }
.cta-inner h2 { font-size: clamp(28px, 3.6vw, 42px); }
.cta-inner p { margin-top: 10px; font-size: 18px; }
.cta-inner p a { color: #FFFFFF; font-weight: 700; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Inner page hero ---------- */
.page-hero { background: var(--navy-950); color: var(--on-dark); position: relative; overflow: hidden; }
.page-hero .container { position: relative; padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(48px, 6vw, 80px); }
.page-hero h1 { font-size: clamp(36px, 5vw, 64px); font-stretch: 120%; max-width: 15em; }
.page-hero p { margin-top: 18px; max-width: 38em; font-size: clamp(17px, 1.8vw, 19px); color: var(--on-dark-muted); }
.page-hero .hero-art { width: 560px; right: -160px; top: -60px; opacity: .8; }

/* ---------- Training filter ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font: inherit; font-weight: 600; font-size: 15px; min-height: 44px; padding: 9px 18px; border-radius: 999px; cursor: pointer; background: #FFFFFF; color: var(--navy-900); border: 2px solid var(--navy-900); }
.chip:hover { border-color: var(--red); }
.chip[aria-pressed="true"] { background: var(--navy-900); color: #FFFFFF; }
.result-count { margin: 26px 0 20px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-layout { display: flex; flex-wrap: wrap; gap: clamp(20px, 3vw, 32px); align-items: flex-start; }
.contact-main { flex: 999 1 560px; min-width: 0; }
.contact-side { flex: 1 1 320px; display: flex; flex-direction: column; gap: 18px; }
.form { display: flex; flex-direction: column; gap: 20px; }
.form h2 { font-size: 28px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; }
.hp { position: absolute; left: -9999px; }
.alert { padding: 14px 16px; border-radius: 10px; background: #FDECEC; color: #8A1C1C; font-weight: 600; }
.sent { display: flex; flex-direction: column; gap: 12px; }
.info-card h2 { font-family: var(--body); font-stretch: 100%; font-size: 18px; letter-spacing: 0; }
.info-card p, .info-card address { margin-top: 6px; color: var(--muted); font-style: normal; }
.info-red { background: var(--red); color: #FFFFFF; border: 0; }
.info-red p { color: #FFFFFF; }
.big-phone { display: inline-block; margin-top: 4px; font-family: var(--display); font-stretch: 116%; font-weight: 800; font-size: clamp(26px, 3vw, 32px); color: #FFFFFF; text-decoration: none; }
.big-phone:hover { color: #FFFFFF; text-decoration: underline; }
.map-box { margin-top: 14px; height: 200px; border-radius: 10px; border: 2px dashed #A9B6C8; display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; color: var(--muted); font-size: 15px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--on-dark-muted); font-size: 15px; padding: clamp(48px, 6vw, 72px) 0 32px; }
.site-footer a { color: #FFFFFF; }
.site-footer a:hover { color: #FFFFFF; text-decoration-color: var(--red); }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.footer-title { color: #FFFFFF; font-weight: 700; margin-bottom: 8px; }
.footer-brand { font-family: var(--display); font-stretch: 118%; font-weight: 800; font-size: 20px; color: #FFFFFF; }
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.site-footer address { font-style: normal; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; }

/* ---------- Floating WhatsApp button ---------- */
.wa-float {
  position: fixed; right: clamp(14px, 3vw, 28px); bottom: clamp(14px, 3vw, 28px); z-index: 50;
  display: inline-flex; align-items: center; gap: 10px; height: 60px; padding: 0 22px 0 18px;
  background: var(--whatsapp); color: #06301A; border-radius: 999px; text-decoration: none; font-weight: 700;
  box-shadow: 0 12px 28px -10px rgba(0,0,0,.45);
}
.wa-float:hover { background: #1EBE5A; color: #06301A; }
.wa-float svg { width: 28px; height: 28px; flex: none; }
@media (max-width: 600px) {
  .brand { gap: 10px; }
  .brand-mark { height: 46px; padding: 3px 6px; }
  .brand-mark img { height: 38px; }
  .brand-name { font-size: 18px; }
  .brand-sub { font-size: 12px; }
  .nav-toggle { padding: 10px 12px; }
  .wa-float { width: 60px; padding: 0; justify-content: center; }
  .wa-float .wa-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .hero-actions .btn, .cta-actions .btn { flex: 1 1 100%; }
  .hero-art { opacity: .45; }
}
/* keep page content clear of the floating button at the very bottom */
.site-footer { padding-bottom: 96px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
