/* ============================================================
   CENTRAL LIFE CHURCH — Shared Stylesheet
   Design inspired by sovgrace.org.au
   ============================================================ */

/* ---------- GOOGLE FONTS ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,700;0,800;1,700&display=swap');

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', system-ui, sans-serif; background: var(--body-bg, #f4f3f0); color: #2d3142; line-height: 1.65; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---------- TOKENS ---------- */
:root {
  /* ── Official Central Life Brand Colours ── */
  --dark:       #264653;   /* brand dark teal-navy */
  --navy:       #0c6980;   /* brand mid-dark teal */
  --mid:        #4a7a8a;   /* mid teal-grey */
  --light:      #f0f5f4;   /* very light teal-tinted white */
  --white:      #ffffff;
  --border:     #d1dad8;   /* brand light grey */
  --blue:       #00a89e;   /* brand primary teal */
  --blue-hover: #008c83;   /* darker teal on hover */
  --green:      #00a89e;   /* merged with primary teal */
  --body-bg:    #f4f3f0;   /* page background */
  /* brand warm accents */
  --orange:     #f4a261;
  --coral:      #e76f51;
  --gold:       #e9c46a;
  --radius-sm:  12px;
  --radius-md:  20px;
  --radius-lg:  28px;
  --shadow-sm:  0 2px 12px rgba(0,0,0,.06);
  --shadow-md:  0 8px 28px rgba(0,0,0,.1);
  --shadow-lg:  0 20px 48px rgba(0,0,0,.15);
}

/* ---------- ANNOUNCE BAR ---------- */
.announce-bar {
  background: var(--dark);
  color: rgba(255,255,255,.75);
  text-align: center;
  font-size: .8rem;
  letter-spacing: .05em;
  padding: 9px 16px;
  position: relative;
  z-index: 300; /* always above logo circle */
}
.announce-bar a { color: #fff; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,.4); transition: border-color .2s; }
.announce-bar a:hover { border-color: #fff; }

/* ---------- NAV ---------- */
nav {
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 72px;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
  overflow: visible; /* allow logo circle to overflow below nav */
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  max-width: 420px;
}
.nav-links.left  { justify-content: flex-end;   padding-right: 16px; }
.nav-links.right { justify-content: flex-start;  padding-left:  16px; }
.nav-links a {
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--dark);
  transition: color .2s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: var(--blue); }

/* ── Logo – circular, hangs below nav bar ── */
.nav-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark);
  border-radius: 50%;
  width: 124px;
  height: 124px;
  flex-shrink: 0;
  margin: 0 16px;
  margin-bottom: -38px;
  /* white inner ring, like Sovereign Grace style */
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.5), 0 10px 36px rgba(0,0,0,.32);
  position: relative;
  z-index: 201;
  transition: transform .22s, box-shadow .22s;
  text-decoration: none;
  overflow: hidden;
  outline: none;
}
.nav-logo:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.85), 0 14px 42px rgba(0,0,0,.38);
}
.nav-logo img {
  width: 96px;
  height: auto;
  display: block;
  /* reversed logo already has correct colours for dark background — no filter needed */
}

/* ── Blue pill CTA button ── */
.btn-visit {
  background: var(--blue) !important;
  color: #fff !important;
  padding: 11px 24px;
  border-radius: 50px;
  font-size: .75rem !important;
  font-weight: 700 !important;
  letter-spacing: .1em !important;
  text-transform: uppercase;
  transition: background .2s, transform .15s !important;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-visit:hover {
  background: var(--blue-hover) !important;
  transform: translateY(-1px) !important;
  color: #fff !important;
}

/* hamburger */
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--dark); border-radius: 2px; transition: all .3s; }

/* ---------- PAGE HERO (inner pages) ---------- */
.page-hero {
  position: relative;
  height: 340px;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  /* compensate for circular logo hanging below nav */
  padding-top: 38px;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(rgba(20,24,40,.68), rgba(20,24,40,.68));
  background-size: cover; background-position: center;
}
.page-hero-content { position: relative; z-index: 2; padding: 20px; }
.page-hero-label {
  font-size: .74rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 12px;
}
.page-hero h1 {
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 900; color: #fff; line-height: 1.08;
  letter-spacing: -.02em;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 50px;
  font-size: .86rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; transition: all .2s; cursor: pointer; border: none;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(91,141,217,.4); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: var(--navy); transform: translateY(-2px); }
