/* ============================================================
   AOF Foundation — memorial polish
   Loaded LAST. The gold accent (#b8862e) is already baked into
   style.css (find-replaced from the template crimson). This file
   only adds memorial-specific touches: wordmark, ribbon, refined
   hero overlay, eyebrow labels, softer headings, button contrast.
   ============================================================ */

:root{
  --aof-gold: #b8862e;
  --aof-gold-soft: #d9b96a;
  --aof-ink: #2b2b2b;
  --aof-ivory: #faf8f4;
}

/* ---- Text wordmark brand (replaces the template logo image) ---- */
.navbar-brand.aof-brand{
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1;
  padding-top: 22px;
}
.navbar-brand.aof-brand .mark{
  color: var(--aof-gold);
  font-size: 26px;
  font-weight: 900;
  /* override Bootstrap's .mark highlight (pale-yellow box) */
  background: transparent;
  padding: 0;
}
.navbar-brand.aof-brand .word{
  color: #333;
  font-size: 13px;
  display: block;
  letter-spacing: 3px;
  font-weight: 600;
  margin-top: 2px;
  text-transform: uppercase;
}
/* On dark/transparent over-hero navbars keep the wordmark legible */
.navbar.navbar-transparent .navbar-brand.aof-brand .word{ color: #fff; }

/* ---- A small ribbon glyph used as a memorial motif ---- */
.aof-ribbon{
  display: inline-block;
  width: 14px; height: 22px;
  margin-right: 6px;
  vertical-align: middle;
  background: linear-gradient(135deg, var(--aof-gold) 0%, var(--aof-gold-soft) 100%);
  -webkit-clip-path: polygon(50% 0, 100% 32%, 60% 60%, 80% 100%, 50% 78%, 20% 100%, 40% 60%, 0 32%);
  clip-path: polygon(50% 0, 100% 32%, 60% 60%, 80% 100%, 50% 78%, 20% 100%, 40% 60%, 0 32%);
  opacity: .9;
}

/* ---- Eyebrow / "In loving memory" label ---- */
.aof-eyebrow{
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--aof-gold);
  margin-bottom: 14px;
}
.banner-area .aof-eyebrow{ color: var(--aof-gold-soft); }

/* gold rule under headings */
.aof-rule{
  width: 70px; height: 3px; border: 0;
  background: var(--aof-gold);
  margin: 18px auto 26px;
}
.text-left .aof-rule, .info .aof-rule{ margin-left: 0; }
/* the centered .site-heading already has a built-in h2::after underline — avoid a double rule */
.site-heading .aof-rule{ display: none; }

/* ---- Hero / breadcrumb: deeper, calmer overlay (template uses ::after) ---- */
.banner-area .shadow.dark::after,
.breadcrumb-area.shadow.dark::after{
  background: linear-gradient(180deg, rgba(20,18,14,.60) 0%, rgba(20,18,14,.80) 100%) !important;
  opacity: 1 !important;
}
.banner-area .content h1{ line-height: 1.18; }
.banner-area .memorial-dates{
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 3px;
  font-size: 16px;
  color: #fff;
  opacity: .92;
  margin: 6px 0 22px;
}
.banner-area .memorial-dates span{ color: var(--aof-gold-soft); }

