:root {
 margin: 0;
 padding: 0;
 box-sizing: border-box;
 --primary-color: #004a8f; /* BHS Blue */
 --accent-color: #ffc425; /* BHS Gold */
 --bg-dark: #fdfbf7; /* Warm Off-White Background */
 --bg-medium: #f7f4ef; /* Warm Light Grey for elements */
 --bg-light: #efede6; /* Warmer Lighter Grey */
 --bg-white: #ffffff; /* White */
 --text-light: #2d2a26; /* Warm Dark Grey for main text */
 --text-dark: #5e5b52; /* Warm Medium Grey for secondary text */
 --text-on-primary: #ffffff; /* White text on Blue */
 --text-on-accent: #2d2a26; /* Warm Dark text on Gold */
 --transition-fast: 0.3s ease-in-out;
 --shadow-lg: 0 8px 24px rgba(45, 42, 38, 0.08); /* Warm tinted shadow */
 --border-radius: 8px;
 --header-height: 70px; /* Define header height */
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Poppins', sans-serif; /* Use Poppins */
  background: var(--bg-dark); /* Use white background */
  color: var(--text-light); /* Use dark text */
  line-height: 1.7; /* Slightly increased line height */
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; border-radius: var(--border-radius); }
header {
  background: var(--bg-dark); /* White header background */
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* Lighter shadow */
  height: var(--header-height);
  display: flex; /* Use flex for vertical alignment */
  align-items: center; /* Center items vertically */
}
.nav-container { 
  max-width: 1200px; 
  width: 100%; /* Ensure container takes full width */
  margin: auto; 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  padding: 0 2rem; /* Adjust padding */
}
.logo {
  font-family: 'DM Serif Text', serif; /* Apply DM Serif Text font */
  font-weight: 400; /* Regular weight */
  font-size: 1.75rem;
  color: var(--primary-color); /* Blue logo */
  display: flex; 
  align-items: center;
}
.logo img {
  max-height: 75px; /* Adjust as needed */
  width: auto; /* Maintain aspect ratio */
  border-radius: 0; /* Remove default image border-radius if applied */
}
.logo-text {
  margin-left: 1rem; /* Add spacing between image and text */
  font-size: 1.5rem; /* Adjust font size */
  color: var(--primary-color); /* Blue text */
  font-family: 'Poppins', sans-serif; /* Match body font or choose another */
  font-weight: 600; /* Adjust weight as needed */
  font-size: large;
}
nav ul { 
  display: flex; 
  flex-wrap: nowrap; 
  gap: 1.5rem; 
  list-style: none; 
  margin: 0; /* Reset margin */
}
nav a {
  position: relative;
  font-weight: 600;
  color: var(--text-light); /* Dark text for nav links */
  padding: 0.5rem;
  transition: color var(--transition-fast);
}
nav a.active-link { color: var(--primary-color); }
nav a:hover { color: var(--primary-color); } /* Blue hover */
nav a::after { content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: var(--primary-color); /* Blue underline */ transition: width var(--transition-fast); }
nav a:hover::after, nav a.active-link::after { width: 100%; }

/* Hero Section */
.hero {
  position: relative; /* Needed for overlay */
  height: 60vh; /* Adjust height as needed */
  background-image: url('https://s3.us-east-1.amazonaws.com/www.aught2pickleball.com/A2P_Outside_Render.jpeg'); /* Replace with your image URL */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column; /* <--- ADD THIS LINE */
  color: var(--bg-white); /* White text for contrast */
  padding: 0 2rem; /* Add some padding */
}
/* Sub-page Hero */
.page-hero {
  height: 40vh;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://s3.us-east-1.amazonaws.com/www.aught2pickleball.com/A2P_Outside_Render.jpeg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--bg-white);
  padding: 0 2rem;
  margin-bottom: 3rem;
}
.page-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
  color: white;
}

/* Optional: Add a dark overlay for better text readability */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4); /* Adjust darkness (0.4 = 40% black) */
  z-index: 1; /* Place overlay below text */
}

.hero h1 {
  position: relative; /* Ensure text is above overlay */
  z-index: 2;
  font-size: 3.5rem; /* Adjust font size */
  font-weight: 700;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.6); /* Add text shadow */
  margin: 0; /* Remove default margin */
}

/* Menu Toggle Button */
.menu-toggle {
  display: none; /* Hidden by default */
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--primary-color);
  cursor: pointer;
}

/* Style sections with light grey background */
.reception, .floor-plan, .gallery, .events, .membership, .calendar, .shop, .testimonials, .locations, .franchise, .app, .welcome, .offerings, .community {
  background: var(--bg-medium); /* Light grey background */
  padding: 2.5rem; /* Increased padding */
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  margin-bottom: 3rem; /* Increased margin */
}
.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
}

.reception img { max-height: 400px; object-fit: cover; box-shadow: 0 8px 24px rgba(0,0,0,0.1); /* Lighter shadow */ }
.reception p, .events p, .app p { margin-top: 1rem; color: var(--text-light); /* Dark text */ }

