:root {
  --ink: #1a1d23;
  --ink-soft: #4a5160;
  --paper: #ffffff;
  --paper-soft: #f6f7f9;
  --line: #e4e7ec;
  --brand-yellow: #f5b400;
  --brand-black: #16181d;
  --radius: 10px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
p { margin: 0 0 1em; color: var(--ink-soft); }

/* Top bar */
.topbar {
  background: var(--brand-black);
  color: #fff;
  font-size: .85rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar a { opacity: .9; }
.topbar a:hover { opacity: 1; }
.topbar .sep { opacity: .4; margin: 0 8px; }

/* Header / nav */
header.site {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.4rem; letter-spacing: -.02em; }
.logo-img { height: 36px; width: auto; display: block; }
.logo-img--footer { height: 32px; }
.logo small { display: block; font-weight: 500; font-size: .6rem; letter-spacing: .08em; color: var(--ink-soft); text-transform: uppercase; }
.navlinks { display: flex; gap: 22px; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.navlinks a { padding: 6px 0; border-bottom: 2px solid transparent; }
.navlinks a:hover, .navlinks a.active { border-bottom-color: var(--brand-yellow); }
.nav-cta {
  background: var(--brand-black);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .9rem;
  white-space: nowrap;
}
.nav-cta:hover { background: #2a2e36; }
.navtoggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--paper-soft), var(--paper));
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--line);
}

