/* Amen-Wisdom — styles
   Colours come from the logo: navy "A", stone "W", maple-leaf red/orange/gold/green. */

:root {
  --navy: #1d2b4c;
  --navy-deep: #15203a;
  --stone: #8a8577;
  --stone-ink: #5c584f;      /* stone dark enough for small text on white */
  --gold: #e3a23b;
  --gold-hover: #eeb257;
  --leaf-red: #c8352b;
  --leaf-orange: #e07b2a;
  --leaf-green: #4f8a3c;
  --white: #ffffff;
  --mist: #eef0f2;
  --ink: #1f2430;
  --ink-soft: #4a505c;
  --line: #d9dce1;
  --error: #b42318;

  --font-head: "Zilla Slab", Georgia, serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: 2rem;
  --step-4: clamp(2.1rem, 1.6rem + 2vw, 2.85rem);
  --step-5: clamp(2.5rem, 1.7rem + 3.4vw, 4.1rem);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: clamp(4rem, 3rem + 4vw, 7rem);

  --radius: 4px;
  --header-h: 76px;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

/* Anything marked hidden stays hidden, even if a class gives it a display value. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 var(--space-2);
  text-wrap: balance;
}
h2 { font-size: var(--step-4); font-weight: 600; }
h3 { font-size: var(--step-2); font-weight: 600; }
h4 { font-size: var(--step-1); font-weight: 600; }
p { margin: 0 0 var(--space-2); max-width: 65ch; }

a { color: var(--navy); text-underline-offset: 3px; }

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

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 16px;
}
@media (min-width: 768px) { .container { padding-inline: 32px; } }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  touch-action: manipulation;
}
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-hover); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-deep); }
.btn-ghost-light { border-color: rgba(255, 255, 255, 0.55); color: var(--white); }
.btn-ghost-light:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--navy);
}
/* Crop the logo image down to the AW monogram and maple leaf. */
.brand-mark {
  position: relative;
  width: 54px;
  height: 50px;
  overflow: hidden;
  flex: none;
}
.brand-mark img {
  position: absolute;
  width: 70px;
  max-width: none;
  left: -8px;
  top: -6px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; }
.brand-sub { font-size: 0.8rem; color: var(--stone-ink); font-weight: 500; white-space: nowrap; }
.brand-name { white-space: nowrap; }
@media (max-width: 899px) {
  .brand-sub { display: none; }
}
@media (max-width: 599px) {
  /* On phones the language switch shows only the other language. */
  .lang-switch [aria-hidden="true"] { display: none; }
  .header-inner { gap: 0.5rem; }
  .brand { gap: 0.5rem; }
  .brand-name { font-size: 1.1rem; }
}
@media (max-width: 359px) {
  .lang-switch [aria-hidden="true"] { display: none; }
  .header-inner { column-gap: 0.2rem; }
  .header-inner .brand { gap: 0.35rem; }
  .header-inner .brand-name { font-size: 0.95rem; }
  .header-inner .brand-mark { width: 40px; height: 38px; }
  .header-inner .brand-mark img { width: 52px; left: -6px; top: -4px; }
  .header-inner .lang-switch { padding: 0 0.3rem; }
  .header-inner .account-btn { min-width: 40px; min-height: 40px; }
  .site-nav li a { font-size: 0.85rem; padding: 0.5rem 0.35rem; }
}
@media (max-width: 400px) {
  .brand-mark { width: 46px; height: 43px; }
  .brand-mark img { width: 60px; left: -7px; top: -5px; }
  .lang-switch { padding: 0 0.35rem; }
}

.brand { margin-right: auto; }

/* EN / FR switch: current language muted, the other one is the link target. */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 44px;
  padding: 0 0.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--stone-ink);
  white-space: nowrap;
}
.lang-switch .lang-other {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.lang-switch:hover { background: var(--mist); }
.lang-switch .lang-current { opacity: 0.55; }


/* Main menu: always visible on every page.
   Below 1300px it sits on its own row under the logo; on wide screens it shares one row.
   (The phone number lives on the Contact page only.) */
.header-inner { flex-wrap: wrap; row-gap: 0; }
.site-nav {
  order: 5;
  flex: 1 0 100%;
  border-top: 1px solid var(--mist);
  padding: 0.2rem 0;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.35rem;
}
.site-nav li a {
  display: block;
  padding: 0.55rem 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.site-nav li a:hover,
.site-nav li a[aria-current="page"],
.site-nav li a[aria-current="true"] { color: var(--navy); border-bottom-color: var(--gold); }

/* The header gets a wider container than the page so the full menu fits. */
.header-inner.container { max-width: 1400px; }

@media (max-width: 599px) {
  /* On phones the header scrolls away with the page so it doesn't cover the content. */
  .site-header { position: static; }
  .site-nav ul { justify-content: center; gap: 0 0.1rem; }
  .site-nav li a { font-size: 0.9rem; padding: 0.5rem 0.45rem; }
}

@media (min-width: 1300px) {
  .brand-sub { display: none; }
  .header-inner { flex-wrap: nowrap; }
  .site-nav { order: 1; flex: 0 1 auto; border-top: 0; padding: 0; }
  .site-nav ul { flex-wrap: nowrap; gap: 0.95rem; }
  .site-nav li a { padding: 0.5rem 0; font-size: 0.97rem; }
  .lang-switch { order: 3; }
  .account-slot { order: 4; }
}

/* Account button (only shown once accounts are switched on) */
.account-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
  font: 600 0.95rem var(--font-body);
  cursor: pointer;
  white-space: nowrap;
}
.account-btn:hover { background: var(--mist); }
.account-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.account-initial {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 700;
}
@media (max-width: 1023px), (min-width: 1300px) {
  .account-btn { padding: 0; }
  .account-label {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
  }
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  background: var(--navy);
  color: var(--white);
}
.hero-media { margin: 0; order: -1; }
.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  max-height: 46vh;
  object-fit: cover;
}
.hero-copy { padding: var(--space-5) 16px var(--space-6); }
.hero-place {
  font-weight: 500;
  color: var(--gold);
  margin-bottom: var(--space-2);
}
.hero h1 {
  color: var(--white);
  font-size: var(--step-5);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  max-width: 14ch;
  margin-bottom: var(--space-3);
}
.hero-lede {
  font-size: var(--step-1);
  color: #d5dae4;
  max-width: 40ch;
  margin-bottom: var(--space-4);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    min-height: min(calc(100dvh - var(--header-h) - 6px), 780px);
  }
  .hero-media { order: 0; }
  .hero-media img { max-height: none; }
  .hero-copy {
    align-self: center;
    padding: var(--space-6) var(--space-5) var(--space-6) max(32px, calc((100vw - 1200px) / 2 + 32px));
  }
}

