/**
 * sfc.css — design tokens + base styles
 * Tailwind owns layout, spacing, and utilities. This file owns
 * CSS custom properties, global element defaults, and button variants.
 */

/* ================================================================
   TOKENS
   ================================================================ */

:root {
  /* Palette */
  --color-black: #000000;
  --color-dark: #474747;
  --color-teal: #7496a0;
  --color-steel: #a4b8be;
  --color-mist: #eaf1ec;
  --color-white: #ffffff;
  --color-link: #005f61;
  --color-muted: #8e8e8e;

  /* Gradients */
  --gradient-teal-mist: linear-gradient(
    to right,
    var(--color-teal),
    var(--color-mist)
  );
  --gradient-teal-steel: linear-gradient(
    to right,
    var(--color-teal),
    var(--color-steel)
  );
  --gradient-teal-teal: linear-gradient(
    to right,
    var(--color-teal),
    var(--color-teal)
  );
  --gradient-teal-steel-75: linear-gradient(
    75deg,
    var(--color-teal),
    var(--color-steel)
  );

  /* Typography */
  --font-display: "Crimson Text", Georgia, serif;
  --font-body: "Lato", system-ui, sans-serif;

  /* Layout */
  --max-width-content: 1400px;
  --max-width-narrow: 800px;

  /* Elevation */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);

  /* Swiper */
  --swiper-theme-color: var(--color-teal);
  --swiper-pagination-bullet-inactive-color: var(--color-steel);
  --swiper-pagination-bullet-inactive-opacity: 1;
}

/* ================================================================
   BASE
   ================================================================ */

html {
  /* scroll-behavior: smooth; */
}
html,
body {
  margin: 0;
  padding: 0;
}

body {
  /* scrollbar-gutter: stable; */
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-black);
  -webkit-font-smoothing: antialiased;
}

html div {
  box-sizing: border-box;
}

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
}

hr {
  border: none;
  border-top: 1px solid var(--color-dark);
}

.container {
  width: 100%;
  margin: 0 auto;
  padding-left: 30px;
  padding-right: 30px;
  position: relative;
}
.container--narrow {
  max-width: var(--max-width-narrow);
}
img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  padding-top: 1rem;
  padding-bottom: 1rem;
  &:first-child {
    padding-top: 0;
  }
}

h2 {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-teal);
}

h3 {
  font-family: var(--font-body);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.125;
  color: var(--color-dark);
}

h4 {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.333;
  color: var(--color-dark);
}

h5 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-teal);
}

/* Inline links */
a {
  color: var(--color-teal);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 150ms ease;
}
a:hover {
  color: var(--color-steel);
}
a:visited {
  color: var(--color-muted);
}

/* Nav / UI links */
a.ui-link {
  color: var(--color-dark);
  text-decoration: none;
  font-weight: 400;
}
a.ui-link:hover {
  font-weight: 700;
}

/* ================================================================
   BUTTONS
   ================================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-style: none !important;
  /* gap:             0.5rem; */
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 200ms ease,
    color 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease,
    opacity 150ms ease;
}

/* Primary — 76H pill (e.g. "DONATE")
   Default: mist bg, steel border, steel text, caps
   Hover:   teal bg, steel 6px border, white text          */
.btn--primary {
  height: 48px;
  padding-inline: 1.5rem;
  border-radius: 9999px;
  background: var(--color-teal);
  color: #fff !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.btn--primary:hover {
  background-color: var(--color-steel);
  color: var(--color-white);
}

/* Secondary — 45H pill (e.g. "Submit")
   Default: link-green bg, white text
   Hover:   steel bg                                        */
.btn--secondary {
  height: 45px;
  padding-inline: 1.5rem;
  border-radius: 9999px;
  background: var(--color-link);
  color: var(--color-white);
}
.btn--secondary:hover {
  background: var(--color-steel);
}

/* Ghost — 45H pill (e.g. "Explore our Service Region Map")
   Default: transparent, teal border + text
   Hover:   steel bg, white text                            */
.btn--ghost {
  height: 45px;
  padding-inline: 1.25rem;
  border-radius: 9999px;
  background: white;
  border-color: var(--color-teal);
  color: var(--color-teal) !important;
}
.btn--ghost:hover {
  background: var(--color-steel);
  border-color: var(--color-steel);
  color: var(--color-white) !important;
}
.btn--ghost:hover img {
  filter: brightness(0) invert(1);
}

/* Ellipse lg — 76×76 icon button (e.g. play)
   Default: teal bg, white icon
   Hover:   steel bg                                        */
.btn--ellipse-lg {
  width: 76px;
  height: 76px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: var(--color-teal);
  color: var(--color-white);
  font-size: 1.5rem;
}
.btn--ellipse-lg:hover {
  background: var(--color-steel);
}

/* Card */

.card {
  background: var(--color-mist);
}

/* ================================================================
   GRADIENT BAR  (#7496A0 → #EAF1EC)
   ================================================================ */

.gradient-bar {
  height: 6px;
  width: 100%;
  background: linear-gradient(to right, var(--color-teal), var(--color-mist));
}

