/* ===========================================================
   Paramount First Aid — Site Stylesheet
   Lightweight, no frameworks, mobile-first.
   =========================================================== */

:root {
  --teal-dark: #14505e;
  --teal: #1f7d92;
  --teal-mid: #2f93a8;
  --sky: #eaf6f8;
  --green: #3fae66;
  --green-dark: #2f8a4f;
  --ink: #16282c;
  --grey: #5b6b6e;
  --grey-light: #e7eeef;
  --white: #ffffff;
  --gold: #ffb52e;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(20, 60, 70, 0.10);
  --shadow-sm: 0 2px 8px rgba(20, 60, 70, 0.08);
  --max: 1140px;
  --speed: 0.18s;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { margin: 0; padding: 0; }
li { list-style: none; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.25; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Icons (inline SVG) ---------- */
.icon { width: 26px; height: 26px; stroke: var(--teal); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 18px; height: 18px; }
.icon-green { stroke: var(--green-dark); }
.icon-white { stroke: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--speed) ease, box-shadow var(--speed) ease, background var(--speed) ease;
  text-align: center;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--green-dark); }
.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.15); }
.btn-dark { background: var(--teal-dark); color: var(--white); }
.btn-dark:hover { background: var(--teal); }
.btn-block { display: block; width: 100%; }
.btn-lg { padding: 15px 32px; font-size: 1.02rem; }

/* ---------- Header ---------- */
.site-header {
  background: var(--teal-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: var(--max);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); }
.brand img { width: auto; height: 44px; object-fit: contain; }
.brand-text { line-height: 1.1; }
.brand-text strong { display: block; font-size: 1.12rem; letter-spacing: 0.2px; }
.brand-text span { display: block; font-size: 0.72rem; color: #bfe3ea; }

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.92;
  transition: opacity var(--speed);
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { opacity: 1; border-bottom: 2px solid var(--green); padding-bottom: 4px; }
.main-nav a.nav-cta { border-bottom: none; padding-bottom: 13px; }
.nav-cta { margin-left: 6px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  margin: 5px 0;
  background: var(--white);
  border-radius: 2px;
}

@media (max-width: 940px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--teal-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 24px 24px;
    gap: 16px;
    display: none;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-cta { margin-left: 0; }
  .main-nav a.nav-cta { padding-bottom: 13px; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal-mid));
  color: var(--white);
  padding: 56px 0 64px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 0.4em; }
.hero p.lead { font-size: 1.08rem; color: #d6edf1; max-width: 500px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 18px;
}
.hero-badge .star { color: var(--gold); }
.hero-points { margin-top: 26px; display: grid; gap: 10px; }
.hero-points li { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; color: #d6edf1; }
.hero-points .icon { width: 20px; height: 20px; stroke: #8fd9a9; flex: none; }

@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding: 40px 0 48px; }
}

/* ---------- Quick quote form card ---------- */
.quote-card {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.quote-card h2, .quote-card h3 { color: var(--teal-dark); font-size: 1.25rem; margin-bottom: 4px; }
.quote-card .sub { color: var(--grey); font-size: 0.88rem; margin-bottom: 18px; }
.quote-card .btn { margin-top: 4px; }
.quote-card .fineprint { font-size: 0.75rem; color: var(--grey); margin: 12px 0 0; text-align: center; }

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--white); border-bottom: 1px solid var(--grey-light); padding: 18px 0; }
.trust-bar .container {
  display: flex; flex-wrap: wrap; gap: 12px 36px;
  align-items: center; justify-content: center;
}
.trust-item { display: flex; align-items: center; gap: 9px; font-size: 0.88rem; font-weight: 600; color: var(--teal-dark); }
.trust-item .icon { width: 21px; height: 21px; }
.trust-item .star { color: var(--gold); font-size: 1rem; }

/* ---------- Sections ---------- */
section { padding: 68px 0; }
.section-sky { background: var(--sky); }
.section-dark { background: var(--teal-dark); color: var(--white); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 10px;
  display: block;
}
.section-dark .eyebrow { color: #8fd9a9; }

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--grey-light);
}
.card h3 { font-size: 1.15rem; }
.icon-circle {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--sky);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}

