/* ============================================================
   BOS AUSTRALIA - MASTER CONSENSUS PROTOTYPE (#30)
   Consensus Synthesis Stylesheet
   Incorporates CEO Review Directives from Top Contenders (#14, #16, #18, #23, #05, #25, #27)
   ============================================================ */

/* 1. Utility Top Bar (CEO favorite from #05) */
.util-bar {
  background: #041711;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--f-body, sans-serif);
  font-size: 0.78rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 85;
}

.util-bar__in {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0.45rem clamp(1rem, 2.5vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.util-bar__trust {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.util-bar__sep {
  opacity: 0.35;
}

.util-bar__links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.util-bar__links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.util-bar__links a:hover {
  color: var(--leaf, #87C232);
}

@media (max-width: 860px) {
  .util-bar__trust span:nth-child(n+3) { display: none; }
  .util-bar__links a:not(:first-child) { display: none; }
}

@media (max-width: 580px) {
  .util-bar { display: none; }
}

/* 2. Softened Hero Typography (Addresses CEO comment: "The font is a bit harsh example: donations tax deductible") */
.hero__trust {
  font-family: var(--f-body, sans-serif) !important;
  font-weight: 500 !important;
  font-size: 0.88rem !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  color: rgba(255, 255, 255, 0.92) !important;
  gap: 0.85rem 1.8rem !important;
}

.hero__trust li {
  font-size: 0.88rem !important;
  line-height: 1.4 !important;
}

.hero__trust li::before {
  width: 17px !important;
  height: 17px !important;
  background-size: 11px !important;
  box-shadow: 0 0 10px rgba(135, 194, 50, 0.35);
}

/* 3. Hero Video Polish */
.blob--mission .blob__video {
  box-shadow: 0 18px 45px rgba(6, 35, 26, 0.16);
  border-radius: 28px;
}

/* 4. Stay Connected Section with Hand Photo (Adopted from Prototype #27 per CEO praise) */
.stay {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #06231A;
  color: var(--white, #ffffff);
  position: relative;
  overflow: hidden;
}

.stay__panel {
  display: flex;
  align-items: center;
  background: #0A3324;
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 4vw, 4rem);
}

.stay__in {
  max-width: 540px;
  width: 100%;
  margin-left: auto;
}

.stay__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.stay__form input {
  padding: 0.85rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.92rem;
  transition: all 0.2s ease;
}

.stay__form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.stay__form input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--leaf, #87C232);
  box-shadow: 0 0 0 3px rgba(135, 194, 50, 0.25);
}

.stay__form .btn {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 0.4rem;
  padding: 0.85rem 1.6rem;
  font-size: 0.95rem;
}

.stay__pic {
  position: relative;
  min-height: 440px;
}

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

.stay__pic::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 51, 36, 0.4) 0%, transparent 40%);
  pointer-events: none;
}

@media (max-width: 900px) {
  .stay {
    grid-template-columns: 1fr;
  }
  .stay__in {
    margin: 0 auto;
    max-width: none;
  }
  .stay__pic {
    min-height: 300px;
    max-height: 420px;
  }
  .stay__pic::after {
    background: linear-gradient(180deg, rgba(10, 51, 36, 0.5) 0%, transparent 40%);
  }
}

@media (max-width: 580px) {
  .stay__form {
    grid-template-columns: 1fr;
  }
}

