@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Montserrat:wght@400;500;600;700;800;900&display=swap');

/* ================================================================
   AZA ATHLETIC — STYLESHEET

   How this file is organized:
   1. CSS variables (easy color/font tweaks in one place)
   2. Reset & base styles
   3. Reusable layout helpers (.container, .btn)
   4. Header
   5. Hero
   6. Brand statement
   7. Product cards & size buttons
   8. About section
   9. Footer
   10. Mobile responsive rules (@media)
   ================================================================ */



/* --- 1. CSS VARIABLES ---
   Change these values to re-theme the whole site quickly. */
:root {
  --color-black: #0a0a0a;
  --color-charcoal: #141414;
  --color-gray-dark: #2a2a2a;
  --color-gray-mid: #6b6b6b;
  --color-gray-light: #e8e8e8;
  --color-off-white: #f5f5f5;
  --color-white: #ffffff;

  /* Athletic accent — subtle cool gray-blue tone */
  --color-accent: #c8cdd4;

  --font-body: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-heading: "Oswald", "Arial Narrow", "Impact", sans-serif;
  --max-width: 1140px;
  --header-height: 72px;
}


/* --- 2. RESET & BASE ---
   Removes default browser spacing so we control layout ourselves. */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  /* Smooth scrolling when clicking nav anchor links */
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-off-white);
  color: var(--color-black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.hero h1,
.section-header h2,
.about-content h2,
.product-name,
.footer-brand {
  font-family: var(--font-heading);
}

/* --- 3. REUSABLE HELPERS --- */

/* Centers content and limits width on large screens */
.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

/* Small uppercase label used above section titles */
.section-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gray-mid);
  margin-bottom: 0.75rem;
}

/* Shared button styles — combine with .btn-light or .btn-dark */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 2px solid transparent;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

/* Light button for dark backgrounds (hero) */
.btn-light {
  background: var(--color-white);
  color: var(--color-black);
}

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

/* Dark button for product cards */
.btn-dark {
  background: var(--color-black);
  color: var(--color-white);
}

.btn-dark:hover {
  background: var(--color-gray-dark);
}

.btn-disabled,
.btn-disabled:hover {
  background: var(--color-gray-light);
  color: var(--color-gray-mid);
  border-color: var(--color-gray-light);
  cursor: not-allowed;
  pointer-events: none;
}

/* Makes Buy Now button stretch full width of the card */
.btn-full {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 1.25rem;
}


/* --- 4. HEADER ---
   Sticky header stays visible while scrolling. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: visible;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  overflow: visible;
}

/* Logo link in the header — must not shrink or clip in the flex row */
.logo {
  display: block;
  flex-shrink: 0;
  overflow: visible;
  color: var(--color-white);
}

/* Shared logo image — width-driven sizing keeps aspect ratio intact */
.logo-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  padding: 0.25rem;
  /* Logo artwork is dark (#201E1E) — invert on dark header/hero backgrounds */
  filter: brightness(0) invert(1);
}

/* Header logo */
.logo-img--header {
  width: 118px;
  max-width: 118px;
  opacity: 0.65;
}

.hero-logo {
  display: block;
  overflow: visible;
  margin-bottom: 2rem;
  max-width: 100%;
}

/* Hero logo — larger than header, scales down on small screens */
.logo-img--hero {
  max-width: min(560px, 92vw);
}

/* Navigation links — hidden on mobile until menu opens */
.site-nav ul {
  display: flex;
  gap: 2.5rem;
}

.site-nav a {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s;
}

.site-nav a:hover {
  color: var(--color-white);
}

/* Hamburger icon — hidden on desktop, shown in mobile media query */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: transform 0.25s, opacity 0.25s;
}


/* --- 5. HERO ---
   Premium athletic hero with stronger depth and spacing. */
   .hero {
    position: relative;
    overflow: hidden;
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 4rem 0 8rem;
    background-image:
      radial-gradient(circle at 85% 20%, rgba(200, 205, 212, 0.16), transparent 34%),
      linear-gradient(
        145deg,
        #202020 0%,
        var(--color-black) 48%,
        #111111 100%
      );
  }
  
/* Subtle script background mark */
.hero::before {
  content: "Marca Do Mestre";
  position: absolute;

  /* Anchor to the center of the page/hero... */
  left: 50%;

  /* Keep the same vertical position you liked */
  bottom: 2rem;

  font-family: "Brush Script MT", "Segoe Script", "Lucida Handwriting", cursive;
  font-size: clamp(3rem, 13vw, 10rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.01em;
  color: rgba(230, 203, 137, 0.10);
  white-space: nowrap;
  pointer-events: none;

  /* Center the text on that midpoint, then push it slightly right */
  transform: translateX(-38%) rotate(-10deg);
  transform-origin: center;
}
  
  .hero-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
  }
  
  .hero-logo {
    display: flex;
    justify-content: center;
    position: relative;
    overflow: visible;
    margin: 0 auto 5.75rem;
    max-width: 100%;
  }
  
  .hero-logo::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1.25rem;
  width: 96px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(230, 203, 137, 0.85) 35%,
    rgba(230, 203, 137, 0.85) 65%,
    transparent 100%
  );
  transform: translateX(-50%);
}
  
  .hero-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 1.35rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  }
  
  .hero h1 {
    font-size: clamp(3rem, 8vw, 5.4rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.055em;
    text-transform: uppercase;
    margin-bottom: 1.6rem;
  }
  
  .hero-subtext {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.68);
    max-width: 520px;
    margin-bottom: 2.75rem;
  }


