/* ============================================================
   Rising Tide Foundation — style.css
   Template #41
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400;1,9..144,600&family=Karla:wght@300;400;500;600;700&display=swap');

/* --- Custom Properties --- */
:root {
  --rt-deep-indigo: #2d3561;
  --rt-warm-sand: #faf6f0;
  --rt-soft-coral: #e8806a;
  --rt-white: #ffffff;
  --rt-black: #1a1a1a;
  --rt-gray-100: #f5f5f5;
  --rt-gray-200: #e0e0e0;
  --rt-gray-500: #777777;
  --rt-gray-700: #444444;
  --rt-font-heading: 'Fraunces', serif;
  --rt-font-body: 'Karla', sans-serif;
  --rt-radius: 8px;
  --rt-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --rt-shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --rt-transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --rt-nav-height: 72px;
  --rt-demo-height: 40px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--rt-nav-height) + var(--rt-demo-height) + 16px);
}

body {
  font-family: var(--rt-font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--rt-black);
  background: var(--rt-white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--rt-soft-coral);
  text-decoration: none;
  transition: color var(--rt-transition);
}

a:hover {
  color: var(--rt-deep-indigo);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--rt-font-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--rt-deep-indigo);
}

ul {
  list-style: none;
}

/* --- Container --- */
.rt-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   DEMO BANNER
   ============================================================ */
.rt-demo-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--rt-demo-height);
  background: var(--rt-deep-indigo);
  color: var(--rt-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 500;
  z-index: 1100;
  letter-spacing: 0.02em;
}

.rt-demo-banner a {
  color: var(--rt-soft-coral);
  text-decoration: underline;
  margin-left: 4px;
}

.rt-demo-banner a:hover {
  color: var(--rt-white);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.rt-nav {
  position: fixed;
  top: var(--rt-demo-height);
  left: 0;
  width: 100%;
  height: var(--rt-nav-height);
  z-index: 1000;
  background: transparent;
  transition: background var(--rt-transition), box-shadow var(--rt-transition);
}

.rt-nav.scrolled {
  background: var(--rt-white);
  box-shadow: var(--rt-shadow);
}

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

/* Logo */
.rt-logo {
  font-family: var(--rt-font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--rt-white);
  transition: color var(--rt-transition);
}

.rt-logo span {
  color: var(--rt-soft-coral);
}

.scrolled .rt-logo {
  color: var(--rt-deep-indigo);
}

/* Nav Links */
.rt-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.rt-nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--rt-transition);
}

.scrolled .rt-nav-links a {
  color: var(--rt-gray-700);
}

.rt-nav-links a:hover {
  color: var(--rt-soft-coral);
}

/* Nav CTA Button */
.rt-nav-btn {
  background: var(--rt-soft-coral) !important;
  color: var(--rt-white) !important;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 600 !important;
  transition: background var(--rt-transition), transform 0.2s !important;
}

.rt-nav-btn:hover {
  background: #d96d58 !important;
  color: var(--rt-white) !important;
  transform: translateY(-1px);
}

/* Hamburger */
.rt-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.rt-hamburger span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--rt-white);
  border-radius: 2px;
  transition: background var(--rt-transition);
}

.scrolled .rt-hamburger span {
  background: var(--rt-deep-indigo);
}

/* ============================================================
   MOBILE PANEL
   ============================================================ */
.rt-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--rt-transition), visibility var(--rt-transition);
}

.rt-mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

.rt-mobile-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  background: var(--rt-white);
  z-index: 1060;
  transform: translateX(100%);
  transition: transform var(--rt-transition);
  padding: 80px 32px 32px;
  box-shadow: var(--rt-shadow-lg);
}

.rt-mobile-panel.active {
  transform: translateX(0);
}

.rt-mobile-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--rt-deep-indigo);
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rt-mobile-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rt-mobile-links a {
  display: block;
  padding: 12px 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--rt-deep-indigo);
  border-bottom: 1px solid var(--rt-gray-200);
  transition: color var(--rt-transition);
}

.rt-mobile-links a:hover {
  color: var(--rt-soft-coral);
}

