/* =========================
   GLOBAL STYLES
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #f4f7fa;
  color: #333;
  line-height: 1.7;
}

/* =========================
   CONTAINER
========================= */

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

/* =========================
   HEADER
========================= */

header {
  background-color: #0b4f6c;
  padding: 20px 0;
  color: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header h1 {
  text-align: center;
  margin-bottom: 15px;
  font-size: 36px;
}

.logo-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  text-decoration: none;
  color: inherit;
}

.site-logo {
  height: 60px;
  width: auto;
  display: block;
  background: white;
  border-radius: 10px;
  padding: 5px 8px;
}

/* =========================
   NAVIGATION
========================= */

nav {
  text-align: center;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

nav a:hover {
  color: #ffd166;
}

nav a.active {
  color: #ffd166;
  border-bottom: 2px solid #ffd166;
  padding-bottom: 3px;
}

/* =========================
   MOBILE NAV TOGGLE (hamburger)
========================= */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: 0.3s;
}

.nav-toggle-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* =========================
   NAV DROPDOWN (Member Area)
========================= */

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  margin-top: 14px;
  background: #0b4f6c;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: 0.2s;
  z-index: 1100;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  font-size: 15px;
  white-space: nowrap;
}

/* =========================
   HERO SECTION
========================= */

.hero {
  background:
    linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
    url('images/pickleball.png')
    center/cover no-repeat;

  height: 550px;

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;
  color: white;
  padding: 20px;
}

.hero-content {
  max-width: 800px;
}

.hero h2 {
  font-size: 56px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 24px;
  margin-bottom: 20px;
}

/* =========================
   HERO BUTTONS
========================= */

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.hero-buttons .btn {
  min-width: 200px;
  text-align: center;
}

/* =========================
   PAGE BANNER
========================= */

.page-banner {
  background: #118ab2;
  color: white;
  text-align: center;
  padding: 35px 20px;
}

.page-banner h2 {
  font-size: 42px;
  margin: 0;
}

/* =========================
   CONTENT
========================= */

.content {
  padding: 70px 0;
}

.content h2 {
  color: #0b4f6c;
  margin-bottom: 20px;
  margin-top: 40px;
  font-size: 32px;
}

.content h2:first-child {
  margin-top: 0;
}

.content p {
  margin-bottom: 20px;
  font-size: 18px;
}

/* =========================
   CARDS
========================= */

.card {
  background: white;
  padding: 30px;
  margin: 25px 0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.card h3 {
  color: #118ab2;
  margin-bottom: 18px;
  font-size: 24px;
}

/* =========================
   LISTS
========================= */

.benefits {
  margin-left: 20px;
  margin-bottom: 30px;
}

.benefits li {
  margin-bottom: 12px;
  font-size: 18px;
}

/* =========================
   RESOURCE LINKS
========================= */

.resource-list {
  list-style: none;
  padding-left: 0;
}

.resource-list li {
  margin-bottom: 16px;
}

.resource-list a {
  color: #118ab2;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.resource-list a:hover {
  color: #06d6a0;
}

/* =========================
   JUMP-TO NAV (Resources page)
========================= */

.jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 40px;
}

.jump-nav a {
  background: #06d6a0;
  border: none;
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  padding: 8px 16px;
  border-radius: 6px;
  transition: 0.3s;
}

.jump-nav a:hover {
  background: #04b383;
  color: white;
  transform: translateY(-2px);
}

.content h2 {
  scroll-margin-top: 140px;
}

/* =========================
   PHOTO GALLERY (placeholder)
========================= */

.gallery-intro {
  margin-bottom: 24px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.gallery-item {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.gallery-placeholder {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
    135deg,
    #eef3f5,
    #eef3f5 12px,
    #e2ecef 12px,
    #e2ecef 24px
  );
}

.gallery-placeholder svg {
  width: 42px;
  height: 42px;
}

.gallery-item figcaption {
  padding: 14px 16px;
  font-size: 14px;
  color: #556;
  text-align: center;
}

/* =========================
   SMALL VIDEO EMBEDS
========================= */

.video-container {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 16 / 9;
  margin: 20px 0;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* =========================
   BUTTONS
========================= */

.btn {
  display: inline-block;
  background-color: #06d6a0;
  color: white;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

.btn:hover {
  background-color: #04b383;
  transform: translateY(-2px);
}

/* =========================
   PRICE
========================= */

.price {
  color: #06d6a0;
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
}

/* =========================
   FORM
========================= */

form {
  background: white;
  padding: 35px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

form label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

form input,
form textarea {
  width: 100%;
  padding: 14px;
  margin-bottom: 22px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
}

form input:focus,
form textarea:focus {
  outline: none;
  border-color: #118ab2;
}

.form-note {
  font-size: 13px;
  font-weight: normal;
  color: #667;
  margin-top: 10px;
  margin-bottom: 0;
}

.form-error {
  display: none;
  color: #e63946;
  font-weight: bold;
  margin-top: -10px;
  margin-bottom: 18px;
}

.login-wrap {
  max-width: 420px;
  margin: 0 auto;
}

/* =========================
   RADIO BUTTONS
========================= */

.radio-group {
  margin-bottom: 22px;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-weight: normal;
  cursor: pointer;
}

.radio-group input[type="radio"] {
  margin: 0;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* =========================
   BACK TO TOP
========================= */

.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #06d6a0;
  color: white;
  font-size: 22px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: 0.3s;
  z-index: 999;
}

.back-to-top:hover {
  background-color: #04b383;
  transform: translateY(-2px);
}

/* =========================
   LINK GRID (Member Area home)
========================= */

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin: 30px 0;
}

.link-grid .card p {
  font-size: 16px;
}

.link-grid .card {
  display: flex;
  flex-direction: column;
}

.link-grid .card .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* =========================
   FOOTER
========================= */

footer {
  background-color: #0b4f6c;
  color: white;
  text-align: center;
  padding: 25px;
  margin-top: 40px;
}

.footer-link {
  display: inline-block;
  margin-top: 12px;
  color: white;
  text-decoration: underline;
  font-size: 14px;
}

.footer-link:hover {
  color: #ffd166;
}

/* =========================
   MOBILE RESPONSIVE
========================= */

@media (max-width: 768px) {

  header h1 {
    font-size: 22px;
  }

  .site-logo {
    height: 40px;
  }

  .logo-link {
    gap: 10px;
  }

  header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: flex;
  }

  nav {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex-basis: 100%;
    width: 100%;
    margin-top: 16px;
  }

  nav.nav-open {
    display: flex;
  }

  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: none;
    padding: 0;
    margin-top: 8px;
    align-items: center;
    min-width: 0;
  }

  .hero {
    height: 450px;
  }

  .hero h2 {
    font-size: 38px;
  }

  .hero p {
    font-size: 20px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 80%;
    max-width: 300px;
  }

  .page-banner h2 {
    font-size: 32px;
  }

  .content {
    padding: 50px 0;
  }

  .content h2 {
    font-size: 28px;
  }

  .content p,
  .benefits li,
  .resource-list a {
    font-size: 16px;
  }

  .card {
    padding: 22px;
  }

  .card h3 {
    font-size: 22px;
  }
}