/* ===================================
   Glenridge Community - Modern Design
   =================================== */

/* ---------- CSS Variables ---------- */
:root {
  --primary: #2d6a4f;
  --primary-dark: #1b4332;
  --primary-light: #52b788;
  --accent: #d4a373;
  --accent-light: #e9c46a;
  --bg: #fafaf8;
  --bg-alt: #f0efeb;
  --text: #2b2b2b;
  --text-light: #6b7280;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
  --max-width: 1200px;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---------- 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);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul { list-style: none; }

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

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

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p {
  color: var(--text-light);
  font-size: 1.05rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border: none;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

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

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

.btn-outline:hover {
  background: var(--white);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

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

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

/* ---------- Section Helpers ---------- */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.1rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary-light);
  margin-bottom: 8px;
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all var(--transition);
  padding: 16px 0;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  transition: color var(--transition);
}

.navbar.scrolled .nav-brand {
  color: var(--primary-dark);
}

.nav-brand img {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: invert(1);
  transition: filter var(--transition);
}

.navbar.scrolled .nav-brand img {
  filter: invert(0);
}

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

.nav-links a {
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  transition: all var(--transition);
}

.navbar.scrolled .nav-links a {
  color: var(--text);
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

.navbar.scrolled .nav-links a:hover,
.navbar.scrolled .nav-links a.active {
  background: var(--primary);
  color: var(--white);
}

.nav-cta {
  background: var(--accent) !important;
  color: var(--white) !important;
}

.nav-cta:hover {
  background: #c0956a !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--white);
  border-radius: 4px;
  transition: all var(--transition);
}

.navbar.scrolled .hamburger span {
  background: var(--text);
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27,67,50,0.6) 0%, rgba(45,106,79,0.7) 100%);
}

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

.hero-content h1 {
  color: var(--white);
  margin-bottom: 16px;
  font-weight: 700;
}

.hero-content .tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  font-weight: 300;
  letter-spacing: 1px;
}

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

.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}

.hero-scroll-indicator svg {
  width: 28px;
  height: 28px;
  stroke: rgba(255,255,255,0.6);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* Decorative shapes on hero */
.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  background: var(--white);
}

.hero-shape-1 {
  width: 400px;
  height: 400px;
  top: -100px;
  right: -100px;
}

.hero-shape-2 {
  width: 250px;
  height: 250px;
  bottom: -50px;
  left: -80px;
}

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding: 160px 0 80px;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  overflow: hidden;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}

.page-hero p {
  color: rgba(255,255,255,0.8);
  font-size: 1.15rem;
  position: relative;
  z-index: 2;
}

.page-hero .hero-shape {
  opacity: 0.06;
}

/* ---------- Features / Cards ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid rgba(0,0,0,0.04);
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.6rem;
}

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

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

/* ---------- About Preview Section ---------- */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-preview-img {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-preview-img::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 3px solid var(--primary-light);
  opacity: 0;
  transition: opacity var(--transition);
}

.about-preview-img:hover::after {
  opacity: 1;
}

.about-preview-img img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
}

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

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

.about-text .btn {
  margin-top: 12px;
}

/* ---------- Neighborhood Sections ---------- */
.neighborhoods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.neighborhood-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: auto;
  min-height: 250px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  background: var(--bg-alt);
  text-decoration: none;
  color: inherit;
  display: block;
}

.neighborhood-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.neighborhood-card:hover img {
  transform: scale(1.08);
}

.neighborhood-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(27,67,50,0.85) 100%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

.neighborhood-card-overlay h3 {
  color: var(--white);
  font-size: 1.3rem;
}

/* ---------- Events / Gallery ---------- */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.event-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

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

.event-card-img {
  height: 220px;
  overflow: hidden;
}

.event-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

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

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

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

/* Photo Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 240px;
  cursor: pointer;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(27,67,50,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

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

.gallery-item-overlay svg {
  width: 36px;
  height: 36px;
  stroke: var(--white);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

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

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

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  background: var(--bg);
}

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

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

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-card {
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: all var(--transition);
  border-left: 4px solid var(--primary-light);
}

.contact-info-card:hover {
  box-shadow: var(--shadow-md);
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
}

.contact-info-card h4 {
  margin-bottom: 4px;
  color: var(--primary-dark);
}

.contact-info-card p {
  font-size: 0.9rem;
  margin-bottom: 2px;
}

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

.contact-info-card a:hover {
  text-decoration: underline;
}

/* ---------- Members Section ---------- */
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.member-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 4px solid var(--primary-light);
}

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