/* --- 6. BRAND STATEMENT ---
   Centered quote-style block between hero and shop. */
.brand-statement {
  padding: 4.5rem 0;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #eeeeee 100%
  );
  border-bottom: 1px solid var(--color-gray-light);
}

/* Small gold accent line above the brand statement */
.brand-statement .container::before {
  content: "";
  display: block;
  width: 96px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(230, 203, 137, 0.85) 35%,
    rgba(230, 203, 137, 0.85) 65%,
    transparent 100%
  );
  margin: 0 auto 2.25rem;
}

.statement-text {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 500;
  line-height: 1.75;
  color: var(--color-gray-dark);
}


/* --- 7. SHOP / PRODUCT CARDS --- */
.section {
  padding: 5rem 0;
}

.shop {
  background: var(--color-off-white);
}

.section-header {
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.club-store-title,
.club-access-inner h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-transform: uppercase;
}

.club-access-section {
  min-height: calc(100vh - var(--header-height));
  background: var(--color-off-white);
}

.club-access-inner {
  max-width: 760px;
}

.club-access-form {
  margin-top: 2rem;
}

.club-access-form label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gray-mid);
  margin-bottom: 0.75rem;
}

.club-access-controls {
  display: flex;
  gap: 1rem;
}

.club-access-controls input {
  width: 8rem;
  border: 1px solid var(--color-gray-light);
  background: var(--color-white);
  color: var(--color-black);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  padding: 0.875rem 1rem;
  text-transform: uppercase;
}

.club-access-controls input:focus {
  border-color: var(--color-black);
  outline: none;
}

.club-access-error {
  min-height: 1.5rem;
  margin-top: 0.75rem;
  color: #b00020;
  font-size: 0.875rem;
  font-weight: 600;
}

.club-hero {
  background-color: var(--color-black);
  background-image:
    radial-gradient(circle at 50% 10%, rgba(200, 205, 212, 0.14), transparent 32%),
    linear-gradient(145deg, #202020 0%, var(--color-black) 54%, #111111 100%);
  color: var(--color-white);
  padding: 4.5rem 0 5rem;
  text-align: center;
}

.club-hero-inner {
  max-width: 760px;
}

.club-hero-logo {
  width: min(190px, 52vw);
  height: auto;
  margin: 0 auto 2rem;
  object-fit: contain;
}

.club-hero-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.club-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.club-hero-subtext {
  max-width: 560px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.7;
}

/* Two-column grid — collapses to one column on mobile */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.equipment-grid {
  grid-template-columns: repeat(3, 1fr);
}

.product-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-light);
  display: flex;
  flex-direction: column;
}

/* Placeholder image box — replace with real <img> when photos are ready */
.product-image-placeholder {
  aspect-ratio: 4 / 5;
  background: var(--color-gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Slightly different shade so the two cards look distinct */
.product-image-placeholder--alt {
  background: #d8d8d8;
}

.product-image-placeholder span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gray-mid);
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.25rem;
}

.jersey-viewer,
.product-gallery {
  background: var(--color-gray-light);
  border-bottom: 1px solid var(--color-gray-light);
}

.jersey-image-frame,
.product-gallery-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background:
    radial-gradient(circle at 50% 20%, rgba(230, 203, 137, 0.22), transparent 30%),
    linear-gradient(145deg, #f7f7f7 0%, var(--color-gray-light) 100%);
}

