/* ==========================================================================
   OSHCert — custom.css
   Design system for a Health & Safety training brand.
   Paste this entire file into WordPress → Customizer → Additional CSS.
   ========================================================================== */

:root {
  /* Color tokens */
  --oc-navy-900: #041f5d;   /* primary brand / header / footer / hero */
  --oc-navy-800: #0a2b73;   /* gradient partner, hover on dark */
  --oc-navy-700: #123285;
  --oc-coral-600: #ce3e4b;  /* accent / CTA */
  --oc-coral-700: #a8303c;  /* CTA hover */
  --oc-gold-500: #f5a623;   /* star rating only */
  --oc-bg-light: #f4f6fb;   /* alternating section background */
  --oc-bg-white: #ffffff;
  --oc-ink-900: #111827;    /* primary text */
  --oc-ink-600: #5b6577;    /* muted / secondary text */
  --oc-border: #e2e6f0;
  --oc-success: #1c8a4b;

  /* Type */
  --oc-font-head: 'Poppins', 'Segoe UI', sans-serif;
  --oc-font-body: 'Inter', 'Segoe UI', sans-serif;

  /* Rhythm */
  --oc-radius-sm: 6px;
  --oc-radius-md: 12px;
  --oc-radius-lg: 20px;
  --oc-shadow-card: 0 10px 30px -12px rgba(4, 31, 93, 0.18);
  --oc-shadow-float: 0 20px 45px -10px rgba(4, 31, 93, 0.35);
}

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--oc-font-body);
  color: var(--oc-ink-900);
  background: var(--oc-bg-white);
}

h1, h2, h3, h4, h5, .oc-font-head {
  font-family: var(--oc-font-head);
}

/* Skip link */
.oc-skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--oc-coral-600);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--oc-radius-sm);
  z-index: 999;
  font-weight: 600;
}
.oc-skip-link:focus {
  left: 12px;
  top: 12px;
}

/* Visible focus states everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--oc-coral-600);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ==========================================================================
   Utility bar + header
   ========================================================================== */
.oc-utility-bar {
  background: var(--oc-navy-900);
  color: #dbe4f5;
  font-size: 0.8rem;
  letter-spacing: .01em;
}
.oc-utility-bar a { color: #dbe4f5; text-decoration: none; }
.oc-utility-bar a:hover { color: #ffffff; text-decoration: underline; }

.oc-header {
  background: #ffffff;
  border-bottom: 1px solid var(--oc-border);
  position: sticky;
  top: 0;
  z-index: 60;
}

.oc-logo-mark {
  font-family: var(--oc-font-head);
  font-weight: 700;
  font-size: 1.55rem;
  color: var(--oc-navy-900);
  letter-spacing: -0.01em;
}
.oc-logo-mark span { color: var(--oc-coral-600); }
.oc-logo-tag {
  font-size: 0.62rem;
  letter-spacing: .14em;
  color: var(--oc-ink-600);
  text-transform: uppercase;
  font-weight: 600;
}

.oc-nav-link {
  font-family: var(--oc-font-body);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--oc-navy-900);
  padding: 10px 4px;
  position: relative;
  text-decoration: none;
}
.oc-nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 2px;
  background: var(--oc-coral-600);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.oc-nav-link:hover::after,
.oc-nav-link.is-active::after { transform: scaleX(1); }
.oc-nav-link.is-active { color: var(--oc-coral-600); }

.oc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--oc-font-body);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: .02em;
  border-radius: var(--oc-radius-sm);
  padding: 12px 24px;
  text-decoration: none;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
  cursor: pointer;
  border: 2px solid transparent;
}
.oc-btn:hover { transform: translateY(-2px); }

.oc-btn--coral {
  background: var(--oc-coral-600);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(206,62,75,.6);
}
.oc-btn--coral:hover { background: var(--oc-coral-700); }

