/*
Theme Name: UC4 Gutenberg
Author: HBK Solutions
Version: 1.0.0
Description: UC4 reusable Gutenberg block theme (parent).
Requires at least: 6.1
*/

/* ==============================
   CSS VARIABLES (mirrors theme.json)
============================== */
:root {
  /* Use theme.json colour presets */
  --color-bg: var(--wp--preset--color--bg-default);
  --color-bg-alt: var(--wp--preset--color--bg-alt);
  --color-bg-dark: var(--wp--preset--color--bg-dark);
  --color-bg-accent: var(--wp--preset--color--accent);
  --color-text: var(--wp--preset--color--text-main);
  --color-text-muted: var(--wp--preset--color--text-muted);
  --color-border: var(--wp--preset--color--border);
  --color-card-bg: var(--wp--preset--color--card-bg);

  /* Typography */
  --font-base: var(--wp--preset--font-family--montserrat);

  /* Layout tokens */
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
  --radius-large: 1.25rem;
  --radius-medium: 0.75rem;
  --radius-pill: 999px;
  --spacing-section-y: 4rem;
  --spacing-section-y-large: 5rem;
  --content-width: 1120px;

  /* Light text colour for dark / accent backgrounds */
  --color-text-on-dark: #f9fafb;

  /* Readable muted text (avoid “washed out”) */
  --uc4-muted: rgba(15, 23, 42, 0.72);

  /* Link colour (UC4 blue) */
  --uc4-link: var(--wp--preset--color--uc4-blue);
}

/* ==============================
   GLOBAL RESETS
============================== */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
}

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

a {
  text-decoration: none;
  color: inherit;
}

/* Ensure default block text is readable (prevents “faint grey everywhere”) */
p, li, .wp-block-paragraph {
  color: var(--color-text);
}

/* Headings default to UC4 bronze */
h1, h2, h3, h4, h5, h6,
.wp-block-heading {
  color: var(--wp--preset--color--uc4-bronze);
}

/* Normal links use UC4 blue (but don’t override buttons) */
a:not(.wp-block-button__link):not(.site-nav__donate) {
  color: var(--uc4-link);
}
/* Normal links use UC4 blue (but don’t override buttons, nav links, or footer donate) */
a:not(.wp-block-button__link):not(.site-nav__donate):not(.site-nav__link):not(.site-footer__donate-btn):hover {
  text-decoration: underline;
}

/* ==============================
   CONTAINER
============================== */
.container {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1.5rem; /* gutters */
}

/* ==============================
   BACKGROUND UTILITIES
============================== */
.bg-default { background-color: var(--color-bg); }
.bg-white   { background-color: var(--color-bg-alt); }
.bg-dark    { background-color: var(--color-bg-dark);   color: var(--color-text-on-dark); }
.bg-accent  { background-color: var(--color-bg-accent); color: var(--color-text-on-dark); }

.bg-1 { background-color: var(--wp--preset--color--uc4-blue); }
.bg-2 { background-color: var(--wp--preset--color--uc4-sand); }

/* Make sure text inside accent/dark sections is light even if Gutenberg applies its own colours */
.has-accent-background-color .wp-block-heading,
.has-accent-background-color .wp-block-paragraph,
.has-accent-background-color h1,
.has-accent-background-color h2,
.has-accent-background-color h3,
.has-accent-background-color p {
  color: var(--color-text-on-dark) !important;
}

.has-bg-dark-background-color .wp-block-heading,
.has-bg-dark-background-color .wp-block-paragraph,
.has-bg-dark-background-color h1,
.has-bg-dark-background-color h2,
.has-bg-dark-background-color h3,
.has-bg-dark-background-color p {
  color: var(--color-text-on-dark) !important;
}

/* ==============================
   SECTIONS
============================== */
.section {
  padding: var(--spacing-section-y) 0;
}
.section--large {
  padding: var(--spacing-section-y-large) 0;
}

/* Remove any top gap between header and first full-width section */
.wp-site-blocks > :first-child { margin-top: 0 !important; }
.site-header + .wp-site-blocks > :first-child { margin-top: 0 !important; }

/* ==============================
   GENERIC SECTION HEADER
============================== */
.section__header {
  margin-bottom: 2rem;
  text-align: left;
}

.section__eyebrow {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--uc4-muted);
  margin: 0 0 0.25rem;
}

