/* ==========================================================================
   Mahara Security and Housekeeping Services — maharasecurity.com
   Brand palette matched to the sister concern maharahomecare.com
   ========================================================================== */

:root {
  --green: #004032;
  --green-dark: #00281f;
  --green-deep: #001a14;
  --green-mid: #0a5a46;
  --green-soft: #e6eeeb;
  --cream: #ded5c6;
  --cream-light: #efe9de;
  --cream-pale: #f6f2ea;
  --sand: #c8b9a6;
  --gold: #b08d57;
  --text: #334155;
  --text-strong: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --white: #ffffff;
  --offwhite: #f7faf9;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(0, 40, 31, .06), 0 2px 8px rgba(0, 40, 31, .05);
  --shadow: 0 4px 12px rgba(0, 40, 31, .08), 0 12px 32px rgba(0, 40, 31, .07);
  --shadow-lg: 0 18px 50px rgba(0, 40, 31, .14);
  --container: 1200px;
  --header-h: 84px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 120px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

/* Stroke-based icon system: colour is inherited via `color` */
.icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.icon--fill { fill: currentColor; stroke: none; }
a { color: var(--green); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--green-mid); }

h1, h2, h3, h4, h5 {
  margin: 0 0 .6em;
  color: var(--green);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.15rem; }
