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

:root {
  --primary: #0f766e; /* Deep Community Teal */
  --primary-light: #14b8a6; /* Bright Teal */
  --secondary: #16a34a; /* Vibrant Grass Green */
  --dark: #1f2937; /* Soft Black */
  --light: #f9fafb; /* Off-White */
  --font-main: 'Poppins', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  color: var(--dark);
  line-height: 1.6;
  background-color: var(--light);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header & Navigation */
header {
  background-color: white;
  padding: 1rem 5%;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Logo Image Styling */
.logo {
  display: flex;
  align-items: center; /* Keeps the logo perfectly centered vertically */
  text-decoration: none;
}

.logo img {
  max-height: 60px; /* Adjust this number to make your logo bigger or smaller */
  width: auto;      /* Keeps the proportions correct */
  object-fit: contain;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary-light);
}

/* Buttons */
.btn {
  display: inline-block;
  background-color: var(--primary);
  color: white !important;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(15, 118, 110, 0.2);
}

.btn:hover {
  background-color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(22, 163, 74, 0.3);
}

/* Hero Section */
.hero {
  height: 75vh;
  /* Multi-generational community sports image */
  background: linear-gradient(rgba(15, 118, 110, 0.8), rgba(22, 163, 74, 0.7)), url('https://images.unsplash.com/photo-1526676037777-05a232554f77?auto=format&fit=crop&w=1920&q=80') center/cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 0 1.5rem;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  line-height: 1.1;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  max-width: 650px;
  font-weight: 300;
}

/* Mission & Vision (Cards) */
.section {
  padding: 6rem 5%;
}

.section-title {
  text-align: center;
  font-size: 2.8rem;
  color: var(--primary);
  margin-bottom: 4rem;
  font-weight: 800;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
  text-align: center;
  transition: transform 0.3s ease;
  border-top: 5px solid var(--primary-light);
}

.card:hover {
  transform: translateY(-5px);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.card h3 {
  color: var(--dark);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.card p {
  color: #6b7280;
  font-size: 1.05rem;
}

/* Featured Sports Section */
.bg-teal {
  background-color: var(--primary);
  color: white;
}

.bg-teal .section-title {
  color: white;
}

.sports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.sport-item {
  padding: 2rem;
  background: rgba(255,255,255,0.1);
  border-radius: 15px;
  backdrop-filter: blur(5px);
}

.sport-item h4 {
  font-size: 1.3rem;
  margin-top: 1rem;
}

/* Member Portal Styles */
.portal-header {
  background: var(--light);
  padding: 4rem 5% 2rem;
  text-align: center;
}

.portal-header h1 {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.benefits-container {
  padding: 2rem 5% 5rem;
  flex-grow: 1;
}

.iframe-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  overflow: hidden;
  height: 800px;
  border: 2px solid var(--primary-light);
}

.iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Footer */
footer {
  background-color: var(--dark);
  color: white;
  text-align: center;
  padding: 2rem;
  margin-top: auto;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
  }
  
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .grid-2 {
    grid-template-columns: 1fr;
  }
  
  .section {
    padding: 4rem 5%;
  }
}