/* ===== DELTAWEST TRAINING ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red: #E31E24;
  --red-dark: #b81519;
  --black: #000000;
  --dark: #1a1a1a;
  --dark2: #222222;
  --grey: #888;
  --grey-light: #f4f4f4;
  --white: #ffffff;
  --font: Arial, sans-serif;
  --radius: 4px;
  --shadow: 0 4px 20px rgba(0,0,0,0.22);
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--white); color: var(--black); line-height: 1.6; font-size: 16px; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ================================================================
   HEADER & NAV
   ================================================================ */
.site-header {
  background: var(--black);
  border-bottom: 3px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 80px;
  display: flex;
  align-items: center;
  gap: 0;
}

/* Logo */
.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 40px;
}
.site-logo {
  height: 56px;
  width: auto;
  display: block;
}

/* Nav */
.main-nav {
  flex: 1;
  display: flex;
  align-items: center;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-item > a {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--white);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 10px 14px;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: color 0.18s, background 0.18s;
}
.nav-item > a:hover,
.nav-item > a.active {
  color: var(--red);
  background: rgba(227,30,36,0.1);
}
.caret-icon {
  flex-shrink: 0;
  transition: transform 0.2s;
}
.has-dropdown:hover .caret-icon,
.has-dropdown.open .caret-icon {
  transform: rotate(180deg);
}

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--dark2);
  border-top: 3px solid var(--red);
  min-width: 250px;
  box-shadow: var(--shadow);
  border-radius: 0 0 6px 6px;
  z-index: 500;
  list-style: none;
  padding: 6px 0;
}
.dropdown::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
  background: transparent;
}
.has-dropdown:hover .dropdown { display: block; }
.dropdown li a {
  display: block;
  padding: 11px 20px;
  font-size: 13px;
  color: #cccccc;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.15s, background 0.15s, padding-left 0.15s;
}
.dropdown li:last-child a { border-bottom: none; }
.dropdown li a:hover {
  color: var(--white);
  background: rgba(227,30,36,0.14);
  padding-left: 26px;
}
.dropdown-all a {
  color: var(--red) !important;
  font-weight: 700 !important;
  margin-top: 4px;
  border-top: 1px solid rgba(255,255,255,0.08) !important;
}

