/* =================================================================
   IIA Uganda - landing page styles
   Mobile-first: base rules target ~360px, min-width queries layer up.
   Brand colours sampled from assets/images/logo/logo.png.
   ================================================================= */

/* -----------------------------------------------------------------
   1. Tokens
   ----------------------------------------------------------------- */
:root {
  /* Brand palette (from the logo) */
  --navy:       #006299;
  --navy-dark:  #004e7a;
  --green:      #99ca3c;
  --green-dark: #86b52f;
  --green-ink:  #2f4208;
  --black:      #0c1116;

  /* Neutrals */
  --ink:    #0d2430;
  --body:   #30414d;
  --muted:  #5f6f7a;
  --paper:  #f4f7f8;
  --tint:   #e7f0f4;
  --mint:   #eef6e0;
  --line:   #e3e9ec;
  --white:  #ffffff;

  /* Type (uniform sitewide: headings + body share one family) */
  --font: "Cabin", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --fs-eyebrow: 0.8rem;
  --fs-body:    1.0625rem;
  --fs-h3:      clamp(1.2rem, 1rem + 0.9vw, 1.5rem);
  --fs-h2:      clamp(1.7rem, 1.2rem + 2.3vw, 2.6rem);
  --fs-h1:      clamp(2.1rem, 1.35rem + 3.3vw, 3.5rem);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --section-y: clamp(3.25rem, 2rem + 6vw, 6rem);

  /* Shape - rounded corners kept to ~20px sitewide */
  --r-btn: 10px;
  --r-sm:  10px;
  --r-md:  16px;
  --r-lg:  20px;
  --r-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(13, 36, 48, 0.06);
  --shadow-md: 0 14px 40px rgba(13, 36, 48, 0.12);

  --container: 1240px;
  --gutter: clamp(1rem, 0.6rem + 2vw, 2rem);
}

/* -----------------------------------------------------------------
   2. Base
   ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font); color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; font-weight: 600; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.icon { flex: none; }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 300; background: var(--navy); color: var(--white); padding: 0.6rem 1rem; border-radius: var(--r-sm); transition: top 0.2s ease; }
.skip-link:focus { top: 1rem; text-decoration: none; }

/* -----------------------------------------------------------------
   3. Reusable: eyebrow (plain text, no background), buttons, heads,
      arrow links
   ----------------------------------------------------------------- */
.eyebrow {
  display: inline-block;
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.eyebrow--light { color: var(--green); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  min-height: 44px;
  padding: 0.8rem 1.4rem;
  border-radius: var(--r-btn);
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--sm { min-height: 40px; padding: 0.55rem 1rem; font-size: 0.9rem; }
.btn--lg { padding: 1rem 1.8rem; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--green); color: var(--green-ink); }
.btn--primary:hover { background: var(--green-dark); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--navy); }
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--green); color: var(--green-ink); }
/* Top-bar action buttons: white, turning green on hover */
.btn--top { background: var(--white); color: var(--navy); }
.btn--top:hover { background: var(--green); color: var(--green-ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--navy); color: var(--navy); background: var(--white); }

.arrow-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 600; font-size: 0.95rem; color: var(--navy);
}
.arrow-link svg { transition: transform 0.2s ease; }
.arrow-link:hover { text-decoration: none; }
.arrow-link:hover svg { transform: translateX(4px); }

.section { padding-block: var(--section-y); }
.section--alt { background: var(--paper); }
.section__title { font-size: var(--fs-h2); }
.section__intro { color: var(--muted); margin: 0; }

.section-head { margin-bottom: var(--space-lg); max-width: 640px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--row { display: flex; flex-direction: column; gap: var(--space-sm); max-width: none; }

/* -----------------------------------------------------------------
   4. HEADER
   ----------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); }

/* Utility bar (more vertical padding per request) */
.topbar { display: none; background: var(--navy); color: rgba(255,255,255,0.92); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); padding-block: 0.85rem; font-size: 0.9rem; }
.topbar__contact { display: flex; gap: var(--space-md); }
.topbar__contact li { display: inline-flex; align-items: center; gap: 0.45rem; }
.topbar__contact a { color: rgba(255,255,255,0.92); }
.topbar__contact a:hover { color: var(--green); text-decoration: none; }
.topbar__actions { display: flex; align-items: center; gap: 0.6rem; }
.topbar__link { display: inline-flex; align-items: center; min-height: 40px; padding: 0.5rem 1rem; border-radius: var(--r-btn); background: var(--green); color: var(--green-ink); font-weight: 600; font-size: 0.9rem; transition: background-color 0.18s ease, color 0.18s ease; }
.topbar__link:hover { background: var(--white); color: var(--navy); text-decoration: none; }
.topbar .btn--ghost { color: var(--white); border-color: rgba(255,255,255,0.45); }
.topbar .btn--ghost:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

