
:root {
  --rotary-blue: #17458f;
  --rotary-gold: #f7a81b;
  --deep-blue: #0b1f3a;
  --light-bg: #f5f8fc;
  --text: #243044;
  --muted: #667085;
  --white: #ffffff;
  --green: #1f7a4d;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'DM Sans', Arial, sans-serif; color: var(--text); line-height: 1.6; background: var(--white); }
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, 92%); margin: auto; }

/* ── Header & Nav ── */
header { background: var(--white); border-bottom: 1px solid #e6eaf0; position: sticky; top: 0; z-index: 10; }
.nav { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-text { font-family: 'DM Sans', sans-serif; font-weight: 800; color: var(--rotary-blue); font-size: 1.35rem; letter-spacing: -0.4px; }
.logo-text span { color: var(--rotary-gold); }
.logo-img { height: 40px; width: auto; max-width: 200px; object-fit: contain; }
.nav-links { display: flex; gap: 16px; align-items: center; font-size: 0.85rem; font-weight: 600; }
.nav-links .btn { padding: 8px 14px; font-size: 0.8rem; }
.nav-links a.active { color: var(--rotary-blue); border-bottom: 2px solid var(--rotary-gold); padding-bottom: 2px; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  background: var(--rotary-gold);
  color: var(--deep-blue);
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.2s ease;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); opacity: 0.92; }
.btn-secondary { background: var(--rotary-blue); color: var(--white); }

/* ── Hero Slider ── */
.hero-slider { position: relative; min-height: 85vh; overflow: hidden; padding: 0; }
.hero-slider .slides { position: relative; width: 100%; min-height: 85vh; }
.hero-slider .slide {
  background-size: cover;
  background-position: center 20%;
  color: var(--white);
  padding: 60px 0 80px;
  min-height: 85vh;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  inset: 0;
  transition: opacity 0.8s ease;
}
.hero-slider .slide.active { opacity: 1; visibility: visible; position: relative; }
.slider-dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 3; }
.slider-dots .dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.5); border: none; cursor: pointer; padding: 0; transition: background 0.2s; }
.slider-dots .dot.active { background: var(--rotary-gold); }
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.85);
  font-size: 3rem;
  line-height: 1;
  padding: 10px 16px;
  cursor: pointer;
  z-index: 5;
  transition: color 0.2s, opacity 0.2s;
}
.slider-arrow:hover { color: var(--white); opacity: 0.8; }
.slider-arrow.prev { left: 10px; }
.slider-arrow.next { right: 10px; }
@media (max-width: 768px) {
  .slider-arrow { font-size: 2rem; padding: 6px 10px; }
}
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; }

.eyebrow { color: var(--rotary-gold); font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; font-size: 0.85rem; }
h1 { font-family: 'Playfair Display', serif; font-size: clamp(2.4rem, 5vw, 4.6rem); line-height: 1.05; letter-spacing: -1.5px; margin-bottom: 22px; }
.hero p { font-size: 1.18rem; max-width: 680px; margin-bottom: 30px; color: #e8eef7; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-card {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 28px;
  border-radius: 24px;
  backdrop-filter: blur(8px);
}
.hero-card h3 { color: var(--rotary-gold); margin-bottom: 12px; font-size: 1.4rem; }

/* ── Stats ── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: -70px;
  margin-bottom: 100px;
  position: relative;
  z-index: 2;
}
.stat { background: var(--white); padding: 26px; border-radius: 20px; box-shadow: 0 16px 40px rgba(16,24,40,0.10); border-top: 5px solid var(--rotary-gold); }
.stat strong { display: block; color: var(--rotary-blue); font-size: 1.9rem; line-height: 1.1; margin-bottom: 10px; }

/* ── Sections ── */
section { padding: 82px 0; }
.section-title { text-align: center; max-width: 780px; margin: 0 auto 46px; }
.section-title h2 { color: var(--deep-blue); font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.12; margin-bottom: 16px; }
.section-title p { color: var(--muted); font-size: 1.05rem; }
h2 { font-family: 'Playfair Display', serif; }