.section__title {
  font-size: clamp(1.9rem, 3vw, 2.3rem);
  margin: 0 0 0.5rem;
}

.section__description,
.section__description_full {
  font-size: 0.98rem;
  color: var(--uc4-muted);
  margin: 0;
}
.section__description { max-width: 36rem; }
.section__description_full { max-width: 100%; }

/* ==============================
   HERO (full-width band; inner stays constrained)
============================== */
/* Your hero outer wrapper should include class "section--hero" */
.section--hero {
  /* Guaranteed default background (DO NOT rely on Gutenberg preset output) */
  background-color: var(--wp--preset--color--uc4-blue) !important;
  color: var(--color-text-on-dark);
}

/* Keep hero flush under header (no extra top padding beyond section rhythm) */
.section--hero.section--large {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

/* The inner .hero is a layout container, not the coloured panel */
.section--hero .hero {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  min-height: 460px;
  padding-top: 0;
  padding-bottom: 0;
  background: transparent;
}

/* Readable hero text */
.section--hero .hero__eyebrow,
.section--hero .hero__title,
.section--hero .hero__subtitle,
.section--hero p,
.section--hero h1,
.section--hero h2,
.section--hero h3 {
  color: var(--color-text-on-dark) !important;
  opacity: 1 !important;
}

.hero__content { max-width: 36rem; }

.hero__eyebrow {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 0.6rem;
}

.hero__title {
  font-size: clamp(3rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0 0 0.75rem;
}

.hero__subtitle {
  margin: 0 0 1.5rem;
  max-width: 36rem;
  font-size: 1rem;
  opacity: 0.95;
}

/* Buttons in hero */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}

.hero__actions .wp-block-button {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.hero__actions .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.9rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

/* Primary – white outer pill + dark inner */
.hero__actions .button--primary {
  padding: 0.25rem;
  border-radius: var(--radius-pill);
  background: #f9fafb;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.35);
}
.hero__actions .button--primary .wp-block-button__link {
  background: #111827;
  color: #f9fafb;
  min-width: 9rem;
}

/* Ghost – outlined */
.hero__actions .button--ghost .wp-block-button__link {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--color-text-on-dark);
}

.hero__actions .wp-block-button__link:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

/* Meta stats under buttons */
.hero__meta {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  column-gap: 2.5rem;
  row-gap: 0.75rem;
  font-size: 0.85rem;
}

.hero__stat { display: flex; flex-direction: column; gap: 0.15rem; }

.hero__stat-label {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  opacity: 0.85;
  color: rgba(249, 250, 251, 0.9);
}

.hero__stat-value {
  font-weight: 600;
  margin-top: 0;
  margin-block-start: 0 !important;
  color: rgba(249, 250, 251, 0.98);
}

/* Hero visual / card */
.hero__visual {
  justify-self: stretch;
  display: flex;
  justify-content: center;
}

.hero-card {
  background-color:#FFF;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-large);
  padding: 1.8rem;
  max-width: 26rem;
  margin-left: auto;
  margin-right: 1rem;
  box-shadow: 0 36px 80px rgba(15, 23, 42, 0.55);
}

.hero-card__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0 0 0.6rem;
  opacity: 0.9;
  color: rgba(249, 250, 251, 0.88);
}

.hero-card__title { margin: 0 0 0.75rem; color: #fff; }
.hero-card__body  { font-size: 0.9rem; margin: 0; color: rgba(249, 250, 251, 0.9); }

@media (min-width: 900px) {
  .section--hero .hero {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
  }
}

@media (max-width: 900px) {
	/* ==============================
	   VALUES (UC4) – mobile cards full width
	   Fix: Gutenberg "constrained" layout adds max-width to each card
	============================== */
	.uc4-values .grid {
	  grid-template-columns: 1fr;    /* explicit single column base */
	  justify-items: stretch;        /* ensure children stretch */
	}

	.uc4-values .grid > .wp-block-group {
	  width: 100%;
	  max-width: none !important;    /* override Gutenberg constrained max-width */
	  margin-left: 0 !important;
	  margin-right: 0 !important;
	}

	/* If WP adds layout helper classes, neutralise them inside this grid */
	.uc4-values .grid .is-layout-constrained {
	  max-width: none !important;
	}
}


/* ==============================
   GRID SYSTEM
============================== */
.grid { display: grid; gap: 1.5rem; }
.grid--1 { grid-template-columns: 1fr; }

@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.grid > .wp-block-group { margin-top: 0; margin-bottom: 0; }

/* ==============================
   GENERIC CARDS
============================== */
.content-card {
  background: var(--color-card-bg);
  border-radius: var(--radius-medium);
  padding: 1.35rem;
  border: 1px solid rgba(30, 64, 175, 0.18);
}

.content-card__title { margin: 0 0 0.35rem; }
.content-card__body  { margin: 0; color: var(--uc4-muted); }

/* Cards on dark sections */
.bg-dark .content-card {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.25);
  color: var(--color-text-on-dark);
}
.bg-dark .content-card__title,
.bg-dark .content-card__body { color: var(--color-text-on-dark); }
.bg-dark .content-card__body { color: rgba(249, 250, 251, 0.85); }