/* Main bar */
.mainbar { border-bottom: 1px solid var(--line); }
.mainbar__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); min-height: 72px; }
.mainbar__logo img { width: 190px; height: auto; }

.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 44px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0; color: var(--ink); cursor: pointer; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; display: block; width: 20px; height: 2px; background: var(--ink); transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before { position: absolute; top: -6px; }
.nav-toggle__bars::after  { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { transform: translateY(-6px) rotate(-45deg); }

/* Search field */
.nav-search { display: flex; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.nav-search input { flex: 1; border: 0; outline: 0; padding: 0.6rem 0.9rem; font-family: var(--font); font-size: 0.95rem; color: var(--ink); background: transparent; min-width: 0; }
.nav-search button { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border: 0; background: var(--navy); color: var(--white); cursor: pointer; }
.nav-search button:hover { background: var(--navy-dark); }
.nav-search--bar { display: none; }        /* desktop only */
.nav-search--panel { margin-bottom: var(--space-sm); }

/* Primary nav - mobile panel */
.primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); padding: var(--space-sm) var(--gutter) var(--space-md); max-height: calc(100vh - 72px); overflow-y: auto; }
.primary-nav.is-open { display: block; }

.menu > li { border-bottom: 1px solid var(--line); }
.menu > li > a, .menu__parent {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  min-height: 48px; gap: 0.5rem; padding: 0.5rem 0.25rem;
  font-family: var(--font); font-size: 1.05rem; font-weight: 500; color: var(--ink);
  background: none; border: 0; text-align: left; cursor: pointer;
}
.menu > li > a:hover, .menu__parent:hover { color: var(--navy); text-decoration: none; }
.chevron { transition: transform 0.2s ease; color: var(--muted); }
.menu__parent[aria-expanded="true"] .chevron { transform: rotate(180deg); }

.submenu { display: none; padding: 0 0 0.6rem 0.25rem; }
.has-submenu.is-open > .submenu { display: block; }
.submenu a { display: block; min-height: 44px; padding: 0.6rem 0.75rem; color: var(--body); font-size: 0.98rem; border-left: 2px solid var(--line); }
.submenu a:hover { color: var(--navy); border-left-color: var(--navy); text-decoration: none; }

.nav-actions { display: flex; flex-direction: column; gap: 0.6rem; margin-top: var(--space-md); }
.nav-actions__link { text-align: center; font-weight: 600; color: var(--navy); min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }

/* -----------------------------------------------------------------
   5. HERO (full-bleed background image)
   ----------------------------------------------------------------- */
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-start; min-height: clamp(460px, 72vh, 620px); }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center right; z-index: -2; }
.hero::after {               /* legibility wash over the photo */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(231, 240, 244, 0.92);
}
/* Mobile: extra top whitespace before the text */
.hero__inner { width: 100%; padding-block: calc(var(--space-xl) + 1.5rem) var(--space-lg); }
.hero__copy { max-width: 540px; }
.hero__title { font-size: var(--fs-h1); font-weight: 700; margin-bottom: 0.4em; }
.hero__lead { display: none; color: var(--body); margin-bottom: var(--space-md); font-size: 1.1rem; }

/* -----------------------------------------------------------------
   6. CERTIFICATION
   ----------------------------------------------------------------- */
.cert-grid { display: grid; gap: var(--space-md); }
.cert-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--space-md);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.cert-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: transparent; }
.cert-card__media { background: var(--paper); border-radius: var(--r-md); padding: var(--space-md); display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-sm); }
.cert-card__media img { width: auto; max-height: 120px; }
.cert-card__title { font-size: var(--fs-h3); margin-bottom: 0.4rem; }
.cert-card p { color: var(--muted); font-size: 0.98rem; margin-bottom: var(--space-sm); }
.cert-card .arrow-link { margin-top: auto; }

