@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600;1,700&display=swap');

/* ── DESIGN SYSTEM & VARIABLE DEFINITIONS ── */
:root {
  /* Color Palette */
  --primary: #2A9D8F;
  --primary-dark: #1B7A6E;
  --primary-light: rgba(42, 157, 143, 0.15);
  --primary-xlight: #F3FAF9;
  --gold: #E9C46A;
  --gold-light: rgba(233, 196, 106, 0.15);
  --peach-light: #FFF8F3;
  --dark: #264653;
  --medium: #4A5568;
  --light: #A0AEC0;
  --bg: #F8FAFC;
  --white: #FFFFFF;
  --border: #E2E8F0;
  --footer-bg: #1A2F3B;

  /* Border Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --radius-pill: 9999px;

  /* Shadow system */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-btn: 0 4px 14px rgba(42, 157, 143, 0.35);

  /* Fonts */
  --font-head: 'DM Serif Display', 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;

  /* Transition Curve */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --white: #1E293B;
  --bg: #0F172A;
  --dark: #F8FAFC;
  --medium: #CBD5E1;
  --light: #94A3B8;
  --border: #334155;
  --primary-light: rgba(42, 157, 143, 0.35);
  --primary-xlight: #1A3038;
  --peach-light: #2A1D15;
  --gold-light: rgba(233, 196, 106, 0.25);
  --footer-bg: #0B1329;
}

/* ── BASE RESET ── */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--medium);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.25s var(--ease);
}

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

/* ── LAYOUT UTILITIES ── */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Common Section Headers */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px;
}

.section-label {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-head);
  font-size: 38px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.25;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--medium);
  opacity: 0.85;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-btn);
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27, 122, 110, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--primary);
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

.btn-peach {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #F4A261;
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  border: 2px solid #F4A261;
  box-shadow: 0 4px 14px rgba(244, 162, 97, 0.35);
  cursor: pointer;
}

.btn-peach:hover {
  background: #E76F51;
  border-color: #E76F51;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(231, 111, 81, 0.4);
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.whatsapp-btn:hover {
  background: #20BA5A;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(32, 186, 90, 0.45);
}

/* ── STICKY NAVBAR ── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: all 0.35s var(--ease);
  padding: 20px 0;
}

#navbar.scrolled {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Transparent navbar state on dark hero section (before scrolling) */
#navbar.on-dark-hero:not(.scrolled) .nav-links a {
  color: rgba(255, 255, 255, 0.9);
}

#navbar.on-dark-hero:not(.scrolled) .nav-links a.active,
#navbar.on-dark-hero:not(.scrolled) .nav-links a:hover {
  color: var(--gold);
}

#navbar.on-dark-hero:not(.scrolled) .nav-logo-name {
  color: var(--white);
}

#navbar.on-dark-hero:not(.scrolled) .nav-logo-tagline {
  color: rgba(255, 255, 255, 0.7);
}

#navbar.on-dark-hero:not(.scrolled) .theme-toggle-btn {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}

#navbar.on-dark-hero:not(.scrolled) .theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

#navbar.on-dark-hero:not(.scrolled) .hamburger span {
  background-color: var(--white);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo-img img {
  height: 50px;
  width: auto;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
}

.nav-logo-name {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.1;
}

.nav-logo-tagline {
  font-size: 11px;
  color: var(--medium);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  position: relative;
  padding: 6px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-links a.nav-donate {
  background: var(--primary);
  color: var(--white);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-btn);
}

.nav-links a.nav-donate::after {
  display: none;
}

.nav-links a.nav-donate:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.theme-toggle-btn {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--dark);
  font-size: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease);
  outline: none;
}

.theme-toggle-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  transform: scale(1.05);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Hamburger mobile button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  width: 100%;
  height: 2.5px;
  background-color: var(--dark);
  border-radius: var(--radius-pill);
  transition: all 0.35s var(--ease);
}

