/* Buenos Padel — unified header & footer */

:root {
  --bp-header-h: 72px;
}

/* Reserve space for sticky header */
body.bp-has-nav {
  padding-top: var(--bp-header-h);
}

/* Lock body scroll when mobile drawer is open */
body.bp-nav-open {
  overflow: hidden;
}

/* ========== Header ========== */

.bp-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  font-family: var(--ff-body);
  -webkit-font-smoothing: antialiased;
}

.bp-nav__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--bp-header-h);
  display: flex;
  align-items: center;
  gap: 32px;
}

.bp-nav__brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.bp-nav__brand img {
  display: block;
  height: 44px;
  width: auto;
  aspect-ratio: 459 / 126;
}

.bp-nav__links {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.bp-nav__links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.01em;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.bp-nav__links a:hover {
  color: var(--blue);
}

.bp-nav__links a.is-active {
  color: var(--blue);
  border-bottom-color: var(--green);
}

.bp-nav__cta {
  flex-shrink: 0;
  background: var(--blue);
  color: var(--paper);
  text-decoration: none;
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 13px;
  padding: 11px 20px;
  border: 1.5px solid var(--blue);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.bp-nav__cta:hover {
  background: var(--blue-ink);
  border-color: var(--blue-ink);
  transform: translateY(-1px);
  color: var(--paper);
}

.bp-nav__burger {
  display: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  margin-left: auto;
}

.bp-nav__burger span {
  display: block;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.bp-nav__burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.bp-nav__burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.bp-nav__burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* ========== Drawer (mobile) ========== */

.bp-drawer {
  display: none;
}

.bp-drawer[data-bp-drawer]:not([hidden]) {
  display: flex;
}

.bp-drawer {
  position: fixed;
  top: var(--bp-header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--paper);
  flex-direction: column;
  padding: 24px;
  gap: 8px;
  overflow-y: auto;
  animation: bp-drawer-in 0.2s ease;
}

@keyframes bp-drawer-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.bp-drawer__links {
  display: flex;
  flex-direction: column;
}

.bp-drawer__links a {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--ff-display);
  text-transform: uppercase;
  font-size: 28px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  letter-spacing: -0.01em;
}

.bp-drawer__links a.is-active {
  color: var(--blue);
}

.bp-drawer__cta {
  margin-top: 24px;
  background: var(--blue);
  color: var(--paper);
  text-decoration: none;
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 16px;
  padding: 14px 24px;
  border: 1.5px solid var(--blue);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: center;
}

/* ========== Footer ========== */

.bp-footer {
  background: var(--blue-ink);
  color: #fff;
  font-family: var(--ff-body);
  padding: 64px 24px 24px;
  margin-top: 64px;
}

.bp-footer__inner {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 48px;
}

.bp-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.bp-footer__logo {
  display: block;
  height: 56px;
  width: auto;
  aspect-ratio: 710 / 211;
  object-fit: contain;
}

.bp-footer__tagline {
  font-family: var(--ff-display);
  text-transform: uppercase;
  font-size: 18px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0;
  opacity: 0.9;
}

.bp-footer__col h4 {
  font-family: var(--ff-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 16px;
}

.bp-footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bp-footer__col a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}

.bp-footer__col a:hover {
  opacity: 1;
  text-decoration: underline;
}

.bp-footer__sub {
  list-style: none;
  padding: 6px 0 4px 12px;
  margin: 6px 0 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}
.bp-footer__sub a {
  font-size: 13px;
  opacity: 0.7;
}
.bp-footer__sub a:hover { opacity: 1; }

.bp-footer__soon {
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.bp-footer__soon span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  padding: 2px 8px;
  border-radius: 999px;
}

/* Editorial topbar above the four columns */
.bp-footer__topbar {
  max-width: 1440px;
  margin: 0 auto 48px;
  padding-bottom: 16px;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.65);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.bp-footer__legal {
  max-width: 1440px;
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px dashed rgba(255, 255, 255, 0.4);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}


/* ========== Responsive ========== */

@media (max-width: 1100px) {
  .bp-nav__links,
  .bp-nav__cta {
    display: none;
  }
  .bp-nav__burger {
    display: flex;
  }
  .bp-nav__inner {
    gap: 16px;
    padding: 0 16px;
  }
}
@media (max-width: 960px) {
  .bp-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .bp-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .bp-footer {
    padding: 40px 16px 20px;
  }
  .bp-footer__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
