/* ==========================================================================
   PRWA - PARIKRAMA RESIDENTS WELFARE ASSOCIATION
   Minimal Minimalist Eco-Green Theme & CSS System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Fresh Eco-Green Color Palette */
  --green-primary: #47c436;
  --green-dark: #379d2a;
  --green-light: #eaf7ec;
  --green-mint: #f4faf5;
  --green-glow: rgba(71, 196, 54, 0.25);

  /* Backgrounds */
  --bg-main: #f8fbf9;
  --bg-white: #ffffff;
  --bg-card: #ffffff;

  /* Text Colors */
  --text-dark: #0f172a;
  --text-body: #334155;
  --text-slate: #64748b;

  /* Borders & Shadows */
  --border-card: 1px solid #e2ece4;
  --border-card-hover: 1px solid #47c436;
  --shadow-card: 0 4px 18px rgba(0, 0, 0, 0.03);
  --shadow-card-hover: 0 14px 32px rgba(71, 196, 54, 0.16);
  --shadow-green-btn: 0 6px 18px rgba(71, 196, 54, 0.3);

  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --transition-fast: all 0.2s ease;
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.25;
}

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

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Minimal Sleek Header / Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(71, 196, 54, 0.15);
  padding: 0.6rem 0;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
}

.navbar .nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-brand img {
  height: 38px;
  width: auto;
  transition: var(--transition-smooth);
}

.nav-brand:hover img {
  transform: scale(1.08) rotate(-3deg);
}

.nav-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--text-slate);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--green-primary);
  background: var(--green-light);
}

.nav-cta {
  background: var(--green-primary);
  color: #ffffff !important;
  font-weight: 700 !important;
  padding: 0.45rem 1.1rem !important;
  border-radius: 20px;
  box-shadow: var(--shadow-green-btn);
}

.nav-cta:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(71, 196, 54, 0.4);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-dark);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 1rem 3.5rem;
  background: radial-gradient(circle at 50% 30%, #eaf7ec 0%, #f8fbf9 70%);
}

.hero-logo-wrapper {
  margin-bottom: 1.5rem;
  display: inline-block;
}

.hero-logo {
  height: 130px;
  width: auto;
  filter: drop-shadow(0 10px 25px rgba(71, 196, 54, 0.3));
  transition: var(--transition-smooth);
}

.hero-logo:hover {
  transform: scale(1.08) rotate(2deg);
}

.hero-title {
  font-size: clamp(2.3rem, 4.5vw, 3.8rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.8rem;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  color: var(--green-primary);
  margin-bottom: 1.2rem;
  font-weight: 700;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #ffffff;
  border: 1px solid #d4ebd6;
  color: var(--text-dark);
  padding: 0.6rem 1.4rem;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(71, 196, 54, 0.1);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Custom Eco Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: var(--green-primary);
  color: #ffffff;
  box-shadow: var(--shadow-green-btn);
}

.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(71, 196, 54, 0.45);
  color: #ffffff;
}

.btn-outline {
  background: #ffffff;
  color: var(--text-dark);
  border: 1.5px solid #cce8cf;
}

.btn-outline:hover {
  border-color: var(--green-primary);
  color: var(--green-primary);
  background: var(--green-light);
  transform: translateY(-3px);
}

/* Section Styling */
.section {
  padding: 5rem 0;
  position: relative;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-slate);
  max-width: 650px;
  margin: 0 auto;
  font-weight: 500;
}

/* Clean White Card System */
.card-clean {
  background: var(--bg-white);
  border: var(--border-card);
  border-radius: 18px;
  padding: 1.8rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

/* Greenery Mouseover Effect */
.card-clean:hover {
  transform: translateY(-6px) scale(1.012);
  border: var(--border-card-hover);
  box-shadow: var(--shadow-card-hover);
}

/* Floating vector leaf accent on mouseover */
.card-clean::after {
  content: '\f06c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 1rem;
  color: var(--green-primary);
  opacity: 0;
  transform: translateY(10px) scale(0.5);
  transition: var(--transition-smooth);
}

.card-clean:hover::after {
  opacity: 0.85;
  transform: translateY(0) scale(1);
}

/* Rounded Green Icon Badges */
.icon-box-green {
  width: 50px;
  height: 50px;
  background: var(--green-primary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  box-shadow: 0 6px 16px rgba(71, 196, 54, 0.28);
  transition: var(--transition-smooth);
}

.card-clean:hover .icon-box-green {
  transform: scale(1.1) rotate(4deg);
  background: var(--green-dark);
}

.icon-box-circle {
  width: 58px;
  height: 58px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-primary);
  font-size: 1.5rem;
  margin: 0 auto 1rem;
  transition: var(--transition-smooth);
}

.card-clean:hover .icon-box-circle {
  transform: scale(1.12) rotate(6deg);
  background: var(--green-primary);
  color: #ffffff;
}

/* Card Lists */
.card-list {
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-slate);
}

.card-list li {
  margin-bottom: 0.45rem;
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}

.card-list li::before {
  content: '•';
  color: var(--green-primary);
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1;
}

/* Grid Systems */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.6rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 1.6rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.grid-5 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.3rem;
}

/* Leadership Team */
.team-card {
  text-align: center;
  padding: 1.6rem 1rem;
}

.team-avatar-ring {
  width: 125px;
  height: 125px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  padding: 3px;
  border: 3px solid #bceec2;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  transition: var(--transition-smooth);
}

.card-clean:hover .team-avatar-ring {
  border-color: var(--green-primary);
  transform: scale(1.06);
  box-shadow: 0 8px 22px rgba(71, 196, 54, 0.3);
}