.oc-btn--outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.55);
}
.oc-btn--outline-white:hover { background: rgba(255,255,255,.12); border-color: #fff; }

.oc-btn--outline-navy {
  background: transparent;
  color: var(--oc-navy-900);
  border-color: var(--oc-navy-900);
}
.oc-btn--outline-navy:hover { background: var(--oc-navy-900); color: #fff; }

.oc-btn--navy {
  background: var(--oc-navy-900);
  color: #fff;
}
.oc-btn--navy:hover { background: var(--oc-navy-800); }

/* Mobile menu */
.oc-mobile-menu { display: none; }
.oc-mobile-menu.is-open { display: block; }
.oc-menu-toggle-icon-close { display: none; }
.oc-menu-toggle.is-active .oc-menu-toggle-icon-open { display: none; }
.oc-menu-toggle.is-active .oc-menu-toggle-icon-close { display: block; }

/* ==========================================================================
   Hero
   ========================================================================== */
.oc-hero {
  position: relative;
  background: linear-gradient(115deg, var(--oc-navy-900) 45%, var(--oc-navy-800) 100%);
  overflow: hidden;
}
.oc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 85% 20%, rgba(206,62,75,.18), transparent 45%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0px, rgba(255,255,255,.035) 1px, transparent 1px, transparent 26px);
  pointer-events: none;
}
.oc-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: #cfe0ff;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
}
.oc-hero-headline {
  font-family: var(--oc-font-head);
  font-weight: 700;
  color: #fff;
  font-size: clamp(2rem, 4.4vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.oc-hero-headline em {
  font-style: normal;
  color: var(--oc-coral-600);
}
.oc-hero-sub {
  color: #d7e0f4;
  font-size: 1.1rem;
  font-weight: 500;
}
.oc-hero-copy {
  color: #b9c6e6;
  font-size: 1rem;
  line-height: 1.7;
}
.oc-rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--oc-radius-sm);
  padding: 8px 14px;
}
.oc-rating-score {
  background: var(--oc-coral-600);
  color: #fff;
  font-weight: 800;
  font-size: .85rem;
  padding: 3px 8px;
  border-radius: 5px;
}
.oc-star { color: var(--oc-gold-500); }

.oc-hero-media {
  position: relative;
}
.oc-hero-photo {
  border-radius: var(--oc-radius-lg);
  box-shadow: var(--oc-shadow-float);
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3.1;
}

/* Signature element: floating verified-credential card over the hero photo */
.oc-float-card {
  position: absolute;
  left: -18px;
  bottom: -22px;
  background: #fff;
  border-radius: var(--oc-radius-md);
  box-shadow: var(--oc-shadow-float);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 250px;
  animation: oc-float 5s ease-in-out infinite;
}
@keyframes oc-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
.oc-float-card__icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e8f6ed;
  color: var(--oc-success);
  display: flex;
  align-items: center;
  justify-content: center;
}
.oc-float-card__title { font-weight: 700; font-size: .82rem; color: var(--oc-navy-900); }
.oc-float-card__sub { font-size: .72rem; color: var(--oc-ink-600); }

/* Trust strip */
.oc-trust-item { border-right: 1px solid var(--oc-border); }
.oc-trust-item:last-child { border-right: none; }

/* ==========================================================================
   Category pills + course cards
   ========================================================================== */
.oc-pill {
  border: 1.5px solid var(--oc-border);
  color: var(--oc-navy-900);
  background: #fff;
  font-weight: 600;
  font-size: .85rem;
  padding: 9px 20px;
  border-radius: 999px;
  transition: all .15s ease;
  cursor: pointer;
}
.oc-pill:hover { border-color: var(--oc-navy-900); }
.oc-pill.is-active {
  background: var(--oc-navy-900);
  border-color: var(--oc-navy-900);
  color: #fff;
}

.oc-course-card {
  background: #fff;
  border: 1px solid var(--oc-border);
  border-radius: var(--oc-radius-md);
  overflow: hidden;
  box-shadow: var(--oc-shadow-card);
  transition: transform .18s ease, box-shadow .18s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.oc-course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 40px -14px rgba(4,31,93,.28);
}
.oc-course-card__head {
  background: var(--oc-navy-900);
  color: #fff;
  padding: 16px 20px;
  font-family: var(--oc-font-head);
  font-weight: 700;
  font-size: .98rem;
}
.oc-course-card__body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.oc-course-card__desc { color: var(--oc-ink-600); font-size: .9rem; line-height: 1.55; flex: 1; }
.oc-course-card__price { font-family: var(--oc-font-head); font-weight: 700; font-size: 1.9rem; color: var(--oc-ink-900); margin: 14px 0; }
.oc-course-card__price sup { font-size: .95rem; font-weight: 600; }

/* Testimonial strip */
.oc-testimonial-strip {
  background: var(--oc-bg-light);
  border-top: 1px solid var(--oc-border);
  border-bottom: 1px solid var(--oc-border);
}
.oc-verified-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--oc-border);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: .72rem;
  font-weight: 700;
  color: var(--oc-navy-900);
}

/* Solutions image tiles */
.oc-solution-tile {
  position: relative;
  border-radius: var(--oc-radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.oc-solution-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.oc-solution-tile:hover img { transform: scale(1.06); }
.oc-solution-tile__label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(4,31,93,.92), transparent);
  color: #fff;
  font-family: var(--oc-font-head);
  font-weight: 700;
  padding: 14px 16px 12px;
}