.rt-mobile-links .rt-nav-btn {
  display: inline-block;
  text-align: center;
  margin-top: 12px;
  border-bottom: none;
}

/* ============================================================
   BUTTONS (Shared)
   ============================================================ */
.rt-btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--rt-font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  transition: background var(--rt-transition), color var(--rt-transition), transform 0.2s, box-shadow var(--rt-transition);
  cursor: pointer;
  text-align: center;
  border: 2px solid transparent;
}

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

.rt-btn-primary {
  background: var(--rt-soft-coral);
  color: var(--rt-white);
}

.rt-btn-primary:hover {
  background: #d96d58;
  color: var(--rt-white);
  box-shadow: 0 6px 20px rgba(232, 128, 106, 0.35);
}

.rt-btn-secondary {
  background: transparent;
  color: var(--rt-deep-indigo);
  border-color: var(--rt-deep-indigo);
}

.rt-btn-secondary:hover {
  background: var(--rt-deep-indigo);
  color: var(--rt-white);
}

.rt-btn-outline {
  background: transparent;
  color: var(--rt-white);
  border-color: var(--rt-white);
}

.rt-btn-outline:hover {
  background: var(--rt-white);
  color: var(--rt-deep-indigo);
}

.rt-btn-white {
  background: var(--rt-white);
  color: var(--rt-soft-coral);
}

.rt-btn-white:hover {
  background: var(--rt-warm-sand);
  color: var(--rt-deep-indigo);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.rt-btn-outline-white {
  background: transparent;
  color: var(--rt-white);
  border-color: rgba(255, 255, 255, 0.6);
}

.rt-btn-outline-white:hover {
  background: var(--rt-white);
  color: var(--rt-soft-coral);
}

/* Link Arrow */
.rt-link-arrow {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--rt-soft-coral);
  display: inline-block;
  transition: color var(--rt-transition), transform 0.2s;
}

.rt-link-arrow:hover {
  color: var(--rt-deep-indigo);
  transform: translateX(4px);
}

/* --- Label --- */
.rt-label {
  display: inline-block;
  font-family: var(--rt-font-body);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--rt-soft-coral);
  margin-bottom: 12px;
}

.rt-label-light {
  color: rgba(255, 255, 255, 0.8);
}

/* --- Section Header --- */
.rt-section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.rt-section-header h2 {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.rt-section-sub {
  color: var(--rt-gray-500);
  font-size: 1.05rem;
}

/* ============================================================
   SECTION 1: HERO
   ============================================================ */
.rt-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: calc(var(--rt-nav-height) + var(--rt-demo-height));
}

.rt-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.rt-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(45, 53, 97, 0.7) 0%,
    rgba(45, 53, 97, 0.55) 50%,
    rgba(45, 53, 97, 0.8) 100%
  );
  z-index: 1;
}

.rt-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 760px;
  padding: 0 24px;
}

.rt-hero-content h1 {
  font-size: 3.4rem;
  color: var(--rt-white);
  margin-bottom: 20px;
  font-weight: 700;
}

.rt-hero-content h1 em {
  font-style: italic;
  color: var(--rt-soft-coral);
}

.rt-hero-content p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 36px;
  line-height: 1.8;
}

.rt-hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   SECTION 2: MISSION (Split Layout)
   ============================================================ */
.rt-mission {
  padding: 100px 0;
  background: var(--rt-warm-sand);
}

.rt-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.rt-split-reverse {
  direction: rtl;
}

.rt-split-reverse > * {
  direction: ltr;
}

.rt-split-media img {
  width: 100%;
  border-radius: var(--rt-radius);
  box-shadow: var(--rt-shadow-lg);
}

.rt-split-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.rt-split-text p {
  color: var(--rt-gray-700);
  margin-bottom: 16px;
}

.rt-split-text .rt-link-arrow {
  margin-top: 8px;
}

/* ============================================================
   SECTION 3: IMPACT
   ============================================================ */
.rt-impact {
  padding: 100px 0;
  background: var(--rt-deep-indigo);
  color: var(--rt-white);
}

.rt-impact .rt-section-header h2 {
  color: var(--rt-white);
}