.btn-outline-dark { background: transparent; color: var(--dark); border: 2px solid var(--dark); }
.btn-outline-dark:hover { background: var(--dark); color: #fff; }
.btn-outline-white { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.7); }
.btn-outline-white:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn::after { content: none; }
.btn-arrow::after { content: '→'; font-size: .95rem; }

/* ---------- SECTION UTILS ---------- */
.section { padding: 96px 48px; }
.section-sm { padding: 64px 48px; }
.section-center { text-align: center; }
.section-label {
  font-size: .73rem; font-weight: 800; letter-spacing: .22em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  font-weight: 900; color: var(--dark); line-height: 1.12; margin-bottom: 16px;
}
.section-body {
  font-size: 1.05rem; color: var(--mid);
  max-width: 620px; margin: 0 auto; line-height: 1.78;
}
.section-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }
.section-ctas.center { justify-content: center; }

.bg-light { background: var(--light); }
.bg-white { background: var(--white); }
.bg-dark  { background: var(--dark);  color: #fff; }
.bg-dark .section-title { color: #fff; }
.bg-dark .section-body  { color: rgba(255,255,255,.75); }
.bg-dark .section-label { color: rgba(255,255,255,.5); }

/* ---------- DIVIDER CHEVRON ---------- */
.chevron-down {
  width: 0; height: 0;
  border-left: 36px solid transparent;
  border-right: 36px solid transparent;
  border-top: 36px solid var(--dark);
  margin: 0 auto 56px;
}

/* ---------- CARDS ---------- */
.card-grid { display: grid; gap: 24px; }
.card-grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); }
.card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); }
.card-grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); }

/* Dark block cards */
.dark-card {
  background: var(--card-gradient, linear-gradient(135deg,#3a5bd9,#6c3fc9));
  border-radius: 24px;
  padding: 44px 36px 38px;
  text-align: left; color: #fff;
  position: relative; overflow: hidden;
  transition: transform .3s cubic-bezier(.22,.61,.36,1), box-shadow .3s;
  text-decoration: none; display: flex; flex-direction: column;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  min-height: 280px;
}
.dark-card:hover { transform: translateY(-8px) scale(1.01); box-shadow: 0 20px 56px rgba(0,0,0,.26); }
/* Decorative circle top-right */
.dark-card::before {
  content: '';
  position: absolute; top: -48px; right: -48px;
  width: 170px; height: 170px; border-radius: 50%;
  background: rgba(255,255,255,.1);
  pointer-events: none;
}
/* Decorative circle bottom-left */
.dark-card::after {
  content: '';
  position: absolute; bottom: -60px; left: -30px;
  width: 160px; height: 160px; border-radius: 50%;
  background: rgba(255,255,255,.06);
  pointer-events: none;
}
.dark-card .card-icon {
  width: 56px; height: 56px; border-radius: 18px;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 26px; position: relative; flex-shrink: 0;
}
.dark-card h3 {
  font-size: 1.25rem; font-weight: 800; letter-spacing: .01em;
  margin-bottom: 12px; position: relative; color: #fff; line-height: 1.2;
}
.dark-card p {
  font-size: .9rem; color: rgba(255,255,255,.78);
  line-height: 1.72; position: relative; margin-bottom: 0; flex: 1;
}
.dark-card .card-cta {
  margin-top: 28px;
  font-size: .8rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: rgba(255,255,255,.9);
  display: inline-flex; align-items: center; gap: 7px; position: relative;
  background: rgba(255,255,255,.15); border-radius: 100px;
  padding: 7px 16px; width: fit-content;
  transition: background .2s;
}
.dark-card:hover .card-cta { background: rgba(255,255,255,.25); }
.dark-card .card-cta::after { content: '→'; transition: transform .2s; }
.dark-card:hover .card-cta::after { transform: translateX(4px); }

/* White card with accent border left */
.event-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 28px;
  position: relative; overflow: hidden;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.event-card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; background: var(--blue); border-radius: 0 4px 4px 0;
}
.event-card:hover { border-color: var(--blue); box-shadow: 0 8px 28px rgba(91,141,217,.15); transform: translateY(-3px); }
.event-card .ev-date { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }
.event-card .ev-time { display: inline-block; background: rgba(91,141,217,.1); color: var(--blue); font-size: .75rem; font-weight: 600; padding: 3px 12px; border-radius: 50px; margin-bottom: 10px; }
.event-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.event-card p  { font-size: .88rem; color: var(--mid); line-height: 1.65; }

/* Sermon cards */
.sermon-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
  position: relative;
}
.sermon-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.sermon-card::after {
  content: '';
  position: absolute; top: -14px; right: -14px;
  width: 90px; height: 90px;
  background-image: radial-gradient(circle, rgba(91,141,217,.22) 1.5px, transparent 1.5px);
  background-size: 9px 9px;
  pointer-events: none;
}
.sermon-thumb {
  width: 100%; height: 155px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--dark) 0%, var(--navy) 100%);
}
.play-btn {
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(255,255,255,.18);
  border: 2px solid rgba(255,255,255,.55);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem; padding-left: 3px;
  transition: background .2s;
}
.sermon-card:hover .play-btn { background: var(--blue); border-color: var(--blue); }
.sermon-body { padding: 22px; }
.sermon-body .s-date { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }
.sermon-body .s-title { font-size: 1.02rem; font-weight: 700; color: var(--dark); margin-bottom: 6px; line-height: 1.35; }
.sermon-body .s-speaker { font-size: .82rem; color: var(--mid); }

