/* ==========================================================================
   BOY-AUTO AUTOMOTIVE TRAINING SCHOOL — stylesheet
   Design language: workshop steel + spec-plate typography.
   Not a SaaS template: sharp edges, riveted panels, plate-strip branding.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Archivo:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  --ink: #15181b;
  --ink-soft: #2a2f34;
  --paper: #edeae2;
  --paper-deep: #e2ddd0;
  --steel: #3c4650;
  --steel-dark: #262e35;
  --steel-light: #7c8892;
  --signal: #0062b9;
  --signal-dark: #00497e;
  --caution: #f2a900;
  --white: #ffffff;
  --line: rgba(21, 24, 27, 0.14);
  --line-on-dark: rgba(255, 255, 255, 0.16);

  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Archivo', 'Helvetica Neue', Arial, sans-serif;

  --max: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  margin: 0 0 0.5em;
  letter-spacing: 0.002em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p { margin: 0 0 1em; max-width: 62ch; }

a { color: inherit; }

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 26px;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--white);
}
.btn-primary:hover { background: var(--signal-dark); border-color: var(--signal-dark); }

.btn-ghost-dark { border-color: var(--ink); color: var(--ink); }
.btn-ghost-dark:hover { background: var(--ink); color: var(--paper); }

.btn-ghost-light { border-color: rgba(255,255,255,0.55); color: var(--white); }
.btn-ghost-light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, button:focus-visible {
  outline: 3px solid var(--caution);
  outline-offset: 2px;
}

/* ---------- header / nav ---------- */

.hazard-strip {
  height: 7px;
  background: repeating-linear-gradient(
    -45deg,
    var(--ink) 0, var(--ink) 14px,
    var(--caution) 14px, var(--caution) 28px
  );
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  border-bottom: 3px solid var(--signal);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--white);
}

.brand-logo {
  height: 46px;
  width: auto;
  display: block;
}

@media (max-width: 420px) {
  .brand-logo { height: 38px; }
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 16px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.main-nav a:hover { color: var(--caution); }
.main-nav a.active { border-color: var(--signal); color: var(--white); }

.main-nav .btn { margin-left: 12px; padding: 10px 20px; }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--paper);
  color: var(--paper);
  width: 44px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

@media (max-width: 900px) {
  .main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--ink);
    flex-direction: column;
    align-items: stretch;
    border-bottom: 3px solid var(--signal);
    padding: 8px 0 18px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px var(--gutter); border-bottom: 1px solid var(--line-on-dark); }
  .main-nav .btn { margin: 12px var(--gutter) 0; justify-content: center; }
  .nav-toggle { display: flex; }
}

/* ---------- hero ---------- */

.hero {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  align-items: stretch;
  padding-top: 0;
  padding-bottom: 0;
}

.hero-copy {
  padding: clamp(48px, 8vw, 96px) var(--gutter) clamp(56px, 8vw, 96px) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero h1 { color: var(--white); }

.hero-lede {
  color: var(--steel-light);
  font-size: 1.15rem;
  max-width: 46ch;
  margin-top: 18px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

.hero-panel {
  background-color: var(--steel-dark);
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 5px);
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
  padding: clamp(40px, 6vw, 64px) clamp(28px, 5vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--line-on-dark);
}

.hero-panel h2 {
  font-size: 1.15rem;
  color: var(--caution);
  text-transform: none;
  margin-bottom: 22px;
}

.trade-list { list-style: none; margin: 0; padding: 0; }
.trade-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 13px 0;
  padding-left: 18px;
  position: relative;
  border-bottom: 1px solid var(--line-on-dark);
  color: var(--paper);
  font-weight: 600;
}
.trade-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 8px;
  height: 3px;
  background: var(--caution);
}
.trade-list li:last-child { border-bottom: none; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-copy { padding: 44px var(--gutter) 36px; }
  .hero-panel { clip-path: none; padding: 36px var(--gutter); border-left: none; border-top: 1px solid var(--line-on-dark); }
}

/* ---------- section scaffolding ---------- */