/* The four maple-leaf colours from the logo, used as a thin band. */
.leaf-band { display: grid; grid-template-columns: 2fr 1fr 1fr 2fr; height: 6px; }
.leaf-band span:nth-child(1) { background: var(--leaf-red); }
.leaf-band span:nth-child(2) { background: var(--leaf-orange); }
.leaf-band span:nth-child(3) { background: var(--gold); }
.leaf-band span:nth-child(4) { background: var(--leaf-green); }

/* ---------- Sections ---------- */
.section { padding-block: var(--space-7); }
.section-head { margin-bottom: var(--space-5); }
.section-head p { color: var(--ink-soft); font-size: var(--step-1); }
.lead { font-size: var(--step-1); color: var(--ink); }

figure { margin: 0; }
.about-media img,
.split-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

/* About */
.about-grid { display: grid; gap: var(--space-5); align-items: center; }
.about-text p:not(.lead) { color: var(--ink-soft); }
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1.1fr 1fr; gap: var(--space-6); }
}

.vm-grid {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}
.vm h3 { color: var(--stone-ink); font-size: var(--step-1); }
.vm p { font-family: var(--font-head); font-size: var(--step-2); font-weight: 500; line-height: 1.35; color: var(--navy); }
@media (min-width: 768px) { .vm-grid { grid-template-columns: 1fr 1fr; gap: var(--space-6); } }