.member-card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.4rem;
}

.member-card h3 {
  font-size: 1.2rem;
}

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

.member-card .btn {
  align-self: flex-start;
  padding: 10px 24px;
  font-size: 0.85rem;
}

/* Member login banner */
.member-login-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  color: var(--white);
  margin-bottom: 48px;
}

.member-login-banner h2 {
  color: var(--white);
  margin-bottom: 12px;
}

.member-login-banner p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 24px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

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

/* ---------- Auth Forms ---------- */
.auth-form-card {
  max-width: 520px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
}

.auth-form-card h2 {
  text-align: center;
  margin-bottom: 8px;
}

.auth-form-card > p {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 28px;
  font-size: 0.9rem;
}

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

.auth-form-card .form-group {
  margin-bottom: 18px;
}

.auth-form-card label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: var(--text);
}

.auth-form-card label .required {
  color: #e74c3c;
}

.auth-form-card input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.auth-form-card input:focus {
  outline: none;
  border-color: var(--primary);
}

.auth-error {
  color: #e74c3c;
  font-size: 0.85rem;
  margin-bottom: 12px;
  min-height: 0;
}

.auth-error:not(:empty) {
  padding: 10px 14px;
  background: #fdf0ef;
  border-radius: var(--radius-sm);
  border: 1px solid #f5c6cb;
}

.auth-success {
  color: #155724;
  font-size: 0.9rem;
  padding: 14px 18px;
  background: #d4edda;
  border-radius: var(--radius-sm);
  border: 1px solid #c3e6cb;
  text-align: center;
  margin-bottom: 16px;
}

.auth-submit-btn {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  margin-top: 4px;
}

.auth-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.auth-toggle {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--text-light);
}

.auth-toggle a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.auth-toggle a:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .auth-form-card {
    padding: 28px 20px;
  }
  .auth-form-card .form-row {
    grid-template-columns: 1fr;
  }
}

/* ---------- Social Auth Buttons ---------- */
.social-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 16px;
  color: var(--text-light);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.social-auth-divider::before,
.social-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e0e0e0;
}

.social-auth-buttons {
  display: flex;
  gap: 12px;
}

.btn-social {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.btn-social:hover {
  opacity: 0.9;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  text-decoration: none;
}

.btn-google {
  background: #fff;
  color: #3c4043;
  border-color: #dadce0;
}
.btn-google:hover {
  background: #f8f9fa;
  border-color: #bbb;
}

.btn-facebook {
  background: #1877f2;
  color: #fff;
  border-color: #1877f2;
}
.btn-facebook:hover {
  background: #166fe5;
  border-color: #166fe5;
}

@media (max-width: 400px) {
  .social-auth-buttons {
    flex-direction: column;
  }
}

/* ---------- Community Events Calendar ---------- */
.calendar-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 40px;
}

.cal-panel {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 24px;
}

.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.cal-month-label {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.cal-nav-btn {
  background: none;
  border: 2px solid #e0e0e0;
  border-radius: var(--radius-sm);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  transition: all var(--transition);
}
.cal-nav-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #f0f7f4;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 16px;
}

.cal-dow {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  padding: 6px 0;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: none;
  border-radius: var(--radius-sm);
  background: none;
  cursor: pointer;
  font-size: 0.88rem;
  font-family: var(--font-body);
  color: var(--text);
  position: relative;
  transition: background 0.15s ease;
}
.cal-day:hover {
  background: #f0f7f4;
}
.cal-day-blank {
  cursor: default;
  pointer-events: none;
}
.cal-today .cal-day-num {
  background: var(--primary-light);
  color: #fff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.cal-selected {
  background: #e8f5ee !important;
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}
.cal-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  display: block;
}

.cal-add-btn {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
  padding: 12px;
}

/* Right panel */
.cal-events-header {
  border-bottom: 2px solid var(--bg-alt);
  padding-bottom: 12px;
  margin-bottom: 16px;
}
.cal-events-header h3 {
  font-size: 1rem;
  color: var(--primary-dark);
}

.cal-events-list {
  min-height: 60px;
  margin-bottom: 24px;
}