/* 5. Clean Seam Transitions (Removing any zebra-motif lines) */
.seam {
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

/* 6. Locked Navigation Polish */
.nav {
  top: 0;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.nav--solid {
  background: #ffffff !important;
  box-shadow: 0 2px 14px rgba(6, 35, 26, 0.08) !important;
}

/* 7. Tagline Accent */
.tagline-accent {
  display: inline-block;
  padding: 0.28rem 0.85rem;
  border-radius: 999px;
  background: rgba(135, 194, 50, 0.16);
  color: #176B37;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

/* ============================================================
   8. Make a Difference — 5 Focused Action Pillars (Non-Montage)
   Adopt, Donate, Fundraise, Trek & Gift in Will
   ============================================================ */
.act-focus {
  position: relative;
  background: #ffffff;
  padding: clamp(3.5rem, 6vw, 5.5rem) 0 clamp(3rem, 5vw, 4.5rem);
}

.act-focus .act-focus__head {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 1.4rem clamp(2rem, 5vw, 5rem);
  align-items: end;
  margin-bottom: clamp(2.2rem, 4.5vw, 3.4rem);
}

.act-focus .act-focus__title .h-sec {
  margin-top: 0.5rem;
  color: var(--ink, #06231A);
}

.act-focus .act-focus__side .lede {
  color: var(--ink-soft, #3D554D);
  max-width: min(56ch, 100%);
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.6;
}

.act-grid {
  display: grid;
  gap: 1.5rem;
}

.act-grid--primary {
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 1.5rem;
}

.act-grid--secondary {
  grid-template-columns: repeat(3, 1fr);
}

.act-card {
  background: #ffffff;
  border: 1px solid rgba(6, 35, 26, 0.1);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.25s ease;
  box-shadow: 0 4px 16px rgba(6, 35, 26, 0.04);
}

.act-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(6, 35, 26, 0.09);
  border-color: rgba(6, 35, 26, 0.2);
}

.act-card__media {
  position: relative;
  overflow: hidden;
  background: var(--wash, #F4F8F5);
}

.act-card--featured .act-card__media {
  height: 250px;
}

.act-card:not(.act-card--featured) .act-card__media {
  height: 200px;
}

.act-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.act-card:hover .act-card__media img {
  transform: scale(1.04);
}

.act-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--f-util, sans-serif);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(6, 35, 26, 0.85);
  color: #ffffff;
  backdrop-filter: blur(6px);
  z-index: 2;
}

.act-card__badge--forest {
  background: #0B8043;
}

.act-card__badge--brick {
  background: #D4551F;
}

.act-card__body {
  padding: clamp(1.4rem, 2.5vw, 1.8rem);
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  gap: 1.25rem;
}

.act-card__title {
  font-family: var(--f-display, var(--f-title, sans-serif));
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink, #06231A);
  margin: 0 0 0.65rem;
  line-height: 1.25;
}

.act-card--featured .act-card__title {
  font-size: 1.6rem;
}

.act-card__desc {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-soft, #425850);
  margin: 0;
}

.act-card__action {
  margin-top: auto;
  display: flex;
  align-items: center;
}

.act-card__action .btn {
  width: 100%;
  justify-content: center;
}

.act-card__action .textlink {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--forest, #0B8043);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  transition: color 0.2s ease, gap 0.2s ease;
}

.act-card__action .textlink:hover {
  color: var(--ember, #D4551F);
  gap: 0.6rem;
}

/* Reset donate section padding now that the montage reel drop is eliminated */
.donate {
  padding-top: clamp(3.5rem, 6vw, 5.5rem) !important;
}

@media (max-width: 980px) {
  .act-grid--secondary {
    grid-template-columns: repeat(2, 1fr);
  }
  .act-grid--secondary > article:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .act-focus .act-focus__head {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1rem;
  }
  .act-grid--primary {
    grid-template-columns: 1fr;
  }
  .act-grid--secondary {
    grid-template-columns: 1fr;
  }
  .act-grid--secondary > article:last-child {
    grid-column: auto;
  }
  .act-card--featured .act-card__media,
  .act-card:not(.act-card--featured) .act-card__media {
    height: 200px;
  }
}

/* ============================================================
   9. NAV Text Enhancement & Mega Menu on Hover (Pic 3 Fix)
   ============================================================ */
.nav__links {
  gap: clamp(18px, 2.2vw, 36px) !important;
}

.nav__links > li > a {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  padding: 0.5rem 0.2rem !important;
}

/* Instant Mega Menu appearance on hover */
.nav__links li.mm:hover .mm__panel,
.nav__links li.mm.open .mm__panel,
#om:hover .om__panel,
#om.open .om__panel {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

.nav__links li.mm:hover .chev,
.nav__links li.mm.open .chev,
#om:hover .chev,
#om.open .chev {
  transform: rotate(180deg) !important;
  color: var(--ember, #D4551F) !important;
  opacity: 1 !important;
}

.nav__links li.mm:hover > a::after,
.nav__links li.mm.open > a::after {
  transform: scaleX(1) !important;
}

/* When hovering over menu or brand mark, ensure navigation is opaque and solid */
.nav:has(.mm:hover),
.nav:has(#om:hover),
.nav:has(.mm.open),
.nav:has(#om.open) {
  background: #ffffff !important;
  color: var(--ink, #06231A) !important;
  box-shadow: 0 1px 0 var(--rule), 0 14px 34px rgba(6, 35, 26, 0.08) !important;
}

.nav:has(.mm:hover) .logo__dark,
.nav:has(#om:hover) .logo__dark {
  display: block !important;
}

.nav:has(.mm:hover) .logo__light,
.nav:has(#om:hover) .logo__light {
  display: none !important;
}

.nav:has(.mm:hover) .btn--outline,
.nav:has(#om:hover) .btn--outline {
  border-color: var(--ink, #06231A) !important;
  color: var(--ink, #06231A) !important;
}

.nav:has(.mm:hover) .iconbtn,
.nav:has(#om:hover) .iconbtn {
  border-color: var(--rule) !important;
  background: var(--white) !important;
  color: var(--ink) !important;
}

/* ============================================================
   10. Section Gap Tightening (Pic 1 & Pic 4 Fixes)
   ============================================================ */
/* Pic 1: Remove excessive gap between Mission and Four Stages */
.mission {
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem) !important;
}

.journey {
  padding-top: clamp(2rem, 3.5vw, 3rem) !important;
}

/* Section Transition & Rhythm Normalization (Eliminating Gaps across All Content Blocks) */
.threats {
  padding-bottom: clamp(2rem, 4vw, 3rem) !important;
}

.act-focus {
  padding: clamp(2.5rem, 4.5vw, 3.5rem) 0 clamp(2rem, 3.5vw, 3rem) !important;
}

.donate {
  padding-top: clamp(2.5rem, 4.5vw, 3.5rem) !important;
  padding-bottom: clamp(3rem, 5vw, 4.5rem) !important;
}

.donate .gifts {
  margin-bottom: 0 !important;
}

/* ============================================================
   11. Footer Layout & Spacing (Pic 2 Fix)
   ============================================================ */
.foot {
  padding: clamp(4rem, 6vw, 6rem) 0 clamp(2.5rem, 4vw, 3.5rem) !important;
  background: #041711 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  position: relative;
  z-index: 5;
}

.foot__grid {
  align-items: start !important;
  gap: clamp(1.8rem, 3.2vw, 3rem) !important;
}

.foot__brand img {
  width: 170px !important;
  height: auto;
}

.stay {
  position: relative;
  z-index: 2;
  margin-bottom: 0 !important;
}

/* ============================================================
   12. Gift Cards Modern Polish
   ============================================================ */
.donate .gifts {
  display: grid;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: clamp(1.2rem, 2.5vw, 2.2rem) !important;
  margin-top: 2.2rem !important;
}

.donate .gift {
  background: #ffffff;
  border: 1px solid rgba(6, 35, 26, 0.1);
  border-radius: 16px;
  padding: 1.4rem;
  box-shadow: 0 4px 16px rgba(6, 35, 26, 0.04);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.25s ease;
  color: var(--ink, #06231A) !important;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.donate .gift:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 36px rgba(6, 35, 26, 0.09);
  border-color: rgba(6, 35, 26, 0.22);
}

.donate .gift__pic {
  border-radius: 10px !important;
  overflow: hidden;
  aspect-ratio: 16/10 !important;
  background: var(--wash, #f4f8f5);
  margin-bottom: 0.85rem;
}

.donate .gift__pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.donate .gift:hover .gift__pic img {
  transform: scale(1.04);
}

.donate .gift b {
  color: var(--ink, #06231A) !important;
  font-size: 1.8rem !important;
  font-weight: 800 !important;
  display: block;
  margin-bottom: 0.35rem;
}

.donate .gift span span {
  color: var(--ink-soft, #425850) !important;
  font-size: 0.95rem !important;
  line-height: 1.5 !important;
  display: block;
}

.gift__cta {
  margin-top: auto;
  padding-top: 1rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ember, #D4551F);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s ease;
}

.donate .gift:hover .gift__cta {
  gap: 0.65rem;
}

@media (max-width: 860px) {
  .donate .gifts {
    grid-template-columns: 1fr !important;
  }
}