/* Mobile off-canvas menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: var(--white);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 100px 32px 32px;
  gap: 20px;
  transition: right 0.4s var(--ease);
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu a {
  font-size: 18px;
  font-weight: 600;
  color: var(--dark);
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.mobile-menu a.mobile-donate {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 12px;
  border-radius: var(--radius-pill);
  margin-top: 10px;
}

/* Hamburger transform when menu is open */
.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ── INNER PAGE HERO ── */
.page-hero {
  background: linear-gradient(135deg, var(--footer-bg) 0%, var(--dark) 100%);
  padding: 150px 0 80px;
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(42, 157, 143, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-label {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-hero h1 {
  font-family: var(--font-head);
  font-size: 44px;
  font-weight: 800;
  margin-bottom: 12px;
}

.page-hero-sub {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
  max-width: 600px;
  margin: 0 auto 24px;
}

.breadcrumb {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a:hover {
  color: var(--gold);
}

/* ── MARQUEE STRIP ── */
#marquee-strip {
  background: var(--dark);
  color: var(--white);
  padding: 16px 0;
  overflow: hidden;
  position: relative;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 20px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.marquee-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── IMPACT SECTION ── */
.impact-section {
  position: relative;
  background: linear-gradient(135deg, var(--footer-bg) 0%, var(--dark) 100%);
  padding: 100px 0;
  color: var(--white);
  overflow: hidden;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.impact-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center;
  transition: all 0.3s var(--ease);
}

.impact-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-6px);
  border-color: var(--primary);
}

.impact-emoji {
  font-size: 40px;
  margin-bottom: 16px;
  display: block;
}

.impact-number {
  font-family: var(--font-head);
  font-size: 42px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}

.impact-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

/* ── FAQ ACCORDION ── */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  overflow: hidden;
  transition: all 0.3s var(--ease);
}

.faq-item:hover {
  border-color: rgba(42, 157, 143, 0.3);
}

.faq-item.open {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  cursor: pointer;
  user-select: none;
}

.faq-icon {
  font-size: 20px;
  color: var(--primary);
  font-weight: 700;
  transition: transform 0.3s var(--ease);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 24px 24px;
  font-size: 15px;
  color: var(--medium);
  line-height: 1.7;
}

/* ── FORM STYLING ── */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--dark);
  transition: all 0.25s var(--ease);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(42, 157, 143, 0.1);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.form-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  box-shadow: var(--shadow-btn);
}

.form-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* ── COPY BANK BUTTON ── */
.copy-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-top: 14px;
  transition: all 0.25s var(--ease);
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
}

/* ── FOOTER ── */
#footer {
  background: var(--footer-bg);
  color: var(--white);
  padding: 80px 0 32px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-logo-img img {
  height: 48px;
}

.footer-brand-name {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  margin-bottom: 24px;
}

.footer-social-row {
  display: flex;
  gap: 12px;
}

.footer-social {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s var(--ease);
}

.footer-social:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.footer-col-title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 24px;
  position: relative;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  display: inline-block;
  transition: all 0.25s var(--ease);
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 14px;
}

.footer-contact-item .icon {
  font-size: 16px;
  flex-shrink: 0;
}

.footer-legal-item {
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 10px;
}

.footer-legal-item strong {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.4);
}

.footer-copyright {
  font-size: 13px;
}

.footer-credit {
  font-size: 13px;
}

.footer-credit span {
  color: #E63946;
}

/* ── FLOATING ELEMENTS ── */
#whatsapp-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  z-index: 998;
  transition: all 0.3s var(--ease);
}

#whatsapp-float:hover {
  transform: scale(1.1) rotate(6deg);
}

.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  background: var(--dark);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s var(--ease);
  box-shadow: var(--shadow-md);
}

#whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  right: 66px;
}

#back-to-top {
  position: fixed;
  bottom: 104px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--white);
  color: var(--dark);
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s var(--ease);
}

#back-to-top:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-4px);
}

#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ── ANIMATIONS ── */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.sparkle-particle {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  z-index: 10000;
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
}

/* ── RESPONSIVE BREAKPOINTS ── */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  #navbar {
    padding: 16px 0;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .section-title {
    font-size: 30px;
  }

  .page-hero h1 {
    font-size: 34px;
  }

  .impact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  #whatsapp-float {
    bottom: 20px;
    right: 20px;
  }

  #back-to-top {
    bottom: 84px;
    right: 20px;
  }
}

@media (max-width: 480px) {
  .page-hero h1 {
    font-size: 28px;
  }

  .impact-grid {
    grid-template-columns: 1fr;
  }
}
