:root {
  --maroon: #7B0F22;
  --deep-maroon: #5F0B1A;
  --gold: #C99A16;
  --cream: #FAF7EF;
  --white: #FFFFFF;
  --charcoal: #222222;
  --muted: #6B6B6B;
  --border: #E6D8B8;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Source Sans 3", Arial, sans-serif;
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.7;
}

a {
  color: inherit;
}

/* ACCESSIBILITY */

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  background: var(--maroon);
  color: white;
  padding: 10px 14px;
  z-index: 99999;
  border-radius: 8px;
}

.skip-link:focus {
  left: 10px;
}

/* TOP BAR */

.topbar {
  background: var(--deep-maroon);
  color: white;
  text-align: center;
  padding: .45rem 1rem;
  font-weight: 700;
  font-size: .95rem;
}

/* HEADER */

header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 18px rgba(0,0,0,.08);
}

.nav {
  max-width: 1200px;
  margin: auto;
  padding: .75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .8rem;
  text-decoration: none;
}

.brand img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  border-radius: 8px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title {
  font-family: "Playfair Display", serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--maroon);
}

.brand-tag,
.brand-tagline {
  color: var(--gold);
  font-weight: 800;
  font-size: .9rem;
  letter-spacing: .03em;
}

/* NAVIGATION */

.main-nav {
  display: flex;
  align-items: center;
  gap: .9rem;
  flex-wrap: wrap;
}

.main-nav a {
  text-decoration: none;
  color: var(--charcoal);
  font-weight: 800;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--maroon);
}

.donate-btn {
  background: var(--maroon);
  color: white !important;
  padding: .55rem 1rem;
  border-radius: 999px;
}

.donate-btn:hover {
  background: var(--deep-maroon);
  color: white !important;
}

.menu-toggle {
  display: none;
  background: var(--maroon);
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 1.6rem;
  cursor: pointer;
}

/* HERO */

.hero {
  background:
    radial-gradient(circle at center, rgba(255,255,255,.96), rgba(250,247,239,.92)),
    linear-gradient(135deg, rgba(123,15,34,.12), rgba(201,154,22,.16));
  text-align: center;
  padding: 4.5rem 1.5rem 5rem;
  border-bottom: 6px solid var(--gold);
}

.hero-logo {
  max-width: 430px;
  width: 92%;
  height: auto;
  margin: 0 auto 1.5rem;
  display: block;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.12));
}

.hero h1,
.subhero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.3rem, 6vw, 4.8rem);
  line-height: 1.08;
  margin-bottom: 1rem;
  color: var(--maroon);
}

.hero .tagline {
  font-family: "Playfair Display", serif;
  color: var(--gold);
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  font-style: italic;
  margin-bottom: .5rem;
}

.hero p {
  max-width: 840px;
  margin: auto;
  font-size: 1.2rem;
  color: var(--charcoal);
}

/* SUB HERO */

.subhero {
  background: linear-gradient(rgba(95,11,26,.92), rgba(95,11,26,.92));
  color: white;
  text-align: center;
  padding: 4rem 1.5rem;
}

.subhero h1 {
  color: white;
}

.subhero p {
  max-width: 800px;
  margin: auto;
  font-size: 1.15rem;
}

/* BUTTONS */

.buttons,
.hero-buttons {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: .9rem 1.35rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  border: 2px solid transparent;
  text-align: center;
  transition: all .25s ease;
}

.btn.gold {
  background: var(--gold);
  color: var(--charcoal) !important;
}

.btn.white,
.btn.light {
  background: white;
  color: var(--maroon) !important;
  border-color: var(--gold);
}

.btn.maroon {
  background: var(--maroon);
  color: white !important;
}

.btn.outline {
  background: transparent;
  color: var(--maroon) !important;
  border: 2px solid var(--maroon);
}

.btn:hover {
  transform: translateY(-2px);
}

/* SECTIONS */

section {
  padding: 4rem 1.5rem;
}

.container {
  max-width: 1120px;
  margin: auto;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title h2 {
  font-family: "Playfair Display", serif;
  font-size: 2.35rem;
  color: var(--maroon);
}

.section-title p {
  max-width: 800px;
  margin: .5rem auto 0;
  color: var(--muted);
}

.white-section {
  background: white;
}

/* CARDS */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 1.5rem;
}

.card,
.box {
  background: white;
  padding: 1.6rem;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  border-top: 5px solid var(--gold);
}

.card h3,
.box h3 {
  color: var(--maroon);
  margin-bottom: .45rem;
  font-size: 1.35rem;
}

.card:hover,
.box:hover,
.sponsor-card:hover {
  transform: translateY(-5px);
}

/* HIGHLIGHT */

.highlight {
  background: var(--maroon);
  color: white;
  text-align: center;
}

.highlight h2 {
  font-family: "Playfair Display", serif;
  font-size: 2.3rem;
}

.highlight p {
  max-width: 850px;
  margin: 1rem auto 0;
}

.impact-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.impact {
  background: rgba(255,255,255,.13);
  padding: 1.4rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.25);
  font-weight: 800;
}

/* SPLIT LAYOUT */

.split {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2rem;
  align-items: center;
}

.callout {
  background: var(--white);
  border: 3px solid var(--gold);
  border-radius: 22px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.1);
}

.callout h2,
.callout h3 {
  font-family: "Playfair Display", serif;
  color: var(--maroon);
}

.logo-panel {
  background: white;
  border-radius: 24px;
  padding: 1.4rem;
  border: 3px solid var(--border);
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
}

.logo-panel img {
  width: 100%;
  height: auto;
  display: block;
}

/* FORMS */

.form {
  display: grid;
  gap: .9rem;
}