/* CTA button in header */
.header-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: var(--white) !important;
  padding: 11px 20px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  margin-left: 20px;
  flex-shrink: 0;
  transition: background 0.18s;
}
.header-cta:hover { background: var(--red-dark); color: var(--white); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 8px 10px;
  margin-left: 16px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.28s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================================================
   RESPONSIVE HEADER
   ================================================================ */
@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .header-inner { padding: 0 20px; height: 68px; }
  .logo-link { margin-right: auto; }
  .site-logo { height: 46px; }

  .main-nav {
    display: none;
    position: absolute;
    top: 71px;
    left: 0;
    right: 0;
    background: var(--dark2);
    border-top: 3px solid var(--red);
    border-bottom: 2px solid rgba(255,255,255,0.06);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0 16px;
    z-index: 999;
  }
  .main-nav.open { display: flex; }
  .nav-list { flex-direction: column; gap: 0; width: 100%; }
  .nav-item > a {
    padding: 14px 24px;
    border-radius: 0;
    font-size: 14px;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .nav-item:last-child > a { border-bottom: none; }

  .dropdown {
    position: static;
    display: none;
    box-shadow: none;
    border-top: none;
    border-radius: 0;
    background: rgba(0,0,0,0.35);
    padding: 0;
    min-width: 0;
  }
  .has-dropdown.open .dropdown { display: block; }
  .has-dropdown:hover .dropdown { display: none; }
  .has-dropdown.open .dropdown { display: block; }
  .dropdown li a {
    padding: 12px 24px 12px 36px;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
  }
  .dropdown li a:hover { padding-left: 42px; }
}

/* ================================================================
   PAGE HERO (inner pages)
   ================================================================ */
.page-hero {
  background: var(--dark);
  color: var(--white);
  padding: 60px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--red);
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(227,30,36,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero h1 { font-size: clamp(28px, 5vw, 48px); font-weight: 900; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 12px; position: relative; }
.page-hero h1 span { color: var(--red); }
.page-hero p { font-size: 17px; color: #ccc; max-width: 640px; margin: 0 auto; position: relative; }
.breadcrumb { font-size: 13px; color: #888; margin-bottom: 16px; position: relative; }
.breadcrumb a { color: #aaa; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span { color: var(--red); }

/* ================================================================
   HOME HERO
   ================================================================ */
.home-hero {
  background: var(--black);
  color: var(--white);
  min-height: 600px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.home-hero .hero-bg {
  position: absolute;
  inset: 0;
  background: url('/images/truck-hero.jpg') center 30% / cover no-repeat;
  opacity: 0.28;
}
.home-hero .hero-content {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 32px;
  z-index: 1;
}
.hero-tag {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 2px;
  margin-bottom: 20px;
}
.home-hero h1 {
  font-size: clamp(32px, 5.5vw, 62px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.05;
  margin-bottom: 20px;
  max-width: 740px;
}
.home-hero h1 span { color: var(--red); }
.home-hero p { font-size: 17px; color: #ccc; max-width: 560px; margin-bottom: 36px; line-height: 1.75; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.18s;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.45); }
.btn-outline:hover { border-color: var(--red); color: var(--red); }
.btn-dark { background: var(--dark); color: var(--white); border-color: var(--dark); }
.btn-dark:hover { background: var(--dark2); color: var(--white); }
.hero-badges { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 44px; }
.hero-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 10px 16px;
}
.hero-badge svg { color: var(--red); flex-shrink: 0; }
.hero-badge span { font-size: 13px; color: #ccc; font-weight: 600; }

/* ================================================================
   SECTIONS
   ================================================================ */
.section { padding: 80px 24px; }
.section-dark { background: var(--dark); color: var(--white); }
.section-darker { background: var(--black); color: var(--white); }
.section-grey { background: var(--grey-light); }
.container { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { font-size: clamp(24px, 4vw, 38px); font-weight: 900; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.section-header h2 span { color: var(--red); }
.section-header p { font-size: 15px; color: var(--grey); max-width: 580px; margin: 0 auto; }
.section-dark .section-header p,
.section-darker .section-header p { color: #aaa; }
.divider { width: 52px; height: 4px; background: var(--red); margin: 10px auto 0; }

/* ================================================================
   COURSE CARDS
   ================================================================ */
.courses-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.course-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  border: 1px solid #e8e8e8;
  transition: transform 0.2s, box-shadow 0.2s;
}
.course-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,0.14); }
.card-icon {
  background: var(--dark);
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 3px solid var(--red);
}
.card-icon svg { color: var(--red); }
.card-body { padding: 22px; }
.card-body h3 { font-size: 17px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 8px; color: var(--black); }
.card-body p { font-size: 13.5px; color: #555; line-height: 1.65; margin-bottom: 16px; }
.card-link { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: 0.5px; }
.card-link svg { transition: transform 0.2s; }
.card-link:hover svg { transform: translateX(4px); }
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.tag { font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 2px; background: rgba(227,30,36,0.1); color: var(--red); text-transform: uppercase; letter-spacing: 0.5px; }

/* ================================================================
   FEATURES / WHY CHOOSE
   ================================================================ */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.feature-item { text-align: center; padding: 28px 20px; }
.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.feature-icon svg { color: var(--white); }
.section-dark .feature-item h3,
.section-darker .feature-item h3 { color: var(--white); }
.feature-item h3 { font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 10px; }
.feature-item p { font-size: 13.5px; color: #aaa; line-height: 1.65; }

/* ================================================================
   ACCREDITATION BAR
   ================================================================ */
.accred-bar { background: var(--red); padding: 18px 24px; }
.accred-bar .container { display: flex; align-items: center; justify-content: center; gap: 36px; flex-wrap: wrap; }
.accred-item { display: flex; align-items: center; gap: 8px; color: var(--white); font-size: 13px; font-weight: 700; }
.accred-item svg { color: rgba(255,255,255,0.8); flex-shrink: 0; }

/* ================================================================
   STEPS / PROCESS
   ================================================================ */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; }
.step { padding: 36px 28px; border-right: 1px solid rgba(255,255,255,0.08); }
.step:last-child { border-right: none; }
.step-num { font-size: 44px; font-weight: 900; color: var(--red); opacity: 0.22; line-height: 1; margin-bottom: 12px; font-family: 'Arial Black', Arial, sans-serif; }
.step h3 { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.4px; color: var(--white); margin-bottom: 8px; }
.step p { font-size: 13px; color: #aaa; line-height: 1.65; }

/* ================================================================
   LICENCE TABLE
   ================================================================ */
.licence-table { width: 100%; border-collapse: collapse; margin: 28px 0; }
.licence-table th { background: var(--dark); color: var(--white); padding: 13px 16px; text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 3px solid var(--red); }
.licence-table td { padding: 12px 16px; border-bottom: 1px solid #e8e8e8; font-size: 14px; vertical-align: top; }
.licence-table tr:last-child td { border-bottom: none; }
.licence-table tr:hover td { background: #fafafa; }
.licence-table .licence-type { font-weight: 800; color: var(--red); font-size: 15px; }

/* ================================================================
   STUDENT DOCS
   ================================================================ */
.docs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.doc-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1px solid #e0e0e0;
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 16px 18px;
  transition: box-shadow 0.2s;
}
.doc-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.1); }
.doc-card svg { color: var(--red); flex-shrink: 0; }
.doc-card div { flex: 1; }
.doc-card h4 { font-size: 13.5px; font-weight: 700; margin-bottom: 3px; color: var(--black); }
.doc-card p { font-size: 12px; color: #777; margin-bottom: 4px; }
.doc-card a { font-size: 12px; color: var(--red); font-weight: 700; }

/* ================================================================
   CONTENT SECTIONS
   ================================================================ */
.content-section { padding: 64px 24px; }
.content-section .container { max-width: 900px; }
.content-section h2 { font-size: 26px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 14px; }
.content-section h2 span { color: var(--red); }
.content-section h3 { font-size: 19px; font-weight: 700; margin: 32px 0 12px; color: var(--dark); }
.content-section p { font-size: 15px; line-height: 1.8; color: #444; margin-bottom: 14px; }
.tick-list { margin: 12px 0 18px 4px; }
.tick-list li { padding: 5px 0 5px 28px; position: relative; font-size: 15px; color: #444; }
.tick-list li::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; background: var(--red); border-radius: 50%; }
.tick-list li::after { content: '✓'; position: absolute; left: 3px; top: 50%; transform: translateY(-50%); font-size: 10px; color: var(--white); font-weight: 900; }
.info-box { background: var(--dark); color: var(--white); border-left: 4px solid var(--red); padding: 18px 22px; border-radius: var(--radius); margin: 22px 0; }
.info-box h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; color: var(--red); margin-bottom: 7px; }
.info-box p { font-size: 13.5px; color: #ccc; margin: 0; line-height: 1.65; }

/* ================================================================
   CTA STRIP
   ================================================================ */
.cta-strip { background: var(--red); padding: 56px 24px; text-align: center; color: var(--white); }
.cta-strip h2 { font-size: clamp(22px, 4vw, 34px); font-weight: 900; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.cta-strip p { font-size: 15px; color: rgba(255,255,255,0.85); margin-bottom: 26px; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ================================================================
   CONTACT
   ================================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.contact-form .form-group { margin-bottom: 18px; }
.contact-form label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; color: var(--black); }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%; padding: 11px 14px; border: 2px solid #ddd;
  border-radius: var(--radius); font-size: 14px; font-family: var(--font);
  transition: border-color 0.2s; background: var(--white); color: var(--black);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: none; border-color: var(--red); }
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form .btn { width: 100%; justify-content: center; margin-top: 6px; }
.form-msg { padding: 11px 15px; border-radius: var(--radius); font-size: 13.5px; font-weight: 600; margin-bottom: 14px; display: none; }
.form-msg.success { background: #e6f4ea; color: #2e7d32; border: 1px solid #a5d6a7; display: block; }
.form-msg.error { background: #fce8e8; color: #c62828; border: 1px solid #ef9a9a; display: block; }
.contact-info h3 { font-size: 20px; font-weight: 900; text-transform: uppercase; margin-bottom: 22px; }
.contact-info-item { display: flex; gap: 14px; margin-bottom: 22px; }
.contact-info-item .icon { width: 42px; height: 42px; background: var(--red); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info-item .icon svg { color: var(--white); }
.contact-info-item h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--grey); margin-bottom: 3px; }
.contact-info-item p, .contact-info-item a { font-size: 14.5px; color: var(--black); font-weight: 500; }
.contact-info-item a:hover { color: var(--red); }
.locations-list { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.locations-list span { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #555; }
.locations-list span::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--red); flex-shrink: 0; }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer { background: var(--black); color: #ccc; padding: 56px 24px 0; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 44px; }
.footer-logo { height: 60px; width: auto; margin-bottom: 14px; }
.footer-brand p { font-size: 13px; color: #888; line-height: 1.7; max-width: 260px; margin-bottom: 14px; }
.footer-accred { display: flex; gap: 7px; flex-wrap: wrap; }
.badge { display: inline-block; font-size: 10.5px; font-weight: 700; padding: 4px 9px; border: 1px solid rgba(227,30,36,0.4); color: var(--red); border-radius: 2px; }
.footer-col h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--white); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--red); }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul a { font-size: 13px; color: #888; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--red); }
.contact-list li { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 11px; }
.contact-list svg { color: var(--red); flex-shrink: 0; margin-top: 2px; }
.contact-list a, .contact-list span { font-size: 13px; color: #888; }
.contact-list a:hover { color: var(--red); }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding: 18px 0; border-top: 1px solid rgba(255,255,255,0.07); text-align: center; }
.footer-bottom p { font-size: 12px; color: #555; }

/* ================================================================
   RESPONSIVE — everything below 960px handled in header section above
   ================================================================ */
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .hero-badges { gap: 10px; }
}
@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; }
  .accred-bar .container { gap: 16px; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .step:last-child { border-bottom: none; }
  .home-hero .hero-content { padding: 60px 20px; }
}
