/* ACS-UK Redesign — Shared Stylesheet */

/* ── Variables ─────────────────────────────── */
:root {
  --navy:   #1a2d45;
  --red:    #c0392b;
  --blue:   #1565c0;
  --blue-h: #0d47a1;
  --light:  #f4f6f8;
  --border: #dde2e8;
  --text:   #2c3e50;
  --muted:  #5a6a7a;
  --white:  #ffffff;
  --radius: 6px;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --max-w:  1160px;
  --font:   'Poppins', 'Segoe UI', system-ui, sans-serif;
}

/* ── Reset ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Layout helpers ────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section    { padding: 72px 0; }
.section--light { background: var(--light); }

/* ── Typography ────────────────────────────── */
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.2; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; line-height: 1.3; }
h3 { font-size: 1.15rem; font-weight: 600; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.section-label {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.section-title  { margin-bottom: 16px; }
.section-intro  { color: var(--muted); max-width: 600px; margin-bottom: 48px; }

/* ── Buttons ───────────────────────────────── */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary   { background: var(--blue);  color: var(--white); }
.btn-primary:hover { background: var(--blue-h); }
.btn-outline   { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-red       { background: var(--red); color: var(--white); }
.btn-red:hover { background: #a93226; }

/* ── NAV ────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo img { height: 46px; width: auto; }

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 4px;
}
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: block;
  padding: 8px 14px;
  font-size: .9rem;
  font-weight: 500;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.nav-menu > li > a:hover,
.nav-menu > li > a.active { background: var(--light); color: var(--red); }

/* dropdown */
.nav-menu .dropdown { display: none; position: absolute; top: 100%; left: 0; min-width: 280px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); list-style: none; z-index: 200; padding: 6px 0; }
.nav-menu li:hover > .dropdown { display: block; }
.nav-menu .dropdown li a { display: block; padding: 9px 18px; font-size: .875rem; transition: background .12s; }
.nav-menu .dropdown li a:hover { background: var(--light); color: var(--red); }

.nav-cta { margin-left: 12px; }

/* hamburger */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: .25s; }

/* ── HERO ───────────────────────────────────── */
.hero {
  min-height: 520px;
  display: flex;
  align-items: center;
  background-image: url('https://images.unsplash.com/photo-1576091160399-112ba8d25d1d?w=1600&q=80&fit=crop');
  background-size: cover;
  background-position: center top;
  position: relative;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,45,69,.82) 0%, rgba(26,45,69,.55) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding: 80px 0;
}
.hero-eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #7ec8e3;
  margin-bottom: 16px;
}
.hero h1 { color: var(--white); margin-bottom: 18px; }
.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,.85); margin-bottom: 36px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── ACCREDITATIONS ─────────────────────────── */
.accreditations { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 32px 0; }
.accreditations-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.accreditation-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 110px;
  padding: 16px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
}
.accreditation-item::before {
  content: "✓";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}
