/* =============================================
   BPM PADEL CLUB — style.css
   ============================================= */

/* === CSS Variables === */
:root {
  --accent: #c8ff00;
  --accent-hover: #b0e000;
  --bg-dark: #000120;
  --bg-card: #141b26;
  --bg-card2: #1a2235;
  --text-white: #ffffff;
  --text-muted: #a0aec0;
  --font-display: 'Bebas Neue', sans-serif;
  --font-condensed: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s ease;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-white);
  overflow-x: hidden;
  line-height: 1.6;
}

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

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

ul { list-style: none; }

/* === Container === */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 6px;
  font-family: var(--font-condensed);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #0d1117;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,255,0,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text-white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--text-white);
  transform: translateY(-2px);
}

.btn-outline-light {
  background: transparent;
  color: var(--text-white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--text-white);
  transform: translateY(-2px);
}

.btn-icon-img {
  margin-left: 8px;
  width: 16px;
  height: 16px;
}

/* =============================================
   SECTION TITLES
   ============================================= */
.section-title {
  font-family: var(--font-display);
  font-size: 2.6rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-white);
  margin-bottom: 2rem;
  line-height: 1.1;
}

.section-title.center { text-align: center; }
.section-title.white  { color: var(--text-white); }

.accent-text { color: var(--accent); }

/* =============================================
   HEARTBEAT SVG
   ============================================= */
.heartbeat-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: drawLine 2.4s ease forwards;
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 24px;
  height: 70px;
  background: rgba(0, 1, 32, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200,255,0,0.08);
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(0, 1, 32, 0.98);
  box-shadow: 0 2px 24px rgba(0,0,0,0.5);
}

.nav-container {
  max-width: 1180px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo { margin-right: auto; }

.logo-img {
  height: 44px;
  width: auto;
  display: block;
}

.logo-img-footer {
  height: 38px;
}

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

.nav-links a {
  font-family: var(--font-condensed);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }

.nav-cta { padding: 9px 20px; font-size: 0.9rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active { opacity: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13,17,23,0.55) 0%,
    rgba(13,17,23,0.65) 50%,
    rgba(13,17,23,0.85) 100%
  );
  z-index: 1;
}

.heartbeat-top,
.heartbeat-bottom {
  width: 100%;
  height: 60px;
  z-index: 2;
  overflow: hidden;
  flex-shrink: 0;
}

.heartbeat-top svg,
.heartbeat-bottom svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-logo{
  display: flex;
  justify-content: center;
}

.hero-logo img {
  max-width: 300px;
  margin-bottom: 28px;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 24px;
  max-width: 860px;
  animation: heroFadeUp 1s ease 0.3s both;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-title span:first-child {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--text-white);
}

.hero-title-big {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  color: var(--text-white);
  display: block;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: .5rem;
  letter-spacing: 0.02em;
}

.hero-message {
  font-family: var(--font-body);
  font-size: 0.90rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
  margin-top: 1.8em;
}

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

.hero-dots {
  position: absolute;
  bottom: 24px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

.dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.dot.active {
  background: var(--accent);
  transform: scale(1.2);
}

.footer-socials {
  display: flex;
  justify-content: center;
  margin-top: .5em;
  gap: 14px;
}

.social-link {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: all var(--transition);
}

.social-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #0d1117;
  transform: translateY(-2px);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  height: fit-content;
  gap: 8px;
  padding-bottom: 16px;
  margin-top: 2rem;
}

.contact-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}


.contact-value {
  font-family: var(--font-body);
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.02em;
}


/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 960px) {
  .sobre-inner,
  .academia-inner,
  .contactos-inner {
    grid-template-columns: 1fr;
  }

  .photo-grid {
    grid-template-rows: 160px 160px 160px;
  }

  .academia-left {
    margin-bottom: 60px;
  }

  .parceiros-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: rgba(0,1,32,0.98);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid rgba(200,255,0,0.1);
    z-index: 999;
  }

  .hamburger { display: flex; }

  .section-title { font-size: 2rem; }

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

  .feature-full { grid-column: span 1; }

  .photo-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .photo-4 { grid-column: span 1; }

  .hero-title span:first-child { font-size: 2.2rem; }
  .hero-title-big { font-size: 2.8rem; }

  .price-table { min-width: 400px; }
  .time-col { padding-left: 16px; }

  .extras-row { flex-direction: column; align-items: center; }

  .footer-inner { flex-direction: column; gap: 20px; }
}

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

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

  .academia-buttons { flex-direction: column; }

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

/* =============================================
   MOBILE HERO — HEIGHT & SPACING FIXES
   ============================================= */
@media (max-width: 768px) and (max-height: 900px) {
  .hero {
    height: auto;
    min-height: 100svh;
  }

  .hero-logo img {
    max-width: 220px;
    margin-bottom: 24px;
  }

  .hero-content {
    padding: 0 20px;
  }

  .hero-title span:first-child {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }

  .hero-title-big {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
  }

  .hero-message {
    font-size: 0.8rem;
    margin-top: 1.6rem;
    margin-bottom: 1.2rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.88rem;
  }

  .hero-buttons {
    gap: 10px;
    margin-bottom: 0;
  }

  .contact-item {
    margin-top: 1.2rem;
    padding-bottom: 8px;
  }

  .contact-value {
    font-size: 0.85rem;
  }

  .footer-socials {
    margin-top: 0.4rem;
    gap: 10px;
  }

  .social-link {
    width: 34px;
    height: 34px;
  }

  .heartbeat-top,
  .heartbeat-bottom {
    height: 44px;
  }
}

/* Extra-small phones (iPhone SE, Galaxy A series, etc.) */
@media (max-width: 390px) {
  .hero-logo img {
    max-width: 180px;
    margin-bottom: 16px;
  }

  .hero-title span:first-child {
    font-size: 1.5rem;
  }

  .hero-title-big {
    font-size: 1.9rem;
  }

  .hero-subtitle {
    font-size: 0.88rem;
  }

  .hero-message {
    font-size: 0.76rem;
    margin-top: 1.2rem;
  }

  .contact-value {
    font-size: 0.8rem;
  }

  .btn {
    padding: 9px 16px;
    font-size: 0.82rem;
  }
}

/* =============================================
   LANDSCAPE ORIENTATION — mobile phones
   ============================================= */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    height: auto;
    min-height: 100svh;
  }

  .hero-logo img {
    max-width: 100px;
    margin-bottom: 6px;
  }

  .hero-title {
    margin-bottom: 0.4rem;
    gap: 2px;
  }

  .hero-title span:first-child { font-size: 1.1rem; }
  .hero-title-big              { font-size: 1.4rem; }

  .hero-subtitle  { font-size: 0.8rem; margin-bottom: 0.2rem; }
  .hero-message   { font-size: 0.72rem; margin-top: 0.5rem; margin-bottom: 0.3rem; }

  .hero-buttons   { gap: 6px; }
  .btn            { padding: 7px 14px; font-size: 0.78rem; }

  .contact-item   { margin-top: 0.4rem; padding-bottom: 4px; }
  .contact-value  { font-size: 0.76rem; }

  .footer-socials { margin-top: 0.2rem; gap: 8px; }
  .social-link    { width: 28px; height: 28px; }

  .heartbeat-top,
  .heartbeat-bottom {
    height: 40px;
  }
}