/* WHSE Training College – temporary site
   Look & feel matched to the draft WordPress (Educamb) site:
   navy header, orange #FCA313 accent, Inter headings, DM Sans body. */

:root {
  --orange: #fca313;
  --orange-dark: #e08e05;
  --navy: #32344b;
  --navy-dark: #26283a;
  --ink: #32344b;
  --text: #676c7c;
  --mint: #eff5f2;
  --line: #e6eaee;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(38, 40, 58, 0.08);
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 600; }
h2 .hl, h1 .hl { color: var(--orange); }

p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 96px 0; }
.section--mint { background: var(--mint); }
.center { text-align: center; }
.lead { font-size: 1.1rem; max-width: 760px; }
.center .lead { margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 10px;
}

/* ---------- Page loader (spinning logo) ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.loader img { width: 160px; height: 160px; }
.loader.hide { opacity: 0; visibility: hidden; pointer-events: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 6px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn .arrow { color: var(--orange); transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn--white { background: var(--white); color: var(--ink); }
.btn--orange { background: var(--orange); color: var(--white); }
.btn--orange .arrow { color: var(--white); }
.btn--orange:hover { background: var(--orange-dark); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--ghost { background: rgba(50,52,75,0.88); color: var(--white); border-color: rgba(255,255,255,0.15); }
.btn--mint { background: var(--mint); color: var(--ink); }

/* ---------- Top bar & header ---------- */
.topbar {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 42px;
  flex-wrap: wrap;
}
.topbar a:hover { color: var(--orange); }
.topbar__items { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar__items span { display: inline-flex; align-items: center; gap: 8px; }
.topbar svg { width: 15px; height: 15px; color: var(--orange); }
.topbar__social { display: inline-flex; padding: 4px; }
.topbar__social:hover svg { color: var(--white); }

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  box-shadow: 0 2px 18px rgba(38,40,58,0.07);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 56px; height: 56px; }
.brand__text { font-family: "Inter", sans-serif; line-height: 1.15; }
.brand__text strong { display: block; color: var(--ink); font-size: 1.15rem; letter-spacing: 0.02em; }
.brand__text small { color: var(--orange); font-weight: 600; font-size: 0.8rem; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav__links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  color: var(--ink);
  font-size: 1rem;
  padding: 6px 0;
  position: relative;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--orange);
  transition: width 0.25s;
}
.nav__links a:hover, .nav__links a.active { color: var(--orange); }
.nav__links a.active::after, .nav__links a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle svg { width: 28px; height: 28px; }

/* ---------- Hero (home) ---------- */
.hero-wrap { background: var(--navy); padding: 0 0 0 0; }
.hero {
  position: relative;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(120deg, rgba(38,40,58,0.55), rgba(38,40,58,0.2)),
    var(--hero-img, radial-gradient(circle at 80% 30%, #4a4d6b 0%, #32344b 55%, #26283a 100%));
  background-size: cover;
  background-position: center right;
}
/* The signature orange arc from the draft site */
.hero::before {
  content: "";
  position: absolute;
  left: -32%;
  top: -40%;
  width: 95%;
  height: 180%;
  border-radius: 50%;
  background: linear-gradient(160deg, #fdb53f 0%, var(--orange) 60%, #f59a08 100%);
  opacity: 0.95;
}
.hero .hero__inner { position: relative; z-index: 2; width: 100%; padding: 90px 20px 120px; }
.hero__content { max-width: 640px; color: var(--white); }
.hero__content h1 { color: var(--white); }
.hero__content .eyebrow { color: rgba(255,255,255,0.9); }
.hero__list { list-style: none; padding: 0; margin: 24px 0 34px; }
.hero__list li { position: relative; padding-left: 22px; margin-bottom: 8px; color: rgba(255,255,255,0.95); }
.hero__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.65em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--white);
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__badge {
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  width: 340px;
  z-index: 1;
  opacity: 0.95;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.35));
}
.hero__badge img { border-radius: 50%; background: #fff; }

.announce {
  position: relative;
  z-index: 3;
  margin-top: -36px;
}
.announce__bar {
  background: var(--white);
  border-radius: 6px;
  box-shadow: var(--shadow);
  padding: 18px 24px;
  text-align: center;
  font-size: 1rem;
}
.announce__bar svg { width: 18px; height: 18px; color: var(--orange); vertical-align: -3px; margin-right: 8px; }
.announce__bar a { color: var(--orange); font-weight: 600; }

/* ---------- Page banner (inner pages) ---------- */
.banner {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 85% 20%, #4a4d6b 0%, var(--navy) 50%, var(--navy-dark) 100%);
  padding: 110px 0 100px;
  color: var(--white);
}
.banner::before {
  content: "";
  position: absolute;
  left: -18%;
  top: -60%;
  width: 60%;
  height: 220%;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0.92;
}
.banner .container { position: relative; z-index: 1; }
.banner h1 { color: var(--white); margin-top: 8px; }
.crumbs { font-size: 0.95rem; color: rgba(255,255,255,0.9); }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { margin: 0 8px; }

/* ---------- Generic grids & cards ---------- */
.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 30px;
  position: relative;
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(38,40,58,0.12); }
.card p:last-child { margin-bottom: 0; }