.values-title { margin-top: var(--space-6); font-size: var(--step-2); }
.values {
  list-style: none;
  margin: var(--space-3) 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 2px solid var(--navy);
}
.values li { padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
.values h4 { margin-bottom: 0.35rem; }
.values p { color: var(--ink-soft); margin: 0; font-size: 1rem; }
.values h4 { overflow-wrap: break-word; }
/* Tablet: two columns. Wide desktop: all five in one row with dividers. */
@media (min-width: 640px) {
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-4); }
}
@media (min-width: 1100px) {
  .values { grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 0; border-bottom: 1px solid var(--line); }
  .values li { padding: var(--space-3) var(--space-3) var(--space-3) 0; border-bottom: 0; }
  .values li + li { padding-left: var(--space-3); border-left: 1px solid var(--line); }
}

/* Services tabs */
.services { background: var(--mist); }
.tabs { display: grid; gap: var(--space-3); }
.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tab-list [role="tab"] {
  flex: none;
  min-height: 48px;
  padding: 0.6rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: 600 0.98rem var(--font-body);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.tab-list [role="tab"]:hover { border-color: var(--stone); }
.tab-list [role="tab"][aria-selected="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.tab-panel {
  display: grid;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
}
.tab-panel[hidden] { display: none; }
.tab-panel img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.tab-body { padding: var(--space-4) var(--space-3); }
@media (min-width: 900px) {
  .tabs { grid-template-columns: 290px 1fr; gap: var(--space-4); align-items: start; }
  .tab-list { flex-direction: column; overflow: visible; }
  .tab-list [role="tab"] { width: 100%; padding: 0.9rem 1.1rem; }
  .tab-panel { grid-template-columns: 1fr 1fr; min-height: 420px; }
  .tab-panel img { aspect-ratio: auto; height: 100%; }
  .tab-body { padding: var(--space-5) var(--space-4); align-self: center; }
}
.tab-panel:not([hidden]) { animation: panel-in 0.28s var(--ease-out); }
@keyframes panel-in { from { opacity: 0; } to { opacity: 1; } }

/* Lists with a check mark */
.checks { list-style: none; margin: 0 0 var(--space-3); padding: 0; }
.checks li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.9rem;
  border-bottom: 1px solid var(--mist);
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.85rem;
  width: 0.7rem;
  height: 0.38rem;
  border-left: 2.5px solid var(--leaf-green);
  border-bottom: 2.5px solid var(--leaf-green);
  transform: rotate(-45deg);
}

/* Why choose us */
.why { background: var(--navy); color: #dfe3ea; }
.why h2 { color: var(--white); }
.why-grid { display: grid; gap: var(--space-5); }
.why-list { margin: 0; display: grid; gap: var(--space-4); }
.why-list div { border-top: 2px solid var(--gold); padding-top: var(--space-2); }
.why-list dt { font-family: var(--font-head); font-size: var(--step-2); font-weight: 600; color: var(--white); margin-bottom: 0.35rem; }
.why-list dd { margin: 0; color: #c9d0dc; }
@media (min-width: 768px) { .why-list { grid-template-columns: 1fr 1fr; gap: var(--space-5) var(--space-4); } }
@media (min-width: 1000px) {
  .why-grid { grid-template-columns: 1fr 2fr; gap: var(--space-6); }
  .why-list { grid-template-columns: repeat(3, 1fr); }
}

/* Split sections */
.split { display: grid; gap: var(--space-5); align-items: center; }
.split-text p { color: var(--ink-soft); }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
  .split-reverse .split-media { order: 2; }
}
.sustain { background: var(--mist); }
.sustain .checks li { border-bottom-color: var(--line); }

/* Projects */
.project-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-2);
}
.project { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--navy); }
.project img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.project span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.5rem 1rem 0.9rem;
  background: linear-gradient(to top, rgba(21, 32, 58, 0.92), rgba(21, 32, 58, 0));
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: var(--step-1);
}
.project-cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-3);
  min-height: 200px;
}
.project-cta p { font-family: var(--font-head); font-size: var(--step-2); font-weight: 600; color: var(--white); margin: 0; }
@media (min-width: 640px) { .project-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) {
  .project-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 240px; }
  .project img { height: 100%; aspect-ratio: auto; }
  .project-wide { grid-column: span 2; grid-row: span 2; }
}