.section { padding: clamp(56px, 9vw, 108px) 0; }
.section-tight { padding: clamp(40px, 6vw, 64px) 0; }
.section-dark {
  background-color: var(--ink);
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 5px);
  color: var(--paper);
}
.section-steel {
  background-color: var(--steel);
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 5px);
  color: var(--paper);
}
.section-deep { background: var(--paper-deep); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.section-head p { margin: 10px 0 0; color: var(--steel); }
.section-dark .section-head p, .section-steel .section-head p { color: var(--steel-light); }

/* ---------- brand strip ---------- */

.brand-strip {
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 40px 0;
}
.brand-strip .strip-label {
  color: var(--steel);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 22px;
}
.brand-logo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  overflow: hidden;
}
@media (max-width: 560px) {
  .brand-logo-tile { height: 92px; padding: 10px 12px; }
  .brand-logo-tile img { max-height: 44px; }
}
.brand-logo-tile {
  background: var(--white);
  height: 128px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.brand-logo-tile img {
  max-height: 66px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ---------- program bay cards ---------- */

.bay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.bay-card {
  background: var(--paper);
  padding: 30px 26px;
  position: relative;
}

.bay-card::before {
  content: "";
  position: absolute;
  top: 14px; left: 14px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--steel-light);
  box-shadow: calc(100% - 28px) 0 0 var(--steel-light);
}

.bay-card .bay-icon { margin: 18px 0 20px; }

.bay-card h3 { margin-bottom: 10px; }
.bay-card p { font-size: 0.95rem; color: var(--steel); margin-bottom: 0; }

.section-dark .bay-card, .section-steel .bay-card { background: var(--steel-dark); }
.section-dark .bay-card p, .section-steel .bay-card p { color: var(--steel-light); }

.program-photo {
  border: 1px solid var(--line);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.program-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.program-photo-caption {
  border: 1px solid var(--line);
  border-top: none;
  background: var(--paper-deep);
  padding: 10px 16px;
  font-size: 0.82rem;
  color: var(--steel);
}

/* ---------- info / split rows ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

.stat-plate {
  border: 1px solid var(--line);
  padding: 22px 24px;
  background: var(--paper-deep);
}
.stat-plate .stat-num {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--signal);
  display: block;
}
.stat-plate .stat-label { font-size: 0.9rem; color: var(--steel); }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
@media (max-width: 600px) { .stat-row { grid-template-columns: 1fr; } }

/* ---------- location cards ---------- */

.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.location-card {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 28px;
  border-top: 4px solid var(--signal);
}
.location-card h3 { margin-bottom: 12px; }
.location-card .loc-tag {
  display: inline-block;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--signal);
  margin-bottom: 10px;
}
.location-card address { font-style: normal; color: var(--steel); line-height: 1.6; }

/* ---------- forms ---------- */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
}
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }

.field label { font-weight: 700; font-size: 0.9rem; }
.field .hint { font-weight: 500; font-size: 0.8rem; color: var(--steel-light); }

.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 13px 14px;
  border: 1.5px solid var(--steel-light);
  background: var(--white);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--ink);
}
.field textarea { resize: vertical; min-height: 110px; }

fieldset { border: 1.5px solid var(--steel-light); padding: 16px; margin: 0; }
fieldset legend { font-weight: 700; padding: 0 8px; }
.radio-row { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 6px; }
.radio-row label { display: flex; align-items: center; gap: 8px; font-weight: 500; }

.form-note {
  margin-top: 22px;
  padding: 16px 18px;
  background: var(--paper-deep);
  border-left: 4px solid var(--caution);
  font-size: 0.9rem;
  color: var(--steel);
}

.form-success {
  display: none;
  padding: 40px;
  text-align: center;
  border: 2px solid var(--signal);
  background: var(--paper-deep);
}
.form-success h3 { margin-bottom: 10px; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--steel-light);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-on-dark);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-grid h4 { color: var(--white); font-size: 1rem; margin-bottom: 16px; }
.footer-grid p, .footer-grid address { font-size: 0.92rem; line-height: 1.7; font-style: normal; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--steel-light); text-decoration: none; }
.footer-grid a:hover { color: var(--caution); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 24px;
  font-size: 0.82rem;
}

/* ---------- page hero (interior pages) ---------- */

.page-hero {
  background: var(--ink);
  color: var(--white);
  padding: 56px 0 48px;
  border-bottom: 3px solid var(--signal);
}
.page-hero p { color: var(--steel-light); margin-top: 14px; }

/* ---------- utility ---------- */

.center { text-align: center; }
.mt-lg { margin-top: 48px; }
.cta-band {
  background: var(--signal);
  color: var(--white);
  padding: 56px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.85); margin: 0 auto 26px; }

/* ---- Public "Our Students" page ---- */
.student-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(210px, 1fr)); gap:20px; }
.student-card { background:var(--paper); border:1px solid var(--line); border-top:3px solid var(--signal); }
.student-card .student-pic { aspect-ratio:1/1; background:var(--paper-deep); overflow:hidden; }
.student-card .student-pic img { width:100%; height:100%; object-fit:cover; display:block; }
.student-card .student-pic .initials { width:100%; height:100%; display:flex; align-items:center; justify-content:center; font-family:var(--font-display); font-size:2.6rem; color:var(--steel); }
.student-card .student-info { padding:14px 16px 16px; }
.student-card h3 { font-size:1.05rem; margin:0 0 4px; }
.student-card .student-program { font-size:0.88rem; color:var(--signal); font-weight:700; margin:0; }
.student-card .student-batch { font-size:0.8rem; color:var(--steel); margin:4px 0 0; }