/* Shared stylesheet - linked from every page. */

/* - Design tokens - */
:root {
  --navy: #0B1E36;
  --navy-light: #132B4C;
  --navy-dark: #071426;
  --ink: #0A0A0C;
  /* Darkened from the original #12B3A8 (2.6:1 on white, fails WCAG
     AA) to a value that clears 4.5:1 for small text while staying
     recognizably teal. */
  --teal: #0B7A72;
  --teal-light: #3FD4C8;
  --whatsapp: var(--teal-light);
  --paper: #F7F7F5;
  --slate: #5B6472;
  --slate-light: #8A93A0;

  --font-display: "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "Inter", sans-serif;
}

/* - Skip link -
   Hidden until keyboard-focused; lets a keyboard/screen-reader
   user jump past the nav straight to the page content instead of
   tabbing through every nav link first. */
.skip-link {
  position: absolute;
  top: -3rem;
  left: 0;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
}
.skip-link:focus {
  top: 0;
}

/* - Reset & base - */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  line-height: 1.15;
}
p {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
ul, ol {
  margin: 0;
  padding: 0;
}
img {
  max-width: 100%;
  display: block;
}
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* - Layout helpers - */
.container {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 640px) {
  .container { padding: 0 2rem; }
}
.section {
  padding: 1.75rem 0;
}
@media (min-width: 640px) {
  .section { padding: 2.5rem 0; }
}
.text-center { text-align: center; }

/* - Buttons - */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: filter 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--navy-dark);
}
.btn-whatsapp:hover { filter: brightness(1.05); }
.btn-primary {
  background: var(--navy);
  color: #fff;
}
.btn-primary:hover { background: var(--navy-light); }
.btn-light {
  background: #fff;
  color: var(--navy);
}
.btn-light:hover { background: rgba(255,255,255,0.9); }
.btn-outline { background: #fff; color: var(--navy); border-color: rgba(11,30,54,0.25); }
.btn-outline:hover { border-color: var(--navy); }
.btn-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .btn-row { flex-direction: row; flex-wrap: wrap; }
}
.btn-row.center { justify-content: center; }

/* - Header / nav - */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11,30,54,0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 4.75rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
}
.brand-logo {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0.25rem;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
  object-fit: contain;
}
.nav-links {
  display: none;
  align-items: center;
  gap: 1.25rem;
}
.nav-links a {
  white-space: nowrap;
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--teal-light); }
.nav-cta {
  display: none;
  align-items: center;
  gap: 0.5rem;
}
.nav-cta .btn {
  white-space: nowrap;
  padding: 0.4375rem 0.875rem;
  font-size: 0.8125rem;
}
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.15);
  background: transparent;
  color: #fff;
  font-size: 1.1rem;
}
.nav-menu-mobile {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  background: var(--navy);
}
.nav-menu-mobile.open { display: flex; }
.nav-menu-mobile a:not(.btn) {
  padding: 0.75rem 0.5rem;
  border-radius: 6px;
  color: rgba(255,255,255,0.85);
}
.nav-menu-mobile a:not(.btn):hover { background: rgba(255,255,255,0.05); }
.nav-menu-mobile .btn-whatsapp,
.nav-menu-mobile .btn-light {
  margin-top: 0.5rem;
  text-align: center;
}

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-cta { display: flex; }
  .nav-toggle { display: none; }
  .nav-menu-mobile { display: none !important; }
}

/* - Hero / PageHero - */
.hero {
  border-bottom: 1px solid rgba(0,0,0,0.05);
  background: var(--navy);
  color: #fff;
  padding: 2rem 0;
}
@media (min-width: 640px) { .hero { padding: 2.75rem 0; } }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--teal-light);
}
.hero h1 {
  margin-top: 0.75rem;
  max-width: 40rem;
  font-size: 1.875rem;
  font-weight: 600;
}
@media (min-width: 640px) { .hero h1 { font-size: 2.25rem; } }
.hero p {
  margin-top: 1rem;
  max-width: 34rem;
  color: rgba(255,255,255,0.7);
}

