/* Atkinson's First Aid Training — styles.css (no build step) */
:root {
  --green: #0b5d3b;        /* primary: 8.1:1 on white */
  --green-dark: #07432a;
  --green-tint: #e6f2ec;
  --green-soft: #f3f9f6;
  --ink: #10251b;
  --text: #2a3b33;
  --muted: #4d5f56;        /* 6.6:1 on white */
  --line: #d5e3dc;
  --red: #b3261e;          /* errors: 6.5:1 on white */
  --white: #fff;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16,37,27,.06), 0 8px 24px rgba(16,37,27,.08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--text); background: var(--white); }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
h4 { font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; color: var(--green); margin-top: 1.2em; }
p { margin: 0 0 1em; }
a { color: var(--green); text-underline-offset: 2px; }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.center { text-align: center; margin-top: 2rem; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; color: #fff; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; background: var(--green); color: #fff; border: 2px solid var(--green); padding: .7em 1.3em; border-radius: 999px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-large { padding: .85em 1.6em; font-size: 1.05rem; }
.btn-small { padding: .45em 1em; font-size: .95rem; }
.btn-block { display: flex; width: 100%; }
.btn-ghost { background: transparent; color: var(--green); }
.btn-ghost:hover { background: var(--green-tint); color: var(--green-dark); border-color: var(--green-dark); }
.btn[disabled] { opacity: .7; cursor: wait; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.5) blur(6px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--green); }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-text { display: flex; flex-direction: column; font-weight: 800; font-size: 1.15rem; color: var(--ink); line-height: 1.1; }
.brand-text span { font-weight: 600; font-size: .82rem; color: var(--green); letter-spacing: .02em; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; }
.site-nav a:not(.btn):hover { color: var(--green); text-decoration: underline; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; width: 44px; height: 44px; padding: 9px; color: var(--ink); cursor: pointer; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px 20px 16px; display: none; }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 12px; }
}