.floor-plan iframe { width: 100%; height: 650px; border: none; border-radius: var(--border-radius); }

/* Light theme for tables */
.membership-table, .calendar-table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; background-color: var(--bg-white); /* White background */ border: 1px solid #dee2e6; /* Light border */ }
.membership-table th, .membership-table td, .calendar-table th, .calendar-table td { border: 1px solid #dee2e6; /* Light border */ padding: 0.85rem; text-align: center; color: var(--text-light); /* Dark text */ }
.membership-table th, .calendar-table th { background: var(--primary-color); /* Blue header */ color: var(--text-on-primary); /* White text */ font-weight: 600; }
.membership-table tbody tr:nth-child(odd), .calendar-table tbody tr:nth-child(odd) td {
  background-color: var(--bg-medium); /* Light grey row */
}
.membership-table tbody tr:hover, .calendar-table tbody tr:hover td {
  background-color: #e9ecef; /* Slightly darker grey on hover */
}

.cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 2rem; }
.card {
  background: var(--bg-white); /* White card background */
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border: 1px solid #dee2e6; /* Light border */
}
.card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(0,0,0,0.4); }
.card h3 { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 1.25rem; color: var(--primary-color); /* Blue heading */ margin-bottom: 0.75rem; }
.card p { color: var(--text-light); /* Dark text */ margin-bottom: 1rem; }

/* General Button Style */
button, .card button, .cta-button
{
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  background: var(--primary-color); /* Blue background */
  color: var(--text-on-primary); /* White text */
  border: none;
  padding: 0.85rem 1.8rem; /* Adjusted padding */
  border-radius: 50px; /* Pill shape */
  cursor: pointer;
  box-shadow: none; /* Remove default shadow if any */
  transition: background var(--transition-fast), transform var(--transition-fast);
  text-transform: uppercase; /* Uppercase text */
  letter-spacing: 0.5px;
  display: inline-block;
}
button:hover, .card button:hover, .cta-button:hover {
  background: #003a75; /* Darker blue on hover */
  transform: translateY(-2px);
  color: var(--text-on-primary); /* Keep text white */
}

.events-list { list-style: none; padding-left: 0; color: var(--text-light); /* Dark text */ }
.events-list li { margin-bottom: 0.5rem; padding-left: 1.2em; position: relative; }
.events-list li::before { content: '\2713'; /* Checkmark */ color: var(--accent-color); /* Gold checkmark */ position: absolute; left: 0; }

.calendar-table td {
  background: var(--bg-white); /* White background for cells */
  position: relative;
  height: 110px; /* Slightly taller */
}
.calendar-table td .date { position: absolute; top: 8px; left: 8px; font-weight: 600; color: var(--text-dark); /* Medium grey date */ }
.calendar-table td .event { margin-top: 0; font-size: 0.75rem; } /* Adjust event position/size */

/* Responsive Google Calendar */
.google-calendar-container {
  position: relative;
  padding-bottom: 75%; /* Aspect ratio (600 / 800 = 0.75) */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  margin-top: 1.5rem; /* Add space above */
}
.google-calendar-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.gallery { grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); } /* Adjust gallery columns */

.shop-list { list-style: none; display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; padding-left: 0; }
.shop-list li {
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  flex: 0 1 140px;
  text-align: center;
  background: var(--bg-white); /* White background */
  border: 1px solid #dee2e6; /* Light border */
  color: var(--text-light); /* Dark text */
}

footer {
  background: var(--bg-medium); /* Light grey footer */
  color: var(--text-light); /* Dark text */
  padding: 3rem 1rem; /* Increased padding */
  text-align: center;
  margin-top: 4rem;
  border-top: 3px solid var(--primary-color); /* Blue top border */
}
footer p:first-of-type { /* Target the copyright line */
  font-family: 'DM Serif Text', serif; /* Apply DM Serif Text font */
  font-size: 1.1rem; /* Slightly larger */
  margin-bottom: 1rem; /* Add some space below */
}
.social-icons a { margin: 0 0.75rem; color: var(--primary-color); /* Blue icons */ font-size: 1.75rem; transition: color var(--transition-fast); }
.social-icons a:hover { color: var(--accent-color); } /* Gold hover */
.contact-info { margin-top: 1.5rem; color: var(--text-light); /* Dark text */ }

/* Responsive Design */
@media (max-width: 992px) { /* Tablet and below */
  .container { padding: 0 1.5rem; }
  .hero h1 { font-size: 2.8rem; }
  .cards { grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); }
  .floor-plan iframe { height: 550px; }
}