/* Content */

#sfc-hero {
  border-top: 15px solid var(--color-teal);
  border-image: var(--gradient-teal-mist) 1;
}

.sfc-hero-right {
  background: url("../images/Image01 - Oak Tree.jpg") center/cover no-repeat;
}

.btn--primary.btn--large {
  height: 76px;
  padding-inline: 4rem;
  box-shadow: inset 0 0 0 0 transparent;
  font-size: 24px;
  background: var(--gradient-teal-steel);
}
.btn--primary.btn--large:hover {
  box-shadow: inset 0 0 0 6px var(--color-steel);
  background: var(--gradient-teal-teal);
}

@media screen and (min-width: 768px) {
  .btn--primary.md\:btn--large {
    height: 76px;
    padding-inline: 4rem;
    box-shadow: inset 0 0 0 0 transparent;
    font-size: 24px;
    background: var(--gradient-teal-steel);
  }
  .btn--primary.md\:btn--large:hover {
    box-shadow: inset 0 0 0 6px var(--color-steel);
    background: var(--gradient-teal-teal);
  }
}
:root {
  --container-side: 6vw;
  --max-width: 1400px;
}
@media (min-width: 640px) {
  :root {
    --max-width: 640px;
  }
}

@media (min-width: 768px) {
  :root {
    --max-width: 768px;
  }
}

@media (min-width: 1024px) {
  :root {
    --max-width: 1024px;
  }
}

@media (min-width: 1280px) {
  :root {
    --max-width: 1280px;
  }
}
@media (min-width: 1400px) {
  :root {
    --max-width: 1400px;
  }
}
.split-section {
  display: flex; /* or grid with 2 cols */
}

.col-left {
  width: 60%;
  /* pad left edge to match container */
  padding-left: max(
    var(--container-side),
    calc((100vw - var(--max-width)) / 2)
  );
  padding-right: 3rem; /* whatever gutter you want between columns */
}

.col-right {
  width: 40%;
  padding-right: max(
    var(--container-side),
    calc((100vw - var(--max-width)) / 2)
  );
  padding-left: 3rem;
}

.container-left {
  /* stretch to right edge of viewport */
}

#sfc-footer .footer-bottom {
  position: relative;
  background: linear-gradient(to bottom, var(--color-mist), var(--color-teal));
}
#sfc-footer .footer-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  background: url(../images/Footer\ -\ Topo\ Graphic.svg) transparent top center
    no-repeat;
  background-size: cover;
}
@media screen and (max-width: 767px) {
  #sfc-footer .footer-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    background: url(../images/Footer\ \-\ Topo\ Graphic\ \-\ Mobile.svg)
      transparent top center no-repeat;
    background-size: cover;
  }
}

/* Swiper.js */

.swiper-button-prev::after,
.swiper-button-next::after {
  display: none;
}

/* Timeline Slider */

#sfc-timeline {
  background: var(--gradient-teal-steel-75);
}

.swiper-timeline {
  --slide-gutter: max(50px, calc((100% - 1500px) / 2));
}
@media (max-width: 767px) {
  .swiper-timeline {
    --slide-gutter: 20px;
  }
}
.swiper-timeline .swiper-slide {
  padding-inline: var(--slide-gutter);
}
#sfc-timeline .swiper-pagination-wrapper {
  background: url(../images/Dotted\ Line.svg) bottom center repeat-x;
}
#sfc-timeline .swiper-pagination {
  position: static;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0 30px;
  gap: 10px;
  height: 80px;
  /* border-bottom: 2px dashed #fff; */
}
#sfc-timeline .swiper-pagination-bullet {
  /* width: 100px; */
  display: block;
  margin: 0 !important;
  position: relative;
  text-align: center;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  opacity: unset;
  color: var(--color-dark);
  font-weight: bold;
  /* flex-grow: 1; */

  width: 15%;
  max-width: 200px;
}
#sfc-timeline .swiper-pagination-bullet:after {
  position: absolute;
  bottom: 0;
  left: 50%;
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #fff;
  transform: translateX(-50%) translateY(50%);
  transition:
    width 200ms ease,
    height 200ms ease,
    border-color 200ms ease;
}
#sfc-timeline .swiper-pagination-bullet-active:after {
  width: 30px;
  height: 30px;
  border: 8px solid color-mix(in srgb, var(--color-teal) 50%, transparent);
}

#sfc-timeline .swiper-button-prev,
#sfc-timeline .swiper-button-next {
  top: calc(50% + 0px);
}
#sfc-timeline .swiper-button-prev {
  left: var(--slide-gutter);
}
#sfc-timeline .swiper-button-next {
  right: var(--slide-gutter);
}

#sfc-timeline .swiper-button-prev img,
#sfc-timeline .swiper-button-next img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Habitat Slider */

@media screen and (min-width: 768px) {
  #sfc-habitat {
    aspect-ratio: 4 / 1;
  }
}

#sfc-habitat .swiper-button-prev {
  transform: translateX(-65px);
}

