/* ============================================================
   Connect Whā — Template Stylesheet
   Ported from design_handoff_connect_wha/styles.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Source+Serif+4:ital,wght@0,300..700;1,300..700&display=swap');

/* ============ Design Tokens ============ */
:root {
  /* Warm earth palette (DEFAULT) */
  --bg: #FBF6EF;
  --bg-alt: #F3EADB;
  --surface: #FFFFFF;
  --ink: #2A1A10;
  --ink-soft: #5B453A;
  --ink-mute: #8A7668;
  --line: #E6DAC8;
  --primary: #E87722;
  --primary-ink: #FFFFFF;
  --primary-deep: #B5541A;
  --earth: #4A2C1A;
  --green: #2E7D5B;
  --navy: #1F2A4A;

  /* Pillar accents */
  --pillar-tinana: #B5541A;
  --pillar-hinengaro: #86B6D9;
  --pillar-wairua: #D9A84C;
  --pillar-whanau: #A82A2A;

  /* Spacing / radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --card-radius: 16px;
  --card-border: 1px solid var(--line);
  --card-shadow: 0 1px 2px rgba(42,26,16,.04), 0 8px 24px -12px rgba(42,26,16,.12);

  /* Fonts */
  --serif: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}

/* ============ Reset & Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html, body {
  /* Force the document to fill the viewport at any width. Without this,
     Chromium can collapse the html element to content-width on very narrow
     viewports (≤ ~440px) when combined with overflow:clip below — leaving a
     blank gutter beside the layout. */
  width: 100%;
  min-width: 100%;
}
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  /* Prevent any single overflowing element (banner gradient overlays, wide
     calendar grids, long unbroken strings) from forcing the document wider
     than the viewport. `clip` is preferred over `hidden` because it doesn't
     establish a scroll container, so absolutely-positioned descendants
     (dropdowns, toast overlays) still render normally. */
  overflow-x: clip;
  /* Allow long words/URLs to wrap rather than push siblings past the viewport. */
  overflow-wrap: anywhere;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* Reset Joomla/Bootstrap leftovers we don't want */
.site h1, .site h2, .site h3, .site h4, .site h5, .site h6 { margin-top: 0; }

.serif { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; }