/* Values / Beliefs list cards */
.value-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--blue);
}
.value-card h3 { font-size: 1rem; font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.value-card p  { font-size: .9rem; color: var(--mid); line-height: 1.7; }

/* Belief numbered item */
.belief-item {
  display: grid; grid-template-columns: 44px 1fr;
  gap: 20px; padding: 28px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.belief-item:last-child { border-bottom: none; }
.belief-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(91,141,217,.12);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; color: var(--blue); font-size: .9rem;
  flex-shrink: 0;
}
.belief-item p { font-size: .95rem; color: var(--mid); line-height: 1.72; padding-top: 10px; }

/* Team cards */
.team-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.team-avatar {
  width: 100%; height: 200px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--dark) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
}
.team-body { padding: 24px; }
.team-body h3 { font-size: 1.08rem; font-weight: 800; color: var(--dark); margin-bottom: 4px; }
.team-body .role { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.team-body p { font-size: .88rem; color: var(--mid); line-height: 1.7; }

/* Connect group cards */
.group-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--blue);
  transition: transform .2s, box-shadow .2s;
}
.group-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.group-card h3 { font-size: 1.05rem; font-weight: 800; color: var(--dark); margin-bottom: 14px; }
.group-meta { display: flex; flex-direction: column; gap: 6px; }
.group-meta span { font-size: .85rem; color: var(--mid); display: flex; gap: 8px; align-items: flex-start; }
.group-meta .meta-icon { color: var(--blue); flex-shrink: 0; margin-top: 2px; }

/* Media cards */
.media-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
  border-top: 3px solid var(--blue);
}
.media-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.media-icon { font-size: 2.6rem; margin-bottom: 16px; }
.media-card h3 { font-size: 1.1rem; font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.media-card p  { font-size: .9rem; color: var(--mid); margin-bottom: 20px; line-height: 1.65; }

/* Giving boxes */
.give-box {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 44px 40px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--blue);
}
.give-box h3 { font-size: 1.3rem; font-weight: 800; color: var(--dark); margin-bottom: 16px; }
.give-box p  { font-size: .95rem; color: var(--mid); line-height: 1.75; }
.bank-detail {
  display: flex; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--border);
  font-size: .95rem;
}
.bank-detail:last-of-type { border-bottom: none; }
.bank-detail .label { color: var(--mid); font-weight: 500; }
.bank-detail .value { font-weight: 700; color: var(--dark); font-family: monospace; font-size: 1rem; }

/* ---------- TWO-COL SPLIT ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
@media (max-width: 820px) { .split, .split.reverse { grid-template-columns: 1fr; gap: 40px; direction: ltr; } }

/* ---------- DOTS PATTERN ---------- */
.dots-pattern {
  position: relative; overflow: hidden;
}
.dots-pattern::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 280px; height: 280px;
  background-image: radial-gradient(circle, rgba(91,141,217,.2) 1.5px, transparent 1.5px);
  background-size: 14px 14px;
  pointer-events: none;
}
.dots-pattern::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 200px; height: 200px;
  background-image: radial-gradient(circle, rgba(91,141,217,.15) 1.5px, transparent 1.5px);
  background-size: 14px 14px;
  pointer-events: none;
}