#sfc-habitat .swiper-button-prev,
#sfc-habitat .swiper-button-next {
  left: auto;
  right: 12%;
  top: -30px;
  width: 45px;
  height: 45px;
  z-index: 10;
}
@media screen and (max-width: 767px) {
  #sfc-habitat .swiper-button-prev,
  #sfc-habitat .swiper-button-next {
    top: 30px;
  }
}
@media screen and (max-width: 767px) {
  .swiper-voices {
    margin-left: 30px;
    margin-right: 30px;
  }
  .swiper-impact {
	margin-left: 30px;
	padding-right: 25%;
  }
}
@media screen and (min-width: 768px) {
  .swiper-voices {
    /* width: calc(50vw + var(--max-width) / 2 - 38px); */
    margin-left: calc((100vw - var(--max-width)) / 2 + 30px) !important;
    padding-right: calc((100vw - var(--max-width)) / 2 + 30px) !important;
  }
  .swiper-impact {
	max-width: var(--max-width);
	padding: 30px;
  }
}

/* Equal-height slides: override Swiper's default height:100% so flex stretch works */
.swiper-voices .swiper-slide {
  height: auto;
}

#sfc-voices .swiper-pagination-bullet {
  margin: 0 10px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background-clip: none;
  background-origin: none;
}
#sfc-voices .swiper-pagination-bullet-active {
  margin: 0 4px;
  border: 6px solid var(--color-steel) !important;
}

/* Impact: force grid layout on desktop, overriding swiper flex */
@media (min-width: 768px) {
  /* .swiper-impact .swiper-wrapper {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    transform: none !important;
  }
  .swiper-impact .swiper-slide {
    width: auto !important;
    height: auto;
  } */
}

#sfc-impact .impact-item .btn--primary {
  display: none;
}
#sfc-impact .impact-item:hover .impact-image .btn--primary {
  display: inline-flex;
}
/* Touch devices have no hover — always show the donate button */
@media (max-width: 767px) {
  #sfc-impact .impact-item .btn--primary {
    display: inline-flex;
  }
}

/* ================================================================
   MODAL
   ================================================================ */

.sfc-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgba(0, 0, 0, 0.9);
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.sfc-modal.is-open {
  opacity: 1;
  pointer-events: all;
}

.sfc-modal .modal-body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}

/* Direct child fills the modal height and allows flex overflow to work */
.sfc-modal .modal-body > * {
  flex: 1;
  min-height: 0;
}

.sfc-modal .modal-close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 10000;
  padding: 0.5rem;
  margin: -0.5rem;
  line-height: 1;
  font-size: 96px;
  font-family: "Lato", sans-serif;
  font-weight: 300;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  background: none;
  border: none;
}

/* ================================================================
   MOBILE  (< 768px)
   ================================================================ */

@media (max-width: 767px) {
  /* Col layout: full-width with standard container padding */
  .col-left,
  .col-right {
    width: 100%;
    padding-left: 30px;
    padding-right: 30px;
  }

  /* Hero */
  #sfc-hero h2 {
    font-size: 2rem;
  }

  /* Timeline slide gutters + stat size */
  .swiper-timeline .swiper-slide > div {
    padding-inline: 1rem;
  }
  #sfc-timeline .swiper-button-prev,
  #sfc-timeline .swiper-button-next {
    display: none;
  }
}

#donate-modal {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
    url("../images/Donation Image - Oak Tree.jpg");
  background-size: cover;
  background-position: center;
  background-color: transparent;
}

/* Blackbaud */

/* Donation form */

#reCAPTCHASection {
  display: none;
}

#bbox-root .BBFormProgress-Bar {
  background-color: var(--color-teal);
}

#bbox-root .BBFormRadioLabelGivingLevelSelected {
  background-color: var(--color-teal);
  border-color: var(--color-teal);
}

#bbox-root .BBFormSubmitbutton {
  background-color: var(--color-teal);
  box-shadow: none;
  height: 54px;
  padding-inline: 1.5rem;
  border-radius: 9999px;
  color: #fff !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

#bbox-root .BBFormRadioPaymentSelected {
  background-color: var(--color-teal) !important;
  border-color: var(--color-teal) !important;
}

#bbox-root .BBFormSectionHeading label {
    color: #000;
}
/* Signup form */

#bbox-root-3b674957-1996-4b2e-93fd-e32a6836ffb6 #bboxFriendlyMessage {
  margin-bottom: 0 !important;
}

#bbox-root-3b674957-1996-4b2e-93fd-e32a6836ffb6 #reCAPTCHADisclosure {
	display: none;
}
#bbox-root-3b674957-1996-4b2e-93fd-e32a6836ffb6 .BBFormContainer .BBFormSubmitbutton {
    border-radius: 999px;
    border: none;
    padding: .5rem 1.5rem;
    background-color: #7496a0;
    box-shadow: none;
}
#bbox-root-3b674957-1996-4b2e-93fd-e32a6836ffb6 .BBFormTextbox,
#bbox-root-3b674957-1996-4b2e-93fd-e32a6836ffb6 .BBFormTextArea {
    border: 1px solid #474747;
    border-radius: 0;
    font-size: 1rem;
    line-height: 1.5;
    padding: .5rem;
}