/* -----------------------------------------------------------------
   7. ABOUT panel
   ----------------------------------------------------------------- */
/* Full-width navy band */
.about-band { background: var(--navy); color: var(--white); padding-block: var(--section-y); }
.about-band__inner { display: grid; gap: var(--space-lg); align-items: center; }
.about-band__media img { width: 100%; border-radius: var(--r-lg); aspect-ratio: 4 / 3; object-fit: cover; }
.about-band__title { color: var(--white); font-size: var(--fs-h2); font-weight: 700; }
.about-band__copy p { color: rgba(255,255,255,0.9); margin-bottom: var(--space-md); }

/* Statistics strip (inside the navy band) */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: var(--space-lg); background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.18); border-radius: var(--r-lg); overflow: hidden; }
.stats li { background: var(--navy); padding: var(--space-md) var(--space-sm); text-align: center; }
.stats__num { display: block; font-size: 2rem; font-weight: 700; color: var(--green); line-height: 1; margin-bottom: 0.35rem; }
.stats__label { display: block; font-size: 0.85rem; color: rgba(255,255,255,0.85); }

/* -----------------------------------------------------------------
   8. BENEFITS
   ----------------------------------------------------------------- */
.split-head { margin-bottom: var(--space-lg); }
.split-head__intro { color: var(--muted); margin: 0; }
.benefits { display: grid; gap: var(--space-md); }

.feature-card { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--ink); color: var(--white); min-height: 360px; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; }
.feature-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.feature-card__scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(10,22,30,0.85) 12%, rgba(10,22,30,0.1) 72%); }
.feature-card__body { padding: var(--space-md); }
.feature-card__title { color: var(--white); font-size: var(--fs-h3); font-weight: 700; margin-bottom: 0.4rem; }
.feature-card__body p { color: rgba(255,255,255,0.9); margin: 0; font-size: 0.95rem; }

.tall-card { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; min-height: 220px; isolation: isolate; }
.tall-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.tall-card__scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(10,22,30,0.6), rgba(10,22,30,0.08)); }
.tall-card__label { position: absolute; left: 1rem; bottom: 1rem; color: var(--white); font-weight: 700; font-size: 1.15rem; }
.tall-card:hover { text-decoration: none; }

/* -----------------------------------------------------------------
   9. EVENTS (upcoming)
   ----------------------------------------------------------------- */
.events { display: grid; gap: var(--space-sm); }
.event { display: grid; grid-template-columns: auto 1fr; gap: var(--space-sm) var(--space-md); align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--space-sm) var(--space-md); transition: box-shadow 0.2s ease, border-color 0.2s ease; }
.section--alt .event { background: var(--white); }
.event:hover { box-shadow: var(--shadow-sm); border-color: var(--navy); }
.event__date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 72px; height: 72px; background: var(--green); color: var(--green-ink); border-radius: var(--r-sm); line-height: 1.1; }
.event__day { font-size: 1.6rem; font-weight: 700; }
.event__mo { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; }
.event__yr { font-size: 0.72rem; opacity: 0.85; }
.event__body { min-width: 0; }
.event__name { font-size: 1.1rem; font-weight: 600; margin: 0 0 0.35rem; line-height: 1.3; }
.event__name a { color: var(--ink); }
.event__name a:hover { color: var(--navy); text-decoration: none; }
.event__meta { margin: 0; display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.event__dow { font-size: 0.85rem; color: var(--muted); font-weight: 500; }
.event__action { grid-column: 1 / -1; justify-self: start; font-weight: 600; font-size: 0.9rem; color: var(--navy); padding: 0.45rem 0.95rem; border: 1px solid var(--line); border-radius: var(--r-sm); min-height: 40px; display: inline-flex; align-items: center; }
.event__action:hover { background: var(--navy); color: var(--white); border-color: var(--navy); text-decoration: none; }

.tag { display: inline-block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; padding: 0.2rem 0.6rem; border-radius: var(--r-sm); }
.tag--onsite { background: var(--tint); color: var(--navy); }
.tag--online { background: var(--mint); color: var(--green-ink); }

/* -----------------------------------------------------------------
   10. PAST EVENTS
   ----------------------------------------------------------------- */
.past-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; color: inherit; height: 100%; transition: box-shadow 0.2s ease, transform 0.2s ease; }
.past-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.past-card__media { aspect-ratio: 16 / 9; overflow: hidden; }
.past-card__media img { width: 100%; height: 100%; object-fit: cover; }
.past-card__body { padding: var(--space-md); display: flex; flex-direction: column; gap: 0.5rem; }
.past-card__tag { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--navy); }
.past-card__title { font-size: 1.1rem; margin: 0; }
.past-card__meta { display: grid; gap: 0.4rem; margin: 0; font-size: 0.9rem; color: var(--muted); }
.past-card__meta span { display: inline-flex; align-items: center; gap: 0.5rem; }
.past-card__meta svg { color: var(--navy); flex: none; }

