/* ============================================
   RCC Cotton City - Main Stylesheet v2
   Colors: Navy #1B2A4A, Gold #F5A623
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Source+Sans+3:wght@300;400;600;700&display=swap');

:root {
  --navy: #1B2A4A;
  --navy-dark: #0f1a2e;
  --gold: #F5A623;
  --gold-dark: #d4891a;
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --text-dark: #2c3e50;
  --text-muted: #6c757d;
  --border: #e2e8f0;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', sans-serif;
  --shadow: 0 4px 20px rgba(27,42,74,0.12);
  --shadow-hover: 0 8px 32px rgba(27,42,74,0.2);
  --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-dark);
  line-height: 1.7;
  background: var(--white);
}

h1, h2, h3, h4, h5 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }
a { color: var(--gold); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-dark); }
img { max-width: 100%; height: auto; }

/* ============ NAVBAR ============ */
.navbar {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo-group { display: flex; align-items: center; gap: 6px; }
.logo-group img { height: 46px; width: auto; object-fit: contain; }
.logo-divider { width: 1px; height: 40px; background: var(--border); margin: 0 4px; }

.navbar-nav .nav-link {
  color: var(--navy) !important;
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 1.2rem 0.75rem !important;
  position: relative;
  transition: var(--transition);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 3px;
  background: var(--gold);
  transition: var(--transition);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { width: 70%; }
.navbar-nav .nav-link:hover { color: var(--gold) !important; }
.navbar-toggler { border: none; }
.navbar-toggler:focus { box-shadow: none; }

/* ============ HERO / CAROUSEL ============ */
.carousel-item > div { min-height: 520px; display: flex; align-items: center; }
.hero-label {
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.75rem; display: block;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white); line-height: 1.1; margin-bottom: 1.25rem;
}
.hero-title span { color: var(--gold); }
.hero-subtitle { font-size: 1.05rem; color: rgba(255,255,255,0.8); max-width: 540px; margin-bottom: 2rem; }
.hero-stats { display: flex; gap: 2rem; margin-top: 2.5rem; }
.hero-stat .stat-num { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: var(--gold); display: block; }
.hero-stat .stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 0.08em; }

/* ============ SECTION TITLES ============ */
.section-eyebrow {
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); display: block; margin-bottom: 0.5rem;
}
.section-title { font-family: var(--font-heading); font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--navy); margin-bottom: 1rem; }
.section-divider { width: 60px; height: 4px; background: var(--gold); margin: 0 auto 2rem; border-radius: 2px; }
.section-divider.left { margin-left: 0; }

