/* Poppins, self-hosted (assets/fonts, SIL Open Font Licence): faster than Google
   Fonts (no extra connection) and visitors' IPs are not sent to a third party. */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/poppins-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/poppins-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/poppins-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/poppins-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/poppins-latin-800-normal.woff2') format('woff2');
}

/* Effects Tailwind utilities can't express cleanly.
   IMPORTANT: this file is linked as a plain stylesheet — it is NOT run
   through the Tailwind/PostCSS build (only src/input.css is, via
   `npm run build:css`). That means `theme()` and `@apply` are not
   available here; every value below must be a literal CSS value. */

/* Angular diagonal-cut hero (Reference 1: electrician site) */
.hero-angular {
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
}
@media (min-width: 768px) {
  .hero-angular {
    clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
  }
}

/* Faint topographic-line background pattern (hills around Sheema/Bushenyi) */
.topo-pattern {
  background-image:
    repeating-radial-gradient(circle at 20% 30%, rgba(37, 74, 40, 0.05) 0, rgba(37, 74, 40, 0.05) 1px, transparent 2px, transparent 34px),
    repeating-radial-gradient(circle at 80% 70%, rgba(233, 176, 42, 0.06) 0, rgba(233, 176, 42, 0.06) 1px, transparent 2px, transparent 42px);
  background-size: 340px 340px, 420px 420px;
}

/* Numbers-section stat cards: square corners, light elevation, background lightens on hover */
.stat-card {
  box-shadow: 0 2px 8px -2px rgba(28, 58, 31, 0.06);
  transition: background-color 0.3s ease-out, transform 0.3s ease-out, box-shadow 0.3s ease-out;
}
.stat-card:hover {
  background-color: #ffffff;
  box-shadow: 0 14px 32px -8px rgba(233, 9, 141, 0.28);
}
.stat-card-bar {
  display: block;
  height: 3px;
  width: 0;
  border-radius: 9999px;
  background-color: #e9098d;
  transition: width 0.35s ease-out;
}
.stat-card:hover .stat-card-bar {
  width: 2.5rem;
}

