/* ============================================================
   SUPPORT WAY WORLDWIDE — base.css
   Global styles: Reset · Typography · Navbar · Footer · Buttons · Utilities
   Mobile-first · Flexbox + Grid · No frameworks
   ============================================================ */

/* ── CSS Custom Properties ── */
:root {
  --clr-primary:     #c8392b;
  --clr-primary-dk:  #a02d21;
  --clr-primary-lt:  #e8503f;
  --clr-dark:        #111111;
  --clr-dark-mid:    #222222;
  --clr-mid:         #555555;
  --clr-light:       #f5f3ef;
  --clr-white:       #ffffff;
  --clr-accent:      #d4a843;

  --ff-display:  'Playfair Display', Georgia, serif;
  --ff-body:     'Barlow', Helvetica, sans-serif;

  --fw-light:    300;
  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;
  --fw-black:    900;

  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   1.125rem;
  --fs-lg:   1.375rem;
  --fs-xl:   1.75rem;
  --fs-2xl:  2.25rem;
  --fs-3xl:  3rem;
  --fs-4xl:  3.75rem;
  --fs-hero: clamp(2.5rem, 8vw, 5.5rem);

  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --shadow-sm:  0 2px 8px rgba(0,0,0,.08);
  --shadow-md:  0 6px 24px rgba(0,0,0,.12);
  --shadow-lg:  0 12px 48px rgba(0,0,0,.18);

  --transition: 0.3s ease;

  --nav-height: 80px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--ff-body);
  font-weight: var(--fw-regular);
  color: var(--clr-dark);
  background-color: var(--clr-white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

address { font-style: normal; }

/* ── Utility: Container ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-md);
}

/* ── Section Labels & Titles ── */
.section-label {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-primary);
  margin-bottom: var(--space-xs);
}

.section-label--light { color: var(--clr-accent); }

.section-title {
  font-family: var(--ff-display);
  font-weight: var(--fw-black);
  font-size: var(--fs-2xl);
  line-height: 1.15;
  color: var(--clr-dark);
  margin-bottom: var(--space-md);
}

.section-title--light { color: var(--clr-white); }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.85em 2em;
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
  cursor: pointer;
}

.btn--primary {
  background-color: var(--clr-primary);
  color: var(--clr-white);
  border: 2px solid var(--clr-primary);
}
.btn--primary:hover {
  background-color: var(--clr-primary-dk);
  border-color: var(--clr-primary-dk);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,57,43,.35);
}

.btn--outline {
  background-color: transparent;
  color: var(--clr-white);
  border: 2px solid rgba(255,255,255,.7);
}
.btn--outline:hover {
  background-color: rgba(255,255,255,.15);
  border-color: var(--clr-white);
  transform: translateY(-2px);
}

.btn--white {
  background-color: var(--clr-white);
  color: var(--clr-primary);
  border: 2px solid var(--clr-white);
}
.btn--white:hover {
  background-color: var(--clr-light);
  border-color: var(--clr-light);
  transform: translateY(-2px);
}

/* ── Page Hero Banner (inner pages) ── */
.page-hero {
  position: relative;
  padding-block: var(--space-3xl) var(--space-2xl);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  min-height: 360px;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background-color: var(--clr-dark-mid);
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(0,0,0,.82) 0%,
    rgba(0,0,0,.5) 60%,
    rgba(0,0,0,.2) 100%
  );
}

.page-hero__content {
  position: relative;
  z-index: 1;
  padding-left: clamp(1.5rem, 6vw, 6rem);
}