.team-avatar-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.team-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.team-edu {
  font-size: 0.8rem;
  color: var(--text-slate);
  margin-bottom: 0.4rem;
}

.team-role-green {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--green-primary);
}

/* Apartment Configurations Card Styling */
.config-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.35rem 1.5rem;
  background: var(--bg-white);
  border: 1px solid #e2ece4;
  border-radius: 20px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
  transition: var(--transition-smooth);
}

.config-card:hover {
  transform: translateY(-5px);
  border-color: var(--green-primary);
  box-shadow: 0 12px 28px rgba(71, 196, 54, 0.18);
}

.config-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--green-light);
  color: var(--green-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.config-card:hover .config-icon-box {
  background: var(--green-primary);
  color: #ffffff;
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 16px rgba(71, 196, 54, 0.3);
}

.config-info {
  flex-grow: 1;
}

.config-type {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.25;
}

.config-sub {
  font-size: 0.82rem;
  color: var(--text-slate);
  margin-top: 0.2rem;
  font-weight: 500;
}

.config-stat {
  text-align: right;
  flex-shrink: 0;
}

.config-count {
  font-size: 1.95rem;
  font-weight: 800;
  color: var(--green-primary);
  line-height: 1;
}

.config-unit {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-slate);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.1rem;
}

/* Green Banner */
.green-banner {
  background: var(--green-primary);
  border-radius: 18px;
  color: #ffffff;
  padding: 2.2rem;
  text-align: center;
  box-shadow: 0 10px 25px rgba(71, 196, 54, 0.28);
}

.green-banner h3 {
  color: #ffffff;
  font-size: 1.7rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.banner-stats {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.banner-stat-num {
  font-size: 2.4rem;
  font-weight: 800;
}

.banner-stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.9;
}

/* Media Gallery Cards */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 2.2rem;
}

.filter-btn {
  background: #ffffff;
  border: 1px solid #d4ebd6;
  color: var(--text-slate);
  padding: 0.45rem 1.2rem;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
  transition: var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--green-primary);
  color: #ffffff;
  border-color: var(--green-primary);
  box-shadow: 0 4px 14px rgba(71, 196, 54, 0.3);
}

.gallery-card-clean {
  padding: 0;
  overflow: hidden;
  cursor: pointer;
}

.gallery-img-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-card-clean:hover .gallery-img {
  transform: scale(1.12) rotate(1deg);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.1rem;
  opacity: 0;
  transition: var(--transition-fast);
}

.gallery-card-clean:hover .gallery-overlay {
  opacity: 1;
}

.gallery-badge {
  align-self: flex-start;
  background: var(--green-primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 0.2rem 0.65rem;
  border-radius: 10px;
  margin-bottom: 0.35rem;
}

.gallery-caption {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  text-align: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  border: 3px solid var(--green-primary);
}

.lightbox-title {
  margin-top: 1rem;
  font-size: 1.15rem;
  color: #ffffff;
  font-weight: 700;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: -10px;
  background: var(--green-primary);
  color: #ffffff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Eco-Green Footer Matching User Screenshot */
.footer {
  background: var(--green-primary); /* #47c436 - Vibrant Eco Green */
  color: #ffffff;
  padding: 4rem 0 2.5rem;
  border-top: 4px solid var(--green-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
  align-items: start;
}

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

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo-wrapper {
  margin-bottom: 1.2rem;
}

.footer-logo {
  height: 115px;
  width: auto;
  max-width: 230px;
  filter: brightness(0) invert(1) drop-shadow(0 6px 18px rgba(0, 0, 0, 0.18)); /* High-impact pure white logo emblem */
  transition: var(--transition-smooth);
}

.footer-logo:hover {
  transform: scale(1.06) rotate(-1deg);
}

.footer-desc {
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.55;
  max-width: 340px;
}

.footer-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.2rem;
  position: relative;
  display: inline-block;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 32px;
  height: 3px;
  background: #ffffff;
  border-radius: 2px;
  opacity: 0.8;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  display: inline-block;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(5px);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-contact-item {
  margin-bottom: 0.8rem;
  font-size: 0.92rem;
}

.footer-contact-label {
  display: block;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.15rem;
}

.footer-contact-val {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}

.footer-contact-val a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
}

.footer-contact-val a:hover {
  text-decoration: underline;
}

.footer-location-text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

.footer-map-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  color: var(--green-dark);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.6rem 1.2rem;
  border-radius: 22px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
  transition: var(--transition-smooth);
}

.footer-map-btn:hover {
  background: #f4faf5;
  color: var(--green-primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding-top: 1.8rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.88rem;
}

.footer-reg {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0.4rem;
}

/* Comprehensive Mobile & Tablet Responsive Media Queries */
@media (max-width: 1024px) {
  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    transform: translateY(-150%);
    transition: transform 0.35s ease;
    border-bottom: 1px solid #e2ece4;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .mobile-toggle {
    display: block;
  }

  .grid-5 {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 5.5rem 1rem 2.5rem;
    min-height: auto;
  }

  .hero-logo {
    height: 100px;
  }

  .hero-badge {
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.8rem 1.2rem;
  }

  .grid-4, .grid-3, .grid-2 {
    grid-template-columns: 1fr;
  }

  .config-card {
    padding: 1.1rem 1.2rem;
  }

  .footer {
    padding: 3rem 0 2rem;
  }

  .footer-logo {
    height: 90px;
    max-width: 180px;
  }

  .lightbox-prev {
    left: 5px;
  }

  .lightbox-next {
    right: 5px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .config-card {
    flex-direction: row;
    gap: 0.8rem;
  }

  .config-icon-box {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }

  .config-count {
    font-size: 1.6rem;
  }
}