/* Partnerships */
.partners { border-top: 1px solid var(--line); }
.partners-grid { display: grid; gap: var(--space-5); }
.partners-grid p { color: var(--ink-soft); margin-bottom: var(--space-4); }
.partner-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  border-top: 2px solid var(--navy);
}
.partner-list li {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
@media (min-width: 768px) {
  .partner-list { grid-template-columns: 1fr 1fr; column-gap: var(--space-4); }
}
@media (min-width: 1000px) { .partners-grid { grid-template-columns: 1fr 1.4fr; gap: var(--space-6); } }

/* Leadership */
.leadership { background: var(--mist); }
.lead-grid { display: grid; gap: var(--space-5); align-items: start; }
.portrait {
  max-width: 360px;
  background: #f6f5f1; /* matches the logo's own background */
  border-radius: var(--radius);
  border-bottom: 6px solid var(--gold);
  padding: var(--space-3);
}
.portrait img { width: 100%; }
.person { font-family: var(--font-head); font-size: var(--step-3); font-weight: 600; color: var(--navy); margin-bottom: 0.25rem; line-height: 1.2; }
.role { color: var(--stone-ink); font-weight: 500; margin-bottom: var(--space-3); }
.lead-grid p:not(.person):not(.role) { color: var(--ink-soft); }
blockquote {
  margin: var(--space-4) 0 0;
  padding-left: var(--space-3);
  border-left: 4px solid var(--leaf-green);
}
blockquote p {
  font-family: var(--font-head);
  font-size: var(--step-2);
  font-weight: 500;
  line-height: 1.35;
  color: var(--navy) !important;
  margin: 0;
}
@media (min-width: 900px) { .lead-grid { grid-template-columns: 340px 1fr; gap: var(--space-6); } }

/* Contact */
.contact { background: var(--navy-deep); color: #dfe3ea; }
.contact-grid { display: grid; gap: var(--space-5); padding-block: var(--space-7); }
.contact h2 { color: var(--white); }
.contact-lines { list-style: none; margin: var(--space-4) 0; padding: 0; display: grid; gap: var(--space-2); }
.contact-lines li { display: flex; gap: 0.75rem; align-items: flex-start; }
.contact-lines svg { color: var(--gold); flex: none; margin-top: 3px; }
.contact-lines a { color: var(--white); font-size: var(--step-1); font-weight: 500; }
.map {
  width: 100%;
  height: 260px;
  border: 0;
  border-radius: var(--radius);
  background: var(--navy);
}

.contact-form {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-3);
}
.contact-form h3 { margin-bottom: var(--space-3); }
.field { margin-bottom: var(--space-2); }
.field-row { display: grid; gap: 0 var(--space-2); }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.35rem; color: var(--ink); }
.req { color: var(--error); }
input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.8rem;
  border: 1px solid #b9bec7;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: 400 1rem/1.4 var(--font-body);
}
textarea { resize: vertical; }
input:focus-visible,
select:focus-visible,
textarea:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--navy); }
[aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: 0.9rem; margin: 0.3rem 0 0; min-height: 0; }
.field-error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.9rem; color: var(--ink-soft); }
.form-summary {
  border: 2px solid var(--error);
  border-radius: var(--radius);
  padding: var(--space-2);
  margin-bottom: var(--space-3);
  color: var(--error);
}
.form-summary ul { margin: 0.4rem 0 0; padding-left: 1.2rem; }
.form-summary a { color: var(--error); }
.form-status { margin: var(--space-2) 0 0; font-weight: 500; }
.form-status.is-info { color: var(--navy); }
.form-status.is-error { color: var(--error); }
@media (min-width: 640px) { .contact-form { padding: var(--space-5) var(--space-4); } }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: 1fr 1.15fr; gap: var(--space-6); } }