/* ── Cards ── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--white); border: 1px solid #e6eaf0; border-radius: 24px; padding: 28px; box-shadow: 0 10px 30px rgba(16,24,40,0.06); transition: 0.3s ease; }
.card:hover { transform: translateY(-6px); }
.card h3 { color: var(--rotary-blue); margin-bottom: 12px; font-size: 1.35rem; }
.card p { color: var(--muted); margin-bottom: 18px; }
.tag { display: inline-block; background: #eef4ff; color: var(--rotary-blue); padding: 6px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; margin-bottom: 14px; }

/* ── Progress Bar ── */
.progress-bar { background: #e6eaf0; border-radius: 999px; height: 8px; overflow: hidden; margin-top: 12px; }
.progress-fill { background: var(--rotary-gold); height: 100%; border-radius: 999px; transition: width 0.4s ease; }

/* ── Light section ── */
.light { background: var(--light-bg); }

/* ── Split layout ── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.split h2 { font-size: clamp(2rem, 4vw, 3rem); color: var(--deep-blue); line-height: 1.12; margin-bottom: 20px; }
.split p { color: var(--muted); margin-bottom: 18px; }
.feature-list { list-style: none; margin-top: 22px; }
.feature-list li { padding: 10px 0; border-bottom: 1px solid #e6eaf0; color: var(--text); font-weight: 600; display: flex; align-items: center; gap: 10px; }
.feature-list li::before { content: '✓'; color: var(--green); font-weight: 900; font-size: 1rem; }
.image-placeholder { background: #e6eaf0; border-radius: 24px; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 0.9rem; }

/* ── Rotary Impact / Org grid ── */
.org-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.org-card { background: var(--white); border: 1px solid #e6eaf0; border-radius: 20px; padding: 24px; display: flex; flex-direction: column; min-height: 280px; box-shadow: 0 10px 30px rgba(16,24,40,0.06); }
.org-card .org-logo { height: 60px; background: var(--light-bg); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--rotary-blue); font-weight: 800; font-size: 1.1rem; margin-bottom: 16px; }
.org-card h3 { color: var(--deep-blue); font-size: 1.1rem; margin-bottom: 8px; }
.org-card .org-hook { font-weight: 800; color: var(--rotary-blue); margin-bottom: 10px; font-size: 0.95rem; }
.org-card p { color: var(--muted); font-size: 0.92rem; margin-bottom: 16px; flex-grow: 1; }
.org-card a.org-link { color: var(--rotary-blue); font-weight: 800; font-size: 0.9rem; }
.org-bridge { max-width: 850px; margin: 34px auto 0; background: #fff7e5; border: 1px solid #f5d78e; padding: 20px; border-radius: 16px; text-align: center; font-weight: 700; color: var(--deep-blue); }
@media (max-width: 900px) { .org-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .org-grid { grid-template-columns: 1fr; } }

/* ── Your Story / Join section ── */
.story-section { background: var(--deep-blue); color: var(--white); padding: 90px 0; }
.story-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; align-items: start; }
.story-grid h2 { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 20px; }
.story-grid p { color: #d6dfeb; }
.story-quote { border-left: 5px solid var(--rotary-gold); background: rgba(255,255,255,0.06); padding: 22px; border-radius: 12px; font-size: 1.3rem; font-weight: 800; line-height: 1.4; margin: 24px 0; }
.invite-card { background: var(--white); color: var(--text); border-radius: 17px; padding: 22px; margin-bottom: 14px; }
.invite-card h3 { color: var(--rotary-blue); margin-bottom: 6px; font-size: 1.05rem; }
.invite-card p { color: var(--muted); margin: 0; font-size: 0.92rem; }
.story-cta { background: var(--rotary-blue); border-radius: 19px; padding: 26px; }
.story-cta h3 { color: var(--white); font-size: 1.4rem; margin-bottom: 10px; }
.story-cta p { color: #dbe6f7; font-size: 0.92rem; margin-bottom: 18px; }
@media (max-width: 900px) { .story-grid { grid-template-columns: 1fr; } }

/* ── Final CTA (What Will Your Impact Be) ── */
.final-cta { text-align: center; }
.final-cta h2 { font-size: clamp(2rem, 4vw, 3rem); color: var(--deep-blue); margin-bottom: 16px; }
.final-cta p { max-width: 760px; margin: 0 auto 28px; color: var(--muted); font-size: 1.05rem; line-height: 1.65; }
.final-cta .cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Featured Projects (2-column, image-led cards) ── */
.featured-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.featured-project { background: var(--white); border: 1px solid #e5e9ef; border-radius: 22px; overflow: hidden; box-shadow: 0 10px 30px rgba(16,24,40,0.06); transition: 0.3s ease; }
.featured-project:hover { transform: translateY(-6px); }
.featured-project .pic { height: 190px; background: linear-gradient(135deg, #dce8f7, #eef4fb); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.featured-project .pic img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.featured-project .pic-placeholder { color: var(--rotary-blue); font-weight: 900; text-align: center; padding: 0 20px; font-size: 0.95rem; }
.featured-project .body { padding: 26px; }
.featured-project .body h3 { font-size: 1.5rem; color: var(--deep-blue); margin: 10px 0 12px; }
.featured-project .body p { color: var(--muted); line-height: 1.6; margin-bottom: 18px; }
@media (max-width: 768px) { .featured-grid { grid-template-columns: 1fr; } }

/* ── Donate band ── */
.donate-band { background: var(--deep-blue); color: var(--white); text-align: center; padding: 80px 0; }
.donate-band h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; color: var(--white); }
.donate-band p { color: #c8d3e6; margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ── Contact form ── */
.contact-form { display: grid; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-weight: 700; font-size: 0.9rem; color: var(--text); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid #dde4ef;
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  color: var(--text);
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--rotary-blue); }
.form-group .error { color: #dc2626; font-size: 0.82rem; }
.alert-success {
  background: #d1fae5;
  color: #065f46;
  border-radius: 12px;
  padding: 14px 18px;
  font-weight: 600;
  margin-bottom: 24px;
}

/* ── Footer ── */
footer { background: var(--deep-blue); color: #c8d3e6; padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer-grid h4 { color: var(--white); font-weight: 800; margin-bottom: 14px; font-size: 1rem; }
.footer-grid p { font-size: 0.92rem; line-height: 1.7; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.92rem; color: #c8d3e6; transition: color 0.2s; }
.footer-links a:hover { color: var(--rotary-gold); }
.copyright { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; font-size: 0.85rem; color: #667085; }

/* ── Hamburger ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--rotary-blue);
  border-radius: 2px;
  transition: 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile nav ── */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid #e6eaf0;
  padding: 8px 0 16px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 13px 24px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  border-bottom: 1px solid #f0f4fa;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav .btn {
  margin: 12px 24px 0;
  text-align: center;
  border-radius: 999px;
  display: block;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .stats { grid-template-columns: 1fr; margin-top: 0; }
  .cards { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

/* ── Nav dropdown ── */
.nav-dropdown { position: relative; padding-bottom: 12px; margin-bottom: -12px; }
.nav-dropdown-toggle { cursor: pointer; display: flex; align-items: center; gap: 4px; }
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0;
  background: var(--white);
  border: 1px solid #e6eaf0;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(16,24,40,0.12);
  min-width: 200px;
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 20;
}
.nav-dropdown-menu a {
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  white-space: nowrap;
}
.nav-dropdown-menu a:hover { background: var(--light-bg); color: var(--rotary-blue); }
.nav-dropdown:hover .nav-dropdown-menu { display: flex; }