/* -----------------------------------------------------------------
   11. SERVICE / EQA + tiles
   ----------------------------------------------------------------- */
.service-split { display: grid; gap: var(--space-lg); align-items: center; margin-bottom: var(--space-xl); }
.service-split__media img { width: 100%; border-radius: var(--r-lg); aspect-ratio: 4 / 3; object-fit: cover; }
.service-split__sub { font-weight: 600; color: var(--ink); margin-bottom: 0.75rem; }

.check-list { display: grid; gap: 0.6rem; margin: 0 0 var(--space-md); }
.check-list li { position: relative; padding-left: 1.7rem; color: var(--body); }
.check-list li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.check-list--split { display: grid; gap: 0.6rem; padding-top: var(--space-sm); border-top: 1px solid var(--line); }
.check-list--split span { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--ink); }
.check-list--split svg { color: var(--green-dark); }

.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-sm); }
.tiles a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; text-align: center; min-height: 130px; padding: var(--space-sm); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--ink); font-weight: 600; font-size: 0.92rem; transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease; }
.tiles a:hover { text-decoration: none; box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: transparent; }
.tile__icon { color: var(--navy); }

/* -----------------------------------------------------------------
   12. CTA band
   ----------------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; }
.cta-band__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(10,22,30,0.4); }
.cta-band__inner { padding-block: var(--section-y); display: flex; justify-content: center; }
.cta-card { background: var(--tint); border-radius: var(--r-lg); padding: var(--space-lg) var(--space-md); text-align: center; max-width: 640px; box-shadow: var(--shadow-md); }
.cta-card__title { font-size: clamp(1.4rem, 1.1rem + 1.6vw, 2rem); font-weight: 700; margin-bottom: var(--space-md); }

/* -----------------------------------------------------------------
   13. News / featured posts
   ----------------------------------------------------------------- */
.news-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; height: 100%; transition: box-shadow 0.2s ease, transform 0.2s ease; }
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.news-card__media { aspect-ratio: 16 / 10; overflow: hidden; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; }
.news-card__body { padding: var(--space-md); display: flex; flex-direction: column; }
.news-card__meta { display: flex; align-items: center; gap: 0.75rem; margin: 0 0 var(--space-sm); padding-bottom: var(--space-sm); border-bottom: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }
.news-card__sep { width: 1px; height: 14px; background: var(--line); }
.news-card__title { font-size: 1.12rem; font-weight: 600; margin: 0; line-height: 1.35; }
.news-card__title a { color: var(--ink); }
.news-card__title a:hover { color: var(--navy); text-decoration: none; }

/* -----------------------------------------------------------------
   13b. Carousel (Past events + Newsroom)
   ----------------------------------------------------------------- */
.carousel { position: relative; }
.carousel__track {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  padding: 6px 0 var(--space-sm);
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { flex: 0 0 84%; scroll-snap-align: start; }
.carousel__nav { display: flex; gap: 0.6rem; justify-content: center; margin-top: var(--space-md); }
.carousel__btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--line); color: var(--ink);
  cursor: pointer; transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}
.carousel__btn:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.carousel__btn[disabled] { opacity: 0.35; cursor: default; }
.carousel__btn[disabled]:hover { background: var(--white); color: var(--ink); border-color: var(--line); }

/* -----------------------------------------------------------------
   13c. Services ("What we offer") - staggered rows
   ----------------------------------------------------------------- */