input,
textarea,
select {
  width: 100%;
  padding: .9rem;
  border: 1px solid #ccc;
  border-radius: 10px;
  font: inherit;
}

textarea {
  min-height: 140px;
}

.newsletter {
  margin: 1.5rem auto 0;
  display: flex;
  justify-content: center;
  gap: .75rem;
  flex-wrap: wrap;
  max-width: 700px;
}

.newsletter input {
  width: min(100%, 360px);
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: 10px;
}

/* MISSION */

.mission-title {
  font-family: "Playfair Display", serif;
  color: var(--maroon);
  font-size: 2.3rem;
}

/* SPONSORS */

.sponsor-card {
  text-align: center;
}

.sponsor-card img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  height: auto;
}

/* BLOG */

.blog-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.blog-post {
  max-width: 900px;
  margin: 0 auto;
}

.blog-post p {
  font-size: 1.05rem;
  line-height: 1.8;
}

.blog-post h2,
.blog-post h3 {
  margin-top: 25px;
  color: var(--maroon);
}

.blog-update {
  width: 100%;
  margin-bottom: 25px;
  border-left: 6px solid var(--maroon);
  overflow: hidden;
}

.blog-category {
  display: inline-block;
  background: rgba(123, 15, 34, 0.08);
  color: var(--maroon);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 800;
  margin-bottom: 15px;
}

.blog-date {
  opacity: 0.7;
  font-weight: 700;
}

.blog-update h2 {
  margin-top: 5px;
}

/* BLOG IMAGES */

.blog-event-image,
.blog-image,
.post-image {
  width: 100%;
  margin: 1rem 0;
  overflow: hidden;
  border-radius: 14px;
}

.blog-event-image img,
.blog-image img,
.post-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 14px;
}

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

/* QVARC BLOG POST IMAGE FIX */

.qvarc-post {
  width: 100%;
  max-width: 850px;
  margin: 0 auto 30px auto;
  overflow: hidden;
}

.qvarc-post .blog-event-image {
  width: 100%;
  max-width: 360px;
  margin: 20px auto;
  overflow: hidden;
}

.qvarc-post .blog-event-image img {
  width: 100%;
  max-width: 360px;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 14px;
}

/* EVENT DETAILS */

.event-date,
.event-location {
  font-weight: 700;
  margin-bottom: 12px;
}

.event-highlights {
  margin: 20px 0;
  padding-left: 20px;
}

.event-highlights li {
  margin-bottom: 8px;
}

/* FAQ */

.faq-list {
  display: grid;
  gap: 22px;
}

/* FLOATING DONATE BUTTON */

.floating-donate {
  position: fixed;
  bottom: 18px;
  right: 18px;
  background: var(--maroon);
  color: white;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 8px 25px rgba(0,0,0,.25);
  z-index: 9999;
  border: 3px solid var(--gold);
  transition: all .25s ease;
  max-width: 180px;
  text-align: center;
}

.floating-donate:hover {
  transform: translateY(-3px);
  background: var(--deep-maroon);
}

/* FOOTER */

footer {
  background: var(--charcoal);
  color: white;
  padding: 2rem 1.5rem;
  text-align: center;
}

.footer-logo {
  width: 120px;
  max-width: 40%;
  display: block;
  margin: 0 auto 1rem;
  border-radius: 10px;
}

footer a {
  color: var(--gold);
}

/* TABLET + MOBILE */

@media (max-width: 900px) {

  .topbar {
    font-size: .85rem;
    padding: 7px 10px;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    flex-wrap: wrap;
    padding: 1rem;
  }

  .brand {
    flex: 1;
  }

  .brand img {
    width: 60px;
    height: 60px;
  }

  .brand-title {
    font-size: 1.25rem;
  }

  .brand-tag,
  .brand-tagline {
    font-size: .82rem;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    background: white;
    border-top: 2px solid var(--border);
    padding-top: 1rem;
    margin-top: 1rem;
  }

  body.menu-open .main-nav {
    display: flex;
  }

  .main-nav a {
    width: 100%;
    text-align: center;
    padding: 14px;
    border-radius: 10px;
    margin: 0;
  }

  .main-nav a:hover,
  .main-nav a.active {
    background: var(--cream);
    color: var(--maroon);
  }

  .donate-btn {
    display: block;
    width: 100%;
  }

  .hero {
    padding: 3rem 1.2rem;
  }

  .hero-logo {
    max-width: 340px;
  }

  .hero h1 {
    font-size: clamp(2rem, 9vw, 3.5rem);
  }

  .hero p {
    font-size: 1.05rem;
  }

  .buttons,
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 320px;
  }

  .split,
  .cards {
    grid-template-columns: 1fr;
  }

  section {
    padding: 3rem 1.2rem;
  }

  .section-title h2,
  .highlight h2,
  .mission-title {
    font-size: 2rem;
  }

  .newsletter {
    display: grid;
    grid-template-columns: 1fr;
  }

  .newsletter .btn,
  .newsletter button {
    width: 100%;
  }

  .floating-donate {
    right: 14px;
    bottom: 14px;
    font-size: .95rem;
  }
}

/* SMALL PHONES */

@media (max-width: 430px) {

  .brand-title {
    font-size: 1.15rem;
  }

  .brand-tag,
  .brand-tagline {
    font-size: .75rem;
  }

  .brand img {
    width: 54px;
    height: 54px;
  }

  .menu-toggle {
    padding: 10px 13px;
    font-size: 1.35rem;
  }

  .hero {
    padding-top: 2.6rem;
  }

  .hero-logo {
    max-width: 280px;
  }

  .floating-donate {
    display: none;
  }
}