/* ============================================
   POTOMAC PICKLEBALL CLUB — Design System
   Premium Sports Club Edition
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Colors */
  --primary: #1B5E20;
  --primary-light: #2E7D32;
  --primary-dark: #0D3B12;
  --accent: #FFD600;
  --accent-hover: #FFC107;
  --dark: #1A1A2E;
  --dark-lighter: #232340;
  --light: #F5F5F5;
  --white: #FFFFFF;
  --text: #333333;
  --text-light: #666666;
  --border: #E0E0E0;

  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;
  --card-radius: 12px;
  --btn-radius: 8px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.16);

  /* Transitions */
  --transition: 0.3s ease;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  color: var(--primary-dark);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

/* --- Section Title --- */
.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

.section-title p {
  max-width: 650px;
  margin: 20px auto 0;
  font-size: 1.05rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  border-radius: var(--btn-radius);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  gap: 8px;
}

.btn-primary {
  background: var(--accent);
  color: var(--primary-dark);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--primary-dark);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--white);
  transition: all var(--transition);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-sm);
}

/* Transparent header for hero pages */
.header.hero-transparent {
  background: transparent;
  box-shadow: none;
}

.header.hero-transparent .nav-links a {
  color: var(--white);
}

.header.hero-transparent .nav-links a:hover {
  color: var(--accent);
}

.header.hero-transparent .nav-logo {
  color: var(--white);
}

.header.hero-transparent .nav-toggle span {
  background: var(--white);
}

/* When scrolled, override transparent back to white */
.header.hero-transparent.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-sm);
}

.header.hero-transparent.scrolled .nav-links a {
  color: var(--text);
}

.header.hero-transparent.scrolled .nav-links a:hover {
  color: var(--primary);
}

.header.hero-transparent.scrolled .nav-logo {
  color: var(--primary);
}

.header.hero-transparent.scrolled .nav-toggle span {
  background: var(--text);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--primary);
}

.nav-logo img {
  height: 44px;
  width: auto;
}

/* Logo image support */
.logo-img {
  height: 48px;
  width: auto;
  border-radius: 6px;
}

.nav-logo .logo-text span {
  color: var(--accent-hover);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  position: relative;
  padding: 4px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--accent);
  transition: width var(--transition);
  border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

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

.nav-cta .btn {
  padding: 10px 24px;
  font-size: 0.85rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.45;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 59, 18, 0.45) 0%, rgba(27, 94, 32, 0.65) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 24px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 214, 0, 0.15);
  border: 1px solid rgba(255, 214, 0, 0.4);
  color: var(--accent);
  padding: 8px 20px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: clamp(2.5rem, 6vw, 4rem);
}

.hero h1 .highlight {
  color: var(--accent);
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 600px;
  margin: 0 auto 36px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-stat {
  text-align: center;
}

.hero-stat .stat-number {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2rem;
  color: var(--accent);
}

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

/* ============================================
   PARALLAX SECTION — Full-bleed background
   ============================================ */
.parallax-section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  padding: var(--section-padding);
}

.parallax-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(13, 59, 18, 0.6);
  z-index: 0;
}

.parallax-section > .container {
  position: relative;
  z-index: 1;
}

.parallax-section h2,
.parallax-section h3 {
  color: var(--white);
}

.parallax-section p {
  color: rgba(255, 255, 255, 0.85);
}

/* ============================================
   SECTIONS — General
   ============================================ */
section {
  padding: var(--section-padding);
}

.section-light {
  background: var(--light);
}

.section-dark {
  background: var(--dark);
  color: var(--white);
}

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-dark p {
  color: rgba(255, 255, 255, 0.75);
}

.section-green {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
}

.section-green h2,
.section-green h3 {
  color: var(--white);
}

.section-green p {
  color: rgba(255, 255, 255, 0.85);
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--white);
  border-radius: var(--card-radius);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border-top: 4px solid transparent;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--primary);
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.8rem;
  background: rgba(27, 94, 32, 0.08);
  color: var(--primary);
}

.card h3 {
  margin-bottom: 12px;
}

.card p {
  font-size: 0.95rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
  transition: gap var(--transition);
}

.card-link:hover {
  gap: 12px;
  color: var(--primary-light);
}

/* Grid layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ============================================
   STAGGER ANIMATIONS
   ============================================ */
.stagger-1 {
  transition-delay: 0.1s;
}

