/* ---------- Base & Variables ---------- */
:root {
  --brand: #E31E24;        /* Peninsula red */
  --accent: #111;          /* near-black */
  --muted: #f5f5f5;
  --text: #111;
  --text-invert: #fff;
  --header-height: 70px;
}
body {
  background: var(--muted);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  margin: 0;
  padding: 0;
}
/* For sticky footer on shop page */
body.shop-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ---------- Header / Nav ---------- */
.header {
  background: var(--accent);
  color: var(--text-invert);
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 3px 8px rgba(0,0,0,0.07);
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.logo-hover {
  width: 42px; height: 42px; border-radius: 50%; background-image: url('logo.png'); background-size: cover; position: relative; cursor: pointer;
}
.logo-hover::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 50%; background-image: url('prideflagicon.png'); background-size: cover; opacity: 0; transition: opacity 0.3s ease-in-out;
}
.logo-hover:hover::before {
  opacity: 1;
}
nav {
  display: flex;
  gap: 26px;
}
nav a {
  color: var(--text-invert);
  font-weight: 600;
  text-decoration: none;
  font-size: 16px;
}
nav a:hover {
  opacity: .8;
}

/* ---------- Hero ---------- */
.hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('PBGym.png'); 
  background-size: cover;        /* Ensures the image covers the entire area */
  background-position: center;   /* Centers the image */
  background-repeat: no-repeat;  /* Prevents the image from repeating */
  color: var(--text-invert);
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 64vh;
  position: relative;
  overflow: hidden;
  padding: 0 20px;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: auto;
  padding: 48px 0;
}
.hero-title {
  font-size: clamp(36px,8vw,60px);
  margin-bottom: 22px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.4px;
}
.hero-sub {
  font-size: clamp(18px,3vw,32px);
  margin-bottom: 30px;
  font-weight: 500;
}

/* ---------- Sections & Content ---------- */
.section {
  padding: 55px 20px;
  background: var(--muted);
  color: var(--text);
  text-align: center;
}
.section.dark {
  background: var(--accent);
  color: var(--text-invert);
}
.section-title {
  font-size: 2.3em;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.section-text {
  font-size: 1.19em;
  margin-bottom: 22px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  color: #333;
}
.section.dark .section-text {
  color: rgba(255, 255, 255, 0.85);
}
.section.dark a {
  color: white;
}

/* ---------- Pricing Cards (Shop Page) ---------- */
section#memberships {
  flex-grow: 1;
}
.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
  gap: 28px;
  margin-top: 32px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}
.card {
  background: #fff;
  border: 1.5px solid #eee;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  padding: 27px 22px;
  text-align: left;
}
.card h3 {
  font-size: 1.35em;
  font-weight: 700;
  margin-bottom: 12px;
  margin-top: 0;
  color: var(--brand);
}
.card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 10px 0;
}
.card li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dotted #ddd;
}
.card li:last-child {
  border-bottom: none;
}
.card li strong {
  font-size: 1.1em;
}
.note {
  font-size: 14px;
  color: #555;
  margin-top: 12px;
}

/* ---------- Gallery ---------- */
.gallery-container {
  max-width: 800px;
  margin: 30px auto 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  background-color: #333;
}
.gallery-container img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  transition: opacity 0.5s ease-in-out;
}
.gallery-nav {
  position: absolute;
  top: 0;
  height: 100%;
  width: 50%;
  display: flex;
  align-items: center;
  color: white;
  font-size: 36px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease;
  user-select: none;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.gallery-container:hover .gallery-nav {
  opacity: 1;
}
.gallery-nav.prev {
  left: 0;
  justify-content: flex-start;
  padding-left: 20px;
}
.gallery-nav.next {
  right: 0;
  justify-content: flex-end;
  padding-right: 20px;
}

/* ---------- Contact Form ---------- */
.contact-form {
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: #fff;
  border-radius: 14px;
  padding: 32px 22px 18px 22px;
  box-shadow: 0 2px 18px rgba(0,0,0,0.05);
}
.contact-form input,
.contact-form textarea {
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  font-size: 1em;
  padding: 10px;
  width: 100%;
  font-family: inherit;
}
.contact-form label {
  font-weight: 600;
  text-align: left;
  margin-bottom: 6px;
  color: var(--brand);
}

/* ---------- Footer ---------- */
footer {
  background: var(--accent);
  color: var(--text-invert);
  padding: 40px 0 10px 0;
  text-align: center;
}
.footer-info {
  margin-bottom: 14px;
  font-size: 1em;
}
footer a {
  color: white;
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}

/* ---------- Buttons & Utility ---------- */
.btn-primary {
  background: var(--brand);
  color: var(--text-invert);
  border: none;
  border-radius: 7px;
  padding: 15px 38px;
  font-size: 1.1em;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s;
}
.btn-primary:hover {
  background: #b9151a;
}

/* ---------- Mobile Responsive Styles ---------- */
@media (max-width: 768px) {

  /* Adjust header for smaller screens */
  .header {
    flex-direction: column;
    height: auto;
    padding: 20px 15px;
    gap: 15px;
  }

  /* Reduce font sizes for better readability */
  .hero-title {
    font-size: 2.5rem; /* Using rem is great for accessibility */
  }
  .hero-sub {
    font-size: 1.1rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .section-text {
    font-size: 1rem;
  }

  /* Reduce padding on sections to give content more room */
  .section {
    padding: 40px 15px;
  }

  /* Make gallery image a bit smaller */
  .gallery-container img {
    max-height: 50vh;
  }
}