/* ABC Training & Staffing Solutions — main stylesheet
   Brand colours: change these two lines to re-colour the whole site. */
:root {
  --navy: #12304f;
  --navy-deep: #0b2038;
  --orange: #35aee2;   /* ABC logo blue (accent) */
  --orange-dark: #1784bd;
  --ink: #1b2430;
  --muted: #5b6676;
  --line: #e3e7ec;
  --bg: #ffffff;
  --bg-soft: #f5f3ef;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(11, 32, 56, .10);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }
h1, h2, h3, h4 { font-family: "Barlow Semi Condensed", "Barlow", sans-serif; line-height: 1.15; margin: 0 0 .5em; color: var(--navy-deep); }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 76px 0; }
.section.soft { background: var(--bg-soft); }
.section.navy { background: var(--navy); color: #dbe5ef; }
.section.navy h2, .section.navy h3 { color: #fff; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; color: var(--orange-dark); margin-bottom: .6em; display: block; }
.section.navy .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--orange); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 720px; }
.section.navy .lead { color: #c3d1df; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid transparent; transition: .2s; cursor: pointer; font-size: 1rem; font-family: inherit; }
.btn-primary { background: var(--orange); color: var(--navy-deep); }
.btn-primary:hover { background: var(--orange-dark); color: #fff; }
.btn-outline { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-outline:hover { background: #fff; color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }
.btn-ghost { border-color: var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* Top bar + header */
.topbar { background: var(--navy-deep); color: #b9c8d8; font-size: .88rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 12px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 56px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 500; padding: 8px 12px; border-radius: 8px; font-size: .98rem; }
.nav a:hover, .nav a.active { color: var(--navy); background: #eef2f6; }
.nav .btn { margin-left: 8px; padding: 10px 18px; }
.nav .btn-primary { color: var(--navy-deep); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* Hero */
.hero { position: relative; color: #fff; background: var(--navy-deep); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .35; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,32,56,.96) 0%, rgba(11,32,56,.75) 55%, rgba(11,32,56,.35) 100%); }
.hero .container { position: relative; z-index: 2; padding-top: 96px; padding-bottom: 96px; display: grid; grid-template-columns: 1.25fr .9fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; }
.hero p { color: #d2dce7; font-size: 1.15rem; max-width: 600px; }
.hero-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); padding: 28px; backdrop-filter: blur(4px); }
.hero-card h3 { color: #fff; font-size: 1.1rem; }
.steps-mini { list-style: none; padding: 0; margin: 0; }
.steps-mini li { display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.12); color: #e4ebf2; }
.steps-mini li:last-child { border-bottom: 0; }
.steps-mini b { flex: 0 0 30px; height: 30px; border-radius: 50%; background: var(--orange); color: var(--navy-deep); display: grid; place-items: center; font-size: .9rem; }

.page-hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.page-hero .hero-bg { opacity: .25; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,32,56,.95), rgba(11,32,56,.6)); }
.page-hero .container { position: relative; z-index: 2; padding-top: 72px; padding-bottom: 72px; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #d2dce7; font-size: 1.15rem; max-width: 680px; }

/* Stats strip */
.stats { background: var(--orange); }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 26px; padding-bottom: 26px; }
.stat strong { display: block; font-family: "Barlow Semi Condensed", sans-serif; font-size: 1.9rem; color: var(--navy-deep); line-height: 1.1; }
.stat span { color: var(--navy-deep); font-size: .95rem; font-weight: 500; }

/* Grids & cards */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-img { aspect-ratio: 16/10; object-fit: cover; width: 100%; background: #dfe5ec; }
.card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.card-body p { color: var(--muted); font-size: .98rem; }
.card-body .link { margin-top: auto; font-weight: 600; text-decoration: none; color: var(--navy); }
.card-body .link:hover { color: var(--orange-dark); }
.icon { width: 52px; height: 52px; border-radius: 12px; background: #e2f3fb; color: var(--orange-dark); display: grid; place-items: center; margin-bottom: 14px; }
.icon svg { width: 28px; height: 28px; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: #e8eef5; color: var(--navy); margin-right: 6px; margin-bottom: 8px; }
.tag.online { background: #e1f4e6; color: #1d6b34; }
.tag.practical { background: #e2f3fb; color: #11668f; }
.meta { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.card-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.card-actions .btn { padding: 9px 16px; font-size: .92rem; }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { position: relative; padding-left: 32px; margin-bottom: 10px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b2038' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat; }

/* Learning journey (PADI-style) */
.journey { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; }
.journey .step { background: #fff; border-radius: var(--radius); padding: 24px 20px; border-top: 4px solid var(--orange); box-shadow: var(--shadow); position: relative; }
.section.navy .journey .step { background: #173a5e; box-shadow: none; }
.section.navy .journey .step p { color: #c3d1df; }
.journey .step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; margin-bottom: 12px; }
.section.navy .journey .step::before { background: var(--orange); color: var(--navy-deep); }
.journey .step h3 { font-size: 1.1rem; }
.journey .step p { font-size: .93rem; color: var(--muted); margin: 0; }

/* Module mock-up */
.module-demo { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line); }
.module-demo .bar { background: var(--navy); color: #fff; padding: 12px 18px; display: flex; justify-content: space-between; font-size: .9rem; }
.module-demo .body { padding: 20px; }
.progress { height: 8px; background: #e8edf2; border-radius: 99px; overflow: hidden; margin: 6px 0 16px; }
.progress span { display: block; height: 100%; background: var(--orange); }
.mod-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.mod-row:last-child { border-bottom: 0; }
.status { font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.status.done { background: #e1f4e6; color: #1d6b34; }
.status.now { background: #e2f3fb; color: #11668f; }
.status.lock { background: #eef1f4; color: #7a8594; }

/* Quiz demo */
.quiz { background: #fff; border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.quiz h3 { margin-bottom: 4px; }
.quiz .q { font-weight: 600; margin: 16px 0 10px; }
.quiz label { display: block; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; cursor: pointer; transition: .15s; }
.quiz label:hover { border-color: var(--navy); }
.quiz input { margin-right: 10px; }
.quiz label.correct { border-color: #2e9a4d; background: #ebf8ef; }
.quiz label.wrong { border-color: #c94a3a; background: #fcecea; }
.quiz .feedback { margin-top: 10px; font-weight: 600; min-height: 1.5em; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); }
th { background: #f1f4f7; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
tr:last-child td { border-bottom: 0; }

/* Accreditation */
.accred { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.accred div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 12px; text-align: center; }
.accred strong { display: block; font-family: "Barlow Semi Condensed", sans-serif; font-size: 1.3rem; color: var(--navy); }
.accred span { font-size: .8rem; color: var(--muted); line-height: 1.3; display: block; }

/* FAQ */
details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 10px; }
summary { font-weight: 600; cursor: pointer; color: var(--navy-deep); }
details p { margin: 10px 0 0; color: var(--muted); }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; border-radius: 20px; padding: 46px; display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { color: #c3d1df; margin: 0; }

/* Forms */
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.form input, .form select, .form textarea { width: 100%; padding: 12px 14px; border: 1px solid #cdd5de; border-radius: 10px; font: inherit; margin-bottom: 16px; background: #fff; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--orange); border-color: var(--orange); }
.form .hp { position: absolute; left: -9999px; }
.notice { padding: 14px 18px; border-radius: 10px; margin-bottom: 18px; font-weight: 500; }
.notice.ok { background: #e1f4e6; color: #1d6b34; }
.notice.err { background: #fcecea; color: #9c2b1d; }

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list .icon { margin: 0; flex: 0 0 44px; width: 44px; height: 44px; }
.map { border: 0; width: 100%; height: 320px; border-radius: var(--radius); margin-top: 20px; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #a9b9ca; padding: 64px 0 0; font-size: .95rem; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 14px; }
.site-footer a { color: #d6e0ea; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-logo { width: 260px; max-width: 100%; height: auto; margin-bottom: 16px; background: #fff; border-radius: 12px; padding: 12px 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding: 20px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; }

/* Floating WhatsApp/call button */
.float-call { position: fixed; right: 18px; bottom: 18px; z-index: 60; background: var(--orange); color: var(--navy-deep); border-radius: 999px; padding: 13px 20px; font-weight: 700; text-decoration: none; box-shadow: 0 6px 20px rgba(0,0,0,.25); display: flex; gap: 8px; align-items: center; }
.float-call svg { width: 20px; height: 20px; }

/* Responsive */
@media (max-width: 1080px) {
  .grid-4, .accred { grid-template-columns: repeat(3, 1fr); }
  .journey { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 20px 20px; border-bottom: 1px solid var(--line); display: none; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
  .hero .container, .split { grid-template-columns: 1fr; }
  .hero .container { padding-top: 64px; padding-bottom: 64px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats .container { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .container { padding: 0 16px; }
  .grid-2, .grid-3, .grid-4, .form-row { grid-template-columns: 1fr; }
  .accred, .journey { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 30px 22px; }
  .topbar .hide-sm { display: none; }
  .float-call span { display: none; }
  .brand img { height: 40px; }
}

/* Accreditation logos */
.accred div { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.accred-logo { height: 56px; width: auto; max-width: 100%; object-fit: contain; margin-bottom: 6px; }

/* Home hero logo */
.hero-logo { display: inline-block; background: #fff; border-radius: var(--radius); padding: 16px 22px; margin-bottom: 24px; box-shadow: 0 10px 30px rgba(0,0,0,.25); max-width: 100%; }
.hero-logo img { display: block; height: 130px; width: auto; max-width: 100%; }
@media (max-width: 640px) { .hero-logo { padding: 10px 14px; } .hero-logo img { height: 84px; } }

/* Medical service links */
.card-links { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.card-links a { font-weight: 700; text-decoration: none; }
.card-links a:hover { text-decoration: underline; }