/* ============ Container ============ */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ============ Header / Nav ============ */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  padding: 22px 0;
}
.site-header.inner {
  position: relative;
  background: transparent;
}
.nav-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
/* Pin the brand to the left, let everything after it cluster on the right. */
.nav-row > .brand { margin-right: auto; }
.brand {
  display: flex; align-items: center; gap: 12px;
  color: white;
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.brand .brand-mark {
  /* Source image is 64x178 (~0.36 aspect) — keep that ratio so the taurapa
     reads as a tall carved sternpost alongside the wordmark. */
  width: 22px; height: 60px;
  background-image: url('../images/connect-wha-logo-taurapa.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}
.brand .brand-text { line-height: 1; }
.brand .brand-tag {
  display: block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-top: 4px;
}
.brand-tag-pair, .brand-tag-sep { display: inline; }
@media (max-width: 460px) {
  /* Stack the pillar pairs onto two lines so the wordmark fits beside the
     hamburger button without forcing horizontal overflow. */
  .brand-tag-pair { display: block; }
  .brand-tag-sep  { display: none; }
}

.nav-primary {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 6px;
  border-radius: 999px;
  position: relative;
}
.nav-primary a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 999px;
  transition: background 0.2s;
  white-space: nowrap;
}
.nav-primary a:hover,
.nav-primary a.active {
  background: rgba(255,255,255,0.22);
}
.nav-primary a.cta {
  background: var(--primary);
  color: white;
  margin-left: 4px;
}
.nav-primary a.cta:hover { background: var(--primary-deep); }

/* Nav dropdown */
.nav-item { position: relative; display: inline-flex; }
.nav-item.has-sub > a {
  display: inline-flex;
  align-items: center;
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 999px;
  transition: background 0.2s;
  white-space: nowrap;
  gap: 4px;
}
.nav-item.has-sub > a:hover,
.nav-item.has-sub > a.active,
.nav-item.has-sub:hover > a {
  background: rgba(255,255,255,0.22);
}
.nav-sub {
  position: absolute;
  /* Slight overlap onto the parent so there's no dead zone between the menu
     item and the dropdown — the padding-top below acts as a hover bridge. */
  top: calc(100% - 2px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 300px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s, transform 0.18s;
  padding-top: 16px;
  z-index: 30;
}
.nav-item.has-sub:hover .nav-sub,
.nav-item.has-sub:focus-within .nav-sub {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-sub-inner {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 20px 50px -10px rgba(42,26,16,0.3);
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
}
.nav-sub-inner::before {
  content: "";
  position: absolute;
  top: -6px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px; height: 12px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.nav-sub-item {
  display: block !important;
  padding: 10px 14px !important;
  border-radius: 10px !important;
  color: var(--ink) !important;
  text-decoration: none !important;
  background: transparent !important;
}
.nav-sub-item:hover { background: var(--bg-alt) !important; }
.nav-sub-label {
  display: block;
  font-weight: 600;
  color: var(--earth);
  font-size: 14px;
  margin-bottom: 2px;
}
.nav-sub-desc {
  display: block;
  font-size: 12px;
  color: var(--ink-mute);
  font-weight: 400;
  line-height: 1.4;
}

/* Account icon — used for both the guest login link (.nav-login) and the
   logged-in dropdown toggle (.nav-user > .nav-user-toggle). Same warm peach
   pill so the spot reads consistently regardless of auth state. */
.nav-user-toggle {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: rgba(255, 217, 184, 0.5);
  border: 1px solid rgb(138 118 103);
  color: rgb(138 118 103);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  text-decoration: none;
  padding: 0;
  flex-shrink: 0;
}
.nav-user-toggle:hover,
.nav-user.has-sub:hover > .nav-user-toggle {
  background: rgba(255, 217, 184, 0.7);
}
.nav-user-toggle svg { display: block; }
/* Beat the .nav-item.has-sub > a cascade (pill padding + inline-flex) so the
   icon stays centred in its 35x35 circle when used as a dropdown toggle. */
.nav-item.has-sub > a.nav-user-toggle {
  padding: 0;
  display: inline-grid;
}
/* Login icon (.nav-login) is stroke-based (door + arrow) — explicit stroke
   keeps it legible on the translucent peach pill. Used for both guest and
   logged-in states so the spot reads consistently. */
.nav-login svg { stroke: #84746b; stroke-width: 1.8; }

/* Anchor the user dropdown to the right edge so it doesn't overflow off-screen */
.nav-sub--user {
  left: auto;
  right: -8px;
  transform: translateY(6px);
  min-width: 240px;
}
.nav-item.has-sub:hover .nav-sub--user,
.nav-item.has-sub:focus-within .nav-sub--user {
  transform: translateY(0);
}
.nav-sub--user .nav-sub-inner::before {
  left: auto;
  right: 22px;
  transform: rotate(45deg);
}
.nav-sub-greeting {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding: 8px 14px 4px;
}
.nav-sub-item--logout {
  color: var(--primary) !important;
  border-top: 1px solid var(--line);
  margin-top: 4px;
  padding-top: 12px !important;
}
.nav-sub-item--logout .nav-sub-label { color: var(--primary); }
.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;
}

/* Light header (inner pages without banner) */
.site-header.light .brand { color: var(--ink); }
.site-header.light .nav-primary a { color: var(--ink); }
.site-header.light .nav-primary {
  background: rgba(42,26,16,0.04);
  border-color: rgba(42,26,16,0.08);
}
.site-header.light .nav-primary a:hover,
.site-header.light .nav-primary a.active {
  background: rgba(42,26,16,0.10);
}
.site-header.light .nav-primary a.cta { color: white; }
.site-header.light .nav-item.has-sub > a { color: var(--ink); }
.site-header.light .nav-item.has-sub > a:hover,
.site-header.light .nav-item.has-sub:hover > a {
  background: rgba(42,26,16,0.10);
}

/* Mobile nav button */
.nav-dropdown-btn {
  display: none;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
}
.site-header.light .nav-dropdown-btn {
  background: rgba(42,26,16,0.06);
  border-color: rgba(42,26,16,0.12);
  color: var(--ink);
}

/* Mobile nav drawer */
.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(42,26,16,0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 0s linear 220ms;
}
.nav-mobile.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 220ms ease, visibility 0s linear 0s;
}
.nav-mobile-inner {
  position: absolute;
  top: 0; right: 0;
  width: min(340px, 90vw);
  height: 100%;
  background: var(--surface);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  transform: translateX(32px);
  transition: transform 260ms cubic-bezier(0.22, 0.61, 0.36, 1);
  box-shadow: -24px 0 48px rgba(42,26,16,0.18);
}
.nav-mobile.open .nav-mobile-inner {
  transform: translateX(0);
}
@media (prefers-reduced-motion: reduce) {
  .nav-mobile,
  .nav-mobile-inner { transition-duration: 0s; }
  .nav-mobile-inner { transform: none; }
}
.nav-mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.nav-mobile-close {
  background: var(--bg-alt);
  border: none;
  border-radius: 50%;
  width: 36px; height: 36px;
  cursor: pointer;
  font-size: 18px;
  display: grid; place-items: center;
  color: var(--ink);
}
.nav-mobile a {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
  color: var(--ink);
  font-size: 15px;
}
.nav-mobile a:hover,
.nav-mobile a.active { background: var(--bg-alt); }
.nav-mobile a.cta {
  background: var(--primary);
  color: white;
  margin-top: 8px;
  text-align: center;
}
.nav-mobile .nav-mobile-sub {
  padding-left: 14px;
  border-left: 2px solid var(--line);
  margin-left: 14px;
}
.nav-mobile .nav-mobile-sub a {
  font-size: 14px;
  color: var(--ink-soft);
  padding: 8px 12px;
}

/* Mobile drawer — logged-in account block at the bottom */
.nav-mobile-account {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-mobile-greeting {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding: 0 14px 8px;
}
.nav-mobile-logout { color: var(--primary) !important; }
.nav-mobile-login {
  background: var(--primary) !important;
  color: white !important;
  text-align: center;
}

/* ============ Banner / Hero ============ */
.banner {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  color: white;
  overflow: hidden;
  isolation: isolate;
}
.banner::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(42,26,16,0.55) 0%, rgba(42,26,16,0.15) 30%, rgba(42,26,16,0.75) 100%);
  z-index: -1;
}
.banner-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
}
.banner-content {
  padding: 140px 0 80px;
  max-width: 760px;
}
.banner .eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  margin-bottom: 24px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(4px);
}
.banner h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  text-wrap: pretty;
}
.banner h1 em {
  font-style: italic;
  font-weight: 400;
  color: #FFD9B8;
}
.banner .lede {
  font-size: 19px;
  line-height: 1.55;
  max-width: 620px;
  opacity: 0.95;
  margin: 0 0 32px;
}
.banner-cta {
  display: flex; gap: 12px; flex-wrap: wrap;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  font: 500 15px/1 var(--sans);
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s, background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-deep); color: white; }
.btn-outline { background: transparent; color: white; border-color: rgba(255,255,255,0.5); }
.btn-outline:hover { background: rgba(255,255,255,0.15); color: white; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-alt); color: var(--ink); }
.btn-sm { padding: 9px 14px; font-size: 13px; }