.jersey-viewer-image,
.product-gallery-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.jersey-gallery-arrow,
.product-gallery-arrow {
  position: absolute;
  top: 50%;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(10, 10, 10, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  color: var(--color-black);
  font-size: 1.6rem;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 0.2s, border-color 0.2s;
}

.jersey-gallery-arrow:hover,
.product-gallery-arrow:hover {
  background: var(--color-white);
  border-color: rgba(10, 10, 10, 0.42);
}

.jersey-gallery-arrow--prev,
.product-gallery-arrow--prev {
  left: 0.85rem;
}

.jersey-gallery-arrow--next,
.product-gallery-arrow--next {
  right: 0.85rem;
}

.jersey-view-toggle,
.product-gallery-toggle {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.85rem;
  background: var(--color-white);
}

.jersey-view-btn,
.product-gallery-btn {
  min-width: 72px;
  border: 1px solid var(--color-gray-light);
  background: var(--color-white);
  color: var(--color-black);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.65rem 1rem;
  text-transform: uppercase;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.jersey-view-btn:hover,
.product-gallery-btn:hover {
  border-color: var(--color-black);
}

.jersey-view-btn.is-selected,
.product-gallery-btn.is-selected {
  background: var(--color-black);
  border-color: var(--color-black);
  color: var(--color-white);
}

.product-details {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-name {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.product-desc {
  font-size: 0.9375rem;
  color: var(--color-gray-mid);
  margin-bottom: 1rem;
  flex: 1;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 700;
}

.sold-out-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  background: rgba(10, 10, 10, 0.86);
  color: var(--color-white);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 0.45rem 0.7rem;
  text-transform: uppercase;
}

.sold-out-note {
  margin-top: 0.25rem;
  color: var(--color-gray-mid);
  font-size: 0.85rem;
  font-weight: 600;
}

.member-price-note {
  margin-top: 0.15rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2f7d4f;
}

/* --- Size selector buttons --- */
.size-options {
  margin-top: 1.25rem;
}

.color-options {
  margin-top: 1.25rem;
}

.size-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gray-mid);
  margin-bottom: 0.5rem;
}

.size-buttons {
  display: flex;
  gap: 0.5rem;
}

.color-swatches {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.color-swatch {
  width: 34px;
  height: 34px;
  border: 1px solid var(--color-gray-light);
  border-radius: 999px;
  background: var(--swatch-color);
  box-shadow: inset 0 0 0 3px var(--color-white);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.color-swatch:hover {
  border-color: var(--color-black);
}

.color-swatch.is-selected {
  border-color: var(--color-black);
  box-shadow:
    inset 0 0 0 3px var(--color-white),
    0 0 0 2px rgba(10, 10, 10, 0.12);
}

.color-swatch--charcoal {
  --swatch-color: #3f3f3f;
}

.color-swatch--black {
  --swatch-color: #050505;
}

.color-swatch--babyblue {
  --swatch-color: #a7c7e7;
}

.size-btn {
  min-width: 44px;
  height: 44px;
  padding: 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--color-white);
  color: var(--color-black);
  border: 1px solid var(--color-gray-light);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.size-btn:hover {
  border-color: var(--color-black);
}

/* Applied by JavaScript when a size is clicked */
.size-btn.is-selected {
  background: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
}


/* --- 8. ABOUT --- */
.about {
  background: var(--color-charcoal);
  color: var(--color-white);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-content h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.about-content .section-tag {
  color: var(--color-accent);
}

.about-content p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
  line-height: 1.75;
}

.about-image-placeholder {
  aspect-ratio: 4 / 5;
  background: var(--color-gray-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-image-placeholder span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.about-image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--color-gray-dark);
}

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

/* --- 9. FOOTER --- */
.site-footer {
  background: var(--color-black);
  color: rgba(255, 255, 255, 0.5);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
}

.footer-brand {
  font-weight: 800;
  letter-spacing: 0.25em;
  color: var(--color-white);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
  transition: color 0.2s;
}

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


/* --- 10. MOBILE RESPONSIVE ---
   Rules below only apply when screen is 768px wide or less. */
   @media (max-width: 768px) {
    .hero::before {
      font-size: clamp(3rem, 12vw, 4rem);
      left: 50%;
      bottom: 1.5rem;
      transform: translateX(-40%) rotate(-10deg);
    }
  

  /* Show hamburger, hide nav until opened */
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-black);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 0;
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  /* Animate hamburger into an X when menu is open */
  .site-header.is-open .nav-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .site-header.is-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.is-open .nav-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* Stack product cards vertically */
  .product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .club-access-controls {
    flex-direction: column;
  }

  .club-access-controls input {
    width: 100%;
  }

  .jersey-image-frame,
  .product-gallery-frame {
    padding: 1rem;
  }

  .jersey-gallery-arrow,
  .product-gallery-arrow {
    width: 38px;
    height: 38px;
  }

  .jersey-gallery-arrow--prev,
  .product-gallery-arrow--prev {
    left: 0.6rem;
  }

  .jersey-gallery-arrow--next,
  .product-gallery-arrow--next {
    right: 0.6rem;
  }

  .product-card {
    width: 100%;
    min-width: 0;
  }
  
  /* Stack about content vertically */
  .about-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Reduce hero padding on small screens */
  .hero {
    padding: 2.5rem 0 5rem;
  }

  .logo-img--header {
    width: min(104px, 38vw);
    max-width: min(104px, 38vw);
  }

  .logo-img--hero {
    max-width: min(360px, 90vw);
  }

  .hero-logo {
    margin-bottom: 4.25rem;
  }

  .brand-statement {
    padding: 3rem 0;
  }

  /* Center footer items on mobile */
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (min-width: 769px) {
  .logo-img--header {
    width: 118px;
    max-width: 118px;
  }

  .logo-img--hero {
    max-width: 560px;
  }
}