/* Dark banner sections */
.oc-dark-banner {
  background: var(--oc-navy-900);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.oc-dark-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 10%, rgba(206,62,75,.25), transparent 45%);
  pointer-events: none;
}

/* Accordion (Why choose us) */
.oc-accordion-item { border-bottom: 1px solid var(--oc-border); }
.oc-accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--oc-font-head);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--oc-navy-900);
}
.oc-accordion-icon-wrap {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--oc-navy-900);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.oc-accordion-chevron { margin-left: auto; transition: transform .2s ease; color: var(--oc-ink-600); }
.oc-accordion-item.is-open .oc-accordion-chevron { transform: rotate(180deg); }
.oc-accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}
.oc-accordion-item.is-open .oc-accordion-panel { max-height: 300px; }
.oc-accordion-panel-inner { padding: 0 4px 22px 56px; color: var(--oc-ink-600); font-size: .92rem; line-height: 1.6; }

/* Info cards */
.oc-info-card {
  background: var(--oc-bg-light);
  border: 1px solid var(--oc-border);
  border-radius: var(--oc-radius-md);
  padding: 28px;
}

/* Footer */
.oc-footer {
  background: var(--oc-navy-900);
  color: #c4d0ea;
}
.oc-footer a { color: #c4d0ea; text-decoration: none; }
.oc-footer a:hover { color: #fff; text-decoration: underline; }
.oc-footer-heading {
  font-family: var(--oc-font-head);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.oc-footer-social {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease;
}
.oc-footer-social:hover { background: var(--oc-coral-600); }
.oc-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); }

/* Breadcrumb / page header (interior pages) */
.oc-page-header {
  background: var(--oc-navy-900);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.oc-page-header::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 88% 30%, rgba(206,62,75,.22), transparent 50%);
}
.oc-breadcrumb { font-size: .85rem; color: #b9c6e6; }
.oc-breadcrumb a { color: #b9c6e6; text-decoration: none; }
.oc-breadcrumb a:hover { color: #fff; }

/* Qualification category cards (qualifications.html) */
.oc-qual-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--oc-border);
  border-radius: var(--oc-radius-md);
  padding: 26px 22px;
  text-decoration: none;
  transition: all .18s ease;
  height: 100%;
}
.oc-qual-card:hover {
  border-color: var(--oc-coral-600);
  box-shadow: var(--oc-shadow-card);
  transform: translateY(-4px);
}
.oc-qual-card__icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--oc-bg-light);
  color: var(--oc-navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
}
.oc-qual-card:hover .oc-qual-card__icon { background: var(--oc-coral-600); color: #fff; }
.oc-qual-card__title { font-family: var(--oc-font-head); font-weight: 700; color: var(--oc-navy-900); font-size: 1.02rem; }
.oc-qual-card__desc { color: var(--oc-ink-600); font-size: .86rem; line-height: 1.5; }
.oc-qual-card__link { color: var(--oc-coral-600); font-weight: 700; font-size: .85rem; margin-top: auto; }

/* Icon list check items */
.oc-check-item { display: flex; align-items: flex-start; gap: 10px; }
.oc-check-item svg { flex: 0 0 auto; color: var(--oc-success); margin-top: 2px; }

/* Course detail page bits */
.oc-syllabus-item {
  border: 1px solid var(--oc-border);
  border-radius: var(--oc-radius-sm);
  padding: 16px 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.oc-syllabus-num {
  font-family: var(--oc-font-head);
  font-weight: 700;
  color: var(--oc-coral-600);
  font-size: .95rem;
  flex: 0 0 auto;
}
.oc-sticky-buy {
  border: 1px solid var(--oc-border);
  border-radius: var(--oc-radius-md);
  box-shadow: var(--oc-shadow-card);
  padding: 26px;
}

/* Contact page — static dummy form (Text Editor widget) */
.oc-form-field label { font-weight: 600; font-size: .85rem; color: var(--oc-navy-900); display: block; margin-bottom: 6px; }
.oc-form-field input,
.oc-form-field select,
.oc-form-field textarea {
  width: 100%;
  border: 1.5px solid var(--oc-border);
  border-radius: var(--oc-radius-sm);
  padding: 11px 14px;
  font-family: var(--oc-font-body);
  font-size: .92rem;
  background: #fff;
}

/* Scrollspy helper */
.oc-nav-link[aria-current="page"] { color: var(--oc-coral-600); }

/* Small helpers */
.oc-eyebrow {
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--oc-coral-600);
}