/* ============ Section ============ */
.section { padding: 96px 0; }
.section-sm { padding: 56px 0; }
.section.alt { background: var(--bg-alt); }
.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head .kicker {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary-deep);
  font-weight: 600;
  margin-bottom: 14px;
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--earth);
  text-wrap: balance;
}
.section-head p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}
.section-head.left { text-align: left; margin: 0 0 40px; max-width: 920px; }

/* Section row with heading + action button */
.section-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

/* ============ Pillars ============ */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.pillar {
  background: var(--surface);
  border-radius: var(--card-radius);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease;
}
.pillar:hover { transform: translateY(-3px); }
.pillar .strand {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 6px;
}
.pillar[data-p="tinana"] .strand { background: var(--pillar-tinana); }
.pillar[data-p="hinengaro"] .strand { background: var(--pillar-hinengaro); }
.pillar[data-p="wairua"] .strand { background: var(--pillar-wairua); }
.pillar[data-p="whanau"] .strand { background: var(--pillar-whanau); }
.pillar .mao {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.01em;
  margin: 16px 0 4px;
  color: var(--earth);
}
.pillar .en {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 16px;
}
.pillar p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.pillar-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--bg-alt);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--earth);
}

/* ============ Event Cards ============ */
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.ecard {
  background: var(--surface);
  border-radius: var(--card-radius);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s;
  text-decoration: none;
  color: inherit;
}
.ecard:hover { transform: translateY(-3px); color: inherit; }
.ecard-img {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  position: relative;
}
.ecard-date {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--surface);
  color: var(--earth);
  border-radius: 10px;
  padding: 8px 12px;
  text-align: center;
  line-height: 1;
  min-width: 58px;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.ecard-date .d {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  display: block;
}
.ecard-date .m {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 4px;
}
.ecard-pills {
  position: absolute;
  bottom: 14px; left: 14px;
  display: flex; gap: 6px; flex-wrap: wrap;
}
.pill {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color: var(--earth);
}
.pill.tinana { background: var(--pillar-tinana); color: white; }
.pill.hinengaro { background: var(--pillar-hinengaro); color: #14203E; }
.pill.wairua { background: var(--pillar-wairua); color: #3B2418; }
.pill.whanau { background: var(--pillar-whanau); color: white; }

.ecard-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.ecard-meta {
  font-size: 13px;
  color: var(--ink-mute);
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
}
.ecard-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--earth);
  margin: 0;
}
.ecard-desc {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ecard-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.ecard-host {
  font-size: 12px;
  color: var(--ink-mute);
  display: flex; align-items: center; gap: 8px;
}
.avatar {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg-alt);
  display: grid; place-items: center;
  font-size: 10px; font-weight: 700;
  color: var(--earth);
  border: 1px solid var(--line);
  flex-shrink: 0;
}

