/* =========================================================
   Safety Consulting — static site styles
   Brand: blue -> cyan gradient (logo) + hi-vis orange accent
   ========================================================= */

:root {
  --navy: #0b2a4a;
  --navy-2: #123a63;
  --blue: #1746a0;
  --cyan: #29b6e8;
  --accent: #f26522;      /* hi-vis orange */
  --accent-dark: #d9531a;
  --ink: #16202b;
  --muted: #5b6b7c;
  --line: #e4e9f0;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -20px rgba(11, 42, 74, 0.35);
  --shadow-sm: 0 8px 24px -12px rgba(11, 42, 74, 0.28);
  --grad: linear-gradient(120deg, var(--blue) 0%, var(--cyan) 100%);
  --maxw: 1160px;
  --header-h: 96px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 .4em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.22rem; }

p { margin: 0 0 1rem; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 22px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--blue);
  margin: 0 0 .7rem;
}
.eyebrow.light { color: var(--cyan); }

.center { text-align: center; }

/* ---------------- Buttons ---------------- */
.btn {
  --_bg: var(--blue);
  --_fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .96rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-sm); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 10px 22px -10px rgba(242,101,34,.6); }
.btn-accent:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-block { width: 100%; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand img { height: 56px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.main-nav a {
  font-weight: 600;
  color: var(--navy-2);
  font-size: .98rem;
  position: relative;
}
.main-nav a:not(.nav-cta):hover { color: var(--blue); }
.main-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--grad);
  transition: width .2s ease;
}
.main-nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta { color: #fff; padding: .6rem 1.15rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px; height: 3px;
  background: var(--navy);
  border-radius: 3px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(41,182,232,.16), transparent 60%),
    linear-gradient(180deg, var(--bg-soft), #fff 75%);
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5.5rem);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.hero-copy .lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 34rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin: 1.6rem 0 1.3rem;
}
.hero-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.4rem;
  padding: 0; margin: 0;
}
.hero-badges li {
  position: relative;
  padding-left: 1.5rem;
  font-weight: 600;
  color: var(--navy-2);
  font-size: .92rem;
}
.hero-badges li::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  width: 18px; height: 18px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--grad);
}
.hero-badges li::after {
  content: "";
  position: absolute; left: 6px; top: 50%;
  width: 4px; height: 8px;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: translateY(-65%) rotate(45deg);
}
.hero-media { position: relative; }
.hero-media > img {
  border-radius: 22px;
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.hero-stat {
  position: absolute;
  left: -12px; bottom: -18px;
  background: #fff;
  border-radius: var(--radius);
  padding: .9rem 1.2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.hero-stat strong {
  display: block;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.5rem;
  color: var(--accent);
  line-height: 1;
}
.hero-stat span { font-size: .82rem; color: var(--muted); }

/* ---------------- Trust strip ---------------- */
.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 1.8rem 0;
}
.trust-label {
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
  margin: 0 0 1rem;
}
.client-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.4rem;
}
.client-row img {
  height: 40px;
  width: auto;
  opacity: .55;
  filter: grayscale(1);
  transition: opacity .2s ease, filter .2s ease;
}
.client-row img:hover { opacity: 1; filter: none; }

/* ---------------- Sections ---------------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--bg-soft); }
.section-head {
  max-width: 42rem;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  text-align: center;
}
.section-sub { color: var(--muted); font-size: 1.06rem; margin: 0; }

/* ---------------- Service cards ---------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card img { height: 190px; width: 100%; object-fit: cover; }
.card-body { padding: 1.3rem 1.35rem 1.5rem; }
.card-body p { color: var(--muted); margin: 0; font-size: .97rem; }
.card-body h3 { margin-bottom: .45rem; }

/* ---------------- Courses ---------------- */
.course-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.3rem;
  margin-bottom: 2.4rem;
}
.course {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease;
}
.course:hover { transform: translateY(-6px); }
.course img { height: 150px; width: 100%; object-fit: cover; }
.course-body { padding: 1.1rem 1.15rem 1.35rem; }
.course-body p { color: var(--muted); font-size: .92rem; margin: 0; }
.course-body h3 { font-size: 1.08rem; margin: .5rem 0 .4rem; }
.tag {
  display: inline-block;
  background: var(--grad);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .25rem .6rem;
  border-radius: 999px;
}

/* ---------------- About ---------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.about-media img {
  border-radius: 22px;
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.tick-list { list-style: none; padding: 0; margin: 0 0 1.6rem; }
.tick-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: .6rem;
  font-weight: 600;
  color: var(--navy-2);
}
.tick-list li::before {
  content: "";
  position: absolute; left: 0; top: 2px;
  width: 22px; height: 22px;
  border-radius: 6px;
  background: rgba(41,182,232,.15);
}
.tick-list li::after {
  content: "";
  position: absolute; left: 8px; top: 6px;
  width: 5px; height: 10px;
  border: solid var(--blue); border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ---------------- Why us (dark) ---------------- */
.section-dark {
  background:
    radial-gradient(800px 400px at 100% 0, rgba(41,182,232,.18), transparent 55%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #dbe6f2;
}
.section-dark h2 { color: #fff; }
.section-dark .section-sub { color: #b7c7da; }
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.feature {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
}
.feature h3 { color: #fff; }
.feature p { color: #b7c7da; margin: 0; font-size: .95rem; }
.feature-num {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: .6rem;
}

/* ---------------- Contact ---------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(1.6rem, 4vw, 3.5rem);
  align-items: start;
}
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.contact-list li {
  display: flex;
  gap: 1rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.contact-list .ci {
  min-width: 90px;
  font-weight: 700;
  color: var(--navy);
}
.contact-list a { color: var(--blue); font-weight: 600; }

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label {
  display: block;
  font-weight: 600;
  font-size: .88rem;
  margin-bottom: .35rem;
  color: var(--navy-2);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: .75rem .9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--ink);
  background: #fbfdff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(41,182,232,.18);
}
.form-note { font-size: .8rem; color: var(--muted); margin: .8rem 0 0; text-align: center; }

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--navy);
  color: #a9bdd2;
  padding: 3rem 0 1.6rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-logo {
  height: 48px; width: auto;
  background: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  margin-bottom: 1rem;
}
.footer-brand p { color: #94a9bf; font-size: .95rem; max-width: 22rem; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: .9rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .55rem; }
.footer-col a { color: #a9bdd2; font-size: .93rem; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  padding-top: 1.4rem;
  font-size: .85rem;
  color: #7f97ae;
}
.footer-bottom p { margin: 0; }

/* ---------------- Responsive ---------------- */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: .5rem 22px 1.2rem;
    box-shadow: var(--shadow);
    transform: translateY(-140%);
    transition: transform .3s ease;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .main-nav a:not(.nav-cta)::after { display: none; }
  .nav-cta { text-align: center; margin-top: .8rem; border-bottom: 0 !important; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 460px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 520px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .course-grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero-stat { left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