/* Hero */
.hero { background: linear-gradient(180deg, var(--green-soft), #fff); padding: 64px 0 72px; border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--green); }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; font-weight: 700; color: var(--green); margin-bottom: .8em; }
.lead { font-size: 1.18rem; color: var(--text); max-width: 38em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.hero-points li { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.hero-points svg { width: 22px; height: 22px; color: var(--green); flex: none; }
.hero-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); text-align: center; }
.hero-illustration { width: 100%; max-width: 260px; margin: 0 auto 16px; }
.hero-card-text { margin: 0; display: flex; flex-direction: column; }
.hero-card-text strong { font-size: 1.25rem; color: var(--ink); }
.hero-card-text span { color: var(--muted); }

/* Sections */
.section { padding: 80px 0; }
.section-tint { background: var(--green-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head p:last-child { color: var(--muted); }
.section-head-sub { margin-top: 72px; }

/* Featured courses */
.featured-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.course-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.course-card.featured { border-top: 6px solid var(--green); }
.course-card .btn { margin-top: auto; }
.course-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.badge { background: var(--green); color: #fff; font-weight: 700; font-size: .85rem; padding: .3em .8em; border-radius: 999px; }
.code { display: inline-block; font-weight: 800; font-size: .8rem; letter-spacing: .06em; color: var(--green); background: var(--green-tint); padding: .25em .6em; border-radius: 6px; }
.course-card h3 { font-size: 1.5rem; margin-bottom: .2em; }
.course-sub { color: var(--muted); font-size: .95rem; }
.ticks { list-style: none; padding: 0; margin: 0 0 24px; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: 8px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--green-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%230b5d3b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }

/* All courses grid */
.all-courses { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.mini-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; transition: border-color .15s, box-shadow .15s; }
.mini-card:hover { border-color: #9cc9b2; box-shadow: var(--shadow); }
.mini-card h3 { font-size: 1.05rem; margin: 10px 0 6px; }
.mini-card p { font-size: .95rem; color: var(--muted); margin: 0; }
.mini-card strong { color: var(--ink); }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature p { margin: 0; color: var(--muted); }
.feature .icon { width: 52px; height: 52px; border-radius: 12px; background: var(--green-tint); color: var(--green); display: grid; place-items: center; margin-bottom: 16px; }
.feature .icon svg { width: 28px; height: 28px; }
.feature-highlight { background: var(--green); border-color: var(--green); }
.feature-highlight h3, .feature-highlight p { color: #fff; }
.feature-highlight .icon { background: rgba(255,255,255,.15); color: #fff; }

/* Area */
.area-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.place-list { list-style: none; padding: 0; margin: 0 0 1.2em; display: flex; flex-wrap: wrap; gap: 8px; }
.place-list li { background: var(--green-tint); color: var(--green-dark); font-weight: 600; font-size: .92rem; padding: .3em .85em; border-radius: 999px; }
.area-map svg { width: 100%; max-width: 340px; margin: 0 auto; }
.area-map text { font-family: var(--font); }

/* About */
.about-inner { display: grid; grid-template-columns: 160px 1fr; gap: 40px; align-items: start; max-width: 900px; }
.about-badge svg { width: 140px; height: 140px; }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 700; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--green); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq details p { padding: 16px 20px 4px; margin: 0 0 12px; }

/* Enquiry */
.section-dark { background: var(--ink); color: #dbe8e1; }
.section-dark h2 { color: #fff; }
.section-dark .eyebrow { color: #8fd3b0; }
.section-dark a { color: #a8e3c4; }
.enquire-inner { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-list li { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-weight: 600; word-break: break-word; }
.contact-list svg { width: 24px; height: 24px; color: #8fd3b0; flex: none; }
.contact-list a:not([href]) { color: #fff; text-decoration: none; }

.enquiry-form { background: #fff; color: var(--text); border-radius: 16px; padding: 32px; box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.enquiry-form a { color: var(--green); }
.form-note { font-size: .9rem; color: var(--muted); margin-bottom: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; margin-bottom: 20px; }
.field { display: flex; flex-direction: column; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: .97rem; }
.req { color: var(--red); }
.field input:not([type="checkbox"]), .field select, .field textarea { font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1.5px solid #9fb3a9; border-radius: 8px; padding: .65em .8em; width: 100%; min-height: 46px; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(11,93,59,.25); border-color: var(--green); }
.field [aria-invalid="true"] { border-color: var(--red) !important; }
.hint { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.hint-inline { font-weight: 400; color: var(--muted); }
.error { color: var(--red); font-size: .88rem; font-weight: 600; min-height: 1.4em; margin-top: 2px; }
.check { display: grid; grid-template-columns: 24px 1fr; column-gap: 12px; align-items: start; margin-top: 6px; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--green); }
.check label { font-weight: 500; margin: 0; }
.check .error { grid-column: 2; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 16px 0 0; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-success { color: var(--green); background: var(--green-tint); padding: 12px 14px; border-radius: 8px; }
.form-status.is-error { color: var(--red); background: #fdecea; padding: 12px 14px; border-radius: 8px; }
.form-status.is-error a { color: var(--red); }

/* Footer */
.site-footer { background: #0a1912; color: #c2d4ca; padding: 40px 0; font-size: .95rem; }
.site-footer strong { color: #fff; }
.site-footer a { color: #a8e3c4; }
.site-footer a:not([href]) { color: #c2d4ca; text-decoration: none; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.footer-inner p { margin: 0; }

/* Privacy page */
.legal { padding: 56px 0 80px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.legal h2 { font-size: 1.35rem; margin-top: 1.8em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .4em; }

/* Responsive */
@media (max-width: 1000px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .enquire-inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 860px) {
  .hero { padding: 40px 0 48px; }
  .hero-inner, .area-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-card { display: none; }
  .featured-grid { grid-template-columns: 1fr; }
  .area-map svg { max-width: 240px; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 28px; }
  .section-head-sub { margin-top: 56px; }
  .feature-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .enquiry-form { padding: 22px 18px; }
  .course-card { padding: 22px; }
  .about-inner { grid-template-columns: 1fr; gap: 16px; }
  .about-badge svg { width: 96px; height: 96px; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .brand-text { font-size: 1.05rem; }
}