/* ============ How It Works — Steps ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  background: var(--surface);
  border-radius: var(--card-radius);
  border: var(--card-border);
  padding: 32px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: 48px;
  color: var(--primary);
  line-height: 1;
  display: block;
  margin-bottom: 16px;
}
.step h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  margin: 0 0 8px;
  color: var(--earth);
}
.step p { color: var(--ink-soft); font-size: 15px; margin: 0; line-height: 1.6; }

/* ============ Lighthouse Band ============ */
.lighthouse-band {
  position: relative;
  background: linear-gradient(135deg, #2B1810 0%, #4A2C1A 50%, #6B4226 100%);
  color: white;
  padding: 72px 0;
  overflow: hidden;
  border-radius: var(--card-radius);
}
.lighthouse-band::before {
  content: "";
  position: absolute;
  left: -10%; top: -30%;
  width: 120%; height: 200%;
  background: radial-gradient(ellipse at 80% 50%, rgba(255,215,150,0.18), transparent 50%);
  pointer-events: none;
}
.lighthouse-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 1;
  padding: 0 40px;
}
.lighthouse-band h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  max-width: 680px;
}
.lighthouse-band p { opacity: 0.85; max-width: 540px; margin: 0 0 22px; font-size: 16px; }
.lighthouse-band .eyebrow-pill {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 5px 12px;
  border: 1px solid rgba(255,217,184,0.3);
  border-radius: 999px;
  color: #FFD9B8;
  margin-bottom: 18px;
}
.lighthouse-vis {
  width: 320px;
  height: 200px;
  background-image: url('../images/lighthouse.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right center;
  filter: brightness(1.1);
}
.lighthouse-ctas { display: flex; gap: 10px; flex-wrap: wrap; }

/* ============ Footer ============ */
.site-footer {
  background: var(--earth);
  color: #F3EADB;
  padding: 72px 0 40px;
  margin-top: 96px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.site-footer h4 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 15px;
  margin: 0 0 16px;
  color: white;
  letter-spacing: 0.02em;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a {
  color: rgba(243,234,219,0.75);
  text-decoration: none;
  font-size: 14px;
}
.site-footer a:hover { color: white; }
.footer-brand { max-width: 320px; }
.footer-brand p { font-size: 14px; line-height: 1.6; color: rgba(243,234,219,0.7); }
.footer-brand-logo {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}
.footer-brand-mark {
  width: 36px; height: 36px;
  background-image: url('../images/logo-mark.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}
.footer-brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  color: white;
  line-height: 1;
}
.footer-base {
  border-top: 1px solid rgba(243,234,219,0.15);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(243,234,219,0.6);
  flex-wrap: wrap;
  gap: 12px;
}

/* ============ Floating Lighthouse Help FAB ============ */
.help-fab {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 40;
  background: var(--surface);
  color: var(--earth);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 20px 12px 14px;
  box-shadow: 0 10px 30px -8px rgba(42,26,16,0.3);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  color: var(--earth);
  transition: transform 0.2s, box-shadow 0.2s;
}
.help-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -8px rgba(42,26,16,0.35);
  color: var(--earth);
}
.help-fab .beam {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle, #FFD9B8, #E87722);
  display: grid; place-items: center;
  font-size: 16px;
  animation: pulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}
.help-fab-text strong { display: block; font-weight: 600; font-size: 14px; }
.help-fab-text small {
  display: block;
  font-weight: 400;
  color: var(--ink-mute);
  font-size: 11px;
  line-height: 1.3;
  margin-top: 1px;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,119,34,0.4); }
  50% { box-shadow: 0 0 0 14px rgba(232,119,34,0); }
}

/* ============ Calendar ============ */
.cal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.cal-toolbar-group { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cal-select {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  appearance: auto;
}
.cal-toggle {
  display: inline-flex;
  background: var(--bg-alt);
  border-radius: 999px;
  padding: 4px;
}
.cal-toggle a, .cal-toggle button {
  border: none; background: transparent;
  padding: 8px 16px;
  font: inherit; font-size: 13px; font-weight: 500;
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink-soft);
  text-decoration: none;
  display: inline-block;
}
.cal-toggle a.active, .cal-toggle button.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.cal-grid {
  background: var(--surface);
  border-radius: var(--card-radius);
  border: var(--card-border);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}