/* - Page hero (compact title bar for inner pages) - */
.page-hero {
  border-bottom: 1px solid rgba(0,0,0,0.05);
  background: var(--navy);
  color: #fff;
  min-height: 4.75rem;
  display: flex;
  align-items: center;
  padding: 0.75rem 0;
}
.page-hero h1 {
  font-size: 1.5rem;
  font-weight: 700;
}
.page-hero p {
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
}

/* - Cards / grids - */
.grid {
  display: grid;
  gap: 1.25rem;
}
.grid-3 { grid-template-columns: repeat(1, 1fr); }
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  border: 1px solid rgba(0,0,0,0.05);
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.card-link {
  display: block;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.card-link:hover {
  border-color: var(--teal);
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

/* - Service cards (home) - */
.service-card { display: flex; flex-direction: column; }
.service-card .more { margin-top: auto; padding-top: 1rem; font-size: 0.875rem; font-weight: 600; color: var(--navy); }

/* - Abbreviations with a hover explanation (e.g. CRM Prac (SA)) - */
abbr[title] {
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  cursor: help;
}

/* - Text helpers - */
.text-navy { color: var(--navy); }
.text-slate { color: var(--slate); }
.text-teal { color: var(--teal); }
.font-mono { font-family: var(--font-mono); }

/* Recurring heading sizes (page section / sub-section / card
   title). Was previously written out as an inline style at each
   of ~25 call sites; three classes replace that repetition. */
.h2-lg { font-size: 1.5rem; font-weight: 600; }
.h2-md { font-size: 1.25rem; font-weight: 600; }
.h2-sm { font-size: 1.125rem; font-weight: 600; }
.section-sm { padding: 1.25rem 0; }
.tag {
  display: inline-block;
  border-radius: 999px;
  background: rgba(11,30,54,0.05);
  padding: 0.25rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--navy);
}

/* - Sections with alternating backgrounds - */
.bg-white { background: #fff; }
.border-top { border-top: 1px solid rgba(0,0,0,0.05); }
.border-bottom { border-bottom: 1px solid rgba(0,0,0,0.05); }

/* - Curriculum (service page cards) - */
.curriculum {
  margin-top: 1.5rem;
  border-top: 1px solid rgba(0,0,0,0.05);
  padding-top: 1.25rem;
}
.curriculum-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}

/* - Numbered list - */
.numbered-list {
  list-style: none;
  margin-top: 0.75rem;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.5rem;
  counter-reset: step;
}
.numbered-list li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 0.8125rem;
  color: var(--slate);
}
.numbered-list li::before {
  counter-increment: step;
  content: counter(step) ".";
  position: absolute;
  left: 0;
  font-weight: 600;
  color: var(--teal);
}
.curriculum-grid {
  column-gap: 2rem;
}
@media (min-width: 768px) {
  .curriculum-grid {
    grid-template-columns: repeat(2, 1fr);
    padding-left: 1.25rem;
  }
}

/* - Footer - */
.site-footer {
  border-top: 1px solid rgba(0,0,0,0.05);
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
}
.footer-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
  text-align: center;
}
.footer-line a:hover { color: var(--teal-light); }
.footer-sep { color: rgba(255,255,255,0.25); }
@media (max-width: 639px) {
  .footer-line { flex-direction: column; gap: 0.375rem; }
  .footer-line .footer-sep { display: none; }
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 1.125rem 0;
}
.footer-bottom .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
}
@media (min-width: 640px) {
  .footer-bottom .container { flex-direction: row; justify-content: center; }
}

/* - WhatsApp floating button - */
.wa-float {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--whatsapp);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  transition: transform 0.15s ease;
}
.wa-float:hover { transform: scale(1.05); }
.wa-float svg { width: 1.75rem; height: 1.75rem; fill: var(--navy-dark); }
@media (max-width: 639px) {
  .wa-float { width: 3rem; height: 3rem; bottom: 1rem; right: 1rem; }
  .wa-float svg { width: 1.5rem; height: 1.5rem; }
}

/* Floating WhatsApp bubble only where the header buttons are hidden
   behind the menu toggle (phones and tablets). */
@media (min-width: 1024px) {
  .wa-float { display: none; }
}
