/* ── IRRIGATION INFRASTRUCTURE PAGE SPECIFIC STYLES ── */

:root {
  --navy: #003366;
  --navy-deep: #0f2a4a;
  --teal: #1a7a6e;
  --gold: #c8a84b;
  --green: #417505;
  --light: #f5f7f2;
  --white: #ffffff;
  --text: #2c3e35;
  --muted: #6b7c75;
  --blue: #004d71;
  --light-gray: #f8f9fa;
  --impact-bg: #0e3053;
  --green-bright: #4caf50;
}

/* ── HERO ────────────────────────────────────── */
.hero {
  position: relative;
  height: 480px;
  display: flex;
  align-items: center;
  background: url('https://images.unsplash.com/photo-1590682680695-43b964a3ae17?w=1600&q=80') center/cover no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.7) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 80px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-block;
  background: #2e7d32;
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-title {
  font-family: 'Merriweather', serif;
  font-size: 3.5rem;
  font-weight: 950;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 20px;
  max-width: 800px;
}

.hero-desc {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  max-width: 700px;
}

/* ── PORTFOLIO ───────────────────────────────── */
.portfolio-sec {
  padding: 100px 80px;
  background: #fff;
}

.port-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 60px;
}

.port-title-area h2 {
  font-family: 'Merriweather', serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--navy-deep);
  margin-bottom: 24px;
}

.port-desc {
  max-width: 700px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.filter-area {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 10px;
}

.filter-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.filter-btn {
  background: transparent;
  border: none;
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy-deep);
  cursor: pointer;
  transition: all .2s;
}

.filter-btn.active {
  background: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.proj-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: transform .3s, box-shadow .3s;
  border: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
}

.proj-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

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

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}

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

.card-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(255, 255, 255, 0.9);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--navy-deep);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card-body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-body h3 {
  font-family: 'Merriweather', serif;
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--navy-deep);
  margin-bottom: 15px;
  line-height: 1.3;
}

.card-body p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
}

.know-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--navy-deep);
  font-weight: 700;
  font-size: 0.9rem;
  transition: color .2s;
}

.know-more:hover {
  color: var(--blue);
}

.know-more svg {
  transition: transform .2s;
}

.know-more:hover svg {
  transform: translateX(4px);
}

/* ── IMPACT ──────────────────────────────────── */
.impact-stats {
  background: var(--impact-bg);
  padding: 80px 80px;
  text-align: center;
}

.impact-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
}

.stat-box:last-child {
  border-right: none;
}

.stat-number {
  font-family: 'Merriweather', serif;
  font-size: 3.8rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* ── FOOTER IRRIGATION ────────────────────────── */
footer {
  padding: 80px 80px 40px;
  background: #f8fafd;
  border-top: 1px solid #eef2f5;
  color: #333;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 80px;
  margin-bottom: 60px;
}

.fb-logo {
  font-family: 'Merriweather', serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--navy-deep);
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.fb-desc {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 450px;
}

.fb-icons {
  display: flex;
  gap: 20px;
  align-items: center;
}

.fb-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #003152;
  text-decoration: none;
  transition: opacity 0.2s;
}

.fb-icon:hover {
  opacity: 0.7;
}

.fb-icon svg {
  width: 20px;
  height: 20px;
  stroke: #003152;
  fill: none;
  stroke-width: 2;
}

.fc h4 {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--navy-deep);
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.fc a {
  display: block;
  text-decoration: none;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 12px;
  font-weight: 500;
  transition: color 0.2s;
}

.fc a:hover {
  color: var(--navy-deep);
}

.footer-bottom {
  border-top: 1px solid #eef2f5;
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #666;
}

/* ── RESPONSIVE IRRIGATION ────────────────────── */
@media (max-width: 1024px) {
  .hero-content {
    padding: 0 40px;
  }
}

@media (max-width: 1100px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-content,
  .portfolio-sec,
  .impact-stats,
  footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .port-header {
    flex-direction: column;
    gap: 30px;
  }

  .grid-container {
    grid-template-columns: 1fr;
  }

  .impact-row {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .stat-box {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 30px;
  }

  .stat-box:last-child {
    border-bottom: none;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}