.stagger { position: relative; display: grid; gap: var(--space-lg); }
.stagger__row { display: grid; gap: var(--space-md); align-items: center; }
.stagger__media img { width: 100%; border-radius: var(--r-lg); aspect-ratio: 16 / 10; object-fit: cover; box-shadow: var(--shadow-sm); }
.stagger__chip { display: inline-block; background: var(--navy); color: var(--white); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.35rem 0.8rem; border-radius: var(--r-sm); margin-bottom: var(--space-sm); }
.stagger__title { font-size: var(--fs-h2); font-weight: 700; margin-bottom: 0.5rem; }
.stagger__text p { color: var(--muted); margin-bottom: var(--space-md); }

/* -----------------------------------------------------------------
   13d. FAQ
   ----------------------------------------------------------------- */
.faq__inner { display: grid; gap: var(--space-lg); align-items: start; }
.faq__intro p { color: var(--muted); margin-bottom: var(--space-md); }
.faq__cats { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 var(--space-md); }
.faq__cat { font-family: var(--font); font-size: 0.9rem; font-weight: 600; color: var(--body); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 0.45rem 0.95rem; cursor: pointer; transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease; }
.faq__cat:hover { border-color: var(--navy); color: var(--navy); }
.faq__cat.is-active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.faq__item[hidden] { display: none; }
.faq__list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: var(--space-md) 0; font-family: var(--font); font-size: 1.08rem; font-weight: 600; color: var(--ink); }
.faq__q:hover { color: var(--navy); }
.faq__icon { flex: none; color: var(--navy); transition: transform 0.25s ease; }
.faq__item.is-open .faq__icon { transform: rotate(180deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.28s ease; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > p { overflow: hidden; margin: 0; color: var(--body); padding-bottom: 0; }
.faq__item.is-open .faq__a > p { padding-bottom: var(--space-md); }

/* -----------------------------------------------------------------
   14. FOOTER (navy = logo blue)
   ----------------------------------------------------------------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.85); }
.footer__top { display: grid; gap: var(--space-lg); padding-block: var(--section-y) var(--space-lg); }

/* Newsletter block */
.footer__news-title { color: var(--white); font-weight: 600; font-size: 1.25rem; max-width: 30ch; margin-bottom: var(--space-md); }
.newsletter { display: flex; background: var(--white); border-radius: var(--r-pill); padding: 5px; max-width: 460px; }
.newsletter input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 0.7rem 1.1rem; font-family: var(--font); font-size: 0.98rem; color: var(--ink); }
.newsletter button { flex: none; border: 0; cursor: pointer; background: var(--green); color: var(--green-ink); font-family: var(--font); font-weight: 600; font-size: 0.95rem; padding: 0 1.4rem; border-radius: var(--r-pill); min-height: 44px; transition: background-color 0.18s ease; }
.newsletter button:hover { background: var(--green-dark); }
.footer__note { color: rgba(255,255,255,0.6); font-size: 0.85rem; margin: var(--space-sm) 0 var(--space-md); max-width: 44ch; }

.footer__social { display: flex; gap: 0.75rem; }
.footer__social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--r-sm); border: 1px solid rgba(255,255,255,0.4); color: var(--white); transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease; }
.footer__social a:hover { background: var(--green); color: var(--green-ink); border-color: var(--green); }

/* Link columns */
.footer__cols { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); }
.footer__title { color: var(--white); font-weight: 600; font-size: 1.1rem; margin-bottom: var(--space-sm); }
.footer__links a { color: rgba(255,255,255,0.85); display: inline-block; padding: 0.35rem 0; }
.footer__links a:hover { color: var(--green); }
.footer__contact li { display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: var(--space-sm); color: rgba(255,255,255,0.85); }
.footer__contact .icon { color: var(--green); margin-top: 3px; }
.footer__contact a { color: rgba(255,255,255,0.9); }
.footer__contact a:hover { color: var(--green); }

.footer__contact span { word-break: break-word; }
.footer__bar { background: var(--green); color: var(--green-ink); text-align: center; font-size: 0.85rem; padding-block: 0.9rem; }
.footer__bar p { margin: 0; }

/* -----------------------------------------------------------------
   15. Back to top
   ----------------------------------------------------------------- */
.to-top { position: fixed; right: 1rem; bottom: 1rem; z-index: 90; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: var(--white); box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, background-color 0.2s ease; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--navy-dark); text-decoration: none; }

/* =================================================================
   16. BREAKPOINTS
   ================================================================= */