.rt-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.rt-stat {
  padding: 32px 16px;
}

.rt-stat-number {
  display: block;
  font-family: var(--rt-font-heading);
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--rt-soft-coral);
  line-height: 1.1;
  margin-bottom: 8px;
}

.rt-stat-suffix {
  font-family: var(--rt-font-heading);
  font-size: 2rem;
  font-weight: 600;
  color: var(--rt-soft-coral);
}

.rt-stat-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================================
   SECTION 4: PROGRAMS (Cards)
   ============================================================ */
.rt-programs {
  padding: 100px 0;
  background: var(--rt-white);
}

.rt-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.rt-card {
  background: var(--rt-white);
  border-radius: var(--rt-radius);
  overflow: hidden;
  box-shadow: var(--rt-shadow);
  transition: transform var(--rt-transition), box-shadow var(--rt-transition);
}

.rt-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--rt-shadow-lg);
}

.rt-card-img {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.rt-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.rt-card:hover .rt-card-img img {
  transform: scale(1.05);
}

.rt-card-body {
  padding: 28px 24px;
}

.rt-card-body h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.rt-card-body p {
  color: var(--rt-gray-700);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

/* ============================================================
   SECTION 5: STORY (Split + Blockquote)
   ============================================================ */
.rt-story {
  padding: 100px 0;
  background: var(--rt-warm-sand);
}

.rt-blockquote {
  border-left: 4px solid var(--rt-soft-coral);
  padding: 20px 0 20px 24px;
  margin: 20px 0;
}

.rt-blockquote p {
  font-family: var(--rt-font-heading);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--rt-deep-indigo);
  line-height: 1.7;
}

.rt-blockquote cite {
  display: block;
  margin-top: 12px;
  font-family: var(--rt-font-body);
  font-size: 0.88rem;
  font-style: normal;
  color: var(--rt-gray-500);
  font-weight: 600;
}

/* ============================================================
   SECTION 6: GET INVOLVED
   ============================================================ */
.rt-involve {
  padding: 100px 0;
  background: var(--rt-white);
}

.rt-involve-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: stretch;
}

.rt-involve-card {
  background: var(--rt-warm-sand);
  border-radius: var(--rt-radius);
  padding: 40px 32px;
  text-align: center;
  transition: transform var(--rt-transition), box-shadow var(--rt-transition);
}

.rt-involve-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--rt-shadow);
}

.rt-involve-card-featured {
  background: var(--rt-deep-indigo);
  color: var(--rt-white);
}

.rt-involve-card-featured h3 {
  color: var(--rt-white);
}

.rt-involve-card-featured p {
  color: rgba(255, 255, 255, 0.8);
}

.rt-involve-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
}

.rt-involve-icon svg {
  width: 100%;
  height: 100%;
}

.rt-involve-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.rt-involve-card p {
  font-size: 0.95rem;
  color: var(--rt-gray-700);
  margin-bottom: 24px;
}

.rt-involve-card .rt-btn {
  width: 100%;
}

/* ============================================================
   SECTION 7: TRANSPARENCY
   ============================================================ */
.rt-transparency {
  padding: 100px 0;
  background: var(--rt-warm-sand);
}

.rt-progress-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.rt-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.rt-progress-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--rt-deep-indigo);
}

.rt-progress-value {
  font-family: var(--rt-font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--rt-soft-coral);
}

.rt-progress-bar {
  width: 100%;
  height: 12px;
  background: var(--rt-gray-200);
  border-radius: 6px;
  overflow: hidden;
}

.rt-progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--rt-soft-coral), #d96d58);
  border-radius: 6px;
  transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.rt-transparency-note {
  text-align: center;
  margin-top: 40px;
  color: var(--rt-gray-500);
  font-size: 0.95rem;
}

.rt-transparency-note a {
  color: var(--rt-soft-coral);
  text-decoration: underline;
}

/* ============================================================
   SECTION 8: CTA
   ============================================================ */
.rt-cta {
  padding: 100px 0;
  background: var(--rt-soft-coral);
  text-align: center;
}