/* ---- Softer, warmer section tone ---- */
body{ color: #555; }
.bg-gray{ background-color: var(--aof-ivory) !important; }
.site-heading h2, .info h2, .about-area h2{ line-height: 1.3; }

/* Button contrast: keep white text crisp on gold, add gentle hover */
.btn-theme.effect{ font-weight: 600; }
.btn-theme.border:hover{ color:#fff !important; }

/* Quote block for tributes / story */
.aof-quote{
  border-left: 4px solid var(--aof-gold);
  padding: 6px 0 6px 26px;
  margin: 26px 0;
  font-style: italic;
  font-size: 19px;
  color: #444;
  line-height: 1.6;
}
.aof-quote cite{
  display: block;
  font-style: normal;
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--aof-gold);
  margin-top: 12px;
}

/* Ways-to-help cards on Get Involved */
.help-card{
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 6px;
  padding: 38px 28px;
  text-align: center;
  height: 100%;
  transition: all .3s ease;
  margin-bottom: 30px;
}
.help-card:hover{ box-shadow: 0 18px 40px rgba(0,0,0,.08); transform: translateY(-4px); }
.help-card i{ font-size: 46px; color: var(--aof-gold); display:block; margin-bottom: 18px; }
.help-card h4{ font-weight: 700; margin-bottom: 12px; }

/* Footer memorial line */
.aof-footer-note{
  color: var(--aof-gold-soft);
  font-style: italic;
  letter-spacing: .5px;
}

/* Simple board/team card */
.team-simple{ text-align:center; margin-bottom: 30px; }
.team-simple .avatar{
  width: 150px; height: 150px; border-radius: 50%;
  object-fit: cover; margin: 0 auto 20px;
  border: 4px solid #fff; box-shadow: 0 8px 24px rgba(0,0,0,.10);
}
.team-simple h4{ font-weight: 700; margin-bottom: 4px; }
.team-simple span{ color: var(--aof-gold); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.team-simple p{ margin-top: 12px; }

/* Two-column story block image */
.aof-story-thumb{ min-height: 420px; border-radius: 6px; background-size: cover; background-position: center; }

/* Equalize the Our Story image column with the (taller) text column on desktop,
   so there's no white gap under a short image */
@media (min-width: 992px){
  .about-area .row{ display: flex; flex-wrap: wrap; align-items: stretch; }
  .about-area .aof-story-thumb{ height: 100%; min-height: 420px; }
}

/* ---- Compact the nav Donate button ----
   bootsnav stretches .attr-nav links to full navbar height (padding:32px 0 !important),
   so the gold fills the whole strip. Make it a normal, vertically-centred pill. */
.attr-nav > ul > li.donate-btn > a.btn{
  padding: 9px 22px !important;
  margin: 23px 0 23px 6px;
  display: inline-block;
  line-height: 1.5;
  border-radius: 4px;
}

/* ---- Mobile header: stop the Donate button overlapping the wordmark ---- */
@media (max-width: 767px){
  .navbar-brand.aof-brand{ padding-top: 16px; }
  .navbar-brand.aof-brand .word{ display: none; }      /* keep compact "AOF" mark only */
  .attr-nav > ul > li.donate-btn > a.btn{
    padding: 7px 16px !important;
    margin: 12px 8px 12px 0;
    font-size: 12px;
  }
}

/* ---- Her Story: cut-out portrait on a soft gold panel (replaces the video block) ---- */
.aof-portrait-panel{
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  min-height: 460px;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: radial-gradient(120% 90% at 50% 15%, #f6ecd4 0%, #ecdcb2 55%, #e2cc98 100%);
  box-shadow: inset 0 0 0 1px rgba(184,134,46,.18);
}
.aof-portrait-panel img{
  display: block;
  max-height: 470px;
  max-width: 92%;
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(60,45,20,.28));
}
@media (max-width: 991px){
  .aof-portrait-panel{ min-height: 360px; margin-bottom: 30px; }
  .aof-portrait-panel img{ max-height: 380px; }
}

/* ---- Uniform, tidy photo crops for cause + tribute cards ----
   Source photos vary in aspect ratio; object-fit keeps every thumb consistent. */
.popular-causes-items .thumb{ overflow: hidden; }
.popular-causes-items .thumb img{
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center 25%;
}
.blog-items .thumb{ overflow: hidden; }
.blog-items .thumb img{
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center 25%;
}

/* ---- Cause cards: themed icon panel instead of a photo ---- */
.aof-cause-thumb{
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #b8862e 0%, #d9b96a 100%);
  position: relative;
  overflow: hidden;
}
.aof-cause-thumb:after{
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.22), transparent 60%);
}
.aof-cause-thumb i{
  font-size: 78px;
  color: #fff;
  position: relative;
  z-index: 1;
  opacity: .95;
}