/* ==============================
   NEWS CARDS
============================== */
.news-card {
  display: flex;
  flex-direction: column;
  background: var(--color-card-bg);
  border-radius: var(--radius-medium);
  border: 1px solid rgba(30, 64, 175, 0.18);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}
.news-card.wp-block-group { padding: 0 !important; }

.news-card__media {
  margin: 0 !important;
  height: 180px;
  border-radius: var(--radius-medium) var(--radius-medium) 0 0;
  background: radial-gradient(circle at 20% 0%, #38bdf8, #6366f1);
  overflow: hidden;
}
.news-card__media.wp-block-group { padding: 0 !important; }

.news-card__content {
  padding: 1.2rem 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.news-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--uc4-muted);
  margin-bottom: 0.5rem;
}
.news-card__meta p,
.news-card__meta span { margin: 0; }

.news-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(30, 64, 175, 0.25);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--uc4-muted);
}

.news-card__title { font-size: 1rem; margin: 0; }

.news-card__excerpt,
.news-card__body {
  font-size: 0.9rem;
  color: var(--uc4-muted);
  margin: 0.25rem 0 0;
  margin-block-end: 1.25rem !important;
}

.news-card__footer {
  padding: 0 1.5rem 1.1rem;
  margin-top: 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--uc4-muted);
}

.news-card__link {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
  color: var(--uc4-link);
}
.news-card__link a { text-decoration: none; }
.news-card__link a:hover { text-decoration: underline; }
.news-card__link::after { content: "→"; font-size: 0.9em; }