.rt-cta-inner {
  max-width: 720px;
}

.rt-cta h2 {
  font-size: 2.4rem;
  color: var(--rt-white);
  margin-bottom: 16px;
}

.rt-cta p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 36px;
}

.rt-cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   SECTION 9: FOOTER
   ============================================================ */
.rt-footer {
  background: var(--rt-deep-indigo);
  color: rgba(255, 255, 255, 0.7);
  padding: 72px 0 0;
}

.rt-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
}

.rt-logo-footer {
  font-size: 1.4rem;
  display: inline-block;
  margin-bottom: 16px;
}

.rt-footer p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

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

.rt-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  transition: background var(--rt-transition), color var(--rt-transition);
}

.rt-social a:hover {
  background: var(--rt-soft-coral);
  color: var(--rt-white);
}

.rt-footer-col h4 {
  font-family: var(--rt-font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--rt-white);
  margin-bottom: 16px;
}

.rt-footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}

.rt-footer-col li {
  font-size: 0.88rem;
}

.rt-footer-col a {
  color: rgba(255, 255, 255, 0.7);
}

.rt-footer-col a:hover {
  color: var(--rt-soft-coral);
}

.rt-footer-bottom {
  margin-top: 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
}

.rt-footer-bottom p {
  font-size: 0.82rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.45);
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.rt-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

/* ============================================================
   RESPONSIVE — 1024px
   ============================================================ */
@media (max-width: 1024px) {
  .rt-hero-content h1 {
    font-size: 2.8rem;
  }

  .rt-split {
    gap: 40px;
  }

  .rt-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .rt-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rt-cards-grid .rt-card:last-child {
    grid-column: 1 / -1;
    max-width: 480px;
    margin: 0 auto;
  }

  .rt-involve-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rt-involve-grid .rt-involve-card:last-child {
    grid-column: 1 / -1;
    max-width: 480px;
    margin: 0 auto;
  }

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

  .rt-footer-grid .rt-footer-col:first-child {
    grid-column: 1 / -1;
  }
}

/* ============================================================
   RESPONSIVE — 768px
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --rt-nav-height: 64px;
  }

  .rt-nav-links {
    display: none;
  }

  .rt-hamburger {
    display: flex;
  }

  .rt-hero-content h1 {
    font-size: 2.2rem;
  }

  .rt-hero-content p {
    font-size: 1rem;
  }

  .rt-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .rt-split-reverse {
    direction: ltr;
  }

  .rt-section-header h2 {
    font-size: 1.8rem;
  }

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

  .rt-cards-grid .rt-card:last-child {
    max-width: none;
  }

  .rt-involve-grid {
    grid-template-columns: 1fr;
  }

  .rt-involve-grid .rt-involve-card:last-child {
    max-width: none;
  }

  .rt-cta h2 {
    font-size: 1.8rem;
  }

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

  .rt-footer-grid .rt-footer-col:first-child {
    grid-column: auto;
  }

  .rt-mission,
  .rt-impact,
  .rt-programs,
  .rt-story,
  .rt-involve,
  .rt-transparency,
  .rt-cta {
    padding: 72px 0;
  }
}

/* ============================================================
   RESPONSIVE — 480px
   ============================================================ */
@media (max-width: 480px) {
  .rt-hero-content h1 {
    font-size: 1.75rem;
  }

  .rt-hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .rt-hero-actions .rt-btn {
    width: 100%;
    max-width: 280px;
  }

  .rt-stat-number {
    font-size: 2.4rem;
  }

  .rt-split-text h2 {
    font-size: 1.5rem;
  }

  .rt-section-header h2 {
    font-size: 1.5rem;
  }

  .rt-cta h2 {
    font-size: 1.5rem;
  }

  .rt-cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .rt-cta-actions .rt-btn {
    width: 100%;
    max-width: 280px;
  }

  .rt-involve-card {
    padding: 32px 20px;
  }

  .rt-card-body {
    padding: 24px 20px;
  }

  .rt-blockquote {
    padding-left: 16px;
  }

  .rt-mobile-panel {
    width: 100%;
    max-width: 100vw;
  }
}