/* Soft organic gradient blobs used behind hero/section panels */
.blob-bg {
  position: relative;
  isolation: isolate;
}
.blob-bg::before,
.blob-bg::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 9999px;
  filter: blur(60px);
  opacity: 0.35;
}
.blob-bg::before {
  width: 420px;
  height: 420px;
  top: -120px;
  right: -100px;
  background: radial-gradient(circle, #f5d987 0%, transparent 70%); /* harvest-300 */
}
.blob-bg::after {
  width: 360px;
  height: 360px;
  bottom: -140px;
  left: -80px;
  background: radial-gradient(circle, #7dad80 0%, transparent 70%); /* forest-300 */
}

/* ==========================================================================
   Sticky header: transparent-over-hero -> solid cream on scroll, animated,
   plus a faded right-side gradient and a small field of shapes that drift
   and bounce off each other and the field edges (see main.js).
   ========================================================================== */
.site-header {
  /* NOTE: position must stay "fixed" (set via Tailwind's `fixed` utility in
     the markup) — do not set position here, it would override the utility
     since this file loads after tailwind.css and wins on source order. */
  overflow: hidden;
  transition: background-color 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}
.site-header.is-solid {
  background-color: rgba(249, 240, 231, 0.95); /* cream #f9f0e7 */
  box-shadow: 0 4px 20px -2px rgba(28, 58, 31, 0.12);
  backdrop-filter: saturate(180%) blur(8px);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, transparent 35%, rgba(37, 74, 40, 0.05) 65%, rgba(233, 9, 141, 0.06) 85%, rgba(233, 176, 42, 0.12) 100%);
  opacity: 0.7;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.site-header.is-solid::before {
  opacity: 1;
}

/* Bounded field the header shapes physically move and bounce around in
   (see the "Header shapes" script in main.js for the actual motion). */
.header-shapes-field {
  position: absolute;
  top: 10px;
  right: 4%;
  width: 210px;
  height: 56px;
  z-index: 0;
  pointer-events: none;
}
.header-shape {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 9999px;
  will-change: transform;
}
.header-shape--1 { width: 10px; height: 10px; background: #ee2ba1; opacity: 0.4; } /* brand-400 */
.header-shape--2 { width: 16px; height: 16px; background: #e9b02a; opacity: 0.35; } /* harvest-400 */
.header-shape--3 { width: 7px;  height: 7px;  background: #3d7241; opacity: 0.45; } /* forest-500 */
.header-shape--4 { width: 20px; height: 20px; border: 1.5px solid #568f5a; background: transparent; opacity: 0.3; } /* forest-400 */

/* ==========================================================================
   Quick Actions floating card overlap (Reference 3: Doctors booking) —
   the outer card no longer lifts as a whole; each action reacts on its own.
   ========================================================================== */
.quick-actions-card {
  transform: translateY(50%);
}
@media (max-width: 767px) {
  .quick-actions-card {
    transform: translateY(30%);
  }
}
.quick-action-item {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.quick-action-icon {
  transition: transform 0.35s ease, background-color 0.3s ease, color 0.3s ease;
}
.quick-action-item:hover .quick-action-icon {
  transform: scale(1.15) rotate(-8deg);
}

/* ==========================================================================
   Card subtle background shape + color shift on hover (see .card in
   src/input.css for base radius/lift/bg-shift; this adds the decorative
   blob that fades in on hover).
   ========================================================================== */
.card::after {
  content: "";
  position: absolute;
  width: 100px;
  height: 100px;
  right: -34px;
  bottom: -34px;
  border-radius: 9999px;
  background: radial-gradient(circle, #f359ba 0%, transparent 70%); /* brand-300 */
  opacity: 0;
  transform: scale(0.5);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.card:hover::after {
  opacity: 0.35;
  transform: scale(1);
}
.card.no-hover-blob::after {
  content: none;
}

/* ==========================================================================
   Downloads category header cards — two brand-pink panels slide in from the
   left and right edges and meet in the middle on hover.
   ========================================================================== */
.card-merge-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background-color: #e9098d;
  z-index: 0;
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}
.card-merge-panel--left {
  left: 0;
  transform: translateX(-100%);
}
.card-merge-panel--right {
  right: 0;
  transform: translateX(100%);
}
.card-merge:hover .card-merge-panel--left,
.card-merge:hover .card-merge-panel--right {
  transform: translateX(0);
}
.card-merge h2 {
  transition: color 0.3s ease;
}
.card-merge:hover h2 {
  color: #ffffff;
}

/* Avatar stack (Meet Our Branch Managers callout) */
.avatar-stack > * {
  margin-left: -0.75rem;
  border: 3px solid white;
}
.avatar-stack > *:first-child {
  margin-left: 0;
}

/* ==========================================================================
   Home hero: full-width photo slider (cross-fade with a slow zoom) behind a
   navy shade, so the white headline stays readable on any photo.
   ========================================================================== */
.home-hero-stage { height: 36rem; background: #060f5f; }
@media (min-width: 768px) { .home-hero-stage { height: 38rem; } }
@media (min-width: 1024px) { .home-hero-stage { height: 40rem; } }
/* Slides sit hidden until active. The fx-* class on a slide sets where its
   transition starts; adding .is-active animates it to the resting state. */
.hero-slide { position: absolute; inset: 0; opacity: 0; z-index: 1; }
.hero-slide.is-active {
  opacity: 1;
  transform: none;
  filter: none;
  clip-path: inset(0 0 0 0);
  z-index: 3;
  transition: opacity 0.9s ease, transform 1s cubic-bezier(0.65, 0, 0.35, 1), filter 1s ease, clip-path 1.1s cubic-bezier(0.65, 0, 0.35, 1);
}
.hero-slide.is-leaving { opacity: 1; z-index: 2; transition: transform 1s cubic-bezier(0.65, 0, 0.35, 1); }

/* Start positions apply only while a slide is waiting to come in
   (:not(.is-active):not(.is-leaving)), so they never override the resting
   state above or the exit moves below. */
/* Fade & Zoom: cross-fade, then a slow zoom while the slide is showing. */
.hero-slide.fx-fade:not(.is-active):not(.is-leaving) { transform: scale(1.06); }
.hero-slide.fx-fade.is-active { transform: scale(1); transition: opacity 1s ease, transform 7s ease-out; }
/* Slide: the new photo pushes in from the side; the old one drifts away. */
.hero-slide.fx-slide:not(.is-active):not(.is-leaving) { opacity: 1; transform: translateX(100%); }
.hero-slide.fx-slide.fx-back:not(.is-active):not(.is-leaving) { transform: translateX(-100%); }
.hero-slide.fx-slide.is-leaving { transform: translateX(-30%); }
.hero-slide.fx-slide.fx-back.is-leaving { transform: translateX(30%); }
/* Zoom In: grows into place from close up. */
.hero-slide.fx-zoom:not(.is-active):not(.is-leaving) { transform: scale(1.3); }
/* Soft Focus: comes into focus from a blur. */
.hero-slide.fx-blur:not(.is-active):not(.is-leaving) { filter: blur(16px); transform: scale(1.08); }
/* Wipe: revealed edge to edge. */
.hero-slide.fx-wipe:not(.is-active):not(.is-leaving) { opacity: 1; clip-path: inset(0 0 0 100%); }
.hero-slide.fx-wipe.fx-back:not(.is-active):not(.is-leaving) { clip-path: inset(0 100% 0 0); }
.hero-slide.is-active, .hero-slide.is-leaving { will-change: transform, opacity; }
.home-hero-fallback { background: linear-gradient(135deg, #060f5f 0%, #1f2a8a 55%, #e9098d 130%); }
.home-hero-shade {
  z-index: 5;
  /* Phones: text sits over the whole photo, so shade it all. */
  background: linear-gradient(180deg, rgba(6, 15, 95, 0.55) 0%, rgba(6, 15, 95, 0.82) 100%);
  background: linear-gradient(180deg, color-mix(in srgb, var(--navy-accent, #060f5f) 55%, transparent) 0%, color-mix(in srgb, var(--navy-accent, #060f5f) 82%, transparent) 100%);
}
@media (min-width: 768px) {
  .home-hero-shade {
    /* Wider screens: deep on the left behind the text, clear on the right. */
    background: linear-gradient(90deg, rgba(6, 15, 95, 0.9) 0%, rgba(6, 15, 95, 0.7) 38%, rgba(6, 15, 95, 0.15) 72%, rgba(6, 15, 95, 0) 100%);
    background: linear-gradient(90deg, color-mix(in srgb, var(--navy-accent, #060f5f) 90%, transparent) 0%, color-mix(in srgb, var(--navy-accent, #060f5f) 70%, transparent) 38%, color-mix(in srgb, var(--navy-accent, #060f5f) 15%, transparent) 72%, transparent 100%);
  }
}
.home-hero-eyebrow { color: #e9b02a; letter-spacing: 0.2em; }
.home-hero-title { color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25); }
.home-hero-title span { color: #fff !important; }
.home-hero-caption {
  position: absolute;
  right: 1.5rem;
  top: 1.5rem;
  z-index: 6;
  max-width: 22rem;
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  background: rgba(15, 13, 10, 0.45);
  color: #fff;
  font-size: 0.8125rem;
  backdrop-filter: blur(4px);
}
.home-hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 20;
  width: 3rem;
  height: 3rem;
  margin-top: -2.5rem;
  border-radius: 9999px;
  display: none;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  transition: background-color 0.2s ease;
}
.home-hero-arrow:hover, .home-hero-arrow:focus-visible { background: rgba(255, 255, 255, 0.35); }
@media (min-width: 640px) { .home-hero-arrow { display: flex; } }
@media (prefers-reduced-motion: reduce) { .hero-slide, .hero-slide.is-active, .hero-slide.is-leaving { transition: opacity 0.4s ease !important; transform: none !important; filter: none !important; clip-path: none !important; } }
.hero-slide-dot {
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.hero-slide-dot.is-active {
  transform: scale(1.3);
}

/* ==========================================================================
   Partners orbit — slow continuous rotation; each badge counter-rotates
   so it stays upright while it travels around the ring.
   ========================================================================== */
.partner-ring {
  animation: partnerOrbit 90s linear infinite;
}
.partner-badge-counter {
  animation: partnerCounterOrbit 90s linear infinite;
}
@keyframes partnerOrbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
/* Runs on the same duration/timing as .partner-ring, in the opposite
   direction, so each badge's own content stays upright as the ring
   carrying it revolves — the ring's rotation is inherited equally by
   every descendant regardless of that badge's position on the circle. */
@keyframes partnerCounterOrbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}
.partner-orbit-dot {
  position: absolute;
  border-radius: 9999px;
  animation: partnerDotFloat 12s ease-in-out infinite;
}
@keyframes partnerDotFloat {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(-10px, 8px); }
  66% { transform: translate(6px, -6px); }
}
@media (prefers-reduced-motion: reduce) {
  .partner-ring, .partner-badge-counter, .partner-orbit-dot { animation: none; }
}

/* ==========================================================================
   Partner cards (About page) — a pink rule wipes in along the bottom edge
   while the logo disc lifts, gains a pink ring and brings the mark forward.
   The disc keeps a plain white face so logos stay legible on hover.
   ========================================================================== */
.partner-logo-disc {
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1),
              box-shadow 0.4s ease;
}
.partner-logo-disc img {
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}
/* Self-hover covers the discs that stand alone (home orbit + mobile grid);
   the card-hover selector covers the About cards, where the whole card is
   the hover target. Both land on the same treatment. */
.partner-card:hover .partner-logo-disc,
.partner-logo-disc:hover {
  transform: translateY(-2px);
  /* Ring first, then the existing soft shadow — an outer box-shadow is not
     clipped by the disc's own overflow:hidden, so no extra element needed. */
  box-shadow: 0 0 0 3px rgba(233, 9, 141, 0.22), 0 6px 16px rgba(6, 15, 95, 0.14);
}
.partner-card:hover .partner-logo-disc img,
.partner-logo-disc:hover img {
  transform: scale(1.06);
}
.partner-card::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background-color: #e9098d;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: 1;
  pointer-events: none;
}
.partner-card:hover::before {
  transform: scaleX(1);
}
.partner-card .partner-visit-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}
.partner-card:hover .partner-visit-arrow {
  transform: translateX(4px);
}
@media (prefers-reduced-motion: reduce) {
  .partner-logo-disc,
  .partner-logo-disc img,
  .partner-card::before,
  .partner-card .partner-visit-arrow {
    transition: none;
  }
}

/* ==========================================================================
   Footer link underline-slide on hover
   ========================================================================== */
.footer-link {
  position: relative;
  display: inline-block;
  transition: color 0.3s ease;
}
.footer-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}
.footer-link:hover::after {
  width: 100%;
}

/* ==========================================================================
   Drifting decorative shapes (Core Values section background) — slow,
   subtle wander + rotate so the section feels alive without distracting
   from the cards. Each shape gets its own path/duration so they never
   move in sync.
   ========================================================================== */
.shape-drift-a { animation: shapeDriftA 26s ease-in-out infinite; }
.shape-drift-b { animation: shapeDriftB 32s ease-in-out infinite; }
.shape-drift-c { animation: shapeDriftC 22s ease-in-out infinite; }
.shape-drift-d { animation: shapeDriftD 28s ease-in-out infinite; }
@keyframes shapeDriftA {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-16px, 14px) rotate(6deg); }
}
@keyframes shapeDriftB {
  0%, 100% { transform: translate(0, 0) rotate(45deg); }
  50% { transform: translate(14px, -12px) rotate(38deg); }
}
@keyframes shapeDriftC {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(10px, 16px) rotate(-8deg); }
}
@keyframes shapeDriftD {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-12px, -10px) rotate(5deg); }
}
@media (prefers-reduced-motion: reduce) {
  .shape-drift-a, .shape-drift-b, .shape-drift-c, .shape-drift-d { animation: none; }
}

/* Scroll-triggered fade handled via JS toggling .is-visible on .section-fade (see src/input.css) */

/* ==========================================================================
   Testimonials slider (Homepage — What Our Members Say). JS in main.js moves
   the track continuously; edges fade so cards glide in and out softly.
   ========================================================================== */
.testimonial-marquee {
  position: relative;
  overflow: hidden;
  padding: 0.75rem 0 1.5rem;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}
.testimonial-marquee.is-dragging { cursor: grabbing; }
.testimonial-track { will-change: transform; }
.testimonial-slide { transition: transform 0.4s ease, box-shadow 0.4s ease; }
.testimonial-slide:hover { transform: translateY(-6px); }
.testimonial-slide img { -webkit-user-drag: none; }

/* Reduced motion: no auto-scroll — a normal swipeable, snapping row instead. */
@media (prefers-reduced-motion: reduce) {
  .testimonial-marquee { overflow-x: auto; scroll-snap-type: x mandatory; cursor: auto; touch-action: auto; }
  .testimonial-slide { scroll-snap-align: start; }
  .testimonial-slide:hover { transform: none; }
}

/* ==========================================================================
   Image fade-in: images still downloading stay invisible (their container's
   background shows as a placeholder) and fade in once complete, instead of
   painting in strips. Added by main.js, so without JS images show normally.
   ========================================================================== */
img.img-fade { opacity: 0; transition: opacity 0.5s ease; }
img.img-fade.is-loaded { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  img.img-fade { transition: none; }
}

/* ==========================================================================
   Cookie consent banner (includes/cookie-banner.php): slides up from the
   bottom — a floating card on desktop, full width on phones.
   ========================================================================== */
.cookie-banner {
  position: fixed;
  z-index: 90;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  max-width: 30rem;
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.cookie-banner.is-visible { opacity: 1; transform: translateY(0); }
@media (min-width: 640px) {
  .cookie-banner { left: 1.5rem; right: auto; bottom: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-banner { transition: none; transform: none; }
}

/* ==========================================================================
   Policy pages (privacy-policy.php, cookie-policy.php): readable long-form
   typography for the admin-edited rich text.
   ========================================================================== */
.legal-content { color: #3a362f; font-size: 0.95rem; line-height: 1.75; }
.legal-content > * + * { margin-top: 1rem; }
.legal-content h2 { font-size: 1.25rem; font-weight: 700; color: #1a1814; margin-top: 2rem; line-height: 1.35; }
.legal-content h3 { font-size: 1.05rem; font-weight: 600; color: #1a1814; margin-top: 1.5rem; }
.legal-content h4 { font-weight: 600; color: #1a1814; margin-top: 1.25rem; }
.legal-content > :first-child { margin-top: 0; }
.legal-content ul, .legal-content ol { padding-left: 1.4rem; }
.legal-content ul { list-style: disc; }
.legal-content ol { list-style: decimal; }
.legal-content li + li { margin-top: 0.4rem; }
.legal-content li::marker { color: var(--brand-accent, #e9098d); }
.legal-content a { color: var(--brand-accent, #e9098d); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.legal-content blockquote { border-left: 4px solid var(--brand-accent, #e9098d); padding: 0.25rem 0 0.25rem 1rem; color: #28251f; background: #faf8f3; }
.legal-content strong, .legal-content b { color: #1a1814; }

/* ==========================================================================
   Opportunities (jobs, internships, tenders) — list filters, badges, preview
   ========================================================================== */
.opp-filter {
  display: inline-flex; align-items: center; gap: 0.4rem;
  border: 1px solid #e8e0cd; border-radius: 9999px; background: #fff;
  padding: 0.45rem 0.9rem; font-size: 0.8125rem; font-weight: 600; color: #3a362f;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.opp-filter:hover { border-color: var(--brand-accent, #e9098d); color: var(--brand-accent, #e9098d); }
.opp-filter.is-active { background: var(--brand-accent, #e9098d); border-color: var(--brand-accent, #e9098d); color: #fff; }
.opp-filter-count { font-size: 0.7rem; font-weight: 700; border-radius: 9999px; padding: 0 0.4rem; background: rgba(0, 0, 0, 0.07); }
.opp-filter.is-active .opp-filter-count { background: rgba(255, 255, 255, 0.25); }

.opp-card { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.opp-card:hover { transform: translateY(-3px); }
.opp-card[hidden] { display: none; }

.opp-type-badge {
  display: inline-block; border-radius: 9999px; padding: 0.25rem 0.75rem;
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  background: rgba(233, 9, 141, 0.1); color: var(--brand-accent, #e9098d);
}
.opp-type-badge--internship { background: #eef4ee; color: #254a28; }
.opp-type-badge--tender { background: #eef0fb; color: var(--navy-accent, #060f5f); }
.opp-type-badge--other { background: #f3efe4; color: #3a362f; }

.opp-pill { display: inline-block; border-radius: 9999px; padding: 0.2rem 0.65rem; font-size: 0.6875rem; font-weight: 700; }
.opp-pill--soon { background: #fee2e2; color: #b91c1c; }
.opp-pill--new { background: #fdf7e8; color: #8a6110; }
.opp-pill--closed { background: #e8e0cd; color: #3a362f; }

.opp-preview { height: 75vh; max-height: 56rem; min-height: 26rem; }

.opp-share {
  display: flex; align-items: center; justify-content: center;
  border: 1px solid #e8e0cd; border-radius: 0.75rem; padding: 0.55rem 0.5rem;
  font-size: 0.8125rem; font-weight: 600; color: #28251f; background: #fff;
  transition: border-color 0.2s, color 0.2s;
}
.opp-share:hover { border-color: var(--brand-accent, #e9098d); color: var(--brand-accent, #e9098d); }

.opp-notice { background: #fdf7e8; color: #5f420b; border: 1px solid #f5d987; }

/* Printing an opportunity: just the advert, no navigation or share buttons. */
@media print {
  .site-header, footer, .no-print, #cookieBanner, .cookie-banner { display: none !important; }
  body { background: #fff !important; }
  .card { box-shadow: none !important; border: 1px solid #ddd; }
  .section-fade { opacity: 1 !important; transform: none !important; }
  .hero-angular { padding-top: 1rem !important; padding-bottom: 1rem !important; }
}

/* ==========================================================================
   Floating WhatsApp chat button (below modals and the cookie banner)
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 3.5rem;
  min-width: 3.5rem;
  justify-content: center;
  padding: 0 0.875rem;
  border-radius: 9999px;
  background: #128c4b;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.whatsapp-float:hover { background: #0e7a40; transform: translateY(-2px); }
.whatsapp-float-label { display: none; font-size: 0.875rem; font-weight: 600; white-space: nowrap; }
.whatsapp-float:hover .whatsapp-float-label, .whatsapp-float:focus-visible .whatsapp-float-label { display: inline; }
@media print { .whatsapp-float { display: none !important; } }

/* Branch map (Contact page): isolate keeps Leaflet's high z-indexes under the fixed header. */
.branch-map { height: 26rem; isolation: isolate; }
@media (max-width: 639px) { .branch-map { height: 20rem; } }
.branch-map-pin {
  background: var(--brand-accent, #e9098d);
  border: 3px solid #fff;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.branch-map .leaflet-popup-content { font-family: inherit; line-height: 1.5; }

/* FAQ accordion */
.faq-item > summary { list-style: none; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-chevron { color: var(--brand-accent, #e9098d); transition: transform 0.2s ease; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-item[hidden], [data-faq-group][hidden] { display: none; }

/* ==========================================================================
   Photo gallery: full-screen viewer (gallery.php) and admin drop zone
   ========================================================================== */
.gallery-viewer {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 13, 10, 0.94);
  padding: 3.5rem 0.75rem 1rem;
}
.gallery-viewer.hidden { display: none; }
.gallery-viewer-figure { margin: 0; max-width: min(92vw, 1400px); text-align: center; }
.gallery-viewer-figure img { max-width: 100%; max-height: calc(100vh - 8rem); margin: 0 auto; object-fit: contain; border-radius: 0.5rem; }
.gallery-viewer-figure figcaption { color: #f3efe4; font-size: 0.875rem; margin-top: 0.75rem; }
.gallery-viewer-count { color: rgba(243, 239, 228, 0.6); margin-left: 0.5rem; font-size: 0.75rem; }
.gallery-viewer-btn {
  position: absolute;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}
.gallery-viewer-btn:hover, .gallery-viewer-btn:focus-visible { background: rgba(255, 255, 255, 0.25); }
.gallery-viewer-close { top: 0.75rem; right: 0.75rem; }
.gallery-viewer-prev { left: 0.75rem; top: 50%; transform: translateY(-50%); }
.gallery-viewer-next { right: 0.75rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 639px) { .gallery-viewer-prev, .gallery-viewer-next { top: auto; bottom: 1rem; transform: none; } }
/* Gallery tiles: the whole photo is always visible (posters and portraits are
   never cropped); a blurred copy of it fills the spare space around it. */
.gallery-fit { position: relative; overflow: hidden; background: #e8e0cd; }
.gallery-fit-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px) saturate(1.1);
  transform: scale(1.15);
  opacity: 0.6;
}
.gallery-fit-photo { position: relative; width: 100%; height: 100%; object-fit: contain; }
.gallery-drop.is-dragging { border-color: var(--brand-accent, #e9098d); background: #fdf2f8; }

/* ==========================================================================
   Site-wide backdrop: the footer's ring pattern, much fainter, plus a few thin
   flowing contour lines, a dashed arc and a dot cluster. It sits behind every
   public page and scrolls with the content (admin pages don't use it).
   ========================================================================== */
body.site-backdrop { position: relative; }
body.site-backdrop::before,
body.site-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
body.site-backdrop::before {
  background-image:
    repeating-radial-gradient(circle at 20% 30%, rgba(37, 74, 40, 0.028) 0, rgba(37, 74, 40, 0.028) 1px, transparent 2px, transparent 34px),
    repeating-radial-gradient(circle at 80% 70%, rgba(233, 176, 42, 0.035) 0, rgba(233, 176, 42, 0.035) 1px, transparent 2px, transparent 42px);
  background-size: 340px 340px, 420px 420px;
}
body.site-backdrop::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1400' height='1100' viewBox='0 0 1400 1100' fill='none'%3E%3Cg stroke='%23060f5f' stroke-opacity='0.05' stroke-width='1.2'%3E%3Cpath d='M-20 210C180 140 330 290 540 220S900 90 1100 170 1360 260 1420 220'/%3E%3Cpath d='M-20 238C180 168 330 318 540 248S900 118 1100 198 1360 288 1420 248'/%3E%3Cpath d='M-20 266C180 196 330 346 540 276S900 146 1100 226 1360 316 1420 276'/%3E%3C/g%3E%3Cg stroke='%23e9098d' stroke-opacity='0.06' stroke-width='1.2'%3E%3Cpath d='M-20 840C220 900 420 760 700 820S1180 940 1420 860'/%3E%3Cpath d='M-20 868C220 928 420 788 700 848S1180 968 1420 888'/%3E%3C/g%3E%3Ccircle cx='1240' cy='560' r='150' stroke='%23e9b02a' stroke-opacity='0.12' stroke-width='1.2' stroke-dasharray='3 9'/%3E%3Ccircle cx='170' cy='590' r='90' stroke='%23568f5a' stroke-opacity='0.08' stroke-width='1.2'/%3E%3Cg fill='%23060f5f' fill-opacity='0.07'%3E%3Ccircle cx='1040' cy='420' r='2'/%3E%3Ccircle cx='1064' cy='420' r='2'/%3E%3Ccircle cx='1088' cy='420' r='2'/%3E%3Ccircle cx='1040' cy='444' r='2'/%3E%3Ccircle cx='1064' cy='444' r='2'/%3E%3Ccircle cx='1088' cy='444' r='2'/%3E%3Ccircle cx='1040' cy='468' r='2'/%3E%3Ccircle cx='1064' cy='468' r='2'/%3E%3Ccircle cx='1088' cy='468' r='2'/%3E%3Ccircle cx='330' cy='980' r='2'/%3E%3Ccircle cx='354' cy='980' r='2'/%3E%3Ccircle cx='378' cy='980' r='2'/%3E%3Ccircle cx='330' cy='1004' r='2'/%3E%3Ccircle cx='354' cy='1004' r='2'/%3E%3Ccircle cx='378' cy='1004' r='2'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 1400px 1100px;
  background-position: center top;
  background-repeat: repeat-y;
}
@media (max-width: 767px) {
  body.site-backdrop::after { background-size: 900px 707px; }
}
@media print {
  body.site-backdrop::before, body.site-backdrop::after { display: none; }
}