@media (max-width: 768px) { /* Mobile */
 .nav-container {
  padding: 0 1rem; /* Adjust padding for mobile */
 }
 .logo { 
   font-size: 1.5rem; /* Slightly smaller logo on mobile */
   margin-bottom: 0; /* Remove margin */
 }
 .menu-toggle {
   display: block; /* Show hamburger */
 }
 nav ul {
  display: none; /* Hide nav list by default */
  flex-direction: column;
  position: absolute;
  top: var(--header-height); /* Position below header */
  left: 0;
  right: 0;
  background: var(--bg-dark);
  padding: 1rem 0; /* Add vertical padding */
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 99; /* Ensure it's below header but above content */
  gap: 0.5rem; /* Reduce gap */
  align-items: center; /* Center items */
  width: 100%;
 }
 nav ul.active { /* Class to show the menu */
   display: flex; 
 }
 nav a { 
   padding: 0.75rem 1rem; /* Increase tap target size */
   width: 100%; /* Make links take full width */
   text-align: center;
 }
 nav a::after { display: none; } /* Hide underline on mobile */

 .hero {
  height: 50vh; /* Reduce hero height */
  padding: 0 1rem;
 }
 .hero h1 {
  font-size: 2.2rem; /* Further reduce font size */
 }
 .container { 
  margin: 2.5rem auto; /* Reduce top/bottom margin */
  padding: 0 1rem; 
 }
 .section-title { font-size: 1.8rem; } /* Reduce section title size */

 /* Adjust section padding */
 .reception, .floor-plan, .gallery, .events, .membership, .calendar, .shop, .testimonials, .locations, .franchise, .app, .welcome, .offerings, .community {
  padding: 1.5rem; 
 }

 .cards { 
  grid-template-columns: 1fr; /* Stack cards */
  gap: 1.5rem;
 }
 .card { padding: 1.5rem; } /* Adjust card padding */

 /* Make tables scrollable horizontally */
 .membership-table, .calendar-table {
  display: block;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
 }
 .membership-table th, .membership-table td, 
 .calendar-table th, .calendar-table td {
  padding: 0.6rem; /* Adjust padding */
  white-space: normal; /* Allow text wrapping */
 }
 .calendar-table td { 
  min-width: 75px; /* Ensure minimum width for calendar cells - Reduced */
  height: auto; /* Allow height to adjust */
  vertical-align: top; /* Align content top */
  padding-top: 2rem; /* Add padding for date */
 }
 .calendar-table td .date { top: 4px; left: 4px; font-size: 0.8rem; } /* Adjust date position/size */
 .calendar-table td .event { margin-top: 0; font-size: 0.75rem; } /* Adjust event position/size */

 .gallery { grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); } /* Adjust gallery columns */
 .gallery img { height: 120px; } /* Adjust image height */

 .shop-list { gap: 1rem; } /* Adjust shop list gap */
 .shop-list li { flex-basis: 120px; padding: 0.8rem 1rem; } /* Adjust shop item size/padding */

 footer { padding: 2rem 1rem; margin-top: 2.5rem; } /* Adjust footer padding/margin */
 .social-icons a { font-size: 1.5rem; margin: 0 0.5rem; } /* Adjust icon size/margin */
}

@media (max-width: 480px) { /* Smaller Mobile */
  body { font-size: 15px; } /* Adjust base font size */
  .logo { font-size: 1.5rem; }
  .hero h1 { font-size: 1.8rem; }
  .section-title { font-size: 1.6rem; }
  button, .card button { font-size: 0.9rem; padding: 0.7rem 1.5rem; }
  .floor-plan iframe { height: 400px; }
}

/* Promo Section */
.promo-section {
  background: linear-gradient(135deg, var(--primary-color), #003366);
  color: var(--text-on-primary);
  padding: 3rem 2rem;
  text-align: center;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  margin-bottom: 3rem;
  border: 2px solid var(--accent-color);
}
.promo-section h2 { margin-bottom: 1rem; font-size: 2rem; color: var(--accent-color); font-family: 'Russo One', sans-serif; letter-spacing: 1px;}
.promo-section p { margin-bottom: 1.5rem; font-size: 1.1rem; }
.cta-button {
  background: var(--accent-color);
  color: var(--text-on-accent);
  padding: 1rem 2.5rem;
  font-size: 1.2rem;
  border-radius: 50px;
  font-weight: 700;
  transition: transform 0.3s;
  display: inline-block;
  text-decoration: none;
}
.cta-button:hover {
  background: #e6b000;
  transform: scale(1.05);
}

/* Floating Action Button */
.fab-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  animation: bounceIn 1s;
  display: flex;
  align-items: center;
}
.fab {
  background: var(--accent-color);
  color: var(--text-on-accent);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: transform 0.3s ease;
  text-decoration: none;
  border: 3px solid #fff;
}
.fab:hover { transform: scale(1.1); }
.fab-label {
  margin-right: 1rem;
  background: var(--bg-white);
  color: var(--text-light);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  white-space: nowrap;
  font-weight: 600;
  display: none; /* Hidden on small screens or by default */
}
.fab-container:hover .fab-label { display: block; }

@keyframes bounceIn {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

/* Common Page Structure */
.section-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
  text-align: center;
}

/* FAQ Page Styles */
.faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-white);
  border-radius: var(--border-radius);
  padding: 1.5rem 2rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--accent-color);
}

.faq-question {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}

.faq-answer {
  color: var(--text-light);
  line-height: 1.7;
}

.faq-answer a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: underline;
}

.faq-answer a:hover {
  color: var(--accent-color);
}