.news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* News on dark */
.bg-dark .news-card { background: #020617; border-color: rgba(30, 64, 175, 0.9); }
.bg-dark .news-card__meta,
.bg-dark .news-card__excerpt,
.bg-dark .news-card__body,
.bg-dark .news-card__footer,
.bg-dark .news-card__badge { color: rgba(148, 163, 184, 0.9); }
.bg-dark .news-card__title { color: var(--color-text-on-dark); }
.bg-dark .news-card__link { color: #fff; }

/* ==============================
   IMAGE PLACEHOLDERS (obvious)
============================== */
.uc4-media-placeholder {
  min-height: 320px;
  border-radius: var(--radius-large);
  border: 2px dashed rgba(30, 64, 175, 0.35);
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.08), rgba(180, 83, 9, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.25rem;
  color: rgba(15, 23, 42, 0.7);
}
.uc4-media-placeholder strong {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  margin-bottom: 0.35rem;
}

/* ==============================
   DONATE BAND + DONATE BUTTON FIX
============================== */
.donate-band {
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

/* The button wrapper MUST be neutral so no green square appears */
.wp-block-button.donate {
  background: transparent !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* The actual link becomes the green pill */
.wp-block-button.donate .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: var(--wp--preset--color--donate-green) !important;
  border: 1px solid var(--wp--preset--color--donate-green) !important;
  color: #fff !important;

  border-radius: var(--radius-pill) !important;
  padding: 0.85rem 1.4rem !important;

  box-shadow: none !important;
  text-decoration: none !important;
  font-weight: 700 !important;
}

.wp-block-button.donate .wp-block-button__link:hover {
  background: var(--wp--preset--color--donate-green-hover) !important;
  border-color: var(--wp--preset--color--donate-green-hover) !important;
}

/* ==============================
   PRAYER IFRAME
============================== */
.prayer-frame{
	border: 0px;
    height: 390px;
    width: 324px;
    margin-bottom: 12px;
}

@media (max-width: 440px) {

	.hero-card{
		border-radius:0.8em;
		padding: 0.2rem;
	}
			
}	

/* ==============================
   CONTACT DETAILS (UC4) – FIXED
   Your markup uses: .uc4-contact-details .grid.grid--3 > .content-card
============================== */
.uc4-contact-details .grid.grid--3 {
  align-items: stretch;
  grid-auto-rows: 1fr; /* important for equal heights */
}

/* Force the grid children to fill the row height */
.uc4-contact-details .grid.grid--3 > * {
  height: 100%;
  display: flex;
}

/* Card fills the grid item */
.uc4-contact-details .content-card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Optional: tidy spacing */
.uc4-contact-details .content-card h3 { margin-top: 0; }

/* ==============================
   CONTACT FORM (UC4) – editor + front end match
============================== */
.uc4-contact-form .uc4-form-grid {
  display: grid;
  gap: 1.1rem;
}

.uc4-contact-form .uc4-form-field {
  display: grid;
  gap: 0.4rem;
}

.uc4-contact-form .uc4-form-field--full {
  grid-column: 1 / -1;
}

.uc4-contact-form .uc4-form-label {
  font-weight: 700;
  color: var(--color-text);
}

/* Deeper fields */
.uc4-contact-form input,
.uc4-contact-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(30, 64, 175, 0.25);
  background: #fff;
  font: inherit;
  line-height: 1.2;
}

.uc4-contact-form textarea {
  resize: vertical;
  min-height: 170px;
}

.uc4-contact-form input:focus,
.uc4-contact-form textarea:focus {
  outline: none;
  border-color: rgba(30, 64, 175, 0.55);
  box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.12);
}

/* Right aligned actions */
.uc4-contact-form .uc4-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.25rem;
}

/* Green submit (base) */
.uc4-contact-form .uc4-form-submit,
.uc4-contact-form button[type="submit"] {
  appearance: none;
  -webkit-appearance: none;

  background: var(--wp--preset--color--donate-green);
  border: 1px solid var(--wp--preset--color--donate-green);
  color: #fff;

  padding: 0.85rem 1.35rem;
  border-radius: var(--radius-pill);
  font-weight: 800;
  cursor: pointer;

  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease, border-color 0.12s ease;
}