.cal-head {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.cal-head > div {
  padding: 14px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: left;
}
.cal-month-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  color: var(--earth);
}
.cal-month-nav button, .cal-month-nav a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  display: grid; place-items: center;
  font-size: 16px;
  color: var(--ink);
  text-decoration: none;
}
.cal-month-nav button:hover,
.cal-month-nav a:hover { background: var(--bg-alt); }

.cal-weeks { display: grid; }
.cal-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}
.cal-week:last-child { border-bottom: none; }
.cal-day {
  min-width: 0;
  overflow: hidden;
  min-height: 128px;
  padding: 10px 10px 12px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  transition: background .15s;
}
.cal-day:last-child { border-right: none; }
.cal-day:hover { background: rgba(243,234,219,0.4); }
.cal-day.muted { background: var(--bg-alt); opacity: 0.55; }
.cal-day.today .cal-daynum {
  background: var(--primary);
  color: white;
  border-radius: 50%;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  margin: -4px -4px 0 -4px;
}
.cal-daynum {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.cal-evt {
  font-size: 12px;
  padding: 5px 8px;
  border-radius: 6px;
  background: #FFF0E0;
  color: var(--primary-deep);
  border-left: 3px solid var(--primary);
  font-weight: 500;
  line-height: 1.25;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.cal-evt.tinana { background: rgba(181,84,26,0.14); color: #6B2F0E; border-left-color: var(--pillar-tinana); }
.cal-evt.hinengaro { background: rgba(62,107,142,0.14); color: #1F3D5C; border-left-color: var(--pillar-hinengaro); }
.cal-evt.wairua { background: rgba(217,168,76,0.2); color: #6B4E17; border-left-color: var(--pillar-wairua); }
.cal-evt.whanau { background: rgba(168,42,42,0.12); color: #6B1616; border-left-color: var(--pillar-whanau); }

/* Pillar legend */
.pillar-legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.pillar-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
}
.pillar-legend-swatch {
  width: 12px; height: 12px;
  border-radius: 3px;
}
.pillar-legend-swatch.tinana { background: var(--pillar-tinana); }
.pillar-legend-swatch.hinengaro { background: var(--pillar-hinengaro); }
.pillar-legend-swatch.wairua { background: var(--pillar-wairua); }
.pillar-legend-swatch.whanau { background: var(--pillar-whanau); }

/* ============ Single Event Page ============ */
.evt-hero {
  position: relative;
  height: 420px;
  overflow: hidden;
  isolation: isolate;
}
.evt-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(42,26,16,0.4) 0%, rgba(42,26,16,0) 40%, rgba(42,26,16,0.85) 100%);
  z-index: 1;
}
.evt-hero-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -1;
}
.evt-hero-content {
  position: absolute;
  /* Sit above the overlapping content panel (.evt-body has margin-top: -60px). */
  bottom: 96px; left: 0; right: 0;
  z-index: 2;
  color: white;
}
.evt-crumbs {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 16px;
}
.evt-crumbs a { color: inherit; text-decoration: none; }
.evt-crumbs a:hover { text-decoration: underline; }
.evt-pills { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.evt-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 820px;
  text-wrap: pretty;
}

.evt-body {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 56px;
  margin-top: -60px;
  position: relative;
  z-index: 3;
  padding-bottom: 96px;
}
.evt-main {
  background: var(--surface);
  border-radius: var(--card-radius);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  padding: 44px;
}
.evt-taxonomy { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.evt-description { line-height: 1.7; color: var(--ink); }
.evt-description p { margin: 0 0 16px; }
.evt-description h2, .evt-description h3 { font-family: var(--serif); color: var(--earth); margin: 32px 0 12px; }
.evt-intro {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.55;
  color: var(--ink);
  border-left: 3px solid var(--primary);
  padding-left: 22px;
  margin: 0 0 32px;
  font-weight: 400;
}
.evt-main h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  color: var(--earth);
  margin: 32px 0 12px;
}
.evt-main p { color: var(--ink-soft); line-height: 1.7; margin: 0 0 16px; font-size: 16px; }
.evt-main ul { color: var(--ink-soft); padding-left: 22px; line-height: 1.7; }
.evt-note {
  background: var(--bg-alt);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 24px 0;
  font-size: 15px;
  border-left: 3px solid var(--primary);
  color: var(--ink-soft);
  line-height: 1.6;
}

.evt-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 80px;
}
.evt-card {
  background: var(--surface);
  border-radius: var(--card-radius);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  padding: 24px;
}
.evt-card.primary-card {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  text-align: center;
}
.evt-card.primary-card h4 { color: rgba(255,255,255,0.75); }
.evt-card h4 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-mute);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.evt-datetime {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  color: var(--earth);
  line-height: 1.2;
}
.evt-time { color: var(--ink-soft); font-size: 15px; margin-top: 4px; }
.evt-future-list {
  list-style: none; padding: 0; margin: 18px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.evt-future-list li { font-size: 14px; color: var(--ink-soft); padding: 6px 0; }

.evt-host {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: var(--bg-alt);
  border-radius: 12px;
  margin-top: 6px;
}
.evt-host img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.evt-host .n { font-weight: 600; color: var(--earth); font-size: 14px; }
.evt-host .r { font-size: 12px; color: var(--ink-mute); }

.map-placeholder {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #E8DDC9 25%, transparent 25%, transparent 50%, #E8DDC9 50%, #E8DDC9 75%, transparent 75%);
  background-size: 20px 20px;
  background-color: var(--bg-alt);
  border-radius: 12px;
  display: grid; place-items: center;
  color: var(--ink-mute);
  font-size: 12px;
  margin-top: 12px;
  position: relative;
  overflow: hidden;
}
.map-label {
  background: var(--surface);
  padding: 6px 12px;
  border-radius: 6px;
  color: var(--earth);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ============ Auth (login / logout / reset / remind) ============ */
.auth-card {
  max-width: 480px;
  margin: 48px auto;
  background: var(--surface);
  border-radius: var(--card-radius);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  padding: 40px;
}
/* Overlap card onto the banner when one is rendered above (matches .evt-body). */
body.has-banner .section-auth { padding-top: 0; }
body.has-banner .section-auth .auth-card {
  margin-top: -60px;
  position: relative;
  z-index: 3;
}
/* Flash messages on auth pages float over the banner so they don't push the
   auth-card out of its overlap position. Scoped to com_users so other pages
   keep the standard inline message bar. */
body.option-com_users #system-message-container {
  position: absolute;
  top: 96px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: min(560px, calc(100vw - 32px));
  margin: 0;
  pointer-events: none;
}
body.option-com_users #system-message-container > * { pointer-events: auto; }
@media (max-width: 600px) {
  body.option-com_users #system-message-container { top: 80px; }
}
.auth-card .com-users-login,
.auth-card .com-users-logout,
.auth-card .com-users-reset,
.auth-card .com-users-remind { margin: 0; }
.auth-card .page-header { margin: 0 0 24px; padding: 0; border: 0; }
.auth-card .page-header h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 32px;
  letter-spacing: -0.01em;
  color: var(--earth);
  margin: 0;
}
/* Strip Bootstrap "well" styling so the form sits flush in our card */
.auth-card form.well {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  box-shadow: none;
}
.auth-card fieldset { border: 0; padding: 0; margin: 0; }
.auth-card .control-group { margin-bottom: 18px; }
.auth-card .control-label { margin-bottom: 6px; }
.auth-card .control-label label {
  font-size: 13px;
  font-weight: 600;
  color: var(--earth);
  letter-spacing: 0.02em;
}
.auth-card .control-label .star { color: var(--primary); margin-left: 2px; }
.auth-card .form-control,
.auth-card .input-group .form-control {
  width: 100%;
  padding: 12px 14px;
  font: 15px/1.4 var(--sans);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.auth-card .form-control:focus {
  outline: 0;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232,119,34,0.18);
}
.auth-card .password-group .input-group {
  display: flex;
  align-items: stretch;
  gap: 6px;
}
.auth-card .password-group .form-control { flex: 1; }
.auth-card .password-group .input-password-toggle {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  color: var(--ink-mute);
  border-radius: 10px;
  padding: 0 14px;
  cursor: pointer;
  font-size: 14px;
}
.auth-card .password-group .input-password-toggle:hover {
  background: var(--line);
  color: var(--earth);
}
.auth-card .com-users-login__remember {
  margin: 6px 0 18px;
  font-size: 14px;
  color: var(--ink-soft);
}
.auth-card .com-users-login__remember .form-check {
  display: flex; align-items: center; gap: 8px;
}
.auth-card .com-users-login__submit { margin-top: 12px; }
.auth-card .com-users-login__submit .btn,
.auth-card .com-users-login__submit button {
  width: 100%;
  justify-content: center;
  padding: 13px 22px;
}
/* Joomla wraps the WebAuthn passkey button in .btn.btn-secondary; recolor to ghost */
.auth-card .btn-secondary {
  background: var(--bg-alt);
  color: var(--earth);
  border: 1px solid var(--line);
}
.auth-card .btn-secondary:hover {
  background: var(--line);
  color: var(--earth);
}
.auth-card .btn-secondary svg { width: 18px; height: 18px; margin-right: 6px; vertical-align: -3px; }
/* Forgot username / password / register links */
.auth-card .com-users-login__options,
.auth-card .com-users-logout__options {
  list-style: none;
  margin: 28px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.auth-card .com-users-login__options .list-group-item,
.auth-card .com-users-logout__options .list-group-item {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 14px;
  color: var(--primary);
  text-decoration: none;
}
.auth-card .com-users-login__options .list-group-item:hover,
.auth-card .com-users-logout__options .list-group-item:hover {
  color: var(--primary-deep);
  text-decoration: underline;
}
@media (max-width: 600px) {
  .auth-card { padding: 28px 22px; margin: 24px auto; }
}

/* Wider variant for the user profile (com_users) — more fields than login/reset. */
.auth-card.auth-card--wide { max-width: 760px; }
.auth-card .auth-fieldset {
  padding: 22px 0;
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}
.auth-card .auth-fieldset:first-of-type { border-top: 0; padding-top: 4px; }
.auth-card .auth-fieldset > legend {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--earth);
  padding: 0;
  margin: 0 0 14px;
  width: auto;
  border: 0;
}
.auth-card .auth-fieldset__desc {
  font-size: 13px;
  color: var(--ink-mute);
  margin: 0 0 16px;
  line-height: 1.55;
}
.auth-card .auth-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.auth-card .auth-actions .btn { padding: 12px 22px; }
/* Read-only profile view: tidy Joomla's stock UL into a clean key/value list */
.com-users-profile__core,
.com-users-profile__params,
.com-users-profile__custom {
  list-style: none;
  margin: 0;
  padding: 0;
}
.com-users-profile__core li,
.com-users-profile__params li,
.com-users-profile__custom li {
  display: flex;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.com-users-profile__core li:last-child,
.com-users-profile__params li:last-child,
.com-users-profile__custom li:last-child { border-bottom: 0; }
.com-users-profile__core .profile-label,
.com-users-profile__params .profile-label,
.com-users-profile__custom .profile-label {
  flex: 0 0 200px;
  font-weight: 600;
  color: var(--earth);
}

/* ============ Register page (com_connectevents register view) ============ */
.register-shell {
  max-width: 760px;
  margin: 48px auto;
  padding: 44px 48px;
  background: var(--surface);
  border-radius: var(--card-radius);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
}
.register-shell > h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 36px;
  letter-spacing: -0.01em;
  color: var(--earth);
  margin: 0 0 8px;
}
.register-shell .register-intro {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0 0 28px;
  line-height: 1.55;
}