.stagger-2 {
  transition-delay: 0.2s;
}

.stagger-3 {
  transition-delay: 0.3s;
}

.stagger-4 {
  transition-delay: 0.4s;
}

/* ============================================
   ABOUT SECTION (Home)
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-content h2 {
  margin-bottom: 20px;
}

.about-content p {
  margin-bottom: 16px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.about-feature .feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(27, 94, 32, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  text-align: center;
  padding: 80px 0;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 550px;
  margin: 0 auto 32px;
  font-size: 1.1rem;
}

/* ============================================
   PROGRAMS PAGE
   ============================================ */
.page-hero {
  padding: 160px 0 80px;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 16px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.program-card {
  background: var(--white);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border-top: 4px solid transparent;
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--primary);
}

.program-card-image {
  height: 240px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.4);
}

.program-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.program-card-body {
  padding: 28px;
}

.program-card-body h3 {
  margin-bottom: 12px;
}

.program-card-body p {
  font-size: 0.95rem;
  margin-bottom: 16px;
}

/* ============================================
   MEMBERSHIP PAGE
   ============================================ */
.membership-hero {
  padding: 160px 0 100px;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.membership-price {
  display: inline-block;
  background: var(--accent);
  color: var(--primary-dark);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  padding: 12px 36px;
  border-radius: 50px;
  margin-top: 24px;
}

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

.benefit-card {
  text-align: center;
  padding: 40px 24px;
}

.benefit-card .benefit-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(27, 94, 32, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
}

.benefit-card h3 {
  margin-bottom: 10px;
}

/* ============================================
   LOCATIONS PAGE
   ============================================ */
.location-card {
  background: var(--white);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  text-align: center;
  padding: 0;
}

.location-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.location-card-body {
  padding: 24px;
}

.location-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.location-flag {
  font-size: 3rem;
  margin-bottom: 16px;
}

.location-card h3 {
  margin-bottom: 8px;
}

.location-card p {
  font-size: 0.9rem;
}

.hq-section {
  background: var(--white);
  border-radius: var(--card-radius);
  padding: 48px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}

.hq-map {
  aspect-ratio: 16/10;
  background: var(--light);
  border-radius: var(--card-radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 1rem;
}

/* ============================================
   COMMUNITY / GALLERY
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Masonry-style variation */
.gallery-grid.gallery-masonry {
  grid-template-rows: auto;
}

.gallery-grid.gallery-masonry .gallery-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-grid.gallery-masonry .gallery-item:nth-child(4) {
  grid-column: span 2;
}

.gallery-grid.gallery-masonry .gallery-item:nth-child(7) {
  grid-row: span 2;
}

.gallery-item {
  border-radius: var(--card-radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.gallery-grid.gallery-masonry .gallery-item {
  aspect-ratio: auto;
  min-height: 200px;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item .gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.7) 100%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h4 {
  color: var(--white);
  font-size: 0.95rem;
}

.gallery-overlay p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  margin-bottom: 0;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 2rem;
  color: var(--white);
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}

/* ============================================
   CERTIFICATIONS PAGE
   ============================================ */
.cert-card {
  background: var(--white);
  border-radius: var(--card-radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary);
}

.cert-card h3 {
  margin-bottom: 12px;
}

/* Certification document image display */
.cert-doc-image {
  width: 100%;
  border-radius: 8px;
  margin-top: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.cert-doc-image:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
  cursor: pointer;
}

.committee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.committee-member {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-sm);
}

.committee-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(27, 94, 32, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.committee-info h4 {
  font-family: var(--font-heading);
  margin-bottom: 2px;
}

.committee-info p {
  font-size: 0.85rem;
  margin-bottom: 0;
  color: var(--primary);
  font-weight: 600;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--btn-radius);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group .error-msg {
  color: #d32f2f;
  font-size: 0.8rem;
  margin-top: 4px;
  display: none;
}

.form-group.error input,
.form-group.error textarea {
  border-color: #d32f2f;
}

.form-group.error .error-msg {
  display: block;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-info-card {
  padding: 32px;
  background: var(--light);
  border-radius: var(--card-radius);
  margin-bottom: 24px;
}

.contact-info-card h3 {
  margin-bottom: 20px;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.contact-info-item .info-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--white);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.contact-info-item p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.contact-info-item a {
  color: var(--primary);
  font-weight: 600;
}

.contact-info-item a:hover {
  color: var(--primary-light);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.footer-brand h3 span {
  color: var(--accent);
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-col h4 {
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  padding: 4px 0;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--accent);
  color: var(--primary-dark);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================
   MOBILE STICKY CTA BAR
   ============================================ */
.mobile-cta-bar {
  display: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .about-grid,
  .hq-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

/* Mobile */
@media (max-width: 768px) {
  :root {
    --section-padding: 70px 0;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    box-shadow: var(--shadow-lg);
    transition: right var(--transition);
    padding: 40px;
  }

  .nav-links.open {
    right: 0;
  }

  /* Override transparent nav link colors in mobile menu */
  .header.hero-transparent .nav-links a {
    color: var(--text);
  }

  .nav-links a {
    font-size: 1.1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  /* Disable parallax on mobile for performance */
  .hero-bg,
  .parallax-section {
    background-attachment: scroll;
  }

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

  /* Reset masonry on mobile */
  .gallery-grid.gallery-masonry .gallery-item:nth-child(1),
  .gallery-grid.gallery-masonry .gallery-item:nth-child(4) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .gallery-grid.gallery-masonry .gallery-item:nth-child(7) {
    grid-row: span 1;
  }

  .gallery-grid.gallery-masonry .gallery-item {
    aspect-ratio: 4/3;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

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

  .section-title {
    margin-bottom: 40px;
  }

  .page-hero,
  .membership-hero {
    padding: 120px 0 60px;
  }

  .hq-section {
    padding: 28px;
  }

  /* Mobile sticky CTA bar */
  .mobile-cta-bar {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 12px 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
    z-index: 999;
    transform: translateY(100%);
    transition: transform 0.4s ease;
  }

  .mobile-cta-bar.visible {
    transform: translateY(0);
  }

  .mobile-cta-bar .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 14px 24px;
  }

  /* Add bottom padding to body so footer content isn't hidden */
  body.has-mobile-cta {
    padding-bottom: 70px;
  }
}

/* Mobile nav overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Skip to content (accessibility) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--primary);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--btn-radius);
  font-weight: 600;
  z-index: 9999;
}

.skip-link:focus {
  top: 16px;
}

/* ============================================
   CHAT WIDGET
   ============================================ */
.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1500;
  font-family: var(--font-body);
}

.chat-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(27, 94, 32, 0.4);
  transition: all var(--transition);
}

.chat-toggle:hover {
  background: var(--primary-light);
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(27, 94, 32, 0.5);
}

.chat-toggle .chat-close-icon {
  display: none;
}

.chat-widget.open .chat-toggle .chat-open-icon {
  display: none;
}

.chat-widget.open .chat-toggle .chat-close-icon {
  display: block;
}

.chat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid var(--white);
}

.chat-widget.open .chat-badge {
  display: none;
}

.chat-window {
  position: absolute;
  bottom: 76px;
  right: 0;
  width: 370px;
  max-height: 500px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.chat-widget.open .chat-window {
  display: flex;
  animation: chatSlideUp 0.3s ease;
}

@keyframes chatSlideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-header {
  background: var(--primary);
  color: var(--white);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-header-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.chat-header-info h4 {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.chat-header-info p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.75rem;
  margin-bottom: 0;
}

.chat-header-info .status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #4CAF50;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 320px;
  min-height: 200px;
}

.chat-message {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.chat-message.bot {
  background: var(--light);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-message.user {
  background: var(--primary);
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-message .msg-time {
  display: block;
  font-size: 0.7rem;
  margin-top: 4px;
  opacity: 0.6;
}

.chat-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 20px 16px;
}

.chat-quick-btn {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 20px;
  padding: 6px 14px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.chat-quick-btn:hover {
  background: var(--primary);
  color: var(--white);
}

.chat-input-area {
  display: flex;
  padding: 12px 16px;
  gap: 8px;
  border-top: 1px solid var(--border);
  background: var(--white);
}

.chat-input-area input {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: 24px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
}

.chat-input-area input:focus {
  border-color: var(--primary);
}

.chat-input-area button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  flex-shrink: 0;
}

.chat-input-area button:hover {
  background: var(--primary-light);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .chat-window {
    width: calc(100vw - 32px);
    right: -8px;
    max-height: 420px;
  }

  .chat-widget {
    bottom: 90px;
  }
}
