/* The Henry Cavill Foundation — brand overrides for the Careox template.
   Colours and fonts mirror thehenrycavillfoundation.online. */
:root {
  --careox-font: "Inter", sans-serif;
  --careox-heading-font: "Fraunces", serif;
  /* Template uses the "special" font for small uppercase labels; keep those legible */
  --careox-special-font: "Inter", sans-serif;
  --careox-base: #13c366;
  --careox-base-rgb: 19, 195, 102;
  --careox-secondary: #0b8f4a;
  --careox-secondary-rgb: 11, 143, 74;
  --careox-black: #212121;
  --careox-black-rgb: 33, 33, 33;
  --hcf-accent-1: #13c366;
  --hcf-accent-2: #0b8f4a;
  --hcf-accent-3: #5fbf3a;
  --hcf-accent-4: #0f6e45;
}

/* Logo sizing (live logo has a lot of transparent padding) */
.main-header__logo img,
.mobile-nav__content .logo-box img,
.footer-widget__logo img { width: 200px; height: auto; }

/* Home: transparent header over the slider needs a white logo */
.main-header--two .main-header__logo img,
.main-footer .footer-widget__logo img,
.mobile-nav__content .logo-box img {
  filter: brightness(0) invert(1);
}

/* Form feedback */
.hcf-alert {
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 15px;
}
.hcf-alert--success { background: rgba(var(--careox-base-rgb), 0.12); color: #0b6b38; border: 1px solid rgba(var(--careox-base-rgb), 0.4); }
.hcf-alert--error { background: #fdecec; color: #8a1c1c; border: 1px solid #f3b9b9; }
.hcf-alert ul { margin: 0; padding-left: 18px; }

/* Contact info cards */
.hcf-contact-info { padding: 120px 0 0; }
.hcf-contact-info__item {
  height: 100%;
  background: var(--careox-gray);
  border-radius: 12px;
  padding: 36px 28px;
  text-align: center;
}
.hcf-contact-info__icon {
  width: 64px; height: 64px; margin: 0 auto 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--careox-base); color: #fff; font-size: 26px;
}
.hcf-contact-info__title { font-size: 20px; margin-bottom: 8px; }
.hcf-contact-info__text, .hcf-contact-info__text a { color: var(--careox-text); margin: 0; word-break: break-word; }

/* Campaign FAQ list on details page */
.hcf-faq { margin-top: 30px; }
.hcf-faq h4 { font-size: 20px; margin-bottom: 6px; }
.hcf-faq p { margin-bottom: 18px; }

/* Donate page campaign select */
.donate-page__form select.hcf-select {
  width: 100%; height: 60px; padding: 0 20px;
  border: none; border-radius: 6px;
  background: var(--careox-gray); color: var(--careox-text);
  font-size: 16px; margin-bottom: 30px;
}

/* Buttons use the live site's primary green */
.careox-btn::before { background: var(--careox-base); }
/* Outline button used next to "Donate Now" in the hero */
.careox-btn--border {
  border: 2px solid #fff;
  margin-left: 12px;
}
.careox-btn--border::before { background: transparent; }
.careox-btn--border:hover { color: #fff; border-color: var(--careox-base); }
.main-slider-two__btn { display: flex; flex-wrap: wrap; gap: 12px 0; align-items: center; }

/* Keep "Donate Now" visible at every width (the template hides it at several breakpoints) */
.main-header--four .main-header__right { padding-right: 40px; }
.main-header .main-header__right .careox-btn { display: inline-block; }
@media (max-width: 1300px) {
  .main-header .main-menu .main-menu__list > li + li { margin-left: 32px; }
  .main-header--two .careox-btn { margin-left: 20px; }
}
@media (max-width: 1199px) {
  .main-header--four .main-header__right { padding-right: 0; }
  .main-header .main-header__right .careox-btn { margin: 0 16px 0 auto; }
}
@media (max-width: 575px) {
  .main-header__logo img { width: 140px; }
  .main-header .main-header__right .careox-btn { padding: 9px 16px; font-size: 14px; margin-right: 12px; }
  .main-header .main-header__right .careox-btn i { display: none; }
  .main-header__search { display: none; }
}

/* Section taglines: clean uppercase label in brand green */
.sec-title__tagline,
.sec-title__tagline * {
  font-family: "Inter", sans-serif !important;
}
.sec-title__tagline {
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.14em;
  font-size: 14px !important;
  line-height: 1.4;
  color: var(--careox-base);
}

/* Footer newsletter: email input (template only styles type=text) */
.main-footer__newsletter input[type=email] {
  width: 100%;
  display: block;
  border: none;
  outline: none;
  height: 60px;
  background-color: #fff;
  color: var(--careox-black);
  font-size: 16px;
  padding: 0 70px 0 30px;
  border-radius: 5px;
}
.main-footer__newsletter input[type=email]::placeholder { color: #9a9a9a; }

/* Typography: Fraunces for headings at a lighter weight, Inter for UI text (as on the live site) */
body { font-family: "Inter", sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6,
.sec-title__title,
.page-header__title,
.main-slider-two__title {
  font-family: "Fraunces", serif;
  font-weight: 600 !important;
  letter-spacing: -0.01em;
}
.main-menu .main-menu__list > li > a,
.careox-btn,
.careox-breadcrumb,
.topbar-two,
.blog-card__meta li,
.blog-details__top-meta li,
.donations-one__item__bottom__text,
.donation-details__image__text,
.footer-widget__title,
.sidebar__title,
.sidebar__posts__title,
.accrodion-title h4 {
  font-family: "Inter", sans-serif !important;
}
.main-menu .main-menu__list > li > a { font-weight: 600; font-size: 15px; letter-spacing: 0.02em; }
.careox-btn { font-weight: 600; }
.blog-card__meta li, .blog-card__meta li a { font-size: 14px; text-transform: none; font-weight: 500; }
.donations-one__item__category { font-weight: 600; text-transform: none; }
.accrodion-title h4 { font-weight: 600 !important; }

/* Tablet / mobile header: logo left, then Donate, search and menu toggle on the right */
@media (max-width: 1199px) {
  .main-header__right { flex: 1; justify-content: flex-end; }
  .main-header .main-header__right .careox-btn { order: 1; margin: 0 16px 0 0; }
  .main-header .main-header__right .main-header__search { order: 2; margin: 0 16px 0 0; }
  .main-header .main-header__right .mobile-nav__btn { order: 3; margin: 0; }
}

/* Preloader: foundation logo on white with a gentle pulse */
.preloader { background-color: #fff; }
.preloader__image {
  animation-name: hcfPulse;
  animation-duration: 1.6s;
  animation-timing-function: ease-in-out;
  background-size: 240px auto;
}
@keyframes hcfPulse {
  0%, 100% { opacity: 0.45; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1); }
}

/* Phones: tighter header gutters so logo, Donate and menu toggle all fit */
@media (max-width: 1199px) {
  .main-header--four { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 575px) {
  .main-header--four { padding-left: 16px; padding-right: 16px; }
  .main-header .container-fluid { padding-left: 16px; padding-right: 16px; }
  .main-header--four .container-fluid { padding-left: 0; padding-right: 0; }
  .main-header--four .main-header__inner { padding-right: 0; }
  .main-header__logo img { width: 130px; }
  .main-header .main-header__right .careox-btn { white-space: nowrap; }
}

/* Hero: always show the headline, text and buttons (the template kept them hidden
   until a delayed carousel transition, which left a blank hero) */
.main-slider-two__title,
.main-slider-two__text,
.main-slider-two__btn .careox-btn {
  opacity: 1;
  transform: none;
}
.main-slider-two__title { text-transform: none; }
.main-slider-two__title__text::after { display: none; }
.main-slider-two__title__text span { color: var(--careox-base); }
.main-slider-two .active .main-slider-two__content > * {
  animation: hcfFadeUp 700ms ease both;
}
.main-slider-two .active .main-slider-two__text { animation-delay: 120ms; }
.main-slider-two .active .main-slider-two__btn { animation-delay: 240ms; }
@keyframes hcfFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* Donate form helper text */
.hcf-form-note { margin: 16px 0 0; font-size: 14px; color: var(--careox-text); }

/* Consistent, responsive crops for cards and campaign photography. */
.feature-two__item__image,
.service-two__item__image,
.donations-one__item__image,
.donation-details__image-two {
  overflow: hidden;
}
.feature-two__item__image img,
.service-two__item__image img,
.donations-one__item__image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}
.donation-details__image > img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}
.donation-details__image-two img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}
.about-one--about .about-one__image__one img,
.about-one--about .about-one__image__two img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
}
.about-one--about .about-one__image__one img { aspect-ratio: 4 / 3; width: 100%; }

@media (max-width: 767px) {
  .main-slider-two__bg { background-position: 58% center; }

  .about-one--about .about-one__image {
    display: grid;
    gap: 14px;
    padding: 0;
    margin-bottom: 28px;
  }
  .about-one--about .about-one__image__one,
  .about-one--about .about-one__image__two {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: none;
  }
  .about-one--about .about-one__image__one img,
  .about-one--about .about-one__image__two img {
    width: 100%;
    max-width: none;
    height: auto;
    aspect-ratio: 4 / 3;
    border: 0;
    border-radius: 16px;
  }
  .about-one--about .about-one__image__video {
    position: static;
    margin: 0;
  }

  .donation-details__image > img { aspect-ratio: 4 / 3; }
  .donation-details__image__bottom { padding: 56px 18px 24px; }
  .donation-details__image-two img { aspect-ratio: 3 / 2; }
}

img {
  max-width: 100%;
}

/* Campaign cards have no progress bar, so don't reserve its large top gap. */
.donations-one .row > [class*="col-"] {
  display: flex;
}
.donations-one__item {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}
.donations-one__item__content {
  flex: 1 0 auto;
}
.donations-one__item__bottom {
  padding: 0 !important;
  text-align: center;
  background: #087b40 !important;
}
.donations-one__item__bottom .careox-btn {
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 12px 20px;
  color: #fff;
  background: #087b40 !important;
  font-size: 15px;
  line-height: 1.4;
  z-index: 0;
  border-radius: 0;
}
.donations-one__item__bottom .careox-btn::before {
  background: #087b40 !important;
  border-radius: 0;
}
.donations-one__item__bottom .careox-btn:hover {
  color: #fff;
}
.donations-one__item__bottom .careox-btn:hover::before {
  opacity: 1;
  transform: none;
}
.donations-one__item__bottom .careox-btn::after {
  display: none;
}

/* Keep the substituted Font Awesome pictograms above the template decoration. */
.feature-two__item__icon span.fas {
  font-family: "Font Awesome 5 Free" !important;
  font-weight: 900 !important;
}

/* Keep the image collage from spilling into the FAQ call-to-action. */
.faq-one__image {
  margin-top: 35px;
}
.faq-one__image__left {
  bottom: -30px;
}
.faq-one__image__right {
  right: -40px;
  max-width: 235px;
}
.faq-one__text {
  position: relative;
  z-index: 2;
  margin-top: 80px;
}

/* Campaign progress bar on campaign detail cards. */
.donation-details__image__bottom {
  padding: 24px 35px 32px;
}
.donation-details__image__bottom .hcf-campaign-card__progress {
  position: relative;
  padding-top: 32px;
  text-align: left;
}
.donation-details__image__bottom .hcf-campaign-card__percent {
  position: absolute;
  top: 0;
  left: min(var(--progress), calc(100% - 42px));
  z-index: 1;
  min-width: 42px;
  padding: 0.25rem 0.4rem;
  border: 2px solid #21b75e;
  border-radius: 6px;
  background: #fff;
  color: #079843;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
}
.donation-details__image__bottom .hcf-campaign-card__track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #d7f3e3;
}
.donation-details__image__bottom .hcf-campaign-card__fill {
  display: block;
  width: var(--progress);
  height: 100%;
  border-radius: 999px;
  background: #22bf69;
  animation: hcf-campaign-progress-fill 1.25s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.donation-details__image__bottom .hcf-campaign-card__amounts {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.75rem;
  color: #202124;
  font-size: 0.95rem;
  font-weight: 700;
}
.donation-details__image__bottom .hcf-campaign-card__amounts strong {
  color: #13aa58;
}
@keyframes hcf-campaign-progress-fill {
  from { width: 0; }
  to { width: var(--progress); }
}
@media (prefers-reduced-motion: reduce) {
  .donation-details__image__bottom .hcf-campaign-card__fill {
    animation: none;
  }
}

@media (max-width: 1199px) {
  .faq-one__text {
    margin-top: 70px;
  }
}

@media (max-width: 767px) {
  .faq-one__text {
    margin-top: 20px;
  }
}