/* ---------- Our team page ---------- */
.team-areas { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4) var(--space-3); }
@media (min-width: 640px) { .team-areas { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .team-areas { grid-template-columns: repeat(3, 1fr); } }
.team-areas li { border-top: 3px solid var(--gold); padding-top: var(--space-2); }
.team-areas h3 { margin: 0 0 0.4rem; }
.team-areas p { margin: 0; color: var(--ink-soft); }

.team-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
}
.member {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-bottom: 3px solid var(--gold);
  border-radius: var(--radius);
  overflow: hidden;
}
.member img { display: block; width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; }
.member-logo img { object-fit: contain; background: #f6f5f1; padding: var(--space-3); }
.member-body { display: flex; flex-direction: column; flex: 1; padding: var(--space-3); }
.member-body h3 { margin: 0 0 0.25rem; }
.member-role { margin: 0 0 0.5rem; font-weight: 600; color: var(--stone-ink); }
.member-meta { margin: 0 0 0.5rem; font-weight: 500; color: var(--navy); }
.member-body p:last-of-type { color: var(--ink-soft); }
.member-body a { margin-top: auto; font-weight: 600; color: var(--navy); }
.team-note { margin: var(--space-4) 0 0; }
.team-note a { font-weight: 600; color: var(--navy); }

/* Admin-only buttons on team cards */
.member-admin {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: var(--space-2) var(--space-3);
  background: var(--navy-deep);
  color: #dfe3ea;
}
.member-admin .btn { min-height: 40px; padding: 0 0.9rem; font-size: 0.9rem; }
.member-admin-tag { width: 100%; font-weight: 600; font-size: 0.85rem; color: var(--gold); }
.member-admin-link { color: var(--white); font-size: 0.9rem; font-weight: 600; }
.member-admin-status { margin: 0 0 var(--space-2); }
.member-field { margin: 0 0 0.35rem; font-size: 0.95rem; color: var(--ink-soft); }
.member-extra { margin: 0 0 0.35rem; font-size: 0.92rem; color: var(--ink-soft); }
.member-bio { margin: 0.25rem 0 0.75rem; }
.member-photo-empty {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  background: var(--mist);
  color: var(--navy);
  font: 700 3rem var(--font-head);
}

/* Links like #join or #sustainability stop below the sticky header. */
section[id] { scroll-margin-top: 120px; }
@media (max-width: 599px) { section[id] { scroll-margin-top: 0; } }

.hero-back { color: var(--gold); text-decoration: none; }
.hero-back::before { content: "← "; }
.hero-back:hover { text-decoration: underline; }
#join-form { scroll-margin-top: 120px; }
@media (max-width: 599px) { #join-form { scroll-margin-top: 0; } }

/* Join our team form */
.join { border-top: 1px solid var(--line); }
.join-grid { display: grid; gap: var(--space-5); align-items: start; }
@media (min-width: 1000px) { .join-grid { grid-template-columns: 1fr 1.4fr; gap: var(--space-6); } }
.join-intro p { color: var(--ink-soft); }
.join-steps { margin: var(--space-3) 0; padding-left: 1.3rem; display: grid; gap: 0.5rem; }
.join-steps li::marker { color: var(--gold); font-weight: 700; }
.join-terms { font-size: 0.95rem; background: var(--mist); padding: var(--space-2); border-radius: var(--radius); }
.join-privacy { font-size: 0.95rem; border-left: 3px solid var(--gold); padding-left: var(--space-2); }
.join-form { border: 1px solid var(--line); }
.join-set { border: 0; margin: 0 0 var(--space-3); padding: 0; min-width: 0; }
.join-set legend {
  font-family: var(--font-head);
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--space-2);
  padding: 0;
}
.field-hint { font-size: 0.875rem; color: var(--ink-soft); margin: 0.3rem 0 0; }
.photo-pick { display: flex; align-items: center; gap: var(--space-2); }
.photo-pick input { min-height: 0; padding: 0.5rem; }
.photo-preview { width: 72px; height: 90px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); flex: none; }
.field-check { display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 0; }
.field-check input { width: 22px; height: 22px; min-height: 0; padding: 0; margin-top: 0.15rem; flex: none; accent-color: var(--navy); }
.field-check label { font-weight: 500; margin: 0; }
.field-check + .field-error { margin-bottom: var(--space-2); }