/* ---------- DARK CTA BAND ---------- */
.cta-band {
  background: var(--dark);
  color: #fff;
  padding: 80px 48px;
  text-align: center;
}
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; margin-bottom: 14px; }
.cta-band p  { font-size: 1.08rem; color: rgba(255,255,255,.75); max-width: 560px; margin: 0 auto 36px; line-height: 1.7; }

/* ---------- NEWSLETTER SECTION ---------- */
.newsletter-section { text-align: center; }
.newsletter-card-wrap {
  max-width: 640px; margin: 36px auto 0;
}
.newsletter-card {
  display: flex; align-items: flex-start; gap: 24px;
  background: #fff; border-radius: 20px;
  padding: 32px 36px;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
  border: 1px solid var(--border);
  text-decoration: none; color: var(--dark);
  transition: transform .25s, box-shadow .25s;
  text-align: left;
}
.newsletter-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,.13);
}
.newsletter-card-icon {
  font-size: 2.6rem; flex-shrink: 0;
  width: 64px; height: 64px;
  background: var(--light); border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
}
.newsletter-card-body { flex: 1; }
.newsletter-issue-tag {
  display: inline-block;
  font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--blue);
  background: rgba(0,168,158,.1); border-radius: 50px;
  padding: 3px 12px; margin-bottom: 10px;
}
.newsletter-card h3 {
  font-size: 1.2rem; font-weight: 800;
  color: var(--dark); margin-bottom: 8px; line-height: 1.3;
}
.newsletter-card p {
  font-size: .92rem; color: var(--mid);
  line-height: 1.65; margin-bottom: 16px;
}
.newsletter-read-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .82rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--blue); transition: gap .2s;
}
.newsletter-card:hover .newsletter-read-btn { gap: 11px; }
.newsletter-actions { margin: 24px auto 0; }
.newsletter-archive {
  max-width: 640px; margin: 28px auto 0; padding: 20px 24px;
  list-style: none; background: rgba(255,255,255,.7);
  border: 1px solid var(--border); border-radius: 16px;
  text-align: left;
}
.newsletter-archive::before {
  content: 'Previous newsletters'; display: block;
  margin-bottom: 10px; color: var(--dark);
  font-size: .78rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
}
.newsletter-archive li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 9px 0; border-top: 1px solid var(--border);
  font-size: .88rem;
}
.newsletter-archive a { color: var(--blue); font-weight: 700; text-decoration: none; }
.newsletter-archive a:hover { text-decoration: underline; }
.newsletter-archive span { color: var(--mid); white-space: nowrap; }

/* ---------- FULL-WIDTH IMAGE BANNER ---------- */
.img-banner {
  position: relative; height: 440px;
  display: flex; align-items: center; overflow: hidden;
}
.img-banner-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.img-banner-content {
  position: relative; z-index: 2;
  max-width: 500px;
  padding: 48px 80px 48px 48px;
  margin-left: auto; color: #fff;
}
.img-banner-content h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 900; margin-bottom: 14px; }
.img-banner-content p  { font-size: .98rem; color: rgba(255,255,255,.82); margin-bottom: 28px; line-height: 1.72; }

/* ---------- LOCATION STRIP ---------- */
.location-strip {
  background: var(--dark); color: #fff;
  display: flex; align-items: center; justify-content: space-between;
  padding: 44px 80px; gap: 40px; flex-wrap: wrap;
}
.location-strip h4 { font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 6px; }
.location-strip p { font-size: 1.15rem; font-weight: 700; line-height: 1.45; }
.location-strip .sub { font-size: .88rem; color: rgba(255,255,255,.6); margin-top: 8px; }
.location-strip .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- FILTER BAR (Sermons) ---------- */
.filter-bar {
  display: flex; gap: 10px; flex-wrap: wrap;
  max-width: 700px; margin: 0 auto 56px;
  justify-content: center;
}
.filter-btn {
  padding: 9px 22px; border-radius: 50px;
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  border: 2px solid var(--border); background: var(--white); color: var(--mid);
  cursor: pointer; transition: all .2s;
}
.filter-btn:hover,
.filter-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ---------- TAG PILL ---------- */
.tag {
  display: inline-block;
  background: rgba(91,141,217,.12);
  color: var(--blue); font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 50px; margin-bottom: 12px;
}
.tag-dark { background: rgba(255,255,255,.1); color: rgba(255,255,255,.8); }