/* ---- Tribute cards ("Stories from the foundation") ---- */
.aof-tribute .info{ position: relative; padding-top: 26px; }
.aof-tribute .aof-quote-mark{
  color: var(--aof-gold);
  font-size: 26px;
  opacity: .45;
  margin-bottom: 10px;
  display: block;
}
.aof-tribute .info p{
  font-style: italic;
  color: #4a4a4a;
  line-height: 1.7;
  margin-bottom: 18px;
}
.aof-tribute .info h4{
  font-weight: 700;
  font-size: 17px;
  margin: 0 0 3px;
}
.aof-tribute .aof-tribute-role{
  display: block;
  color: var(--aof-gold);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ---- Hero height: give the banner real vertical presence, content vertically centred ---- */
.banner-area .box-table{ min-height: 660px; }
.banner-area .box-cell{ vertical-align: middle; }
@media (max-width: 991px){ .banner-area .box-table{ min-height: 540px; } }
@media (max-width: 767px){ .banner-area .box-table{ min-height: 480px; } }

/* ---- Hero slide 2 heading: an <h2> that must read as the hero title (one <h1> per page) ---- */
.banner-area .item .content h2.aof-hero-h{
  display: block;
  font-size: 60px;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: none;
  color: #fff;
  border: 0;
  padding: 0;
  line-height: 1.1;
}
.banner-area .item .content h2.aof-hero-h span{ color: var(--aof-gold); }
.banner-area .item .content h2.aof-hero-h::before{ display: none; }
@media (max-width: 767px){
  .banner-area .item .content h2.aof-hero-h{ font-size: 34px; }
}

/* ---- Interior pages (no breadcrumb banner): clear, comfortable top spacing under the navbar ---- */
.aof-page-top{ padding-top: 130px; }

/* ---- Contact page: information cards (no form) ---- */
.aof-contact-cards{ margin-top: 10px; }
.aof-contact-card{
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 6px;
  padding: 40px 24px;
  text-align: center;
  height: 100%;
  margin-bottom: 30px;
  transition: box-shadow .3s ease, transform .3s ease;
}
.aof-contact-card:hover{ box-shadow: 0 18px 40px rgba(0,0,0,.08); transform: translateY(-4px); }
.aof-contact-card i{
  font-size: 40px;
  color: var(--aof-gold);
  display: block;
  margin-bottom: 18px;
}
.aof-contact-card h4{ font-weight: 700; margin-bottom: 10px; }
.aof-contact-card p{ margin: 0; word-wrap: break-word; }
.aof-contact-card a{ color: #555; }
.aof-contact-card a:hover{ color: var(--aof-gold); }

.aof-contact-social{ margin-top: 30px; }
.aof-contact-social h4{ font-weight: 700; margin-bottom: 18px; }
.aof-social-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 14px;
}
.aof-social-list a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--aof-gold);
  color: #fff;
  transition: background .3s ease;
}
.aof-social-list a:hover{ background: #a2751f; }

/* values list with check marks */
.aof-values{ list-style:none; padding:0; margin: 20px 0 0; }
.aof-values li{ position: relative; padding: 0 0 14px 34px; }
.aof-values li:before{
  content: "\f004"; font-family: "Font Awesome 5 Free"; font-weight: 900;
  position:absolute; left:0; top:2px; color: var(--aof-gold);
}

/* ---- Hero caption animation ----
   Extracted from animate.css, which was 68KB of keyframes for the sake of
   this one effect (the hero uses data-animation="animated slideInRight").
   The original slid in from translateX(2000px), which pushed the document
   wide enough to cause horizontal scroll on phones mid-animation; 60px
   reads the same at this size and cannot overflow. */
.animated{
  animation-duration: 1s;
  animation-fill-mode: both;
}
@keyframes slideInRight{
  0%   { opacity: 0; transform: translateX(60px); }
  100% { opacity: 1; transform: translateX(0); }
}
.slideInRight{ animation-name: slideInRight; }

@media (prefers-reduced-motion: reduce){
  .animated{ animation: none !important; }
}

/* ---- Form status messages ----
   Every form on this site used to be onsubmit="return false;" with no
   feedback at all. These announce the result via role="status". */
.aof-form-status{
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.6;
  min-height: 1px;
}
.aof-form-status:empty{ display: none; }
.aof-form-status.is-ok{ color: #2e7d4f; }
.aof-form-status.is-error{ color: #b3261e; }

/* the volunteer submit lost its template id, so restore the button look */
.contact-form .aof-submit{
  background: var(--aof-gold);
  color: #fff;
  border: 0;
  padding: 12px 30px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 13px;
  transition: background .3s ease;
}
.contact-form .aof-submit:hover{ background: #a2751f; }
.contact-form .aof-submit[disabled]{ opacity: .6; cursor: default; }

/* ============================================================
   Anniversary T-shirt fundraiser (tshirt.html)
   ============================================================ */


/* ---- Size + quantity grid ---- */
.aof-size-grid{ border: 0; padding: 0; margin: 0 0 10px; }
.aof-size-grid legend{
  border: 0;
  margin-bottom: 18px;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--aof-ink);
}
.aof-size label{
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--aof-ink);
  margin-bottom: 6px;
}
/* The theme leaves <select> boxed while text inputs get a bottom rule only.
   Match the two so the order form does not look assembled from two kits. */
.aof-tshirt-form select.form-control{
  height: 44px;
  border: 1px solid #e7e7e7;
  border-radius: 4px;
  box-shadow: none;
  background-color: #fff;
}
.aof-tshirt-form select.form-control:focus{
  border-color: var(--aof-gold);
  box-shadow: none;
}

/* ---- Running total ---- */
.aof-total{
  background: var(--aof-ivory);
  border-left: 4px solid var(--aof-gold);
  padding: 14px 18px;
  margin: 6px 0 30px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: var(--aof-ink);
}

.aof-tshirt-form label{
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .5px;
  color: var(--aof-ink);
}
.aof-optional{ font-weight: 400; letter-spacing: 0; color: #999; text-transform: none; }
.aof-tshirt-form .form-group{ margin-bottom: 22px; }

/* ---- Order confirmation ---- */
.aof-confirm:focus{ outline: 2px solid var(--aof-gold); outline-offset: 4px; }
.aof-ref-label{
  margin: 22px 0 4px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #888;
}
.aof-ref-code{
  font-family: 'Montserrat', sans-serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--aof-gold);
  margin: 0 0 20px;
  user-select: all;              /* one click selects the whole code */
}
.aof-confirm-list{ list-style: none; padding: 0; margin: 0 0 18px; }
.aof-confirm-list li{ padding: 6px 0; border-bottom: 1px solid #f0f0f0; }
.aof-confirm-note{
  background: var(--aof-ivory);
  border-left: 4px solid var(--aof-gold);
  padding: 12px 16px;
  margin: 18px 0 0;
  font-size: 14px;
}

/* ---- Payment steps ---- */
.aof-steps{ padding-left: 20px; margin: 0; }
.aof-steps li{ padding: 8px 0; line-height: 1.7; }
.aof-steps-note{ margin: 18px 0 0; font-size: 14px; color: #777; }

/* ---- Campaign band (homepage + get-involved) ---- */
.aof-campaign{
  background: linear-gradient(135deg, #b8862e 0%, #c99a45 100%);
  color: #fff;
  padding: 34px 0;
}
.aof-campaign .aof-eyebrow{ color: #fff; opacity: .85; margin-bottom: 8px; }
.aof-campaign h3{
  color: #fff;
  font-weight: 700;
  margin: 0 0 6px;
  font-size: 24px;
}
.aof-campaign p{ color: #fff; opacity: .92; margin: 0; }
.aof-campaign .btn{
  background: #fff !important;
  color: var(--aof-gold) !important;
  border-color: #fff !important;
}
.aof-campaign .btn:hover{ background: var(--aof-ivory) !important; }
@media (max-width: 767px){
  .aof-campaign{ text-align: center; }
  .aof-campaign .btn{ margin-top: 18px; }
}

/* Honeypot: off-screen rather than display:none, which some bots detect. */
.aof-gotcha{
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px; opacity: 0;
}
.aof-steps-warn{
  background: var(--aof-ivory);
  border-left: 4px solid var(--aof-gold);
  padding: 12px 16px;
  margin: 18px 0 0;
  font-size: 14px;
}
.aof-steps-warn i{ color: var(--aof-gold); margin-right: 6px; }
.aof-tax-note{ font-size: 13px; color: #888; margin-top: 16px; }
.aof-copyable{ -webkit-user-select: all; user-select: all; font-weight: 600; }

/* The campaign band is one horizontal statement, so centre the CTA against the
   copy rather than letting Bootstrap 3's floats top-align it. */
.aof-campaign .row{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

/* Incorporation identifiers in the footer. Deliberately quiet: they are there
   to be findable and verifiable, not to be read first. */
.footer-bottom .aof-registration{
  margin-top: 4px;
  font-size: 12px;
  opacity: .65;
  letter-spacing: .3px;
}


/* A restrained homepage pointer to the campaign, in place of a coloured band. */
.aof-quiet-link{
  margin-top: 24px;
  font-size: 15px;
  color: #777;
}
.aof-quiet-link a{
  color: var(--aof-gold);
  font-weight: 600;
  border-bottom: 1px solid rgba(184,134,46,.35);
}
.aof-quiet-link a:hover{ border-bottom-color: var(--aof-gold); }

/* The homepage giving band is centred, but style.css:2701 sets
   .donation-form h2 { text-align: left } and gives it a left-aligned ::after
   rule. That left the heading sitting off-centre above centred copy, and
   rendered a second rule under the centred .aof-rule. Undo both. */
.donation-form.text-center h2{ text-align: center; }
.donation-form.text-center h2::after{ display: none; }

/* ---- Giving band: a photo of Adeola behind the invitation to give ----
   Her own photograph, so the section is about her rather than a colour block.
   The overlay is deliberately heavy: the copy sits centred over her, and
   legibility of the ask matters more than the photograph. */
.aof-memory-band{
  position: relative;
  background-image: url(../../img/memory-band.webp);
  background-size: cover;
  /* 45% puts her face clearly above the eyebrow rather than behind the
     heading; lower values run the text across her face, higher ones crop it. */
  background-position: center 45%;
  background-repeat: no-repeat;
}
.aof-memory-band{ padding-top: 140px; }
.aof-memory-band::before{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28,22,12,.78) 0%, rgba(28,22,12,.66) 50%, rgba(28,22,12,.80) 100%);
}
.aof-memory-band > .container{ position: relative; z-index: 1; }
.aof-memory-band h2,
.aof-memory-band p{ color: #fff; }
.aof-memory-band .aof-eyebrow{ color: var(--aof-gold-soft); }
.aof-memory-band .aof-rule{ background: var(--aof-gold-soft); }
.aof-memory-band .aof-quiet-link{ color: rgba(255,255,255,.8); }
.aof-memory-band .aof-quiet-link a{ color: var(--aof-gold-soft); border-bottom-color: rgba(217,185,106,.5); }
.aof-memory-band .btn-light{ background: #fff !important; color: var(--aof-ink) !important; }

/* ---- Footer: sky, cloud, trees and river from Adeola's own photograph ----
   Replaces the flat dark panel with something that reads as calm rather than
   heavy. Overlaid strongly so the footer text keeps its contrast. */
footer.aof-peace-footer{
  position: relative;
  background-image: url(../../img/footer-peace.webp);
  background-size: cover;
  background-position: center 32%;   /* sky and treeline, not just the bank */
  background-repeat: no-repeat;
  background-color: #171b1f;         /* fallback if the image fails */
}
footer.aof-peace-footer::before{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,24,29,.72) 0%, rgba(17,21,26,.84) 55%, rgba(15,18,22,.92) 100%);
}
footer.aof-peace-footer > .container,
footer.aof-peace-footer > .footer-bottom{ position: relative; z-index: 1; }

/* ---- The people carrying it forward ----
   No photographs by choice, so each person gets a monogram in the foundation's
   gold instead. That reads as a deliberate design rather than a missing image,
   which a grey avatar placeholder never does. */
.aof-people{ margin-top: 10px; }
.aof-person{
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 6px;
  padding: 40px 24px 34px;
  text-align: center;
  margin-bottom: 30px;
  transition: box-shadow .3s ease, transform .3s ease;
}
.aof-person:hover{ box-shadow: 0 18px 40px rgba(0,0,0,.08); transform: translateY(-4px); }
.aof-person-mark{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 82px; height: 82px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #b8862e 0%, #d9b96a 100%);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 2px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}
.aof-person h4{
  font-weight: 700;
  font-size: 17px;
  margin: 0 0 6px;
  line-height: 1.4;
}
.aof-person-role{
  display: block;
  color: var(--aof-gold);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
}