.register-section {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.register-section:first-of-type { border-top: 0; padding-top: 4px; }
.register-section__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--earth);
  margin: 0 0 18px;
}
.register-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 18px;
}
.register-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.register-grid .register-field { margin-bottom: 0; }
.register-field--full { grid-column: 1 / -1; }
.register-field > label,
.register-field__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--earth);
  letter-spacing: 0.02em;
}
.register-required { color: var(--primary); margin-left: 2px; }

.register-shell .form-control,
.register-shell .form-select {
  width: 100%;
  padding: 12px 14px;
  font: 15px/1.4 var(--sans);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
  appearance: auto;
}
.register-shell .form-control:focus,
.register-shell .form-select:focus {
  outline: 0;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232,119,34,0.18);
}

.register-radio-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.register-radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-alt);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--earth);
  transition: background .15s, border-color .15s, color .15s;
  user-select: none;
}
.register-radio:hover { background: var(--surface); border-color: var(--ink-mute); }
.register-radio input[type="radio"] {
  width: 14px; height: 14px; margin: 0;
  accent-color: var(--primary);
}
.register-radio.is-checked,
.register-radio:has(input[type="radio"]:checked) {
  background: rgba(232,119,34,0.10);
  border-color: var(--primary);
}

.register-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
}
.register-checkbox input[type="checkbox"] {
  width: 16px; height: 16px; margin: 0;
  accent-color: var(--primary);
}