/* ---------- FOOTER ---------- */
footer {
  background: var(--light);
  border-top: 1px solid var(--border);
  padding: 72px 80px 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.3fr;
  gap: 48px; margin-bottom: 52px;
}
.footer-logo-wrap { display: flex; flex-direction: column; gap: 16px; }
.footer-logo {
  width: 70px; height: 70px; border-radius: 50%;
  background: var(--dark); display: flex; flex-direction: column;
  align-items: center; justify-content: center; color: #fff; flex-shrink: 0;
}
.footer-logo .l-top  { font-size: .4rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.footer-logo .l-mid  { font-family: 'Playfair Display', serif; font-size: .76rem; font-weight: 700; font-style: italic; }
.footer-logo .l-bot  { font-size: .36rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-top: 1px; opacity: .75; }
.footer-tagline { font-size: .9rem; color: var(--mid); line-height: 1.72; }
.footer-col h4 {
  font-size: .7rem; font-weight: 800; letter-spacing: .18em;
  text-transform: uppercase; color: var(--dark); margin-bottom: 18px;
}
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { font-size: .88rem; color: var(--mid); transition: color .2s; }
.footer-col ul li a:hover { color: var(--blue); }
.footer-col ul li a::before { content: ''; }
.contact-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .88rem; color: var(--mid); margin-bottom: 12px;
}
.contact-item .ci-icon { flex-shrink: 0; color: var(--blue); margin-top: 1px; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
}
.footer-bottom p { font-size: .8rem; color: var(--mid); }
.social-row { display: flex; gap: 10px; flex-wrap: wrap; }
.soc-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,.07); color: var(--dark);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .15s;
  flex-shrink: 0;
}
.soc-btn svg { display: block; }
.soc-btn:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  nav { padding: 0 24px; }
  .nav-links { gap: 18px; }
  .section, .cta-band { padding: 80px 32px; }
  footer { padding: 60px 32px 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .location-strip { padding: 40px 32px; }
}
@media (max-width: 860px) {
  /* Hide text nav links, show hamburger */
  .nav-links.right,
  .nav-links.left { display: none; }
  .nav-toggle { display: flex; }
  /* Nav wraps so open panels flow naturally below logo row */
  nav {
    padding: 0 20px;
    overflow: visible;
    flex-wrap: wrap;
    height: auto;
    min-height: 72px;
    align-items: center;
  }
  .nav-logo { margin-bottom: -26px; order: 0; flex-shrink: 0; }
  .nav-toggle { order: 1; margin-left: auto; }
  /* Mobile dropdown — fixed overlay, top set by JS from nav.getBoundingClientRect().bottom */
  .mobile-menu {
    display: none;
    position: fixed;
    /* top: set dynamically by JS */
    left: 0;
    right: 0;
    background: var(--white);
    z-index: 199;
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
    flex-direction: column;
    padding: 8px 0 20px;
    max-height: 70vh;
    overflow-y: auto;
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a {
    display: block;
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--dark);
    text-decoration: none;
  }
  .mobile-menu a:last-child { border-bottom: none; }
  .mobile-menu a.active { color: var(--blue); }
  .mobile-menu a:hover  { color: var(--blue); }
  /* Language toggle at bottom of mobile menu */
  .mobile-lang-toggle {
    display: block;
    width: 100%;
    padding: 14px 24px;
    background: none;
    border: none;
    border-top: 2px solid var(--blue);
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--blue);
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    margin-top: 4px;
  }
  .mobile-lang-toggle:hover { opacity: .75; }
  .section, .cta-band { padding: 64px 24px; }
  .img-banner-content { padding: 40px 24px; margin: 0 auto; }
  footer { padding: 52px 24px 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .card-grid-4, .card-grid-3 { grid-template-columns: 1fr; }
  .nav-logo { width: 86px; height: 86px; margin-bottom: -18px; }
  .nav-logo img { width: 68px; }
}