/* Hero with video background */
.hero--video {
  position: relative;
  overflow: hidden;
  padding: 96px 0 84px;
  border-bottom: none;
  background: var(--brand-black);
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22,24,29,.88), rgba(22,24,29,.78) 45%, rgba(22,24,29,.92));
  z-index: 1;
}
.hero--video .hero-grid { position: relative; z-index: 2; }
.hero--video .eyebrow { background: rgba(245,180,0,.15); color: var(--brand-yellow); }
.hero--video h1 { color: #fff; }
.hero--video p.lead { color: #d7d9de; }
.hero--video .btn-outline { border-color: #fff; color: #fff; }
.hero--video .btn-outline:hover { background: #fff; color: var(--brand-black); }
.hero--video .accred-pill { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: #e4e7ec; }
.hero--video .hero-card {
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.14);
}
.hero--video .hero-card .stat { border-bottom-color: rgba(255,255,255,.14); }
.hero .eyebrow {
  display: inline-block;
  background: #fff4d6;
  color: #8a6400;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero p.lead { font-size: 1.15rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary { background: var(--brand-yellow); color: var(--brand-black); }
.btn-primary:hover { background: #e0a600; }
.btn-outline { border-color: var(--brand-black); color: var(--brand-black); }
.btn-outline:hover { background: var(--brand-black); color: #fff; }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #1fb858; }

.accred-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.accred-pill {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.hero-card {
  background: var(--brand-black);
  color: #fff;
  border-radius: 16px;
  padding: 28px;
}
.hero-card .stat { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.hero-card .stat:last-child { border-bottom: 0; }
.hero-card .stat .num { font-weight: 800; color: var(--brand-yellow); }

/* Section */
section.block { padding: 64px 0; }
section.block.soft { background: var(--paper-soft); }
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head .kicker { color: #8a6400; font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }

/* Service / course grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  height: 100%;
}
.card .icon { font-size: 1.8rem; margin-bottom: 14px; }
.card h3 { font-size: 1.1rem; }
.card ul { margin: 0; padding-left: 1.1em; color: var(--ink-soft); font-size: .92rem; }

/* Course card */
.course-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.course-card .thumb {
  height: 120px;
  background: linear-gradient(135deg, var(--brand-black), #2d313a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-yellow);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: .04em;
}
.course-card .body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.course-card .tag {
  display: inline-block;
  background: #fff4d6;
  color: #8a6400;
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  width: fit-content;
}
.course-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.course-card .meta { font-size: .82rem; color: var(--ink-soft); margin-bottom: 14px; }
.course-card .cta-row { margin-top: auto; display: flex; justify-content: space-between; align-items: center; }
.course-card .price { font-weight: 800; }

/* Filters */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-pill {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
}
.filter-pill.active, .filter-pill:hover { background: var(--brand-black); color: #fff; border-color: var(--brand-black); }

/* Calendar table */
table.cal { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.cal th, table.cal td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: .92rem; }
table.cal th { background: var(--paper-soft); text-transform: uppercase; font-size: .72rem; letter-spacing: .04em; color: var(--ink-soft); }
table.cal tr:last-child td { border-bottom: 0; }
.seats-left { color: #b5500a; font-weight: 700; }
.seats-ok { color: #1a7f4f; font-weight: 700; }

/* Highfield accreditation page */
.highfield-badge {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 18px;
}
.highfield-badge img { height: 44px; width: auto; }
.highfield-badge .meta { font-size: .85rem; color: var(--ink-soft); }
.highfield-badge .meta strong { color: var(--ink); }
.cert-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(20,22,28,.08);
}
.cert-frame img { display: block; width: 100%; }
.qual-section { margin-top: 48px; }
.qual-section h2 { font-size: 1.3rem; margin-bottom: 4px; }
.qual-section .qual-note { font-size: .88rem; margin-bottom: 16px; }
table.qual { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.qual th, table.qual td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: .9rem; }
table.qual th { background: var(--paper-soft); text-transform: uppercase; font-size: .7rem; letter-spacing: .04em; color: var(--ink-soft); }
table.qual tr:last-child td { border-bottom: 0; }
table.qual td:first-child { font-weight: 700; white-space: nowrap; color: var(--ink); }
.sector-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 28px; }
.sector-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  scroll-margin-top: 90px;
}
.sector-card .panel {
  height: 130px;
  background: linear-gradient(135deg, var(--brand-black), #2d313a);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  color: var(--brand-yellow, #f2c200);
}
.sector-card .panel .picon { width: 48px; height: 48px; }
.panel--food { background: linear-gradient(135deg, #1f2a1f, #3a4d33); }
.panel--haccp { background: linear-gradient(135deg, #1f2430, #35445c); }
.panel--hs { background: linear-gradient(135deg, #2a2210, #5c4a1a); }
.panel--fire { background: linear-gradient(135deg, #3a1414, #7a2b1a); }
.panel--firstaid { background: linear-gradient(135deg, #2a1414, #6b1f1f); }
.panel--audit { background: linear-gradient(135deg, #14202a, #1f3c4d); }
.panel--facilities { background: linear-gradient(135deg, #13242a, #1f4d57); }
.sector-card .body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.sector-card h2 { font-size: 1.2rem; margin-bottom: 6px; }
.sector-card .sector-note { font-size: .85rem; margin-bottom: 16px; }
.qual-list { border-top: 1px solid var(--line); margin-top: 4px; }
.qual-list .row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.qual-list .row:last-child { border-bottom: 0; }
.qual-list .lvl {
  flex: 0 0 auto;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 11px;
  font-size: .72rem;
  font-weight: 700;
  color: var(--ink-soft);
  white-space: nowrap;
}
.qual-list .title { font-size: .86rem; flex: 1 1 180px; }
.qual-list .price { flex: 0 0 auto; font-weight: 700; font-size: .85rem; color: var(--brand-black); white-space: nowrap; }
.qual-list .enquire {
  flex: 0 0 auto;
  background: #e8157a;
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s ease;
}
.qual-list .enquire:hover { background: #c20f65; }
.sector-card.full { grid-column: 1 / -1; }
.sector-card.full .qual-list { column-count: 2; column-gap: 32px; border-top: 0; }
.sector-card.full .qual-list .row { break-inside: avoid; border-top: 1px solid var(--line); }
.sector-card.full .qual-list .row:first-child { border-top: 0; }
@media (max-width: 880px) {
  .sector-grid { grid-template-columns: 1fr; }
  .sector-card.full .qual-list { column-count: 1; }
}

.sector-nav { display: flex; gap: 10px; flex-wrap: wrap; margin: 24px 0 8px; }
.sector-nav a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: .82rem;
  font-weight: 600;
}
.sector-nav a:hover { background: var(--brand-black); color: #fff; border-color: var(--brand-black); }
.disclaimer-box {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand-yellow);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: .85rem;
  color: var(--ink-soft);
  margin: 28px 0;
}

/* Course detail */
.detail-hero { background: var(--brand-black); color: #fff; padding: 48px 0; }
.detail-hero .tag { background: var(--brand-yellow); color: var(--brand-black); }
.detail-hero p.lead { color: #c9ccd3; }
.detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: start; }
.detail-grid .sidebar { position: sticky; top: 90px; }
.sidebar-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.sidebar-card .price { font-size: 1.8rem; font-weight: 800; margin-bottom: 4px; }
.breadcrumb { font-size: .82rem; color: #c9ccd3; margin-bottom: 14px; }
.breadcrumb a { color: #fff; opacity: .8; }
.module-list { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.module-list .module { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.module-list .module:last-child { border-bottom: 0; }
.module-list .module .num { color: var(--brand-yellow); background: var(--brand-black); width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 700; margin-right: 10px; }

/* Form */
form.enquiry { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; max-width: 560px; }
form.enquiry label { display: block; font-weight: 700; font-size: .85rem; margin: 16px 0 6px; }
form.enquiry label:first-child { margin-top: 0; }
form.enquiry input, form.enquiry select, form.enquiry textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: .95rem;
  font-family: inherit;
}
form.enquiry textarea { resize: vertical; min-height: 100px; }
form.enquiry .btn { margin-top: 20px; width: 100%; justify-content: center; border: none; }
.form-note { font-size: .8rem; color: var(--ink-soft); margin-top: 12px; }

/* Footer */
footer.site { background: var(--brand-black); color: #c9ccd3; padding: 48px 0 24px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
footer.site h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin-bottom: 8px; font-size: .88rem; }
footer.site a:hover { color: var(--brand-yellow); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 20px; font-size: .8rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* WhatsApp floating button */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25D366;
  color: #fff;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  z-index: 100;
}
.wa-float:hover { transform: scale(1.06); }

/* Breadcrumb on light sections */
.crumb-light { font-size: .85rem; color: var(--ink-soft); margin-bottom: 16px; }
.crumb-light a { color: var(--ink-soft); font-weight: 600; }
.crumb-light a:hover { color: var(--brand-black); }

@media (max-width: 880px) {
  .hero-grid, .detail-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .navlinks { display: none; }
  .navtoggle { display: block; }
}
@media (max-width: 560px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  table.cal { font-size: .82rem; }
}