.register-actions {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.register-actions .btn-primary {
  padding: 13px 26px;
  font-size: 15px;
}

@media (max-width: 600px) {
  .register-shell { padding: 28px 22px; margin: 24px auto; }
  .register-grid  { grid-template-columns: 1fr; gap: 14px; }
  .register-shell > h1 { font-size: 28px; }
}

/* ============ Lighthouses Page ============ */
.intro-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.lighthouse-illus {
  aspect-ratio: 4/3;
  background-image: url('../images/lighthouse.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: var(--bg-alt);
  border-radius: var(--card-radius);
  border: var(--card-border);
  padding: 32px;
}

.crisis-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.crisis-card {
  background: var(--surface);
  border-radius: var(--card-radius);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.crisis-card .label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
}
.crisis-card .number {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 28px;
  color: var(--earth);
  letter-spacing: -0.01em;
}
.crisis-card p { margin: 0; font-size: 14px; color: var(--ink-soft); line-height: 1.55; }

.keepers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.keeper-card {
  background: var(--surface);
  border-radius: var(--card-radius);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.keeper-photo {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  position: relative;
}
.keeper-available {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--green);
  color: white;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.keeper-available::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: white;
  display: block;
}
.keeper-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.keeper-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  color: var(--earth);
  margin: 0;
  letter-spacing: -0.01em;
}
.keeper-role { font-size: 13px; color: var(--ink-mute); margin-top: -6px; }
.keeper-bio { margin: 0; font-size: 14px; color: var(--ink-soft); line-height: 1.6; }
.lang-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.lang-chip {
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  padding: 4px 10px; border-radius: 999px;
  background: var(--bg-alt); color: var(--earth);
}
.keeper-avail { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.keeper-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}
.keeper-contact { font-size: 13px; color: var(--ink-soft); }
.keeper-contact strong { color: var(--earth); }

/* Become a keeper CTA card */
.become-keeper-card {
  background: var(--surface);
  border: var(--card-border);
  border-radius: var(--card-radius);
  padding: 48px 56px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  box-shadow: var(--card-shadow);
}
.become-keeper-card h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.2;
  color: var(--earth);
  margin: 10px 0 12px;
}
.become-keeper-card p { margin: 0; font-size: 16px; color: var(--ink-soft); line-height: 1.6; max-width: 620px; }