.page-hero__eyebrow {
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.page-hero__eyebrow::before {
  content: '';
  display: inline-block;
  width: 40px;
  height: 2px;
  background-color: var(--clr-accent);
  flex-shrink: 0;
}

.page-hero__title {
  font-family: var(--ff-display);
  font-weight: var(--fw-black);
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1.08;
  color: var(--clr-white);
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}

/* ============================================================
   ANNOUNCEMENT BAR
   ============================================================ */
.announcement-bar {

  background-color: var(--clr-primary);
  text-align: center;
  padding: 0.6rem var(--space-sm);
  z-index: 200;
  position: relative;
}

.announcement-bar__link {
  color: var(--clr-white);
  border: none;
  background-color: var(--clr-primary);
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: opacity var(--transition);
}

.announcement-bar__link:hover { opacity: 0.8; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 100;
  background-color: transparent;
  transition: background-color var(--transition), box-shadow var(--transition);
}

.navbar--scrolled {
  background-color: var(--clr-white);
  box-shadow: var(--shadow-md);
}

.navbar--scrolled .navbar__link { color: var(--clr-dark); }
.navbar--scrolled .navbar__logo-text { color: var(--clr-dark); }

/* Inner pages: navbar is always opaque since there's no full-bleed hero */
.navbar--opaque {
  background-color: var(--clr-white);
  box-shadow: var(--shadow-md);
}

.navbar--opaque .navbar__link { color: var(--clr-dark); }
.navbar--opaque .navbar__logo-text { color: var(--clr-dark); }
.navbar--opaque .navbar__toggle span { background-color: var(--clr-dark); }

.navbar__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding-inline: var(--space-md);
  max-width: 1280px;
  margin-inline: auto;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex-shrink: 0;
}

.navbar__logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background-color: var(--clr-light);
  border-radius: var(--radius-sm);
}

.navbar__logo-text {
  font-family: var(--ff-display);
  font-weight: var(--fw-black);
  font-size: var(--fs-lg);
  color: var(--clr-white);
  letter-spacing: 0.05em;
  transition: color var(--transition);
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.navbar__list {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.navbar__item { position: relative; }

.navbar__link {
  display: block;
  padding: 0.5em 0.75em;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
  transition: color var(--transition);
}

.navbar__link:hover { color: var(--clr-accent); }

/* Active link state */
.navbar__link--active { color: var(--clr-primary) !important; }

/* Dropdown */
.navbar__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 200px;
  background-color: var(--clr-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
  z-index: 50;
}

.navbar__item--dropdown:hover .navbar__dropdown { display: block; }

.navbar__dropdown-link {
  display: block;
  padding: 0.6em 1.25em;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--clr-dark);
  transition: background var(--transition), color var(--transition);
}

.navbar__dropdown-link:hover {
  background-color: var(--clr-light);
  color: var(--clr-primary);
}

.navbar__donate-btn {
  display: none;
  padding: 0.6em 1.4em;
  background-color: var(--clr-primary);
  color: var(--clr-white);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: 2px solid var(--clr-primary);
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}

.navbar__donate-btn:hover {
  background-color: var(--clr-primary-dk);
  transform: translateY(-1px);
}

/* Hamburger */
.navbar__toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.navbar__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--clr-white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.navbar--scrolled .navbar__toggle span { background-color: var(--clr-dark); }

.navbar__toggle--active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.navbar__toggle--active span:nth-child(2) { opacity: 0; }
.navbar__toggle--active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Mobile nav open */
.navbar__nav--open {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  background-color: var(--clr-dark);
  padding: var(--space-md);
  overflow-y: auto;
  gap: var(--space-xs);
}

.navbar__nav--open .navbar__list {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0;
}

.navbar__nav--open .navbar__link {
  color: var(--clr-white);
  font-size: var(--fs-base);
  padding: 0.75em 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  width: 100%;
}

.navbar__nav--open .navbar__donate-btn {
  display: block;
  margin-top: var(--space-md);
}

/* ============================================================
   CTA BANNER  (shared across pages)
   ============================================================ */
.cta-banner {
  position: relative;
  padding-block: var(--space-3xl);
  overflow: hidden;
  text-align: center;
}

.cta-banner__bg {
  position: absolute;
  inset: 0;
}

.cta-banner__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: var(--clr-primary);
}

.cta-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(168,36,24,.92) 0%, rgba(200,57,43,.88) 100%);
}