li { margin-bottom: .45rem; }

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

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.section { padding: clamp(56px, 7vw, 92px) 0; }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.section--cream { background: var(--cream-pale); }
.section--offwhite { background: var(--offwhite); }
.section--green { background: var(--green); color: #e9f1ee; }
.section--green h2,
.section--green h3 { color: var(--white); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--green); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Section heading ---------- */
.sec-head { max-width: 760px; margin: 0 auto clamp(32px, 4vw, 52px); text-align: center; }
.sec-head--left { margin-inline: 0; text-align: left; }
.eyebrow {
  display: inline-block; margin-bottom: .75rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--green-mid);
}
.section--green .eyebrow { color: var(--cream); }
.eyebrow::after {
  content: ""; display: block; width: 44px; height: 3px; margin-top: .6rem;
  background: var(--gold); border-radius: 2px;
}
.sec-head .eyebrow::after { margin-inline: auto; }
.sec-head--left .eyebrow::after { margin-inline: 0; }
.sec-head p { color: var(--muted); font-size: 1.04rem; margin-bottom: 0; }
.section--green .sec-head p { color: #c9ddd7; }
/* An eyebrow written as a paragraph block is still an eyebrow — without this,
   `.sec-head p` above wins on specificity and greys it out at body size. */
.sec-head p.eyebrow { color: var(--green-mid); font-size: .78rem; margin-bottom: .75rem; }
.section--green .sec-head p.eyebrow { color: var(--cream); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: 14px 28px; border: 2px solid transparent; border-radius: 6px;
  font-size: .86rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  cursor: pointer; text-align: center;
  transition: all .25s var(--ease);
}
.btn--primary { background: var(--green); color: #fff; border-color: var(--green); }
.btn--primary:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--gold { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn--gold:hover { background: #9a7a48; border-color: #9a7a48; color: #fff; transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--green); border-color: var(--green); }
.btn--outline:hover { background: var(--green); color: #fff; }
.btn--light { background: var(--cream); color: var(--green-dark); border-color: var(--cream); }
.btn--light:hover { background: #fff; border-color: #fff; color: var(--green-dark); transform: translateY(-2px); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn--ghost-light:hover { background: #fff; color: var(--green); border-color: #fff; }
.btn--sm { padding: 10px 20px; font-size: .78rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--offwhite); border-bottom: 1px solid var(--line); font-size: .85rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 46px; flex-wrap: wrap; }
.topbar__list { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.topbar__list a, .topbar__list span { display: inline-flex; align-items: center; gap: .45rem; color: var(--text); }
.topbar__list a:hover { color: var(--green); }
.topbar__list svg { width: 15px; height: 15px; color: var(--green-mid); flex: none; }
.topbar__right { display: flex; align-items: center; gap: 14px; }
.social { display: flex; gap: 8px; }
.social a {
  width: 30px; height: 30px; display: grid; place-items: center;
  background: var(--green); border-radius: 50%; color: #fff;
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.social a:hover { background: var(--gold); transform: translateY(-2px); color: #fff; }
.social svg { width: 15px; height: 15px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--green);
  box-shadow: 0 2px 14px rgba(0, 26, 20, .25);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 56px; width: auto; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__list > li { position: relative; }
.nav__list > li > a {
  display: block; padding: 12px 14px;
  color: #dfeae6; font-size: .88rem; font-weight: 500; letter-spacing: .02em;
  border-radius: 6px;
}
.nav__list > li > a:hover,
.nav__list > li > a:focus-visible { color: #fff; background: rgba(255, 255, 255, .09); }
.nav__list > li > a.is-active { color: #fff; background: rgba(255, 255, 255, .13); }
.nav__list > li > a.is-active::after {
  content: ""; display: block; height: 2px; margin-top: 4px;
  background: var(--gold); border-radius: 2px;
}
.header .btn { margin-left: 10px; flex: none; }

/* A button inside the nav list must not inherit the nav-link colour/padding */
.nav__list > li > a.btn--light {
  padding: 10px 20px;
  color: var(--green-dark);
  background: var(--cream);
  border-color: var(--cream);
}
.nav__list > li > a.btn--light:hover,
.nav__list > li > a.btn--light:focus-visible {
  color: var(--green-dark);
  background: #fff;
  border-color: #fff;
}

/* Flex (not grid) so the three bars stay exactly 7px apart — grid rows
   stretch to fill the button and break the collapse-to-X transform. */
.nav-toggle {
  display: none; width: 46px; height: 46px; margin-left: auto;
  background: rgba(255, 255, 255, .1); border: 0; border-radius: 8px; cursor: pointer;
  padding: 0;
  flex-direction: column; align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s var(--ease), opacity .2s var(--ease); }
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--cream); overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: auto -10% -45% 55%;
  height: 90%; background: rgba(255, 255, 255, .22);
  border-radius: 50% 50% 0 0; pointer-events: none;
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 60px); align-items: center;
  padding: clamp(48px, 6vw, 84px) 0;
}
.hero__welcome {
  display: inline-block; margin-bottom: 1rem; padding-bottom: 3px;
  color: var(--green); font-weight: 600; font-size: .95rem;
  border-bottom: 2px solid var(--green);
}
.hero h1 { color: var(--green); margin-bottom: .7rem; }
.hero__lead { font-size: 1.08rem; color: #3d4f4a; max-width: 56ch; margin-bottom: 1.6rem; }
.hero__tagline {
  margin-top: 1.6rem; padding-top: 1.1rem; border-top: 1px solid rgba(0, 64, 50, .18);
  font-size: 1rem; font-weight: 600; font-style: italic; color: var(--green);
}

/* Hero visual (CSS/SVG composition — no photography needed) */
.hero__visual { position: relative; display: grid; place-items: center; min-height: 340px; }
.hero__card {
  width: 100%; max-width: 440px; padding: 30px;
  background: var(--green); border-radius: 20px; color: #e9f1ee;
  box-shadow: var(--shadow-lg);
}
.hero__card h3 { color: #fff; font-size: 1.1rem; margin-bottom: 1rem; }
.hero__card ul { list-style: none; margin: 0; padding: 0; }
.hero__card li { display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; margin-bottom: .8rem; }
.hero__card li:last-child { margin-bottom: 0; }
.hero__card svg { width: 20px; height: 20px; color: var(--cream); flex: none; margin-top: 2px; }
.hero__badge {
  position: absolute; right: 0; bottom: -18px;
  background: #fff; border-radius: 14px; padding: 14px 20px; box-shadow: var(--shadow);
  text-align: center;
}
.hero__badge strong { display: block; font-size: 1.6rem; color: var(--green); line-height: 1.1; }
.hero__badge span { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ---------- Page banner (inner pages) ---------- */
.banner { background: var(--green); color: #e9f1ee; padding: clamp(44px, 6vw, 74px) 0; position: relative; overflow: hidden; }
.banner::before {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px;
  border: 46px solid rgba(255, 255, 255, .05); border-radius: 50%;
}
.banner__inner { position: relative; z-index: 1; }
.banner h1 { color: #fff; margin-bottom: .4rem; }
.banner p { color: #c9ddd7; max-width: 62ch; margin: 0; }
.crumbs { font-size: .83rem; color: #a9c5bd; margin-bottom: .9rem; }
.crumbs a { color: var(--cream); }
.crumbs a:hover { color: #fff; }
.crumbs span { opacity: .6; margin: 0 .4rem; }

/* ---------- Trust strip ---------- */
.trust { background: var(--white); border-bottom: 1px solid var(--line); }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 30px 0; }
.trust__item { display: flex; gap: 14px; align-items: center; padding: 6px 14px; }
.trust__item + .trust__item { border-left: 1px solid var(--line); }
.trust__item svg { width: 34px; height: 34px; color: var(--green); flex: none; }
.trust__item strong { display: block; color: var(--green); font-size: .98rem; line-height: 1.3; }
.trust__item span { font-size: .84rem; color: var(--muted); }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; height: 100%;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--cream); }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .95rem; margin-bottom: 0; }
.card__icon {
  width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--green-soft); border-radius: 12px; color: var(--green);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.card__icon svg { width: 30px; height: 30px; }
.card:hover .card__icon { background: var(--green); color: var(--cream); }
.card__tag {
  display: inline-block; margin-bottom: 12px; padding: 4px 12px;
  background: var(--cream-light); color: var(--green);
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; border-radius: 20px;
}
.card__link {
  display: inline-flex; align-items: center; gap: .4rem; margin-top: 16px;
  font-size: .8rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--green);
}
.card__link svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.card__link:hover svg { transform: translateX(4px); }
.card ul { padding-left: 1.1rem; color: var(--muted); font-size: .93rem; }

/* ---------- Feature list (why choose us) ---------- */
.feature { display: flex; gap: 18px; padding: 22px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); height: 100%; }
.feature__num {
  flex: none; width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--green); color: var(--cream); border-radius: 10px;
  font-weight: 700; font-size: 1rem;
}
.feature h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.feature p { font-size: .93rem; color: var(--muted); margin: 0; }

/* ---------- Split (text + panel) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.split--narrow { grid-template-columns: 1.15fr .85fr; }
.panel { background: var(--green); color: #e9f1ee; border-radius: 20px; padding: clamp(26px, 3vw, 40px); box-shadow: var(--shadow); }
.panel h3 { color: #fff; }
.panel p { color: #c9ddd7; }
.panel--cream { background: var(--cream-light); color: var(--text); box-shadow: none; border: 1px solid var(--sand); }
.panel--cream h3 { color: var(--green); }
.panel--cream p { color: var(--muted); }

.statlist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; list-style: none; margin: 0; padding: 0; }
.statlist li { margin: 0; padding: 18px; background: rgba(255, 255, 255, .08); border-radius: 12px; }
.panel--cream .statlist li { background: #fff; border: 1px solid var(--line); }
.statlist strong { display: block; font-size: 1.7rem; color: var(--cream); line-height: 1.15; }
.panel--cream .statlist strong { color: var(--green); }
.statlist span { font-size: .82rem; letter-spacing: .04em; opacity: .85; }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .75rem; }
.checklist svg { width: 19px; height: 19px; color: var(--green); flex: none; margin-top: 4px; }
.panel .checklist svg { color: var(--cream); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 30px 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); text-align: center; }
.step__num {
  width: 54px; height: 54px; margin: 0 auto 16px; display: grid; place-items: center;
  background: var(--green); color: var(--cream); border-radius: 50%;
  font-size: 1.25rem; font-weight: 700;
}
/* Each step is a block the team can drag, so the number comes from the
   counter rather than from the markup — reorder and the row renumbers. */
.step__num:empty::before { counter-increment: step; content: counter(step); }
.step h3 { font-size: 1.08rem; }
.step p { font-size: .94rem; color: var(--muted); margin: 0; }

/* ---------- Coverage chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; list-style: none; padding: 0; margin: 0; }
.chips li { margin: 0; }
.chips span {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: 11px 22px; background: var(--white); border: 1px solid var(--sand); border-radius: 30px;
  font-weight: 500; color: var(--green); font-size: .93rem;
}
.chips svg { width: 16px; height: 16px; color: var(--gold); }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 620px; }
th, td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: .94rem; vertical-align: top; }
thead th { background: var(--green); color: #fff; font-size: .8rem; letter-spacing: .09em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: var(--offwhite); }
td strong { color: var(--green); }

/* ---------- Testimonials ---------- */
.quote {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; height: 100%; position: relative;
}
.quote::before {
  content: "\201C"; position: absolute; top: 10px; right: 24px;
  font-family: Georgia, serif; font-size: 4.5rem; line-height: 1; color: var(--cream);
}
.quote p { position: relative; z-index: 1; font-size: .97rem; color: var(--text); }
.quote footer { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.quote__avatar {
  width: 42px; height: 42px; flex: none; display: grid; place-items: center;
  background: var(--green); color: var(--cream); border-radius: 50%; font-weight: 700; font-size: .95rem;
}
.quote cite { font-style: normal; font-weight: 600; color: var(--green); display: block; font-size: .93rem; }
.quote small { color: var(--muted); font-size: .82rem; }

/* ---------- Team ---------- */
.member { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.member:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.member__photo { aspect-ratio: 4 / 3; display: grid; place-items: center; background: linear-gradient(145deg, var(--green) 0%, var(--green-mid) 100%); }
.member__initials { font-size: 2.4rem; font-weight: 700; color: var(--cream); letter-spacing: .06em; }
.member__body { padding: 22px; }
.member__body h3 { font-size: 1.1rem; margin-bottom: .2rem; }
.member__role { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: .8rem; }
.member__body p { font-size: .92rem; color: var(--muted); margin: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; background: none; border: 0; cursor: pointer; text-align: left;
  font-family: inherit; font-size: 1rem; font-weight: 600; color: var(--green);
}
.faq__q:hover { background: var(--offwhite); }
.faq__q svg { width: 18px; height: 18px; color: var(--green-mid); flex: none; transition: transform .25s var(--ease); }
.faq__item.is-open .faq__q { background: var(--green-soft); }
.faq__item.is-open .faq__q svg { transform: rotate(45deg); }
.faq__a { display: none; padding: 4px 22px 20px; color: var(--muted); font-size: .96rem; }
.faq__item.is-open .faq__a { display: block; }
.faq__a p:last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 34px); box-shadow: var(--shadow-sm); }
.form h3 { margin-bottom: .3rem; }
.form__note { font-size: .88rem; color: var(--muted); margin-bottom: 1.4rem; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--text-strong); margin-bottom: 6px; }
.field .req { color: #b91c1c; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px;
  font-family: inherit; font-size: .95rem; color: var(--text);
  background: var(--offwhite); border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green); background: #fff; box-shadow: 0 0 0 3px rgba(0, 64, 50, .09);
}
.field textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .btn { width: 100%; margin-top: 6px; }
.form__status { margin-top: 14px; font-size: .9rem; padding: 12px 14px; border-radius: var(--radius-sm); display: none; }
.form__status.is-visible { display: block; }
.form__status--ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }

/* ---------- Contact details ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.contact-list__icon { width: 46px; height: 46px; flex: none; display: grid; place-items: center; background: var(--green-soft); border-radius: 10px; color: var(--green); }
.contact-list__icon svg { width: 20px; height: 20px; }
.contact-list strong { display: block; color: var(--green); font-size: .98rem; }
.contact-list a, .contact-list span { color: var(--text); font-size: .95rem; }
.contact-list a:hover { color: var(--green-mid); }

/* ---------- CTA band ---------- */
.cta { background: var(--green); color: #e9f1ee; padding: clamp(44px, 5vw, 66px) 0; position: relative; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; left: -60px; bottom: -120px; width: 300px; height: 300px;
  border: 44px solid rgba(255, 255, 255, .05); border-radius: 50%;
}
.cta__inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin-bottom: .35rem; }
.cta p { color: #c9ddd7; margin: 0; max-width: 56ch; }

/* ---------- Footer ---------- */
.footer { background: var(--green-deep); color: #a9c5bd; font-size: .93rem; padding-top: clamp(44px, 5vw, 66px); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 40px; }
.footer img { height: 54px; width: auto; margin-bottom: 16px; }
.footer h4 { color: #fff; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .6rem; }
.footer a { color: #a9c5bd; }
.footer a:hover { color: var(--cream); }
.footer p { color: #a9c5bd; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .85rem; color: #89a9a0;
}
.footer__bottom a { color: #89a9a0; }

/* ---------- Floating actions ---------- */
.float-actions { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; flex-direction: column; gap: 10px; }
.float-actions a {
  width: 50px; height: 50px; display: grid; place-items: center;
  background: var(--green); border-radius: 50%; box-shadow: var(--shadow); color: #fff;
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.float-actions a:hover { transform: scale(1.08); color: #fff; }
.float-actions a svg { width: 23px; height: 23px; }
.float-actions .is-whatsapp { background: #25d366; }
.float-actions .is-whatsapp:hover { background: #1fb855; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-3 { margin-top: 1.5rem; }
.lead { font-size: 1.08rem; color: var(--text); }
.muted { color: var(--muted); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Reveal on scroll ----------
   Only hidden when the `js` class is present on <html>, so content stays
   visible if JavaScript is disabled or fails to load. */
.reveal { transition: opacity .6s var(--ease), transform .6s var(--ease); }
html.js .reveal { opacity: 0; transform: translateY(22px); }
html.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html.js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .nav-toggle { display: flex; }
  .header .btn { display: none; }
  .brand img { height: 46px; }

  /* Drops directly below the header band, whether or not the top bar is
     still on screen — `fixed` would overlap the logo at page top. */
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--green-dark);
    max-height: 0; overflow: hidden;
    transition: max-height .3s var(--ease);
    box-shadow: 0 16px 30px rgba(0, 26, 20, .3);
  }
  .nav.is-open { max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: 10px 16px 22px; }
  .nav__list > li > a { padding: 14px 12px; border-bottom: 1px solid rgba(255, 255, 255, .08); border-radius: 0; font-size: .95rem; }
  .nav__list > li > a.is-active::after { display: none; }
  .nav__list .btn { display: inline-flex; width: 100%; margin: 16px 0 0; }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { min-height: auto; margin-top: 10px; }
  .hero__badge { position: static; margin: 20px auto 0; display: inline-block; }
  .hero::after { display: none; }

  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .split, .split--narrow { grid-template-columns: 1fr; }
  .trust__grid { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .trust__item { padding: 16px 14px; border-left: 0 !important; border-top: 1px solid var(--line); }
  .trust__item:nth-child(-n+2) { border-top: 0; }
  .trust__item:nth-child(even) { border-left: 1px solid var(--line) !important; }
}

@media (max-width: 680px) {
  body { font-size: 15.5px; }
  .topbar__inner { justify-content: center; padding-block: 8px; }
  .topbar__list { gap: 14px; justify-content: center; font-size: .82rem; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .trust__grid { grid-template-columns: 1fr; }
  .trust__item { border-left: 0 !important; }
  .trust__item:nth-child(-n+2) { border-top: 1px solid var(--line); }
  .trust__item:first-child { border-top: 0; }
  .statlist { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .cta__inner { flex-direction: column; align-items: flex-start; }
  .btn { padding: 13px 22px; }
  .float-actions { right: 12px; bottom: 12px; }
  .float-actions a { width: 46px; height: 46px; }
}

/* ==========================================================================
   WordPress integration
   Classes WordPress generates that the static build never needed.
   ========================================================================== */

/* Current menu item — WordPress sets these on the <li>, not the <a>. */
.nav__list > li.current-menu-item > a,
.nav__list > li.current_page_item > a,
.nav__list > li.current-menu-parent > a,
.nav__list > li.current-menu-ancestor > a,
.nav__list > li.current_page_parent > a { color: #fff; background: rgba(255, 255, 255, .13); }

@media (min-width: 961px) {
  .nav__list > li.current-menu-item > a::after,
  .nav__list > li.current_page_item > a::after {
    content: ""; display: block; height: 2px; margin-top: 4px;
    background: var(--gold); border-radius: 2px;
  }
}

/* The CTA button sits in the same list and must keep its own colours. */
.nav__list > li > a.btn--light,
.nav__list > li.current-menu-item > a.btn--light {
  color: var(--green-dark); background: var(--cream); border-color: var(--cream);
}
.nav__list > li > a.btn--light::after { display: none; }

/* Uploaded logo (Customize → Site Identity) in place of the bundled one. */
.brand .custom-logo { height: 56px; width: auto; }
.footer .custom-logo { height: 54px; width: auto; margin-bottom: 16px; }

@media (max-width: 960px) {
  .brand .custom-logo { height: 46px; }
}

/* Featured image on a team member card. */
.member__photo img { width: 100%; height: 100%; object-fit: cover; }

/* Error state for the enquiry form. */
.form__status--error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* Editor content on generic pages and posts. */
.entry { max-width: 820px; margin-inline: auto; }
.entry > h2 { margin-top: 1.8em; }
.entry > h3 { margin-top: 1.5em; }
.entry > :first-child { margin-top: 0; }
.entry img { border-radius: 10px; }
.entry blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 22px;
  border-left: 3px solid var(--cream); color: var(--muted); font-style: italic;
}
.entry__pages { margin-top: 1.5rem; font-size: .9rem; }

/* Core alignment and caption classes. */
.alignleft { float: left; margin: .4em 1.5em 1em 0; }
.alignright { float: right; margin: .4em 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide, .alignfull { max-width: 100%; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .wp-element-caption { font-size: .85rem; color: var(--muted); margin-top: .5rem; }

/* Pagination. */
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; padding: 9px 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  color: var(--green); font-size: .9rem;
}
.page-numbers:hover { border-color: var(--green); }
.page-numbers.current { background: var(--green); border-color: var(--green); color: #fff; }
.page-numbers.dots { border-color: transparent; background: none; }

/* WordPress's own screen-reader helper. */
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  width: auto; height: auto; clip: auto; margin: 0; padding: 12px 20px;
  background: var(--green); color: #fff; z-index: 999;
}

/* Admin bar must not hide the sticky header. */
body.admin-bar .header { top: 32px; }

@media (max-width: 782px) {
  body.admin-bar .header { top: 46px; }
}

/* ==========================================================================
   Blog
   ========================================================================== */
.post-card {
  display: flex; flex-direction: column; height: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--green-soft); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-card__meta {
  margin-bottom: .5rem;
  font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.post-card__meta span { margin: 0 .35rem; }
.post-card h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.post-card h3 a { color: var(--green); }
.post-card h3 a:hover { color: var(--green-mid); }
.post-card p { color: var(--muted); font-size: .94rem; }
.post-card .card__link { margin-top: auto; }

.post-meta {
  margin: 0; color: #c9ddd7;
  font-size: .85rem; letter-spacing: .05em; text-transform: uppercase;
}
.post-meta span { margin: 0 .35rem; }

.entry__tags { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 8px; }
.entry__tags a {
  display: inline-block; padding: 6px 14px;
  background: var(--cream-light); border-radius: 20px;
  font-size: .8rem; color: var(--green);
}
.entry__tags a:hover { background: var(--cream); }

/* Search form */
.search-form { display: flex; gap: 10px; }
.search-form label { flex: 1; }
.search-form .search-field {
  width: 100%; padding: 12px 14px;
  font-family: inherit; font-size: .95rem;
  background: var(--offwhite); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.search-form .search-field:focus { outline: none; border-color: var(--green); background: #fff; }
.search-form .search-submit {
  padding: 12px 24px; border: 2px solid var(--green); border-radius: 6px;
  background: var(--green); color: #fff; cursor: pointer;
  font-family: inherit; font-size: .82rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
}
.search-form .search-submit:hover { background: var(--green-dark); border-color: var(--green-dark); }

/* ==========================================================================
   Blank canvas template — blocks supply their own sections
   ========================================================================== */
.canvas { padding: clamp(40px, 5vw, 72px) 0; }
.canvas > * { max-width: 820px; margin-inline: auto; padding-inline: 20px; }
.canvas > .alignwide { max-width: var(--container); }
.canvas > .alignfull { max-width: none; padding-inline: 0; }
.canvas > .alignfull.section,
.canvas > .alignfull.cta { padding-inline: 0; }
.canvas > .alignfull > .wp-block-group__inner-container,
.canvas > .alignfull .wp-block-columns { max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.canvas .wp-block-columns { gap: 24px; }
.canvas h2 { margin-top: 1.4em; }
.canvas > *:first-child { margin-top: 0; }

/* Patterns reuse site components, which need their internals inside blocks. */
.wp-block-group.card,
.wp-block-group.panel,
.wp-block-group.feature,
.wp-block-group.step,
.wp-block-group.quote { height: 100%; }
.wp-block-group.feature { display: block; }
.wp-block-group.feature .feature__num { margin-bottom: 14px; }
.wp-block-group.step .step__num { margin-left: auto; margin-right: auto; }
.wp-block-group.panel .wp-block-list { list-style: none; padding-left: 0; }
.wp-block-group.panel .wp-block-list li { padding-left: 1.4rem; position: relative; }
.wp-block-group.panel .wp-block-list li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--cream);
}
.wp-block-group.cta .wp-block-buttons { margin-top: 18px; }
.wp-block-button.btn--light .wp-block-button__link { background: var(--cream); color: var(--green-dark); }
.wp-block-button.btn--light .wp-block-button__link:hover { background: #fff; }

/* ==========================================================================
   Phone layout refinements
   ========================================================================== */
@media (max-width: 680px) {
  /* The engagement table was readable only by swiping sideways inside its own
     box, with the third column off-screen entirely. Below this width each row
     becomes a labelled card instead, so nothing is hidden. */
  .table-wrap {
    overflow-x: visible;
    border: 0;
    background: none;
    border-radius: 0;
  }

  .table-wrap table { min-width: 0; width: 100%; }

  .table-wrap thead {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }

  .table-wrap tbody tr,
  .table-wrap tbody tr:nth-child(even) {
    display: block;
    margin-bottom: 14px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  .table-wrap tbody tr:last-child { margin-bottom: 0; }

  .table-wrap td {
    display: block;
    width: auto;
    padding: 0 0 12px;
    border: 0;
  }

  .table-wrap td:last-child { padding-bottom: 0; }

  /* Each cell announces its column, except the first, which is the card title. */
  .table-wrap td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .table-wrap td:first-child {
    margin-bottom: 4px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }

  .table-wrap td:first-child::before { display: none; }
  .table-wrap td:first-child strong { color: var(--green); }

  /* The floating call and WhatsApp buttons sit over the bottom-right corner,
     so give the last line of the footer room to clear them. */
  .footer__bottom { padding-bottom: 80px; }
}

/* ==========================================================================
   Pages assembled from blocks

   Every section on these pages is a block, so the page wrapper itself adds
   nothing: the Section band block draws its own band, edge to edge. The rules
   below only catch core blocks dropped straight into the page outside a band,
   so a stray paragraph still gets a readable measure instead of running the
   full width of the screen.
   ========================================================================== */
.sections > p,
.sections > h1,
.sections > h2,
.sections > h3,
.sections > h4,
.sections > ul,
.sections > ol,
.sections > dl,
.sections > pre,
.sections > figure,
.sections > blockquote,
.sections > .wp-block-image,
.sections > .wp-block-table,
.sections > .wp-block-buttons,
.sections > .wp-block-embed,
.sections > .wp-block-columns,
.sections > .wp-block-group,
.sections > .wp-block-separator {
  max-width: 820px;
  margin-inline: auto;
  padding-inline: 20px;
}

.sections > *:first-child:not(section):not(.hero):not(.cta):not(.banner) {
  margin-top: clamp(32px, 4vw, 56px);
}

.sections > *:last-child:not(section):not(.hero):not(.cta):not(.banner) {
  margin-bottom: clamp(32px, 4vw, 56px);
}

.sections .wp-block-columns { gap: 24px; }
.sections .grid > .wp-block-group { height: 100%; }

/* Brand colour classes. WordPress generates these for the editor from the
   theme palette; the published page needs them too, for blocks the team
   colours by hand. */
.has-mahara-green-color { color: #004032; }
.has-mahara-green-deep-color { color: #001a14; }
.has-mahara-green-mid-color { color: #0a5a46; }
.has-mahara-cream-color { color: #ded5c6; }
.has-mahara-cream-pale-color { color: #f6f2ea; }
.has-mahara-gold-color { color: #b08d57; }
.has-mahara-text-color { color: #334155; }
.has-mahara-offwhite-color { color: #f7faf9; }
.has-mahara-white-color { color: #ffffff; }

.has-mahara-green-background-color { background-color: #004032; }
.has-mahara-green-deep-background-color { background-color: #001a14; }
.has-mahara-green-mid-background-color { background-color: #0a5a46; }
.has-mahara-cream-background-color { background-color: #ded5c6; }
.has-mahara-cream-pale-background-color { background-color: #f6f2ea; }
.has-mahara-gold-background-color { background-color: #b08d57; }
.has-mahara-text-background-color { background-color: #334155; }
.has-mahara-offwhite-background-color { background-color: #f7faf9; }
.has-mahara-white-background-color { background-color: #ffffff; }

/* Core buttons, styled as the site's own buttons. */
.wp-block-button__link {
  border-radius: 6px;
  padding: 14px 28px;
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.wp-block-buttons.is-content-justification-center { justify-content: center; }

/* Tables built with the core Table block get the site's table styling. */
.wp-block-table { overflow-x: auto; }
.wp-block-table table { width: 100%; border-collapse: collapse; }

.wp-block-table th {
  padding: 14px 16px;
  background: var(--green);
  color: #fff;
  text-align: left;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 0;
}

.wp-block-table td {
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.wp-block-table tbody tr:nth-child(even) { background: var(--offwhite); }
.wp-block-table td:first-child { font-weight: 700; color: var(--green); }

@media (max-width: 680px) {
  /* Same treatment the hand-built table gets: rows become stacked cards
     rather than something you read by swiping sideways. */
  .wp-block-table,
  .wp-block-table table,
  .wp-block-table tbody,
  .wp-block-table tr,
  .wp-block-table td {
    display: block;
    width: auto;
  }

  /* `table { min-width: 620px }` above keeps wide tables scrollable on
     desktop; here the rows have become cards, so it would only push the page
     sideways. */
  .wp-block-table table { min-width: 0; }

  .wp-block-table { overflow-x: visible; }
  .wp-block-table thead { display: none; }

  .wp-block-table tr {
    margin-bottom: 14px;
    padding: 16px 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
  }

  .wp-block-table tbody tr:nth-child(even) { background: var(--white); }

  .wp-block-table td {
    padding: 4px 0;
    border: 0;
  }

  .wp-block-table td:first-child {
    margin-bottom: 6px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }
}