.accreditation-item span {
  font-size: .7rem;
  font-weight: 600;
  color: var(--dark);
  text-align: center;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ── SERVICES GRID ──────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 48px;
}
.service-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.service-card-icon {
  background: var(--navy);
  height: 6px;
}
.service-card-icon.red  { background: var(--red); }
.service-card-icon.blue { background: var(--blue); }
.service-card-body { padding: 28px 24px; }
.service-card h3 { margin-bottom: 10px; }
.service-card p  { color: var(--muted); font-size: .95rem; margin-bottom: 20px; }
.service-card ul {
  list-style: none;
  margin-bottom: 24px;
}
.service-card ul li {
  padding: 5px 0;
  font-size: .875rem;
  color: var(--text);
  padding-left: 16px;
  position: relative;
}
.service-card ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--red);
  font-size: .75rem;
  top: 6px;
}
.service-card a.card-link {
  font-size: .875rem;
  font-weight: 600;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.service-card a.card-link:hover { color: var(--blue-h); }

/* ── ABOUT STRIP ────────────────────────────── */
.about-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-strip img { border-radius: 10px; height: 360px; object-fit: cover; width: 100%; }
.about-text .section-label { display: block; }
.about-text p { color: var(--muted); }
.about-actions { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ── PAGE HERO (inner pages) ────────────────── */
.page-hero {
  background: var(--navy);
  padding: 60px 0;
  color: var(--white);
}
.page-hero h1 { color: var(--white); margin-bottom: 10px; }
.page-hero p  { color: rgba(255,255,255,.75); max-width: 560px; }

/* ── COURSES GRID ───────────────────────────── */
.courses-section { padding: 56px 0; }
.courses-section + .courses-section { padding-top: 0; }
.courses-section h2 { margin-bottom: 24px; border-left: 4px solid var(--red); padding-left: 14px; }
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.course-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  transition: box-shadow .2s, transform .2s;
}
.course-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.course-card h3 { font-size: 1rem; margin-bottom: 8px; }
.course-card p  { font-size: .875rem; color: var(--muted); margin-bottom: 16px; }
.course-card a  { font-size: .85rem; font-weight: 600; color: var(--blue); }
.course-card a:hover { color: var(--blue-h); }

/* ── CONTACT PAGE ───────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 40px;
  padding: 64px 0;
}
.contact-offices h2 { font-size: 1.3rem; margin-bottom: 24px; }
.office { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.office:last-child { border-bottom: none; }
.office-name { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin-bottom: 6px; }
.office address { font-style: normal; font-size: .9rem; color: var(--muted); line-height: 1.6; }

.contact-form-wrap { background: var(--light); border-radius: 10px; padding: 36px 32px; }
.contact-form-wrap h2 { font-size: 1.3rem; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: .9rem;
  background: var(--white);
  color: var(--text);
  transition: border-color .15s;
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--blue); }
.form-group textarea { min-height: 140px; resize: vertical; }

.contact-info h2 { font-size: 1.3rem; margin-bottom: 24px; }
.contact-detail { display: flex; gap: 10px; margin-bottom: 14px; align-items: flex-start; }
.contact-detail-label { font-weight: 600; font-size: .875rem; min-width: 60px; }
.contact-detail-value { font-size: .875rem; color: var(--muted); }

/* ── FOOTER ─────────────────────────────────── */
.site-footer { background: var(--navy); color: rgba(255,255,255,.8); padding: 48px 0 24px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand img { display: none; }
.footer-brand-name { font-size: 1.4rem; font-weight: 700; color: var(--white); letter-spacing: -.02em; margin-bottom: 16px; line-height: 1; }
.footer-brand-name em { font-style: normal; color: rgba(255,255,255,.45); }
.footer-brand p   { font-size: .875rem; opacity: .7; max-width: 280px; }
.footer-col h4 { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--white); margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: .875rem; opacity: .7; transition: opacity .15s; }
.footer-col ul li a:hover { opacity: 1; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  opacity: .6;
}
.footer-bottom a { opacity: 1; }

/* ── STATS BAR ──────────────────────────────── */
.stats-bar { background: var(--blue); padding: 20px 0; }
.stats-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.stat-item { text-align: center; color: var(--white); }
.stat-number { font-size: 1.75rem; font-weight: 700; line-height: 1; display: block; }
.stat-label  { font-size: .75rem; opacity: .8; letter-spacing: .06em; text-transform: uppercase; }

/* ── DUAL-PATH HERO ─────────────────────────── */
.hero-paths { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.hero-path {
  flex: 1;
  min-width: 220px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  padding: 20px 22px;
  cursor: pointer;
  transition: background .2s, border-color .2s;
  text-align: left;
}
.hero-path:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.4); }
.hero-path-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #7ec8e3;
  margin-bottom: 6px;
  display: block;
}
.hero-path h3 { color: var(--white); font-size: 1rem; margin-bottom: 6px; }
.hero-path p  { color: rgba(255,255,255,.7); font-size: .85rem; margin: 0; }
.hero-path-arrow { display: block; color: rgba(255,255,255,.5); font-size: 1.2rem; margin-top: 12px; }

/* ── URGENCY STRIP ──────────────────────────── */
.urgency-strip {
  background: #fff3cd;
  border-bottom: 1px solid #ffc107;
  padding: 10px 0;
  text-align: center;
  font-size: .875rem;
  font-weight: 500;
  color: #6d4c00;
}
.urgency-strip strong { color: #c0392b; }

/* ── QUIZ ───────────────────────────────────── */
.quiz-section { background: var(--light); padding: 72px 0; }
.quiz-wrap {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 4px 32px rgba(0,0,0,.08);
  overflow: hidden;
}
.quiz-header {
  background: var(--navy);
  padding: 28px 36px;
  color: var(--white);
}
.quiz-header .section-label { color: #7ec8e3; margin-bottom: 6px; }
.quiz-header h2 { color: var(--white); margin: 0; font-size: 1.3rem; }
.quiz-body { padding: 36px; }
.quiz-progress { display: flex; gap: 8px; margin-bottom: 28px; }
.quiz-progress-dot {
  height: 4px;
  flex: 1;
  border-radius: 4px;
  background: var(--border);
  transition: background .3s;
}
.quiz-progress-dot.active  { background: var(--blue); }
.quiz-progress-dot.done    { background: var(--navy); }

.quiz-step { display: none; }
.quiz-step.visible { display: block; }
.quiz-question { font-size: 1.05rem; font-weight: 600; margin-bottom: 20px; color: var(--navy); }
.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.quiz-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: .95rem;
  font-weight: 500;
  transition: border-color .15s, background .15s;
  background: var(--white);
  text-align: left;
  width: 100%;
}
.quiz-option:hover { border-color: var(--blue); background: #e8f0fe; }
.quiz-option.selected { border-color: var(--blue); background: #e8f0fe; color: var(--blue); }
.quiz-option-icon { font-size: 1.3rem; flex-shrink: 0; }
.quiz-option-text small { display: block; font-size: .8rem; font-weight: 400; color: var(--muted); margin-top: 2px; }

.quiz-urgency-note {
  display: none;
  margin-top: 12px;
  padding: 10px 14px;
  background: #fff3cd;
  border-radius: var(--radius);
  font-size: .85rem;
  color: #6d4c00;
  font-weight: 500;
}
.quiz-urgency-note.show { display: block; }

/* quiz results */
.quiz-results { display: none; }
.quiz-results.visible { display: block; }
.quiz-results-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.quiz-results h3 { font-size: 1.1rem; margin-bottom: 20px; color: var(--navy); }
.quiz-result-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 24px; }
.quiz-result-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  position: relative;
}
.quiz-result-card.primary { border-color: var(--blue); }
.quiz-result-card .badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--blue);
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: .04em;
}
.quiz-result-card h4 { font-size: .95rem; margin-bottom: 6px; }
.quiz-result-card p  { font-size: .82rem; color: var(--muted); margin-bottom: 12px; }
.quiz-result-card a  { font-size: .85rem; font-weight: 600; color: var(--blue); }
.quiz-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.quiz-restart {
  background: none;
  border: none;
  font-size: .85rem;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  margin-top: 12px;
  display: block;
}