/* ---------- Admin page (admin.html) ---------- */
.admin-page { background: var(--mist); }
.admin-main h1 { font-size: var(--step-3); margin-bottom: var(--space-2); }
.admin-login { max-width: 440px; margin-inline: auto; border: 1px solid var(--line); }
.admin-lead { color: var(--ink-soft); max-width: 70ch; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: var(--space-3) 0 var(--space-2); }
.admin-tabs button {
  min-height: 44px;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
  font: 600 0.95rem var(--font-body);
  cursor: pointer;
}
.admin-tabs button[aria-selected="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.admin-tabs .count {
  display: inline-block;
  min-width: 1.6em;
  margin-left: 0.35rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: 0.85rem;
  text-align: center;
}
.admin-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.admin-empty { padding: var(--space-4); background: var(--white); border-radius: var(--radius); color: var(--ink-soft); }
.admin-item {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
}
@media (min-width: 900px) { .admin-item { grid-template-columns: 150px minmax(0, 1fr) minmax(260px, 340px); } }
.admin-photo { width: 150px; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.admin-info h2 { font-size: var(--step-2); margin: 0 0 var(--space-1); }
.admin-facts { margin: 0; display: grid; gap: 0.4rem; }
.admin-facts div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 0.5rem; }
.admin-facts dt { font-weight: 600; color: var(--stone-ink); }
.admin-facts dd { margin: 0; overflow-wrap: anywhere; }
.admin-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.btn-danger { background: var(--white); color: var(--error); border: 2px solid var(--error); }
.btn-danger:hover { background: var(--error); color: var(--white); }
.admin-signout { min-height: 44px; }

/* ---------- Sign-in dialog ---------- */
.auth-dialog {
  width: min(440px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(21, 32, 58, 0.35);
  color: var(--ink);
}
.auth-dialog::backdrop { background: rgba(21, 32, 58, 0.6); }
.auth-inner { position: relative; padding: var(--space-4) var(--space-3) var(--space-3); }
.auth-inner h2 { font-size: var(--step-2); margin: 0 2.5rem var(--space-2) 0; }
.auth-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
  border-radius: var(--radius);
}
.auth-close:hover { background: var(--mist); }
.auth-intro { color: var(--ink-soft); font-size: 0.95rem; }
.auth-social { display: grid; gap: 0.6rem; margin: var(--space-2) 0; }
.auth-provider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  background: var(--white);
  color: var(--ink);
  border: 1px solid #b9bec7;
}
.auth-provider:hover { background: var(--mist); }
.auth-or { display: flex; align-items: center; gap: 0.75rem; color: var(--ink-soft); font-size: 0.9rem; margin: var(--space-2) 0; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: var(--space-2); border-bottom: 1px solid var(--line); }
.auth-tabs button {
  min-height: 44px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  font: 600 0.95rem var(--font-body);
  color: var(--ink-soft);
  cursor: pointer;
}
.auth-tabs button[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--gold); }
.auth-form .btn-gold { width: 100%; }
.auth-link {
  display: block;
  margin: var(--space-2) auto 0;
  min-height: 44px;
  border: 0;
  background: none;
  color: var(--navy);
  font: 500 0.95rem var(--font-body);
  text-decoration: underline;
  cursor: pointer;
}
.auth-admin-note { border-left: 3px solid var(--gold); padding-left: var(--space-2); font-size: 0.95rem; }

/* "Please sign in" note inside forms */
.signin-note {
  margin-bottom: var(--space-3);
  padding: var(--space-2) var(--space-3);
  background: var(--mist);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
}
.signin-note p { margin: 0 0 0.75rem; }