.cta-banner__content {
  position: relative;
  z-index: 1;
}

.cta-banner__title {
  font-family: var(--ff-display);
  font-weight: var(--fw-black);
  font-size: clamp(2rem, 6vw, 4rem);
  color: var(--clr-white);
  margin-bottom: var(--space-sm);
  line-height: 1.1;
}

.cta-banner__text {
  font-size: var(--fs-md);
  font-weight: var(--fw-light);
  color: rgba(255,255,255,.85);
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.cta-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

/* ============================================================
   BADGES  (shared)
   ============================================================ */
.badges {
  padding-block: var(--space-xl);
  background-color: var(--clr-white);
  border-top: 1px solid #eee;
  text-align: center;
}

.badges__label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-mid);
  margin-bottom: var(--space-lg);
}

.badges__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
}

.badge__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.badge__img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  background-color: var(--clr-light);
  border-radius: var(--radius-md);
  padding: 0.5rem;
}

.badge__text {
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--clr-mid);
  text-align: center;
  max-width: 100px;
  line-height: 1.4;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background-color: var(--clr-dark);
  color: rgba(255,255,255,.75);
  padding-top: var(--space-2xl);
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer__brand { max-width: 280px; }

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.footer__logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background-color: rgba(255,255,255,.08);
  border-radius: var(--radius-sm);
}

.footer__logo-text {
  font-family: var(--ff-display);
  font-weight: var(--fw-black);
  font-size: var(--fs-lg);
  color: var(--clr-white);
  letter-spacing: 0.06em;
}

.footer__tagline {
  font-size: var(--fs-sm);
  font-weight: var(--fw-light);
  color: rgba(255,255,255,.55);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.footer__cta { font-size: var(--fs-xs); }

.footer__nav-title {
  font-family: var(--ff-body);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: var(--space-md);
}

.footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer__nav-link {
  font-size: var(--fs-sm);
  font-weight: var(--fw-light);
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}

.footer__nav-link:hover { color: var(--clr-white); }

.footer__address {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: var(--fs-sm);
  font-weight: var(--fw-light);
  color: rgba(255,255,255,.6);
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.footer__contact-link {
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}

.footer__contact-link:hover { color: var(--clr-white); }

.footer__social {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.6);
  transition: background var(--transition), color var(--transition),
              border-color var(--transition);
}

.footer__social-link svg { width: 16px; height: 16px; }

.footer__social-link:hover {
  background-color: var(--clr-primary);
  border-color: var(--clr-primary);
  color: var(--clr-white);
}

.footer__bottom {
  padding-block: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  text-align: center;
}

.footer__legal {
  font-size: var(--fs-xs);
  font-weight: var(--fw-light);
  color: rgba(255,255,255,.45);
  line-height: 1.7;
}

.footer__legal strong { color: rgba(255,255,255,.65); font-weight: var(--fw-medium); }

.footer__copy {
  font-size: var(--fs-xs);
  font-weight: var(--fw-light);
  color: rgba(255,255,255,.3);
}

/* ============================================================
   RESPONSIVE — TABLET  (≥ 640px)
   ============================================================ */
@media (min-width: 640px) {
  .footer__top {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-banner__actions { gap: var(--space-md); }
}

/* ============================================================
   RESPONSIVE — DESKTOP  (≥ 960px)
   ============================================================ */
@media (min-width: 960px) {
  /* Navbar */
  .navbar__toggle { display: none; }
  .navbar__list { display: flex; }
  .navbar__donate-btn { display: inline-block; }

  .navbar__nav {
    position: static;
    flex-direction: row;
    background: none;
    padding: 0;
    overflow: visible;
  }

  /* Footer */
  .footer__top {
    grid-template-columns: 1.6fr 1fr 1.4fr 1.4fr;
    gap: var(--space-xl);
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ============================================================
   RESPONSIVE — LARGE DESKTOP  (≥ 1200px)
   ============================================================ */
@media (min-width: 1200px) {
  .section-title { font-size: var(--fs-3xl); }
}