/* ============ Breadcrumbs override ============ */
.breadcrumb { background: none; padding: 0; margin: 0; font-size: 13px; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--ink-mute); }
.breadcrumb-item a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb-item a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumb-item.active { color: var(--ink-mute); }

/* ============ Component area spacing ============ */
.site-component {
  min-height: 40vh;
}
.site-component.has-hero {
  padding-top: 0;
}

/* Joomla messages */
.alert { border-radius: var(--r-md); margin-bottom: 20px; }
.alert-info { background: rgba(134,182,217,0.15); border-color: var(--pillar-hinengaro); color: #1F3D5C; }
.alert-warning { background: rgba(217,168,76,0.15); border-color: var(--pillar-wairua); color: #6B4E17; }
.alert-danger { background: rgba(168,42,42,0.12); border-color: var(--pillar-whanau); color: #6B1616; }
.alert-success { background: rgba(46,125,91,0.12); border-color: var(--green); color: #1a4f38; }

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .pillars, .events-grid, .steps { grid-template-columns: 1fr 1fr; }
  .evt-body { grid-template-columns: 1fr; }
  .evt-side { margin-top: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-primary { display: none; }
  .nav-dropdown-btn { display: inline-flex; }
  .banner-content { padding: 120px 0 60px; }
  .crisis-grid { grid-template-columns: 1fr 1fr; }
  .keepers-grid { grid-template-columns: 1fr 1fr; }
  .intro-row { grid-template-columns: 1fr; gap: 40px; }
  .lighthouse-row { grid-template-columns: 1fr; }
  .lighthouse-vis { display: none; }
  .become-keeper-card { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .pillars, .events-grid, .steps { grid-template-columns: 1fr; }
  .cal-day { min-height: 80px; padding: 6px; }
  .footer-grid { grid-template-columns: 1fr; }
  .crisis-grid { grid-template-columns: 1fr 1fr; }
  .keepers-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .section-sm { padding: 40px 0; }
  .banner h1 { font-size: clamp(32px, 8vw, 56px); }
  .banner-content { padding: 100px 0 48px; }
  .help-fab .help-fab-text { display: none; }
  .help-fab { padding: 10px; }
}

/* ============ Set-password page (com_connectevents view=password) ============ */
.section-auth { padding: 64px 0; }
.ce-password-card { max-width: 480px; }
.ce-password-card .auth-intro {
  margin: 0 0 24px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}
.ce-password-card .form-text {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-mute);
}
.ce-password-card .input-password-toggle.is-active {
  background: var(--primary);
  color: var(--primary-ink);
  border-color: var(--primary);
}
.ce-password-card .ce-password-match {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
}
.ce-password-card .ce-password-match.is-match {
  color: var(--green);
}
.ce-password-card .ce-password-match.is-match::before {
  content: "\2713";
  margin-right: 6px;
  font-weight: 700;
}
.ce-password-card .ce-password-match.is-mismatch {
  color: var(--pillar-whanau);
}
.ce-password-card .ce-password-match.is-mismatch::before {
  content: "\2715";
  margin-right: 6px;
  font-weight: 700;
}
.ce-password-card .ce-password-actions {
  margin-top: 24px;
}
.ce-password-card .ce-password-actions .btn-primary {
  width: 100%;
  justify-content: center;
}
@media (max-width: 600px) {
  .section-auth { padding: 32px 0; }
}