/* ── TESTIMONIALS ───────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.testimonial-card {
  background: var(--white);
  border-radius: 10px;
  padding: 28px 24px;
  border: 1px solid var(--border);
  position: relative;
}
.testimonial-quote {
  font-size: 2.5rem;
  color: var(--red);
  line-height: 1;
  margin-bottom: 12px;
  font-family: Georgia, serif;
}
.testimonial-text {
  font-size: .95rem;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-author { display: flex; flex-direction: column; }
.testimonial-name   { font-weight: 700; font-size: .9rem; }
.testimonial-role   { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.testimonial-course {
  display: inline-block;
  margin-top: 10px;
  font-size: .75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--light);
  color: var(--navy);
}

/* ── RECIPROCITY / FREE RESOURCE ────────────── */
.reciprocity {
  background: var(--navy);
  padding: 64px 0;
}
.reciprocity-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.reciprocity-text .section-label { color: #7ec8e3; }
.reciprocity-text h2 { color: var(--white); margin-bottom: 12px; }
.reciprocity-text p  { color: rgba(255,255,255,.75); margin-bottom: 28px; }
.reciprocity-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.reciprocity-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;
  padding: 28px 24px;
  color: var(--white);
}
.reciprocity-card h4 { font-size: 1rem; margin-bottom: 8px; }
.reciprocity-card p  { font-size: .875rem; color: rgba(255,255,255,.7); margin-bottom: 16px; }
.reciprocity-card .btn { width: 100%; text-align: center; }

/* ── CLOSING CTA ────────────────────────────── */
.closing-cta {
  background: linear-gradient(135deg, var(--red) 0%, #922b21 100%);
  padding: 80px 0;
  text-align: center;
}
.closing-cta h2 { color: var(--white); font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 12px; }
.closing-cta p  { color: rgba(255,255,255,.85); font-size: 1.05rem; margin-bottom: 32px; max-width: 480px; margin-left: auto; margin-right: auto; }
.closing-cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-white { background: var(--white); color: var(--red); }
.btn-white:hover { background: #f0f0f0; }

/* ── EMPLOYER STRIP ─────────────────────────── */
.employer-strip { border-top: 1px solid var(--border); padding: 48px 0; }
.employer-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.employer-inner h3 { font-size: 1.15rem; margin-bottom: 6px; }
.employer-inner p  { font-size: .9rem; color: var(--muted); }
.employer-links { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }

/* ── RESPONSIVE ─────────────────────────────── */
@media (max-width: 900px) {
  .nav-menu, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 12px 0 20px;
    gap: 0;
    align-items: stretch;
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
  }
  .nav-menu.open > li > a { border-radius: 0; padding: 12px 24px; }
  .nav-menu .dropdown { display: none !important; }
  .about-strip { grid-template-columns: 1fr; }
  .about-strip img { height: 240px; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .accreditations-inner { justify-content: center; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .reciprocity-inner { grid-template-columns: 1fr; gap: 32px; }
  .quiz-result-cards { grid-template-columns: 1fr; }
  .employer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .hero-inner { padding: 60px 0; }
  .hero-paths { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .stats-inner { gap: 24px; }
  .quiz-body { padding: 24px; }
  .quiz-header { padding: 20px 24px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .closing-cta-actions { flex-direction: column; align-items: center; }
}