/* Request type choice on the Contact page */
.request-type { border: 0; margin: 0 0 var(--space-2); padding: 0; min-width: 0; }
.request-type legend { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.5rem; padding: 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choice {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  margin: 0;
  padding: 0 0.9rem;
  border: 1px solid #b9bec7;
  border-radius: var(--radius);
  font-weight: 500;
  cursor: pointer;
}
.choice input { width: 18px; height: 18px; min-height: 0; padding: 0; margin: 0; accent-color: var(--navy); }
.choice:has(input:checked) { border-color: var(--navy); background: var(--mist); box-shadow: inset 0 0 0 1px var(--navy); }
.choice:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.request-extra { margin-bottom: var(--space-2); }

/* ---------- Admin bar (only the site admin sees it) ---------- */
.admin-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.6rem 16px;
  background: var(--navy-deep);
  color: #dfe3ea;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.2);
}
.admin-bar .btn { min-height: 40px; padding: 0 1rem; font-size: 0.95rem; }
.admin-bar .btn-ghost-light { background: transparent; }
.admin-bar .btn-ghost-light:hover { background: rgba(255, 255, 255, 0.1); }
.admin-bar-tag { font-weight: 600; color: var(--gold); }
.admin-bar-msg { margin: 0; font-size: 0.9rem; flex: 1 1 220px; }
.admin-bar-msg.is-error { color: #ffb4ab; }
body.has-admin-bar { padding-bottom: 140px; }
@media (min-width: 900px) { body.has-admin-bar { padding-bottom: 80px; } }
body.is-editing [contenteditable="true"] {
  outline: 2px dashed rgba(227, 162, 59, 0.85);
  outline-offset: 3px;
  cursor: text;
}
body.is-editing [contenteditable="true"]:hover,
body.is-editing [contenteditable="true"]:focus { outline-style: solid; outline-color: var(--gold); }

/* Admin panel: requests */
.request-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; font-size: 0.85rem; }
.request-type-badge, .request-status { padding: 0.15rem 0.6rem; border-radius: 999px; font-weight: 600; }
.request-type-badge { background: var(--navy); color: var(--white); }
.request-type-badge.is-quote { background: var(--leaf-green); }
.request-type-badge.is-appointment { background: var(--leaf-orange); color: var(--navy-deep); }
.request-status { border: 1px solid var(--line); }
.request-status.is-new { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.request-date { color: var(--ink-soft); }
@media (min-width: 900px) { .admin-request { grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); } }

/* ---------- Closing call-to-action band ---------- */
.page-cta { background: var(--navy-deep); color: #dfe3ea; }
.page-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: var(--space-6);
}
.page-cta h2 { color: var(--white); margin: 0 0 0.35rem; }
.page-cta p { margin: 0; }

/* ---------- Careers page ---------- */
@media (min-width: 900px) {
  .hero.hero-compact { min-height: 0; }
  .hero-compact .hero-media img { max-height: 520px; }
}
.hero-compact h1 { max-width: 16ch; }

.job-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.job-list:empty { display: none; }
.job {
  display: grid;
  gap: var(--space-2);
  align-items: center;
  padding: var(--space-3);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
}
.job h3 { margin-bottom: 0.25rem; }
.job-meta { color: var(--stone-ink); font-weight: 500; margin-bottom: 0.5rem; }
.job p:last-child { margin-bottom: 0; color: var(--ink-soft); }
@media (min-width: 768px) { .job { grid-template-columns: 1fr auto; gap: var(--space-4); } }

.no-openings {
  padding: var(--space-4) var(--space-3);
  background: var(--mist);
  border-radius: var(--radius);
  border-left: 4px solid var(--gold);
}
.no-openings p { color: var(--ink-soft); }
@media (min-width: 640px) { .no-openings { padding: var(--space-5) var(--space-4); } }

/* How to apply: a real three-step sequence, so the numbers carry meaning. */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-4);
  counter-reset: step;
}
.steps li { counter-increment: step; border-top: 2px solid var(--navy); padding-top: var(--space-3); }
.steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--font-head);
  font-size: var(--step-4);
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
  margin-bottom: var(--space-2);
}
.steps p { color: var(--ink-soft); }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.apply-note { margin-top: var(--space-4); color: var(--ink-soft); }
.steps a, .apply-note a { overflow-wrap: anywhere; }

/* Footer */
.site-footer { background: var(--white); padding-top: var(--space-6); border-top: 1px solid var(--line); }
.footer-grid { display: grid; gap: var(--space-4); }
.footer-brand img { width: 150px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem var(--space-3); }
.site-footer nav a { display: inline-block; padding: 0.4rem 0; color: var(--ink); text-decoration: none; }
.site-footer nav a:hover { color: var(--navy); text-decoration: underline; }
.footer-base { border-top: 1px solid var(--line); margin-top: var(--space-5); padding-block: var(--space-3); }
.footer-base p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 200px 1fr; align-items: start; }
  .site-footer ul { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