.cal-upcoming h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin-bottom: 10px;
}
.cal-upcoming-list {
  max-height: 320px;
  overflow-y: auto;
}

.cal-empty {
  color: var(--text-light);
  font-size: 0.9rem;
  font-style: italic;
}

.cal-event-item {
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 10px;
}

.cal-ev-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.cal-ev-title {
  font-size: 0.95rem;
  color: var(--primary-dark);
  font-weight: 600;
}

.cal-ev-delete {
  background: none;
  border: none;
  cursor: pointer;
  color: #c0392b;
  padding: 2px;
  opacity: 0.5;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.cal-ev-delete:hover { opacity: 1; }

.cal-ev-date {
  display: block;
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 2px;
}

.cal-ev-meta {
  font-size: 0.82rem;
  color: var(--text-light);
  display: block;
}

.cal-ev-loc {
  font-size: 0.82rem;
  color: var(--text-light);
  display: block;
  margin-top: 2px;
}

.cal-ev-desc {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 6px;
}

.cal-ev-by {
  font-size: 0.75rem;
  color: #aaa;
  display: block;
  margin-top: 6px;
  font-style: italic;
}

/* Add Event Form */
.cal-add-form {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 32px;
  margin-top: 0;
  border-top: 4px solid var(--primary);
}
.cal-add-form h3 {
  margin-bottom: 4px;
}
.cal-add-form > p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.cal-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.cal-form-full {
  grid-column: 1 / -1;
}
.cal-form-grid .form-group {
  margin-bottom: 0;
}
.cal-form-grid label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: var(--text);
}
.cal-form-grid .required { color: #e74c3c; }

/* Pool-party radio row */
.ev-pool-party-radios {
  display: flex;
  gap: 24px;
  margin-top: 6px;
}
.ev-pool-party-radios label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: normal;
  cursor: pointer;
}

/* AquaTech pool-party notice */
.aquatech-notice {
  display: none;
  background: #fff8e1;
  border: 1px solid #f9a825;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 16px;
}
.aquatech-notice strong {
  color: #e65100;
}
.aquatech-notice p {
  margin: 8px 0 4px;
}
.aquatech-notice p + p {
  margin: 4px 0;
}
.aquatech-notice-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 16px;
  background: #e65100;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}
.aquatech-notice-btn:hover {
  background: #bf360c;
  color: #fff;
}
.aquatech-ack {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f9a825;
}
.aquatech-ack-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: normal;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.45;
}
.aquatech-ack-label input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 2px;
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.cal-form-grid input,
.cal-form-grid textarea {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid #e0e0e0;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: border-color 0.2s ease;
  box-sizing: border-box;
  background: var(--white);
}
.cal-form-grid input:focus,
.cal-form-grid textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.cal-form-grid textarea {
  resize: vertical;
}

.cal-form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .calendar-layout {
    grid-template-columns: 1fr;
  }
  .cal-form-grid {
    grid-template-columns: 1fr;
  }
  .cal-form-full {
    grid-column: 1;
  }
}

/* ---------- Amenities ---------- */
.amenities-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.amenity-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.amenity-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.amenity-item svg {
  min-width: 24px;
  stroke: var(--primary);
}

.amenity-item span {
  font-weight: 500;
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

.footer-brand p {
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.footer-socials a:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

.footer-socials a svg {
  width: 18px;
  height: 18px;
  stroke: var(--white);
}

.footer h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

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

.footer-links a:hover {
  color: var(--white);
}

.footer-contact-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 14px;
  font-size: 0.9rem;
}

.footer-contact-item svg {
  min-width: 18px;
  margin-top: 3px;
  stroke: var(--primary-light);
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.25);
}

.lightbox-close svg {
  width: 24px;
  height: 24px;
  stroke: var(--white);
}

/* ---------- Animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .about-preview {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

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

@media (max-width: 768px) {
  .section {
    padding: 56px 0;
  }

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

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

  .nav-links a {
    color: var(--text) !important;
    width: 100%;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: var(--primary) !important;
    color: var(--white) !important;
  }

  .hamburger {
    display: flex;
    z-index: 1001;
  }

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

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

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

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

  .page-hero {
    padding: 130px 0 60px;
  }

  .member-login-banner {
    padding: 32px 24px;
  }

  .contact-form {
    padding: 28px;
  }
}

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

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

  .btn {
    padding: 12px 28px;
  }
}