/* ---------- Steps (How it works) ---------- */
.step-card { position: relative; padding-top: 38px; }
.step-num {
  position: absolute; top: -18px; left: 30px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--green); color: var(--white);
  font-weight: 700; font-size: 1.05rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
}

/* ---------- Course cards ---------- */
.course-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--grey-light);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow var(--speed) ease, transform var(--speed) ease;
}
.course-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.course-card .code { color: var(--grey); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.4px; }
.course-card h3 { margin-top: 4px; }
.course-card h3 a:hover { color: var(--teal); }
.course-card .price { font-size: 1.5rem; font-weight: 700; color: var(--teal-dark); margin: 8px 0 12px; }
.course-card .price span { font-size: 0.82rem; font-weight: 500; color: var(--grey); }
.course-card p { color: var(--grey); font-size: 0.95rem; flex-grow: 1; }
.course-card .btn { margin-top: 14px; }
.course-card .more-link { display: inline-block; margin-top: 12px; font-weight: 600; font-size: 0.9rem; color: var(--teal); }
.course-card .more-link:hover { color: var(--teal-dark); }
.tag {
  display: inline-block;
  background: var(--sky);
  color: var(--teal-dark);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

/* ---------- Comparison table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--grey-light); box-shadow: var(--shadow-sm); }
.compare-table { width: 100%; border-collapse: collapse; background: var(--white); font-size: 0.92rem; min-width: 720px; }
.compare-table th, .compare-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--grey-light); }
.compare-table thead th { background: var(--teal-dark); color: var(--white); font-weight: 600; white-space: nowrap; }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover { background: var(--sky); }
.compare-table td:first-child a { font-weight: 600; color: var(--teal); }
.compare-table td:first-child a:hover { color: var(--teal-dark); }
.compare-table .t-price { font-weight: 700; color: var(--teal-dark); white-space: nowrap; }

/* ---------- Course detail pages ---------- */
.breadcrumbs { font-size: 0.82rem; margin-bottom: 16px; color: #bfe3ea; }
.breadcrumbs a { color: #bfe3ea; text-decoration: underline; }
.breadcrumbs a:hover { color: var(--white); }
.course-hero { background: linear-gradient(135deg, var(--teal-dark), var(--teal-mid)); color: var(--white); padding: 44px 0 52px; }
.course-hero h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); max-width: 720px; }
.course-hero p { color: #d6edf1; max-width: 640px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chip {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 0.83rem;
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 7px;
}
.chip .icon { width: 16px; height: 16px; stroke: #8fd9a9; }

.course-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: flex-start; }
@media (max-width: 940px) { .course-layout { grid-template-columns: 1fr; } }
.facts-card { position: sticky; top: 90px; }
.facts-card ul { display: grid; gap: 14px; margin: 18px 0 22px; }
.facts-card li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.92rem; }
.facts-card li .icon { flex: none; margin-top: 2px; width: 20px; height: 20px; }
.facts-card li strong { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.6px; color: var(--grey); font-weight: 600; }

.check-list { display: grid; gap: 12px; margin: 0 0 1.4em; }
.check-list li { display: flex; gap: 11px; align-items: flex-start; }
.check-list .icon { flex: none; margin-top: 4px; width: 19px; height: 19px; stroke: var(--green-dark); }

.prose h2 { font-size: 1.45rem; margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }

/* ---------- Who we train ---------- */
.audience-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  box-shadow: var(--shadow-sm);
  background: linear-gradient(160deg, var(--teal-mid), var(--teal-dark));
}
.audience-card .content { padding: 22px; position: relative; z-index: 2; }
.audience-card h3 { margin-bottom: 6px; }
.audience-card p { font-size: 0.88rem; color: #d8edf0; margin-bottom: 12px; }
.audience-card a { font-weight: 600; font-size: 0.88rem; color: #8fe3a9; }
.audience-card a:hover { color: var(--white); }

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--grey-light);
}
.testimonial .stars { color: var(--gold); margin-bottom: 12px; letter-spacing: 2px; }
.testimonial .who { font-weight: 600; margin-top: 14px; color: var(--teal-dark); }

