/* Modern Custom CSS for Rotary Bangalore JP Nagar (join.rotaryjpnagar.org) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  --rotary-blue: #00246B;
  --rotary-blue-dark: #001643;
  --rotary-gold: #F7A81B;
  --rotary-gold-hover: #e09410;
  --rotary-navy: #0B162C;
  --rotary-gray-bg: #f8fafc;
  --rotary-border: #e2e8f0;
  --rotary-text: #1e293b;
  --rotary-muted: #64748b;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  font-family: var(--font-body);
  color: var(--rotary-text);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 72px; /* space for mobile dock on phones */
}

@media (min-width: 992px) {
  body {
    padding-bottom: 0;
  }
}

h1, h2, h3, h4, h5, h6, .site-header, .navbar-brand {
  font-family: var(--font-heading);
}

/* Header & Navbar Styling */
.site-header {
  background-color: var(--rotary-blue-dark);
  color: #e2e8f0;
  font-size: 13px;
  padding: 8px 0;
}

.site-header a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-header a:hover {
  color: var(--rotary-gold);
}

.navbar {
  background: #ffffff !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
  padding: 6px 0 !important;
}

.navbar-brand {
  padding: 2px 0 !important;
  margin-right: 1.5rem;
}

.navbar-brand img,
.navbar-brand .logo,
img.logo {
  height: 70px !important;
  max-height: 75px !important;
  width: auto !important;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.navbar-brand img:hover,
img.logo:hover {
  transform: scale(1.02);
}

@media (min-width: 992px) {
  .navbar-brand img,
  .navbar-brand .logo,
  img.logo {
    height: 90px !important;
    max-height: 96px !important;
  }
}

.navbar .nav-link {
  font-weight: 600;
  color: #334155 !important;
  padding: 8px 16px !important;
  border-radius: 6px;
  transition: all 0.2s ease;
}

/* Modern Hero Section */
.hero-ry-banner {
  background: linear-gradient(135deg, #00246B 0%, #0B162C 100%);
  color: #ffffff;
  padding: 80px 0 60px 0;
  position: relative;
  overflow: hidden;
}

.hero-ry-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(247, 168, 27, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-ry-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--rotary-gold);
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}

.hero-ry-title {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  color: #ffffff;
}

@media (max-width: 768px) {
  .hero-ry-title {
    font-size: 2rem;
  }
}

.hero-ry-subtext {
  font-size: 1.15rem;
  color: #cbd5e1;
  max-width: 680px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.btn-rotary-gold {
  background-color: var(--rotary-gold);
  color: #000000;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 8px;
  border: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(247, 168, 27, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-rotary-gold:hover {
  background-color: var(--rotary-gold-hover);
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(247, 168, 27, 0.45);
}

.btn-rotary-outline {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-rotary-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  color: #ffffff;
}

/* Modern Membership Form Section */
.membership-form-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: 0 10px 40px rgba(0, 36, 107, 0.08);
  border: 1px solid var(--rotary-border);
}

@media (max-width: 768px) {
  .membership-form-card {
    padding: 24px 18px;
  }
}

.form-label-modern {
  font-weight: 600;
  font-size: 14px;
  color: #334155;
  margin-bottom: 6px;
  display: block;
}

.form-control-modern, .form-select-modern {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  background-color: #ffffff;
  transition: all 0.2s ease;
  color: #0f172a;
}

.form-control-modern:focus, .form-select-modern:focus {
  outline: none;
  border-color: var(--rotary-blue);
  box-shadow: 0 0 0 4px rgba(0, 36, 107, 0.1);
}

.membership-benefit-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #e2e8f0;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.membership-benefit-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.benefit-icon-box {
  width: 44px;
  height: 44px;
  background-color: #e0e7ff;
  color: var(--rotary-blue);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}

/* Floating Scroll to Top Button */
.scroll-to-top-btn {
  position: fixed;
  bottom: 84px;
  right: 24px;
  width: 48px;
  height: 48px;
  background-color: var(--rotary-blue);
  color: #ffffff;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 16px rgba(0, 36, 107, 0.3);
  cursor: pointer;
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.25s ease;
}

.scroll-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top-btn:hover {
  background-color: var(--rotary-gold);
  color: #000000;
  transform: translateY(-3px);
}

/* Floating WhatsApp Button */
.whatsapp-float-btn {
  position: fixed;
  bottom: 84px;
  left: 24px;
  background-color: #25D366;
  color: #ffffff;
  border-radius: 50px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  z-index: 1040;
  text-decoration: none;
  transition: all 0.25s ease;
}

.whatsapp-float-btn:hover {
  background-color: #1eb857;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
}

@media (max-width: 576px) {
  .whatsapp-float-btn span {
    display: none;
  }
  .whatsapp-float-btn {
    width: 48px;
    height: 48px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
    font-size: 24px;
  }
}

/* Mobile Bottom Navigation Dock (PWA / Web App Feel) */
.mobile-bottom-dock {
  display: none;
}

@media (max-width: 991px) {
  .mobile-bottom-dock {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    z-index: 1050;
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    flex: 1;
    height: 100%;
    transition: color 0.15s ease;
  }

  .dock-item i {
    font-size: 19px;
    margin-bottom: 2px;
  }

  .dock-item:hover,
  .dock-item.active {
    color: var(--rotary-blue);
    font-weight: 600;
  }

  .dock-item.dock-cta {
    color: #000000;
  }

  .dock-item.dock-cta .dock-cta-badge {
    background-color: var(--rotary-gold);
    color: #000000;
    padding: 2px 10px;
    border-radius: 999px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
  }

  .scroll-to-top-btn {
    bottom: 76px;
    right: 16px;
    width: 44px;
    height: 44px;
  }

  .whatsapp-float-btn {
    bottom: 76px;
    left: 16px;
  }
}

/* Modern Project Cards */
.custom-block-wrap {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid var(--rotary-border);
}

.custom-block-wrap:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 36, 107, 0.12);
}

/* Footer Styling */
.site-footer {
  background-color: var(--rotary-blue-dark);
  color: #cbd5e1;
  padding-top: 50px;
}

.site-footer a {
  color: #94a3b8;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--rotary-gold);
}

.site-footer .site-footer-title {
  color: #ffffff;
  font-weight: 700;
}