.uc4-contact-form .uc4-form-submit:hover,
.uc4-contact-form button[type="submit"]:hover {
  background: var(--wp--preset--color--donate-green-hover);
  border-color: var(--wp--preset--color--donate-green-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

/* Editor override: ensure identical styling */
.editor-styles-wrapper .uc4-contact-form .uc4-form-submit,
.block-editor-block-list__layout .uc4-contact-form .uc4-form-submit,
.editor-styles-wrapper .uc4-contact-form button[type="submit"],
.block-editor-block-list__layout .uc4-contact-form button[type="submit"] {
  background: var(--wp--preset--color--donate-green) !important;
  border-color: var(--wp--preset--color--donate-green) !important;
  color: #fff !important;
}

/* Disabled preview in editor: keep looking the same */
.editor-styles-wrapper .uc4-contact-form .uc4-form-submit:disabled,
.block-editor-block-list__layout .uc4-contact-form .uc4-form-submit:disabled {
  opacity: 1 !important;
  cursor: not-allowed;
  background: var(--wp--preset--color--donate-green) !important;
  border-color: var(--wp--preset--color--donate-green) !important;
  color: #fff !important;
}

/* ==============================
   HEADER / NAV
============================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

/* Ensure header uses same container width + gutters */
.site-header .container {
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.9rem 0;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  margin: 0;
}

.site-logo .custom-logo-link {
  display: flex;
  align-items: center;
  margin: 0;
  line-height: 0;
}

/* Don’t randomly shrink logo */
.site-logo img.custom-logo {
  height: auto;
  width: auto;
  max-height: 80px;
}

/* Right group */
.site-header__right {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2.4rem;
  flex: 0 0 auto;
}

/* Menu */
.site-nav { display: flex; align-items: center; }

.site-nav__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav__menu li { margin: 0; }

.site-nav__link {
  color: var(--uc4-muted);
  padding: 0.35rem 0.2rem;
  border-bottom: 2px solid transparent;
  text-decoration: none;
}

.site-nav__link:hover,
.site-nav__menu .current-menu-item > .site-nav__link {
  color: var(--color-text);
  border-color: var(--wp--preset--color--uc4-blue);
  text-decoration: none;
}




/* ==============================
   HEADER / NAV – RESPONSIVE FIXES
   - Prevent overflow at mid widths
   - Add mobile menu toggle + dropdown
============================== */

/* Stop right side from forcing overflow */
.site-header__right {
  min-width: 0;
}

/* Let nav shrink properly inside flex containers */
.site-nav {
  min-width: 0;
}

/* MID WIDTHS: allow wrapping so it never escapes the container */
@media (max-width: 900px) {
  .site-header__inner {
    flex-wrap: wrap;
    row-gap: 0.75rem;
  }

  .site-header__right {
    flex: 1 1 auto;
    justify-content: flex-end;
    gap: 1rem; /* reduce the big gap that was pushing things out */
  }

  .site-nav__menu {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.9rem;
    max-width: 100%;
  }
}

/* Mobile toggle button (hidden by default on desktop) */
.site-nav__toggle {
  display: none;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 0.75rem;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
}

/* Simple hamburger icon */
.site-nav__toggle-lines {
  display: inline-block;
  width: 18px;
  height: 2px;
  background: rgba(15, 23, 42, 0.8);
  position: relative;
  border-radius: 2px;
}
.site-nav__toggle-lines::before,
.site-nav__toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: rgba(15, 23, 42, 0.8);
  border-radius: 2px;
}
.site-nav__toggle-lines::before { top: -6px; }
.site-nav__toggle-lines::after  { top:  6px; }

@media (max-width: 900px) {
  /* Anchor the dropdown to the whole right cluster (toggle + donate) */
  .site-header__right {
    position: relative;
    gap: 0.75rem;
  }

  /* Show hamburger */
  .site-nav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Keep nav in DOM, but don't let it affect layout */
  .site-nav {
    display: block;
    position: static; /* panel will anchor to .site-header__right instead */
  }

  /* Dropdown panel */
  .site-nav__panel {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 0.65rem);

    width: min(320px, calc(100vw - 3rem));
    background: #ffffff;               /* solid (less messy than translucent) */
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 1rem;
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.18);

    padding: 0.5rem;
    z-index: 100;
  }

  body.nav-open .site-nav__panel {
    display: block;
  }

  /* Menu list */
  .site-nav__menu {
    list-style: none;
    margin: 0;
    padding: 0;

    display: flex;
    flex-direction: column;
    gap: 0.25rem;

    max-height: min(60vh, 420px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Make each item feel like a row */
  .site-nav__menu li {
	display:block;
    margin: 0;
	width:100%;
  }

  .site-nav__link {
    display: flex;
    align-items: center;

    width: 100%;
    padding: 0.85rem 0.9rem;
    border-radius: 0.75rem;

    font-weight: 600;
    color: rgba(15, 23, 42, 0.82);
    text-decoration: none;
    background: transparent;
  }

  .site-nav__link:hover {
    background: rgba(30, 64, 175, 0.06);
    border-color: rgba(30, 64, 175, 0.10);
    transform: translateY(-1px);
  }

  .site-nav__menu .current-menu-item > .site-nav__link {
    background: rgba(30, 64, 175, 0.10);
    border-color: rgba(30, 64, 175, 0.18);
    color: var(--color-text);
  }

  /* Optional: subtle divider between sections if you ever add nested items */
  .site-nav__menu .menu-item + .menu-item {
    position: relative;
  }

  /* Hamburger -> X when open */
  body.nav-open .site-nav__toggle-lines {
    background: transparent;
  }
  body.nav-open .site-nav__toggle-lines::before {
    top: 0;
    transform: rotate(45deg);
  }
  body.nav-open .site-nav__toggle-lines::after {
    top: 0;
    transform: rotate(-45deg);
  }

  /* Ensure transitions feel smooth */
  .site-nav__toggle-lines,
  .site-nav__toggle-lines::before,
  .site-nav__toggle-lines::after {
    transition: transform 0.15s ease, top 0.15s ease, background-color 0.15s ease;
  }

  .site-logo img.custom-logo { max-height: 64px; }
}



/* ==============================
   FOOTER
============================== */
.site-footer {
  padding: 2.5rem 0 2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.45);
  background-color: var(--wp--preset--color--uc4-blue);
  color: rgba(209, 213, 219, 0.95);
}