/* ============ BUTTONS ============ */
.btn-rotary {
  background: var(--gold); color: var(--navy);
  font-weight: 700; font-size: 0.85rem; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 0.75rem 2rem;
  border: none; border-radius: 3px; transition: var(--transition);
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-rotary:hover { background: var(--gold-dark); color: var(--navy); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(245,166,35,0.35); }

.btn-rotary-outline {
  background: transparent; color: var(--navy);
  border: 2px solid var(--navy); font-weight: 700;
  font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.7rem 2rem; border-radius: 3px; transition: var(--transition);
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-rotary-outline:hover { background: var(--navy); color: var(--white); }

.btn-rotary-white {
  background: var(--white); color: var(--navy);
  font-weight: 700; font-size: 0.85rem; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 0.75rem 2rem;
  border: none; border-radius: 3px; transition: var(--transition);
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-rotary-white:hover { background: var(--gold); color: var(--navy); }

/* ============ ACTION BAR ============ */
.action-bar { background: var(--navy); padding: 1.2rem 0; }
.action-btn {
  background: var(--gold); color: var(--navy);
  font-weight: 700; font-size: 0.82rem; letter-spacing: 0.05em;
  text-transform: uppercase; padding: 0.7rem 1.4rem;
  border-radius: 3px; display: inline-flex; align-items: center;
  gap: 0.6rem; transition: var(--transition);
}
.action-btn:hover { background: var(--white); color: var(--navy); transform: translateY(-2px); }

/* ============ STATS STRIP ============ */
.stats-strip { background: var(--white); padding: 3rem 0; border-bottom: 1px solid var(--border); }
.stat-item { text-align: center; }
.stat-item .stat-icon { width: 64px; height: 64px; background: rgba(245,166,35,0.12); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.stat-item .stat-icon i { font-size: 1.6rem; color: var(--gold); }
.stat-item .num { font-family: var(--font-heading); font-size: 2.4rem; font-weight: 700; color: var(--navy); line-height: 1; }
.stat-item .label { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.3rem; }

/* ============ PROJECT CARDS ============ */
.projects-section { padding: 5rem 0; background: var(--light-gray); }
.project-card { background: var(--white); border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); height: 100%; border: none; }
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.project-card .project-tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem; }
.project-card .card-title { font-family: var(--font-heading); font-size: 1.2rem; color: var(--navy); margin-bottom: 0.75rem; }
.project-card .card-body { padding: 1.5rem; }

/* ============ PRESIDENT MESSAGE ============ */
.president-section { padding: 5rem 0; background: var(--white); }
.president-card { background: var(--light-gray); border-radius: 8px; padding: 3rem; position: relative; border-left: 5px solid var(--gold); }
.president-card .quote-mark { position: absolute; top: -10px; left: 2rem; font-size: 5rem; color: var(--gold); line-height: 1; font-family: Georgia; opacity: 0.3; }

/* ============ NEWSLETTER ============ */
.newsletter-section { background: var(--navy); padding: 4rem 0; }
.newsletter-section h3 { font-family: var(--font-heading); color: var(--white); font-size: 1.8rem; }
.newsletter-section .subtitle { color: rgba(255,255,255,0.7); }
.newsletter-form .form-control {
  border: 1px solid rgba(255,255,255,0.2); border-radius: 3px 0 0 3px;
  padding: 0.85rem 1.25rem; font-size: 0.95rem;
  background: rgba(255,255,255,0.12); color: var(--white);
}
.newsletter-form .form-control::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form .form-control:focus { background: rgba(255,255,255,0.18); box-shadow: none; border-color: var(--gold); color: var(--white); }
.newsletter-form .btn { border-radius: 0 3px 3px 0; background: var(--gold); border: none; color: var(--navy); font-weight: 700; padding: 0.85rem 1.5rem; }

/* ============ FOOTER ============ */
footer { background: #0d1a2e; color: rgba(255,255,255,0.75); padding: 3.5rem 0 0; }
footer h5 { color: var(--white); font-family: var(--font-heading); font-size: 1rem; margin-bottom: 1.25rem; padding-bottom: 0.6rem; border-bottom: 2px solid var(--gold); display: inline-block; }
footer p, footer address { font-size: 0.88rem; line-height: 1.8; }
footer a { color: rgba(255,255,255,0.7); font-size: 0.88rem; }
footer a:hover { color: var(--gold); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.75rem; }
.footer-contact-item i { color: var(--gold); font-size: 1rem; margin-top: 3px; flex-shrink: 0; }
.social-links { display: flex; gap: 0.75rem; margin-top: 1rem; }
.social-links a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.7) !important; font-size: 1rem; transition: var(--transition); }
.social-links a:hover { background: var(--gold); color: var(--navy) !important; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 2.5rem; padding: 1.2rem 0; font-size: 0.82rem; color: rgba(255,255,255,0.45); }

/* ============ PAGE BANNER ============ */
.page-banner { background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%); padding: 4rem 0; position: relative; overflow: hidden; }
.page-banner::after { content: ''; position: absolute; right: -80px; top: -80px; width: 300px; height: 300px; border: 60px solid rgba(245,166,35,0.12); border-radius: 50%; }
.page-banner h1 { font-family: var(--font-heading); color: var(--white); font-size: clamp(1.8rem, 4vw, 2.8rem); }
.page-banner .breadcrumb-item { color: rgba(255,255,255,0.6); font-size: 0.88rem; }
.page-banner .breadcrumb-item.active { color: var(--gold); }
.page-banner .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.4); }