.icon-circle {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: rgba(252,163,19,0.12);
  color: var(--orange);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.icon-circle svg { width: 30px; height: 30px; }

/* Numbered cards like the draft "Reasons to study" block */
.num-card .num {
  position: absolute;
  right: 26px; top: 18px;
  font-family: "Inter", sans-serif;
  font-size: 4.2rem;
  font-weight: 300;
  color: transparent;
  -webkit-text-stroke: 1px #dde2e8;
  line-height: 1;
}
.num-card .eyebrow { margin-bottom: 4px; }

/* Dark category tiles like the draft "We offer" cards */
.tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(160deg, #4a4d6b, var(--navy-dark));
  color: rgba(255,255,255,0.85);
  padding: 34px 28px 28px;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.25s;
}
.tile:hover { transform: translateY(-4px); }
.tile::after {
  content: "";
  position: absolute;
  right: -60px; bottom: -60px;
  width: 170px; height: 170px;
  border-radius: 50%;
  border: 28px solid rgba(252,163,19,0.12);
}
.tile svg { width: 38px; height: 38px; color: var(--orange); margin-bottom: 16px; }
.tile .eyebrow { color: rgba(255,255,255,0.65); margin-bottom: 2px; }
.tile h3 { color: var(--white); margin-bottom: 10px; }
.tile p { font-size: 0.97rem; margin: 0; }

/* Check list */
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { display: flex; gap: 16px; margin-bottom: 22px; }
.checks .tick {
  flex: 0 0 38px; height: 38px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--orange);
  display: flex; align-items: center; justify-content: center;
}
.checks .tick svg { width: 18px; height: 18px; }
.checks h4 { font-size: 1.1rem; margin-bottom: 4px; }
.checks p { margin: 0; }

.bullets { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 32px; }
.bullets li { break-inside: avoid; position: relative; padding-left: 28px; margin-bottom: 12px; }
.bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.45em;
  width: 16px; height: 16px;
  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='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 10px no-repeat;
}

/* Experience stack (about intro visual) */
.stack { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.stack__box {
  border-radius: var(--radius);
  min-height: 300px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--white);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}