/* Use grid so columns behave like your example screenshot */
.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.site-footer__brand { max-width: 26rem; }

.site-footer__title {
  font-weight: 700;
  margin: 0 0 0.4rem;
  color: #fff;
}

.site-footer__copy {
  font-size: 0.85rem;
  color: rgba(148, 163, 184, 0.96);
  margin: 0 0 1rem;
}

/* Shared column styles */
.site-footer__col {
  font-size: 0.88rem;
}

.site-footer__heading {
  display: block;
  margin-bottom: 0.75rem;
  color: #fff;
  font-weight: 700;
}

/* Contact */
.site-footer__address {
  font-style: normal;
  margin: 0 0 1rem;
  color: rgba(209, 213, 219, 0.95);
  line-height: 1.6;
}

.site-footer__contact-lines {
  display: grid;
  gap: 0.5rem;
}

.site-footer__label {
  color: rgba(148, 163, 184, 0.95);
  margin-right: 0.35rem;
}

.site-footer__contact-link {
  color: rgba(209, 213, 219, 0.95);
  text-decoration: none;
}
.site-footer__contact-link:hover {
  text-decoration: underline;
}

/* Support Us button */
.site-footer__donate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 2.25rem;
  border-radius: 0.5rem;

  background: #fff;
  color: #111827 !important;
  font-weight: 700;
  text-decoration: none !important;

  border: 1px solid rgba(255,255,255,0.9);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
  -webkit-font-smoothing: antialiased;
}

.site-footer__donate-btn:hover {
  color: #111827 !important;
  text-decoration: none !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
  background: rgba(255,255,255,0.95);
}

/* Bottom row stays as-is */
.site-footer__bottom {
  margin-top: 2rem;
  border-top: 1px solid rgba(55, 65, 81, 0.9);
  padding-top: 1rem;
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.9);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-footer__bottom a {
  color: rgba(209, 213, 219, 0.95);
  text-decoration: none;
}
.site-footer__bottom a:hover { text-decoration: underline; }

/* Responsive: 2 columns then 1 column */
@media (max-width: 900px) {
  .site-footer__inner {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }
  .site-footer__support {
    grid-column: 2;
  }
}

@media (max-width: 640px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
  }
  .site-footer__brand { max-width: 100%; }
}

@media (max-width: 440px) {

	.site-footer__inner{
			display:block;
	}	
	.site-footer__contact{
		margin-bottom:20px;
	}
			
}	




/* ==============================
   FOOTER LINK COLOUR FIX (wins vs global a:not(...))
============================== */
.site-footer a:not(.wp-block-button__link):not(.site-nav__donate) {
  color: rgba(209, 213, 219, 0.95);
  text-decoration: none;
}

.site-footer a:not(.wp-block-button__link):not(.site-nav__donate):hover {
  color: #fff;
  text-decoration: underline;
}

/* Keep donate button text dark */
.site-footer .site-footer__donate-btn,
.site-footer .site-footer__donate-btn:hover {
  color: #111827 !important;
  text-decoration: none;
}


/* ==============================
   HERO CAROUSEL (theme-native)
   Used by pattern: UC4 – Hero Carousel
============================== */
.uc4-carousel {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.uc4-carousel__viewport {
  overflow: hidden;
}

.uc4-carousel__track {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  transform: translateX(0);
  transition: transform 520ms ease;
  will-change: transform;
}

.uc4-carousel__slide {
  flex: 0 0 100%;
  margin: 0;
}

.uc4-carousel__slide img {
  width: 100%;
  height: clamp(320px, 45vw, 720px);
  object-fit: cover;
  display: block;
}



.uc4-carousel__buttons .wp-block-button__link {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

/* Dots */
.uc4-carousel__controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.uc4-carousel__dots {
  display: inline-flex;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(6px);
  pointer-events: auto;
}

.uc4-carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.uc4-carousel__dot[aria-selected="true"] {
  background: rgba(255, 255, 255, 0.95);
}

.uc4-carousel__dot:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.95);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .uc4-carousel__track {
    transition: none;
  }
}