/* ---------- About / story ---------- */
.story-block {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: center;
}
@media (max-width: 940px) { .story-block { grid-template-columns: 1fr; } }
.photo-frame {
  background: var(--sky);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.team-photo {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto;
  display: block;
}

.memorial-card {
  background: var(--sky);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  padding: 30px;
}

/* ---------- FAQ accordion ---------- */
.faq-item {
  border-bottom: 1px solid var(--grey-light);
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 0;
  font-size: 1.02rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  color: var(--ink);
  font-family: inherit;
}
.faq-question .plus { font-size: 1.4rem; color: var(--green-dark); transition: transform var(--speed); flex: none; }
.faq-item.open .plus { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--speed) ease;
  color: var(--grey);
}
.faq-answer-inner { padding-bottom: 18px; }
.faq-item.open .faq-answer { max-height: 900px; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  border: 1px solid var(--grey-light);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-status { font-size: 0.9rem; font-weight: 600; margin-top: 14px; min-height: 1.2em; }
.form-status-pending { color: var(--grey); }
.form-status-success { color: var(--green-dark); }
.form-status-error { color: #b3261e; }
label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--teal-dark); }
label .opt { font-weight: 400; color: var(--grey); }
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--grey-light);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  margin-bottom: 16px;
  background: var(--white);
  color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal-mid); box-shadow: 0 0 0 3px rgba(47,147,168,0.15); }
textarea { resize: vertical; min-height: 110px; }

/* ---------- Public course booking accordion ---------- */
.book-toggle {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 0.82rem;
  margin-top: 10px;
  padding: 4px 0;
  color: var(--teal-mid);
  text-decoration: underline;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
}
.book-toggle:hover, .book-toggle:focus-visible { color: var(--teal-dark); }
.booking-panel { display: none; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--grey-light); }
.booking-panel.open { display: block; }
.booking-panel iframe { width: 100%; display: block; border: 0; border-radius: 10px; min-height: 460px; }

/* ---------- Contact strip ---------- */
.contact-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
@media (max-width: 940px) { .contact-strip { grid-template-columns: 1fr; } }
.contact-strip .card h4 { margin-bottom: 4px; color: var(--teal-dark); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius);
  padding: 44px;
  text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: 10px; }
.cta-banner p { max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-banner .btn-primary { background: var(--white); color: var(--green-dark); }
.cta-banner .btn-primary:hover { background: #eafff0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #cfd9da;
  padding: 50px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 36px;
  margin-bottom: 30px;
}
@media (max-width: 940px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 14px; }
.footer-grid ul li { margin-bottom: 10px; font-size: 0.9rem; }
.footer-grid ul li a:hover { color: var(--green); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { width: auto; height: 36px; object-fit: contain; }
.footer-brand strong { color: var(--white); }
.footer-note { color: #9fb0b2; font-size: 0.88rem; }
.footer-bottom {
  border-top: 1px solid #2a3a3e;
  padding-top: 20px;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: #8d9a9c;
}

/* ---------- Page header (sub pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal-mid));
  color: var(--white);
  padding: 50px 0;
  text-align: center;
}
.page-hero p { color: #d6edf1; max-width: 620px; margin: 0 auto; }
.page-hero .eyebrow { color: #8fd9a9; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.muted { color: var(--grey); }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px; }
.badge {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--teal-dark);
  box-shadow: var(--shadow-sm);
}
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 10px; top: 10px; background: var(--white); padding: 8px; z-index: 1000; }

/* ---------- Mobile sticky call bar ---------- */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 99;
  background: var(--white);
  border-top: 1px solid var(--grey-light);
  box-shadow: 0 -4px 16px rgba(20,60,70,0.12);
  padding: 10px 14px;
  gap: 10px;
}
.mobile-cta a { flex: 1; padding: 11px 10px; font-size: 0.9rem; }
@media (max-width: 640px) {
  .mobile-cta { display: flex; }
  body { padding-bottom: 64px; }
}