@media (min-width: 600px) {
  .section-head--row { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .feature-card { grid-column: 1 / -1; }
  .event { grid-template-columns: auto 1fr auto; }
  .event__action { grid-column: auto; justify-self: end; }
  .carousel__track > * { flex-basis: calc((100% - var(--space-md)) / 2); }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 768px) {
  .about-band__inner { grid-template-columns: 1fr 1fr; }
  .split-head { display: grid; grid-template-columns: 1.3fr 1fr; align-items: end; gap: var(--space-lg); }
  .service-split { grid-template-columns: 1fr 1fr; }
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .cert-grid { grid-template-columns: repeat(3, 1fr); }
  .footer__cols { grid-template-columns: 1fr 1fr 1.5fr; }

  /* Staggered services: alternating image / text with a centre line */
  .stagger { gap: var(--space-xl); }
  .stagger::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line); transform: translateX(-50%); }
  .stagger__row { grid-template-columns: 1fr 1fr; gap: var(--space-xl); position: relative; }
  .stagger__row:nth-child(even) .stagger__media { order: 2; }
  .carousel__track > * { flex-basis: calc((100% - 2 * var(--space-md)) / 3); }
  .hero__lead { display: block; }          /* lead returns on larger screens */
  .faq__inner { grid-template-columns: 1fr 1.3fr; gap: var(--space-xl); }
}

/* Desktop nav (two layers + search in bar, menu fills the bar) */
@media (min-width: 960px) {
  .topbar { display: block; }
  .nav-toggle { display: none; }
  .nav-actions { display: none; }
  .nav-search--panel { display: none; }
  .nav-search--bar { display: flex; flex: none; width: 240px; }

  .mainbar__logo img { width: 210px; }

  .primary-nav { display: flex; position: static; flex: 1; align-items: center; justify-content: center; box-shadow: none; border: 0; padding: 0; max-height: none; overflow: visible; }
  .menu { display: flex; align-items: center; gap: 0.15rem; }
  .menu > li { border-bottom: 0; position: relative; }
  .menu > li > a, .menu__parent { width: auto; min-height: 44px; padding: 0.5rem 0.7rem; font-size: 1rem; font-weight: 500; border-radius: var(--r-sm); }
  .menu__parent { cursor: default; }

  /* Dropdowns: opening is driven by JS (.is-open) so only one is ever open.
     top:100% keeps the panel flush with the bar (no hover dead-zone). */
  .submenu { display: block; position: absolute; top: 100%; left: 0; min-width: 250px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-md); padding: 0.5rem; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease; }
  .has-submenu.is-open > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
  .menu > li:last-child > .submenu { left: auto; right: 0; }
  .submenu a { min-height: 40px; border-left: 0; border-radius: var(--r-sm); padding: 0.55rem 0.75rem; }
  .submenu a:hover { background: var(--tint); }

  .hero { align-items: center; }
  .hero__inner { padding-block: var(--space-xl); }
  .hero::after { background: linear-gradient(90deg, rgba(231,240,244,0.97) 0%, rgba(231,240,244,0.9) 32%, rgba(231,240,244,0.3) 64%, rgba(231,240,244,0) 100%); }

  /* Benefits: large feature card + two narrow cards that expand on hover */
  .benefits { display: flex; gap: var(--space-md); }
  .feature-card { flex: 3 1 0; min-height: 470px; }
  .tall-card { flex: 1 1 0; min-height: 470px; transition: flex-grow 0.45s ease; }
  .tall-card:hover, .tall-card:focus-visible { flex-grow: 3; }
  .tall-card__label { writing-mode: vertical-rl; transform: rotate(180deg); transform-origin: center; white-space: nowrap; left: 50%; translate: -50% 0; bottom: 1.5rem; transition: writing-mode 0s; }
  .tall-card:hover .tall-card__label, .tall-card:focus-visible .tall-card__label { writing-mode: horizontal-tb; transform: none; left: 1.25rem; translate: 0 0; }

  .cta-card { padding: var(--space-xl) var(--space-lg); }

  /* Footer: newsletter left, link columns right */
  .footer__top { grid-template-columns: 1fr 1.3fr; gap: var(--space-xl); align-items: start; }
}

@media (min-width: 1280px) {
  .nav-search--bar { width: 280px; }
}

/* -----------------------------------------------------------------
   17. Reduced motion
   ----------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
