/* Custom CSS for Grandezza Foundation */
:root {
  --gold: #ffd700;
  --gold-dark: #b8860b;
  --gold-darker: #8b4513;
  /* Much darker gold/brown for better contrast */
  --gold-light: rgba(255, 215, 0, 0.1);
  --green: #4caf50;
  --green-light: rgba(76, 175, 80, 0.1);
  --black: #000000;
  --dark-gray: #333333;
}

/* Typography */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
}

/* Custom Colors */
.text-gold {
  color: var(--gold) !important;
}

.text-gold-dark {
  color: var(--gold-darker) !important;
}

.text-green {
  color: var(--green) !important;
}

.bg-gold {
  background-color: var(--gold) !important;
}

.bg-gold-light {
  background-color: var(--gold-light) !important;
}

.bg-green {
  background-color: var(--green) !important;
}

.bg-green-light {
  background-color: var(--green-light) !important;
}

/* Added specific styling for impact stats to ensure proper contrast */
.bg-light .text-gold {
  color: var(--gold-darker) !important;
}

.bg-light .display-4.text-gold {
  color: var(--gold-darker) !important;
}

/* Override gold text color on light backgrounds for better contrast */
/* section.bg-light .text-gold,
section.bg-light .display-4.text-gold,
.bg-light .text-gold,
.bg-light .display-4.text-gold,
.py-5.bg-light .text-gold,
.py-5.bg-light .display-4.text-gold {
  color: var(--gold-darker) !important;
} */

/* Ensure impact stats have proper contrast */
.py-5.bg-light .display-4.fw-bold.text-gold {
  color: var(--gold-darker) !important;
}

/* Added specific styling for Call to Action section to ensure proper contrast */
/* .bg-green {
  background-color: var(--green) !important;
  color: white !important;
} */

/* .bg-green h2,
.bg-green p,
.bg-green .display-4 {
  color: white !important;
} */

/* Custom Buttons */
.btn-gold {
  background-color: var(--gold);
  border-color: var(--gold);
  color: var(--black);
  font-weight: 600;
}

.btn-gold:hover {
  background-color: var(--gold-dark);
  border-color: var(--gold-dark);
  color: white;
}

.btn-outline-gold {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-outline-gold:hover,
.btn-outline-gold:checked,
.btn-outline-gold.active {
  background-color: var(--gold);
  border-color: var(--gold);
  color: var(--black);
}

.btn-outline-green {
  border-color: var(--green);
  color: var(--green);
}

.btn-outline-green:hover,
.btn-outline-green:checked,
.btn-outline-green.active {
  background-color: var(--green);
  border-color: var(--green);
  color: white;
}

/* Navigation */
.navbar-brand {
  font-size: 1.5rem;
}

.navbar-nav .nav-link {
  font-weight: 500;
  margin: 0 0.5rem;
}

/* Added navbar scrolled effect for better contrast */
.navbar-scrolled {
  background-color: rgba(0, 0, 0, 0.95) !important;
  backdrop-filter: blur(10px);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #000;
  z-index: 0;
}

.hero-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.carousel-inner {
  width: 100%;
  height: 100%;
  position: relative;
}

.carousel-inner {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateX(100%);
  transition: all 1s ease-in-out;
  z-index: 0;
}

.carousel-item.active {
  opacity: 1;
  transform: translateX(0);
  z-index: 1;
}

.carousel-item.prev {
  transform: translateX(-100%);
  opacity: 0;
}

.carousel-item.next {
  transform: translateX(100%);
  opacity: 0;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

/* Ensure content stays above the carousel */
.hero-section>.container {
  position: relative;
  z-index: 2;
}

/* Page Header */
.page-header {
  padding: 120px 0 80px;
  position: relative;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../assets/water.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.page-header>.container {
  position: relative;
  z-index: 1;
}

/* Icon Circles */
.icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-circle i {
  font-size: 2rem;
}

.icon-circle span {
  font-size: 1.2rem;
}

/* Cards */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

/* Progress Bars */
.progress-bar.bg-gold {
  background-color: var(--gold) !important;
}

.progress-bar.bg-green {
  background-color: var(--green) !important;
}

/* Form Styling */
.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.25);
}

.form-check-input:checked {
  background-color: var(--gold);
  border-color: var(--gold);
}

/* Payment Method Details */
.payment-method-details {
  transition: all 0.3s ease;
}

/* Added specific text color overrides to prevent inheritance issues */
.text-white {
  color: white !important;
}

.text-dark {
  color: var(--black) !important;
}

/* Ensure proper contrast for all sections */
/* section.bg-green * {
  color: white !important;
} */

section.bg-green .btn-gold {
  color: var(--black) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    padding-top: 100px;
    min-height: 80vh;
  }

  .display-2 {
    font-size: 2.5rem;
  }

  .display-3 {
    font-size: 2rem;
  }

  .icon-circle {
    width: 60px;
    height: 60px;
  }

  .icon-circle i {
    font-size: 1.5rem;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom Spacing */
.py-6 {
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
}

/* Link Hover Effects */
footer a {
  transition: color 0.3s ease;
  display: inline-block;
}

footer a:hover {
  color: gold !important;
  text-decoration: none;
  transform: translateY(-2px);
}

/* Button Animations */
.btn {
  transition: all 0.3s ease;
}

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

/* Team grid image alignment */
.team-grid .card-img-top {
  height: 570px;
  /* unify image container height */
  width: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}