.stack__box--a { background: linear-gradient(170deg, #4a4d6b, var(--navy-dark)); margin-top: 40px; }
.stack__box--a::before {
  content: "";
  position: absolute;
  left: -40%; bottom: -45%;
  width: 120%; height: 90%;
  border-radius: 50%;
  background: var(--orange);
}
.stack__box--b { background: linear-gradient(170deg, var(--navy), var(--navy-dark)); }
.stack__box > * { position: relative; }
.stack__box .big { font-family: "Inter", sans-serif; font-size: 3rem; font-weight: 700; line-height: 1; }
.stack__box .small { font-family: "Inter", sans-serif; font-weight: 600; font-size: 1.05rem; }
.stack__box img { width: 110px; margin-bottom: auto; border-radius: 50%; background: #fff; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat {
  text-align: center;
  padding: 30px 16px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.stat strong {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 2.4rem;
  color: var(--orange);
  line-height: 1.1;
}
.stat span { font-size: 0.95rem; }

/* Timeline */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 6%; right: 6%; top: 32px;
  border-top: 2px dashed #d5dbe2;
}
.timeline__item { text-align: center; position: relative; }
.timeline__dot {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  color: var(--orange);
  font-size: 0.95rem;
}
.timeline__item h4 { margin-bottom: 6px; }
.timeline__item p { font-size: 0.95rem; }

/* Pills (industries / accreditations) */
.pills { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.pill {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 20px;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
}
.section--mint .pill { border-color: transparent; box-shadow: 0 4px 14px rgba(38,40,58,0.05); }

/* Split CTA band (orange / navy) */
.cta-band { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--radius); overflow: hidden; }
.cta-band > div { padding: 60px 48px; text-align: center; color: var(--white); }
.cta-band__orange { background: var(--orange); }
.cta-band__navy { background: var(--navy); }
.cta-band h3 { color: var(--white); font-size: 1.9rem; font-weight: 700; }
.cta-band h3 span { display: block; font-weight: 400; }
.cta-band .eyebrow { color: rgba(255,255,255,0.85); }
.cta-band p { color: rgba(255,255,255,0.9); max-width: 420px; margin: 0 auto 24px; }

/* Feature strip */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature svg { flex: 0 0 34px; width: 34px; height: 34px; color: var(--orange); }
.feature h4 { font-size: 1.05rem; margin-bottom: 2px; }
.feature p { font-size: 0.93rem; margin: 0; }

/* ---------- Contact ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.contact-card { text-align: center; }
.contact-card .icon-circle { margin: 0 auto 18px; }
.contact-card a { color: var(--ink); font-weight: 600; }
.contact-card a:hover { color: var(--orange); }

.form-wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: start; }
.form { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.92rem;
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--mint);
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 13px 16px;
  transition: border-color 0.2s, background 0.2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: var(--white);
}
.form__note { font-size: 0.88rem; margin: 14px 0 0; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.form button[disabled] { opacity: 0.7; cursor: progress; transform: none; }
.form__status {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-radius: 6px;
  font-size: 0.95rem;
  border-left: 4px solid var(--orange);
  background: rgba(252,163,19,0.1);
  color: var(--ink);
}
.form__status--ok { border-left-color: #2e9d5b; background: rgba(46,157,91,0.1); }
.form__status--error { border-left-color: #c0392b; background: rgba(192,57,43,0.08); }

.branch { border-top: 4px solid var(--orange); display: flex; flex-direction: column; }
.branch address { font-style: normal; margin-bottom: 14px; }
.branch__phone a { font-family: "Inter", sans-serif; font-weight: 600; color: var(--ink); }
.branch__phone a:hover, .branch__map:hover { color: var(--orange); }
.branch__map {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--orange-dark);
}
.branch .tag {
  display: inline-block;
  background: rgba(252,163,19,0.14);
  color: var(--orange-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

/* ---------- Footer ---------- */
.footer { background: var(--mint); padding: 80px 0 0; font-size: 0.97rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer h4 { font-size: 1.1rem; margin-bottom: 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; }
.footer li strong { color: var(--ink); font-weight: 600; }
.footer a:hover { color: var(--orange); }
.footer .brand { margin-bottom: 18px; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact svg { flex: 0 0 18px; width: 18px; height: 18px; color: var(--orange); margin-top: 4px; }
.footer__bottom {
  margin-top: 60px;
  border-top: 1px solid #dbe4df;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.9rem;
}

.to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 50px; height: 50px;
  border: 1px solid var(--orange);
  background: var(--white);
  color: var(--orange);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 40;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero__badge { width: 260px; right: 3%; }
  .grid--4, .features, .stats, .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
    box-shadow: 0 12px 20px rgba(38,40,58,0.08);
  }
  .nav.open { max-height: 400px; padding: 10px 20px 22px; }
  .nav__links { flex-direction: column; gap: 0; }
  .nav__links a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav__links a::after { display: none; }
  .nav .btn { margin-top: 16px; justify-content: center; }

  .hero__badge { display: none; }
  .hero::before { left: -60%; width: 170%; top: -30%; height: 160%; }
  .split, .form-wrap, .cta-band, .grid--3 { grid-template-columns: 1fr; }
  .split { gap: 44px; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .timeline::before { display: none; }
  .section { padding: 72px 0; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .topbar__items span.hide-sm { display: none; }
  .grid--2, .grid--4, .features, .stats, .footer__grid, .form__row, .contact-cards { grid-template-columns: 1fr; }
  .bullets { columns: 1; }
  .stack { grid-template-columns: 1fr; }
  .stack__box--a { margin-top: 0; }
  .timeline { grid-template-columns: 1fr; }
  .cta-band > div { padding: 44px 24px; }
  .form { padding: 28px 22px; }
  .hero { min-height: 540px; }
  .hero .hero__inner { padding: 64px 16px 96px; }
  .container { padding: 0 16px; }
  .brand__text small { display: none; }
}