/* ── Cookie consent banner ── */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--dark);
  border-top: 3px solid var(--blue);
  padding: 20px 32px;
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.22,.61,.36,1);
  box-shadow: 0 -8px 32px rgba(0,0,0,.22);
}
#cookie-banner.cb-visible  { transform: translateY(0); }
#cookie-banner.cb-hiding   { transform: translateY(100%); }
.cb-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cb-text {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  min-width: 260px;
}
.cb-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 1px; }
.cb-text p {
  font-size: .85rem;
  color: rgba(255,255,255,.8);
  line-height: 1.6;
  margin: 0;
}
.cb-policy-link {
  color: var(--blue);
  text-decoration: underline;
  white-space: nowrap;
}
.cb-policy-link:hover { color: #fff; }
.cb-accept {
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 11px 26px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: inherit;
  transition: background .2s, transform .15s;
}
.cb-accept:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
}
@media (max-width: 600px) {
  #cookie-banner { padding: 16px 20px; }
  .cb-inner { flex-direction: column; gap: 14px; }
  .cb-accept { width: 100%; text-align: center; justify-content: center; }
}

/* ── Staff / Volunteer login link ── */
.staff-login-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 600;
  color: rgba(255,255,255,.45);
  text-decoration: none;
  letter-spacing: .04em;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50px;
  padding: 5px 14px;
  margin-top: 10px;
  transition: color .2s, border-color .2s, background .2s;
}
.staff-login-link:hover {
  color: #fff;
  border-color: rgba(255,255,255,.4);
  background: rgba(255,255,255,.06);
}

/* ── Language toggle button ── */
.lang-btn {
  background: var(--blue);
  border: none;
  color: #fff;
  border-radius: 50px;
  padding: 11px 24px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, transform .15s;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: inherit;
}
.lang-btn:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
}
/* lang-btn on mobile is inside the .mobile-menu dropdown — no extra rule needed */

/* ============================================================
   COLOUR THEMES
   Three brand-based themes toggled via data-theme on <html>
   ============================================================ */

/* ---------- THEME 2: Ocean — "In the Blue" brand palette ---------- */
/* Hero: #1f628e (brand navy) · Anchor: #0c6980 (brand deep teal) · Sky tint from #c0f0f7 */
[data-theme="ocean"] {
  --body-bg:    #eaf6fb;   /* very light tint of brand sky #c0f0f7 */
  --dark:       #0c6980;   /* brand deep teal — "In the Blue" palette */
  --navy:       #1f628e;   /* brand navy — "In the Blue" palette */
  --mid:        #4d7e96;
  --light:      #c0f0f7;   /* brand sky — "In the Blue" palette */
  --border:     #8ed4e3;
  --blue:       #1f628e;   /* ← brand navy as the ONE hero */
  --blue-hover: #164f72;
  --green:      #1f628e;
}

/* ---------- THEME 3: Coral — "Central Life New" brand palette ---------- */
/* Hero: #e76f51 (brand coral) · Anchor: #264653 (brand dark) · Warm from #f4a261 */
[data-theme="warm"] {
  --body-bg:    #faf6f2;   /* warm off-white */
  --dark:       #264653;   /* brand dark — Central Life New palette */
  --navy:       #5a3e2b;   /* warm mid-brown */
  --mid:        #8a6a58;
  --light:      #fde8dd;   /* warm tint of coral */
  --border:     #f0c8b4;   /* warm tint of brand orange #f4a261 */
  --blue:       #e76f51;   /* ← brand coral as the ONE hero */
  --blue-hover: #c95c3f;
  --green:      #e76f51;
  --orange:     #f4a261;   /* brand orange stays warm accent */
}

/* ---------- THEME SWITCHER UI ---------- */
.footer-theme-bar {
  width: 100%;
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 18px 0 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.footer-theme-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
}
.theme-swatches {
  display: flex;
  gap: 8px;
  align-items: center;
}
.theme-swatch {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.08);
  border: 2px solid rgba(255,255,255,.15);
  border-radius: 50px;
  padding: 5px 12px 5px 8px;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .15s;
  font-family: inherit;
}
.theme-swatch:hover {
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.4);
  transform: translateY(-1px);
}
.theme-swatch.active {
  border-color: rgba(255,255,255,.75);
  background: rgba(255,255,255,.18);
}
.swatch-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.swatch-name {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
}
.theme-swatch.active .swatch-name { color: #fff; }
@media (max-width: 600px) {
  .footer-theme-bar { flex-direction: column; gap: 10px; }
  .swatch-name { display: none; }
  .theme-swatch { padding: 6px; border-radius: 50%; }
  .swatch-dot { width: 18px; height: 18px; }
}