/* ============ ABOUT PAGE ============ */
.about-content-section { padding: 5rem 0; }
.mission-card { background: var(--navy); color: var(--white); border-radius: 8px; padding: 2.5rem; height: 100%; }
.mission-card h4 { font-family: var(--font-heading); color: var(--gold); margin-bottom: 1rem; font-size: 1.3rem; }
.mission-card p { color: rgba(255,255,255,0.82); font-size: 0.95rem; }
.four-way-test { background: var(--light-gray); border-radius: 8px; padding: 2.5rem; }
.four-way-test .test-item { padding: 1.25rem; background: var(--white); border-radius: 6px; border-left: 4px solid var(--gold); margin-bottom: 1rem; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.awards-section { padding: 4rem 0; background: var(--light-gray); }
.award-card { background: var(--white); border-radius: 6px; padding: 1.5rem; box-shadow: var(--shadow); border-top: 3px solid var(--gold); height: 100%; }
.award-card h5 { font-family: var(--font-heading); color: var(--navy); font-size: 1rem; margin-bottom: 0.5rem; }
.award-card .award-date { font-size: 0.8rem; color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }

/* ============ MEMBERS PAGE ============ */
.members-section { padding: 5rem 0; }
.member-table-wrapper { background: var(--white); border-radius: 8px; box-shadow: var(--shadow); overflow: hidden; }
.table th { background: var(--navy); color: var(--white); font-family: var(--font-body); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; border: none; padding: 1rem 1.25rem; }
.table td { border-color: var(--border); padding: 0.85rem 1.25rem; font-size: 0.9rem; vertical-align: middle; color: var(--text-dark); }
.table tbody tr:hover { background: rgba(245,166,35,0.05); }
.badge-role { background: rgba(27,42,74,0.1); color: var(--navy); font-size: 0.75rem; padding: 0.25rem 0.75rem; border-radius: 20px; font-weight: 600; }
.badge-role.president { background: var(--gold); color: var(--navy); }
.badge-role.secretary { background: var(--navy); color: var(--white); }

/* ============ PROJECTS PAGE ============ */
.project-detail-section { padding: 5rem 0; }
.project-highlight { background: var(--white); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; margin-bottom: 3rem; }
.project-highlight .project-header { background: var(--navy); padding: 1.5rem 2rem; display: flex; align-items: center; gap: 1rem; }
.project-highlight .project-header h3 { color: var(--white); font-family: var(--font-heading); margin: 0; }
.project-highlight .project-body { padding: 2.5rem; }
.impact-stat { text-align: center; padding: 1.5rem; background: var(--light-gray); border-radius: 6px; }
.impact-stat .impact-num { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 700; color: var(--gold); }
.impact-stat .impact-label { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.25rem; }
.initiative-list { list-style: none; padding: 0; }
.initiative-list li { padding: 0.6rem 0 0.6rem 1.75rem; position: relative; font-size: 0.95rem; border-bottom: 1px solid var(--border); }
.initiative-list li:last-child { border-bottom: none; }
.initiative-list li::before { content: '●'; position: absolute; left: 0; color: var(--gold); font-size: 0.7rem; top: 0.9rem; }

/* ============ CONTACT PAGE ============ */
.contact-section { padding: 5rem 0; }
.contact-card { background: var(--white); border-radius: 8px; padding: 2.5rem; box-shadow: var(--shadow); }
.contact-card h4 { font-family: var(--font-heading); color: var(--navy); margin-bottom: 0.3rem; }
.contact-card .role-badge { font-size: 0.78rem; color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1.25rem; display: block; }
.form-label { font-weight: 600; font-size: 0.88rem; color: var(--navy); margin-bottom: 0.4rem; }
.form-control, .form-select { border: 1.5px solid var(--border); border-radius: 4px; padding: 0.75rem 1rem; font-size: 0.92rem; transition: var(--transition); }
.form-control:focus, .form-select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245,166,35,0.15); }

/* ============ GALLERY ============ */
.gallery-section { padding: 5rem 0; }
.gallery-item { overflow: hidden; border-radius: 4px; box-shadow: var(--shadow); cursor: pointer; }
.gallery-item img { width: 100%; height: 220px; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.06); }

/* ============ DONATE ============ */
.donate-section { background: linear-gradient(135deg, var(--navy) 0%, #2a3f6a 100%); padding: 4rem 0; color: var(--white); }
.donate-section h2 { font-family: var(--font-heading); color: var(--white); }
.bank-details { background: rgba(255,255,255,0.08); border-radius: 8px; padding: 1.5rem; border: 1px solid rgba(255,255,255,0.15); }
.bank-details h5 { color: var(--gold); font-family: var(--font-heading); }
.bank-details p { font-size: 0.88rem; color: rgba(255,255,255,0.8); margin: 0.2rem 0; }

/* ============ WHATSAPP FLOAT ============ */
.whatsapp-float {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 56px; height: 56px; background: #25D366;
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 999; transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.5); }
.whatsapp-float i { font-size: 1.8rem; color: white; }
.whatsapp-float .wa-tooltip { position: absolute; right: 68px; background: #333; color: white; padding: 0.4rem 0.9rem; border-radius: 4px; font-size: 0.8rem; white-space: nowrap; opacity: 0; transition: 0.2s; pointer-events: none; }
.whatsapp-float:hover .wa-tooltip { opacity: 1; }

/* ============ RESPONSIVE ============ */
@media (max-width: 991px) {
  .hero-stats { flex-wrap: wrap; gap: 1rem; }
  .president-card { padding: 2rem; }
  .navbar-nav .nav-link::after { display: none; }
}
@media (max-width: 767px) {
  .page-banner { padding: 2.5rem 0; }
  .action-bar .d-flex { flex-wrap: wrap; gap: 0.5rem; justify-content: center !important; }
  .action-btn { font-size: 0.78rem; padding: 0.6rem 1rem; }
  .stat-item .num { font-size: 1.8rem; }
  .president-card { padding: 1.5rem; }
}

/* ============ UTILITY ============ */
.text-gold { color: var(--gold) !important; }
.text-navy { color: var(--navy) !important; }
.bg-navy { background: var(--navy) !important; }
.bg-gold { background: var(--gold) !important; }
.bg-light-gray { background: var(--light-gray) !important; }
section { overflow: hidden; }
