/*
Theme Name: Astra Child - Boat Bike & Me
Theme URI: https://boatbikeandme.com
Description: Child theme for Boat Bike & Me travel blog
Author: McProdukt.pl
Author URI: https://mcprodukt.pl
Template: astra
Version: 1.0.0
Text Domain: astra-child
*/

/* ============================================================
   GLOBAL VARIABLES & RESET
   ============================================================ */
:root {
  --bbm-green: #1a9e6e;
  --bbm-green-dark: #147a55;
  --bbm-green-light: #e8f7f2;
  --bbm-black: #0a0a0a;
  --bbm-dark: #111827;
  --bbm-text: #1f2937;
  --bbm-gray: #6b7280;
  --bbm-light: #f9fafb;
  --bbm-white: #ffffff;
  --bbm-font-heading: 'Mulish', -apple-system, sans-serif;
  --bbm-font-body: 'Mulish', -apple-system, sans-serif;
  --bbm-radius: 12px;
  --bbm-shadow: 0 4px 24px rgba(0,0,0,0.10);
  --bbm-shadow-lg: 0 12px 48px rgba(0,0,0,0.16);
  --bbm-transition: all 0.3s cubic-bezier(.4,0,.2,1);
}

/* ============================================================
   GOOGLE FONTS IMPORT
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Mulish:wght@300;400;500;600;700;800;900&display=swap');

/* Apply Mulish everywhere by default */
html body,
html body h1, html body h2, html body h3, html body h4, html body h5, html body h6,
html body .elementor-widget-heading .elementor-heading-title,
html body .entry-title,
html body .site-title,
html body .main-header-bar .menu-link,
html body .bbm-yt-section__title,
html body button, html body input, html body select, html body textarea {
  font-family: 'Mulish', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* ============================================================
   BASE TYPOGRAPHY
   ============================================================ */
body {
  font-family: var(--bbm-font-body);
  color: var(--bbm-text);
  background: var(--bbm-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--bbm-font-heading);
  color: var(--bbm-dark);
  line-height: 1.2;
}

a {
  color: var(--bbm-green);
  transition: var(--bbm-transition);
}
a:hover {
  color: var(--bbm-green-dark);
}

/* ============================================================
   SITE BACKGROUND — tlo.png behind everything
   ============================================================ */
html, body {
  background-color: #eef2f5;
  background-image: url('images/tlo.png');
  background-repeat: repeat;
  background-attachment: fixed;
  margin: 0 !important;
  padding: 0 !important;
}

#page {
  background: transparent !important;
}

/* ============================================================
   HEADER — white floating pill, NOT sticky
   ============================================================ */
#masthead,
.site-header {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 100 !important;
  padding: 14px clamp(12px, 2vw, 28px) 0 !important;
  background: transparent !important;
  border-bottom: none !important;
  transform: none !important;
  will-change: auto !important;
  transition: none !important;
}

/* Center nav links inside the pill — overlay full row width */
.ast-builder-grid-row {
  position: relative !important;
}
.site-header-primary-section-left {
  flex: 0 0 auto !important;
  width: auto !important;
  position: relative !important;
  z-index: 3 !important;
  pointer-events: none !important;
}
/* Re-enable clicks only on the logo itself, not the whole wrapper */
.site-header-primary-section-left a,
.site-header-primary-section-left img,
.site-header-primary-section-left .custom-logo-link,
.site-header-primary-section-left .ast-site-identity {
  pointer-events: auto !important;
}
/* Desktop only — absolute centered overlay */
@media (min-width: 922px) {
  .ast-main-header-bar-alignment {
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: 0 !important;
    pointer-events: none !important;
    z-index: 2 !important;
  }
  /* Re-enable clicks on everything INSIDE the alignment wrapper */
  .ast-main-header-bar-alignment * {
    pointer-events: auto !important;
  }
}
.header-main-layout-1 .main-header-bar-navigation {
  text-align: center !important;
}

.main-header-bar,
.ast-header-break-point .main-header-bar {
  background: rgba(255,255,255,0.97) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.8) !important;
  border-bottom: 1px solid rgba(15,23,42,0.04) !important;
  border-radius: 999px !important;
  box-shadow: 0 14px 38px rgba(15,23,42,0.14) !important;
  max-width: 1520px;
  margin: 0 auto;
  min-height: 68px;
  padding: 0 26px !important;
}

/* Force everything in header bar onto a single line */
.main-header-bar .main-header-container,
.main-header-bar-wrap,
.main-header-bar-navigation,
.main-header-bar .ast-primary-header-bar,
.ast-flex {
  flex-wrap: nowrap !important;
}

.main-header-bar .main-navigation > ul,
.main-header-bar .menu {
  flex-wrap: nowrap !important;
  white-space: nowrap;
}

/* Hide "Boat Bike and Me" site title text; keep logo */
.site-title,
.ast-site-title-wrap .site-title,
.ast-site-identity .site-title {
  display: none !important;
}
.site-branding .site-description { display: none !important; }

.custom-logo-link img,
.site-branding img {
  max-height: 60px !important;
  width: auto !important;
}

/* Push main content down under fixed header */
#page { padding-top: 0; }
.home #content { padding-top: 0 !important; }
body:not(.home) #content { padding-top: 108px !important; }

body:not(.home) .site-content,
body:not(.home) #content {
  padding-top: 0;
}

/* Nav links — dark on white pill */
.main-header-bar .menu-link,
.main-header-bar .menu-item a,
.site-title a,
.site-title a:hover {
  color: #111827 !important;
  font-weight: 600 !important;
  font-size: 1.05rem !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  transition: color 0.2s ease;
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
}
.main-header-bar .menu-item a:hover,
.main-header-bar .menu-item.current-menu-item > a,
.main-header-bar .menu-item.current-menu-ancestor > a {
  color: var(--bbm-green) !important;
  background: transparent !important;
}

/* Mobile hamburger */
.ast-button-wrap .menu-toggle,
.ast-mobile-menu-buttons .mobile-menu-toggle {
  color: #111827 !important;
}

/* ============================================================
   HERO SECTION — Strona główna
   ============================================================ */
.bbm-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bbm-black);
}

.bbm-hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.55;
  transition: opacity 0.5s;
}

.bbm-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.2) 0%,
    rgba(0,0,0,0.4) 60%,
    rgba(0,0,0,0.75) 100%
  );
}

.bbm-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 780px;
}

.bbm-hero__eyebrow {
  display: inline-block;
  background: var(--bbm-green);
  color: var(--bbm-white);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.4rem 1.2rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.bbm-hero__title {
  font-family: var(--bbm-font-heading);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  color: var(--bbm-white);
  line-height: 1.05;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.bbm-hero__title span {
  color: var(--bbm-green);
}

.bbm-hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255,255,255,0.82);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  font-weight: 300;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.bbm-hero__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.bbm-hero__meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: rgba(255,255,255,0.8);
}

.bbm-hero__meta-number {
  font-size: 1.8rem;
  font-weight: 700;
  font-family: var(--bbm-font-heading);
  color: var(--bbm-green);
  line-height: 1;
}

.bbm-hero__meta-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
  color: rgba(255,255,255,0.6);
}

.bbm-hero__cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.bbm-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--bbm-transition);
  cursor: pointer;
  border: 2px solid transparent;
  letter-spacing: 0.02em;
}

.bbm-btn--primary {
  background: var(--bbm-green);
  color: var(--bbm-white);
  border-color: var(--bbm-green);
  box-shadow: 0 4px 20px rgba(26,158,110,0.35);
}
.bbm-btn--primary:hover {
  background: var(--bbm-green-dark);
  border-color: var(--bbm-green-dark);
  color: var(--bbm-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(26,158,110,0.45);
}

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

.bbm-btn--dark {
  background: var(--bbm-dark);
  color: var(--bbm-white);
}
.bbm-btn--dark:hover {
  background: var(--bbm-black);
  color: var(--bbm-white);
  transform: translateY(-2px);
}

/* ============================================================
   SCROLL INDICATOR
   ============================================================ */
.bbm-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
  opacity: 0.7;
  animation: bounce 2s infinite;
}

.bbm-scroll-indicator span {
  font-size: 0.7rem;
  color: var(--bbm-white);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.bbm-scroll-indicator svg {
  color: var(--bbm-white);
  width: 20px;
  height: 20px;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   SECTION — shared
   ============================================================ */
.bbm-section {
  padding: 80px 0;
}

.bbm-section--dark {
  background: var(--bbm-dark);
  color: var(--bbm-white);
}

.bbm-section--light {
  background: var(--bbm-light);
}

.bbm-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.bbm-section-label {
  display: inline-block;
  color: var(--bbm-green);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.bbm-section-title {
  font-family: var(--bbm-font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.bbm-section-desc {
  font-size: 1.1rem;
  color: var(--bbm-gray);
  max-width: 560px;
  line-height: 1.7;
}

.bbm-section--dark .bbm-section-title { color: var(--bbm-white); }
.bbm-section--dark .bbm-section-desc { color: rgba(255,255,255,0.65); }

/* ============================================================
   ABOUT / INTRO STRIP
   ============================================================ */
.bbm-about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.bbm-about__image {
  position: relative;
  border-radius: var(--bbm-radius);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--bbm-shadow-lg);
}

.bbm-about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bbm-about__badge {
  position: absolute;
  bottom: 1.5rem;
  right: -1.5rem;
  background: var(--bbm-green);
  color: var(--bbm-white);
  padding: 1rem 1.5rem;
  border-radius: var(--bbm-radius);
  box-shadow: var(--bbm-shadow);
  text-align: center;
  min-width: 120px;
}

.bbm-about__badge-num {
  font-size: 2rem;
  font-weight: 900;
  font-family: var(--bbm-font-heading);
  line-height: 1;
}

.bbm-about__badge-text {
  font-size: 0.75rem;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================================
   STATS ROW
   ============================================================ */
.bbm-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--bbm-radius);
  overflow: hidden;
}

.bbm-stat {
  background: rgba(255,255,255,0.05);
  padding: 2rem;
  text-align: center;
  transition: var(--bbm-transition);
}

.bbm-stat:hover {
  background: rgba(26,158,110,0.15);
}

.bbm-stat__number {
  font-family: var(--bbm-font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--bbm-green);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.bbm-stat__label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================================
   ROUTE MAP / STAGES
   ============================================================ */
.bbm-stages {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
}

.bbm-stages::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--bbm-green), transparent);
}

.bbm-stage {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--bbm-white);
  border-radius: var(--bbm-radius);
  box-shadow: var(--bbm-shadow);
  transition: var(--bbm-transition);
  position: relative;
}

.bbm-stage:hover {
  transform: translateX(6px);
  box-shadow: var(--bbm-shadow-lg);
}

.bbm-stage__dot {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bbm-green-light);
  border: 2px solid var(--bbm-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  z-index: 1;
}

.bbm-stage--active .bbm-stage__dot {
  background: var(--bbm-green);
  box-shadow: 0 0 0 4px rgba(26,158,110,0.2);
}

.bbm-stage__content {
  flex: 1;
}

.bbm-stage__num {
  font-size: 0.7rem;
  color: var(--bbm-green);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.bbm-stage__title {
  font-family: var(--bbm-font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--bbm-dark);
  margin-bottom: 0.3rem;
}

.bbm-stage__desc {
  font-size: 0.9rem;
  color: var(--bbm-gray);
  line-height: 1.5;
}

.bbm-stage__date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--bbm-green);
  white-space: nowrap;
  margin-top: 0.5rem;
}

/* ============================================================
   TRANSPORT ICONS ROW
   ============================================================ */
.bbm-transport {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.bbm-transport__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bbm-light);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--bbm-text);
}

.bbm-transport__item span {
  font-size: 1.2rem;
}

/* ============================================================
   SPONSORS SECTION
   ============================================================ */
.bbm-sponsors {
  padding: 84px 0 96px;
  background:
    radial-gradient(circle at top right, rgba(26,158,110,0.08), transparent 34%),
    linear-gradient(180deg, #f8fbfa 0%, #ffffff 100%);
}

.bbm-sponsors__label {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  color: var(--bbm-gray);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
}

.bbm-sponsors__panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.25fr);
  gap: 2rem;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(15,23,42,0.06);
  border-radius: 38px;
  box-shadow: 0 26px 80px rgba(15,23,42,0.08);
  padding: clamp(28px, 4vw, 52px);
}

.bbm-sponsors__column {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.bbm-sponsors__title {
  font-family: var(--bbm-font-heading);
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.04;
  margin: 0;
  color: #111827;
}

.bbm-sponsors__desc {
  margin: 0;
  max-width: 34rem;
  color: #64748b;
  line-height: 1.7;
  font-size: 1rem;
}

.bbm-sponsors__group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bbm-sponsors__group--lead {
  margin-top: auto;
}

.bbm-sponsors__group-title {
  margin: 0;
  font-size: 1.55rem;
  font-family: var(--bbm-font-heading);
  color: #0f172a;
}

.bbm-sponsors__logos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.bbm-sponsors__logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 94px;
  padding: 16px 18px;
  background: #ffffff;
  border: 1px solid rgba(148,163,184,0.18);
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(15,23,42,0.05);
  transition: var(--bbm-transition);
}

.bbm-sponsors__logo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 36px rgba(15,23,42,0.10);
}

.bbm-sponsors__logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 58px;
}

.bbm-sponsors__logo {
  width: 100%;
  max-width: 150px;
  max-height: 54px;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ============================================================
   CONTENT WIDTH — wider, smaller side margins
   ============================================================ */
.ast-container,
.site-content > .ast-container,
body .ast-container {
  max-width: 1520px !important;
  padding-left: clamp(12px, 1.2vw, 22px) !important;
  padding-right: clamp(12px, 1.2vw, 22px) !important;
}

/* Elementor internal container max width — keep readable, full-width sections still stretch */
.elementor-section.elementor-section-boxed > .elementor-container {
  max-width: 1480px !important;
}

/* ============================================================
   HERO SECTION — full viewport width, lodka as bg
   ============================================================ */
.bbm-hero-section,
.elementor-section.bbm-hero-section {
  position: relative !important;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  margin-top: 0 !important;
  min-height: 100svh !important;
  overflow: hidden !important;
  background: transparent !important;
  --bbm-hero-scale: 1;
  --bbm-hero-overlay-opacity: 0.38;
  border-radius: 0;
  z-index: 1 !important;
  transition: border-radius 0.2s ease;
}

.bbm-hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(15,23,42,0.18) 0%, rgba(15,23,42,var(--bbm-hero-overlay-opacity)) 58%, rgba(15,23,42,0.68) 100%),
    var(--bbm-hero-bg, url('https://boatbikeandme.com/wp-content/uploads/2026/04/naglowek.jpg'));
  background-size: cover, cover;
  background-position: center center, center center;
  background-repeat: no-repeat, no-repeat;
  transform: scale(var(--bbm-hero-scale));
  transform-origin: center center;
  will-change: transform, background-image;
  transition: background-image 1s ease-in-out;
  z-index: -1;
}
/* Second hero layer for cross-fade */
.bbm-hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(15,23,42,0.18) 0%, rgba(15,23,42,var(--bbm-hero-overlay-opacity)) 58%, rgba(15,23,42,0.68) 100%),
    var(--bbm-hero-bg-next, none);
  background-size: cover, cover;
  background-position: center center, center center;
  background-repeat: no-repeat, no-repeat;
  transform: scale(var(--bbm-hero-scale));
  transform-origin: center center;
  opacity: var(--bbm-hero-next-opacity, 0);
  transition: opacity 1.2s ease-in-out;
  z-index: -1;
  pointer-events: none;
}

.bbm-hero-section > .elementor-container {
  position: relative;
  z-index: 2;
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: clamp(100px, 14vh, 160px) 28px clamp(80px, 12vh, 140px) !important;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  min-height: 100svh;
}

/* Hide WP-converted emoji in hero subtitle */
.bbm-hero-section h3 img.emoji,
.bbm-hero-section .elementor-widget-heading img.emoji {
  display: none !important;
}

.bbm-hero-section h1,
.bbm-hero-section h2,
.bbm-hero-section h3,
.bbm-hero-section .elementor-widget-text-editor,
.bbm-hero-section .elementor-button-text {
  text-shadow: 0 6px 22px rgba(15,23,42,0.35);
}

.bbm-hero-section .elementor-button {
  box-shadow: 0 18px 36px rgba(15,23,42,0.28);
}

.bbm-countdown-section {
  margin-top: 0 !important;
}

/* ============================================================
   ELEMENTOR SECTIONS — countdown / map / card rows
   ============================================================ */
.elementor-section.bbm-countdown-section {
  border-bottom: none !important;
  margin: 0 clamp(12px, 1.2vw, 22px) !important;
  border-radius: 22px !important;
  overflow: hidden !important;
}

.bbm-cdw { text-align: center; color: #fff; font-family: 'Mulish', sans-serif; padding: 0; }
.bbm-cdw__label { font-size: 12px; font-weight: 700; letter-spacing: 3px; color: #7ec8e3; text-transform: uppercase; margin-bottom: 8px; }
.bbm-cdw__date { font-size: 20px; font-weight: 800; color: #ffd580; margin-bottom: 40px; letter-spacing: 2px; }
.bbm-cdw__row { display: flex; justify-content: center; align-items: flex-start; gap: 0; }
.bbm-cdw__u { display: flex; flex-direction: column; align-items: center; min-width: 120px; }
.bbm-cdw__u span { font-size: 80px; font-weight: 800; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -2px; }
.bbm-cdw__u em { font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: 2px; color: #7ec8e3; text-transform: uppercase; margin-top: 10px; }
.bbm-cdw__sep { font-size: 60px; font-weight: 300; color: rgba(255,255,255,0.3); line-height: 1; margin: 0 4px; padding-bottom: 30px; }
@media (max-width: 768px) {
  .bbm-cdw__u { min-width: 70px; }
  .bbm-cdw__u span { font-size: 48px; }
  .bbm-cdw__sep { font-size: 36px; }
}

/* Map section */
.elementor-section.bbm-map-section {
  margin: 40px clamp(12px, 1.2vw, 22px) 0 !important;
  border-radius: 22px !important;
  overflow: hidden !important;
  background: #ffffff !important;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(26,158,110,0.09), transparent 45%),
    radial-gradient(circle at 90% 90%, rgba(59,130,246,0.08), transparent 45%),
    linear-gradient(180deg, #ffffff 0%, #f5faff 100%) !important;
  box-shadow: 0 18px 50px rgba(15,23,42,0.10) !important;
}
.elementor-section.bbm-map-section img { display: block !important; width: 100% !important; height: auto !important; }

/* Alternating card rows */
.elementor-section.bbm-card-row {
  margin: 28px clamp(12px, 1.2vw, 22px) 0 !important;
  border-radius: 22px !important;
  overflow: hidden !important;
  background: #ffffff !important;
  box-shadow: 0 18px 44px rgba(15,23,42,0.09) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

.elementor-section.bbm-card-row:hover {
  transform: scale(0.977) !important;
  box-shadow: 0 10px 28px rgba(15,23,42,0.12) !important;
}

.elementor-column.bbm-card-img,
.elementor-column.bbm-card-img > .elementor-widget-wrap {
  min-height: 520px !important;
}
.elementor-column.bbm-card-img > .elementor-widget-wrap {
  background-size: cover !important;
  background-position: center center !important;
}

.elementor-column.bbm-card-txt { position: relative; }
.elementor-column.bbm-card-txt .elementor-widget-heading h2 {
  color: #0a2e4d !important;
  margin-bottom: 20px !important;
}
.elementor-column.bbm-card-txt .elementor-widget-button { margin-top: 28px !important; }

.elementor-section.bbm-card-row:hover .elementor-column.bbm-card-img {
  filter: brightness(1.06);
  transition: filter 0.4s ease;
}

@media (max-width: 767px) {
  .elementor-section.bbm-card-row > .elementor-container { flex-direction: column !important; }
  .elementor-column.bbm-card-img,
  .elementor-column.bbm-card-img > .elementor-widget-wrap { min-height: 260px !important; }
  .elementor-column.bbm-card-img,
  .elementor-column.bbm-card-txt { width: 100% !important; }
  .elementor-column.bbm-card-txt > .elementor-widget-wrap { padding: 36px 26px !important; }
}

/* ============================================================
   MOBILE MENU — stack items vertically, full-width dropdown
   ============================================================ */
@media (max-width: 921px) {
  /* Undo the desktop nowrap that's set globally */
  .main-header-bar .main-navigation > ul,
  .main-header-bar .menu,
  .main-header-bar .ast-nav-menu {
    flex-wrap: wrap !important;
    white-space: normal !important;
  }
  /* When hamburger toggles menu visible */
  .ast-header-break-point .main-header-bar-navigation.toggle-on,
  .main-header-bar-navigation.toggle-on {
    display: block !important;
    width: 100% !important;
    position: absolute !important;
    top: calc(100% + 10px) !important;
    left: 0 !important;
    right: 0 !important;
    background: #ffffff !important;
    border-radius: 18px !important;
    box-shadow: 0 18px 44px rgba(15,23,42,0.18) !important;
    padding: 10px 0 !important;
    z-index: 200 !important;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
  }
  /* Force vertical stacking of ALL menu lists (incl. ast-nav-menu) */
  .main-header-bar-navigation .ast-nav-menu,
  .main-header-bar-navigation .main-header-menu,
  .main-header-bar-navigation .main-navigation,
  .main-header-bar-navigation ul {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    white-space: normal !important;
    align-items: stretch !important;
  }
  .main-header-bar-navigation .main-navigation { display: block !important; }
  .main-header-bar-navigation .menu-item,
  .main-header-bar-navigation ul > li {
    display: block !important;
    width: 100% !important;
    float: none !important;
    border-bottom: 1px solid rgba(15,23,42,0.06);
  }
  .main-header-bar-navigation ul > li:last-child { border-bottom: none; }
  .main-header-bar-navigation .menu-link,
  .main-header-bar-navigation .menu-item a {
    display: block !important;
    width: 100% !important;
    padding: 14px 22px !important;
    text-align: left !important;
    height: auto !important;
  }
  /* Let alignment flow naturally on mobile */
  .ast-main-header-bar-alignment {
    position: static !important;
    inset: auto !important;
    display: block !important;
    pointer-events: auto !important;
  }
  .main-header-bar { position: relative !important; }
  .site-header-primary-section-left { pointer-events: auto !important; }
  .ast-mobile-menu-buttons { display: flex !important; }
}

/* ============================================================
   YOUTUBE CARDS SECTION (charity video gallery)
   ============================================================ */
.bbm-yt-section {
  margin: 40px clamp(12px, 1.2vw, 22px) 0 !important;
  padding: 40px clamp(18px, 3vw, 40px);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(15,23,42,0.09);
}
.bbm-yt-section__title {
  text-align: center;
  font-family: var(--bbm-font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--bbm-dark);
  margin: 0 0 28px;
}
.bbm-yt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.bbm-yt-card {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15,23,42,0.12);
  background: #000;
  aspect-ratio: 16 / 9;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.bbm-yt-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15,23,42,0.18);
}
.bbm-yt-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
@media (max-width: 921px) {
  .bbm-yt-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ELEMENTOR BUTTONS — keep text visible on hover
   ============================================================ */
.elementor-button,
.elementor-button:link,
.elementor-button:visited {
  transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease !important;
}

.elementor-button:hover,
.elementor-button:focus,
.elementor-button-link:hover {
  background-color: var(--bbm-green) !important;
  color: #ffffff !important;
  border-color: var(--bbm-green) !important;
  box-shadow: 0 14px 32px rgba(26,158,110,0.35) !important;
  transform: translateY(-2px);
}
.elementor-button:hover .elementor-button-text,
.elementor-button:focus .elementor-button-text,
.elementor-button:hover .elementor-button-icon i,
.elementor-button:hover .elementor-button-icon svg {
  color: #ffffff !important;
  fill: #ffffff !important;
}

/* Outline-variant buttons (light text on dark hero) */
.bbm-hero-section .elementor-button {
  background-color: rgba(255,255,255,0.08) !important;
  color: #ffffff !important;
  border: 2px solid rgba(255,255,255,0.85) !important;
  backdrop-filter: blur(6px);
}
.bbm-hero-section .elementor-button:hover {
  background-color: #ffffff !important;
  color: var(--bbm-green) !important;
  border-color: #ffffff !important;
}
.bbm-hero-section .elementor-button:hover .elementor-button-text {
  color: var(--bbm-green) !important;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.bbm-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.bbm-contact__info {
  padding-top: 1rem;
}

.bbm-contact__item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.bbm-contact__icon {
  width: 44px;
  height: 44px;
  background: var(--bbm-green-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.bbm-contact__text strong {
  display: block;
  font-weight: 600;
  color: var(--bbm-dark);
  font-size: 0.9rem;
}

.bbm-contact__text span {
  color: var(--bbm-gray);
  font-size: 0.9rem;
}

/* CF7 form customization */
.wpcf7-form-control-wrap input,
.wpcf7-form-control-wrap textarea,
.wpcf7-form-control-wrap select,
.wpcf7 .wpcf7-text,
.wpcf7 .wpcf7-textarea,
.wpcf7 .wpcf7-email {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-family: var(--bbm-font-body);
  font-size: 0.95rem;
  color: var(--bbm-text);
  background: var(--bbm-white);
  transition: var(--bbm-transition);
  outline: none;
}

.wpcf7 .wpcf7-text:focus,
.wpcf7 .wpcf7-textarea:focus,
.wpcf7 .wpcf7-email:focus {
  border-color: var(--bbm-green);
  box-shadow: 0 0 0 3px rgba(26,158,110,0.12);
}

.wpcf7 .wpcf7-textarea {
  min-height: 130px;
  resize: vertical;
}

.wpcf7 .wpcf7-submit {
  background: var(--bbm-green) !important;
  color: var(--bbm-white) !important;
  border: none !important;
  padding: 0.9rem 2.5rem !important;
  border-radius: 100px !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: var(--bbm-transition) !important;
  box-shadow: 0 4px 18px rgba(26,158,110,0.3) !important;
  font-family: var(--bbm-font-body) !important;
}

.wpcf7 .wpcf7-submit:hover {
  background: var(--bbm-green-dark) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(26,158,110,0.4) !important;
}

.wpcf7 label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--bbm-text);
  margin-bottom: 0.4rem;
}

.wpcf7 p {
  margin-bottom: 1.2rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
#colophon,
.site-footer,
.ast-site-footer {
  background: var(--bbm-black) !important;
  color: rgba(255,255,255,0.6) !important;
  padding: 0 !important;
}

.bbm-footer {
  background: var(--bbm-black);
  color: rgba(255,255,255,0.6);
  padding: 60px 0 0;
}

.bbm-footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.bbm-footer__brand-name {
  font-family: var(--bbm-font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--bbm-white);
  margin-bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}

.bbm-footer__brand-icon {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bbm-green);
  flex: 0 0 auto;
}

.bbm-footer__brand-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.bbm-footer__brand-icon--bike {
  color: rgba(255,255,255,0.86);
}

.bbm-footer__brand-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.5rem;
}

.bbm-footer__social {
  display: flex;
  gap: 0.75rem;
}

.bbm-footer__social a {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: var(--bbm-transition);
  text-decoration: none;
}

.bbm-footer__social a:hover {
  background: var(--bbm-green);
  color: var(--bbm-white);
  transform: translateY(-2px);
}

.bbm-footer__col-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--bbm-white);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.2rem;
}

.bbm-footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bbm-footer__col ul li {
  margin-bottom: 0.6rem;
}

.bbm-footer__col ul li a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--bbm-transition);
}

.bbm-footer__col ul li a:hover {
  color: var(--bbm-green);
  padding-left: 4px;
}

.bbm-footer__bottom {
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.bbm-footer__copyright {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

.bbm-footer__made-by {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

.bbm-footer__made-by a {
  color: var(--bbm-green);
  text-decoration: none;
  font-weight: 500;
}

.bbm-footer__made-by a:hover {
  color: #4ade80;
}

/* Override Astra's footer */
.ast-row.ast-footer-row,
.footer-primary,
#colophon.ast-site-footer,
#colophon,
.ast-site-footer,
.ast-footer-overlay,
.site-footer {
  display: none !important;
}

/* ============================================================
   PAGE WYPRAWA
   ============================================================ */
.bbm-expedition-header {
  background: var(--bbm-dark);
  padding: 120px 0 80px;
  text-align: center;
}

.bbm-expedition-header .bbm-section-title {
  color: var(--bbm-white);
}

.bbm-expedition-header .bbm-section-desc {
  color: rgba(255,255,255,0.6);
  margin: 0 auto;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .bbm-about {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .bbm-about__badge {
    right: 1rem;
  }

  .bbm-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .bbm-contact {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

@media (max-width: 768px) {
  .bbm-section {
    padding: 60px 0;
  }

  .bbm-hero__title {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }

  .bbm-footer__top {
    grid-template-columns: 1fr;
  }

  .bbm-footer__bottom {
    flex-direction: column;
    text-align: center;
  }

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

  .bbm-sponsors__grid {
    gap: 1.5rem;
  }
}


/* ============================================================
   BBM CONTACT FORM (shortcode [bbm_contact_form])
   ============================================================ */
.bbm-form {
  display: grid;
  gap: 1rem;
  background: #ffffff;
  padding: clamp(24px, 3vw, 40px);
  border-radius: 20px;
  box-shadow: 0 16px 42px rgba(15,23,42,0.08);
  border: 1px solid rgba(15,23,42,0.05);
}
.bbm-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.bbm-form label { display: block; font-size: .9rem; font-weight: 600; color: #111827; }
.bbm-form input[type="text"],
.bbm-form input[type="email"],
.bbm-form textarea {
  width: 100%;
  margin-top: .4rem;
  padding: .85rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  font-family: var(--bbm-font-body);
  font-size: .95rem;
  color: var(--bbm-text);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.bbm-form input:focus, .bbm-form textarea:focus {
  outline: none;
  border-color: var(--bbm-green);
  box-shadow: 0 0 0 3px rgba(26,158,110,0.14);
}
.bbm-form textarea { min-height: 140px; resize: vertical; }
.bbm-form .bbm-btn { justify-self: start; }
.bbm-form__alert {
  padding: .9rem 1rem;
  border-radius: 12px;
  font-size: .95rem;
}
.bbm-form__alert--ok { background: rgba(26,158,110,.12); color: #0e6b47; }
.bbm-form__alert--err { background: rgba(220,38,38,.1); color: #991b1b; }
@media (max-width: 640px) {
  .bbm-form__row { grid-template-columns: 1fr; }
}

/* ============================================================
   HOVER text visibility � global safety net
   ============================================================ */
.bbm-btn:hover,
.bbm-btn:hover * { color: inherit; }
.bbm-btn--primary:hover,
.bbm-btn--primary:hover * { color: #fff !important; }
.bbm-btn--outline:hover,
.bbm-btn--outline:hover * { color: #fff !important; }

/* Hide duplicate Kontakt page H1 title */
.page-id-13 .entry-header,
.page-id-13 .entry-title,
.page-id-13 header.entry-header,
.page-id-13 .ast-archive-title,
.page-id-13 .ast-single-post-header { display: none !important; }


/* ============================================================
   CHARYTATYWNIE — charity entry cards
   ============================================================ */
.page-id-37 .elementor-element-dea5b5a,
.page-id-37 .elementor-element-e436c6e,
.page-id-37 .elementor-element-85cb87e {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 28px !important;
  box-shadow: 0 2px 14px rgba(0,0,0,0.07);
  transition: box-shadow 0.32s ease, transform 0.32s ease;
  margin-bottom: 28px !important;
  overflow: hidden;
}

.page-id-37 .elementor-element-dea5b5a:hover,
.page-id-37 .elementor-element-e436c6e:hover,
.page-id-37 .elementor-element-85cb87e:hover {
  box-shadow: 0 10px 40px rgba(0,0,0,0.14);
  transform: translateY(-4px);
}

/* CHARYTATYWNIE - individual bbm-charity-card */
.page-id-37 .bbm-charity-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 28px !important;
  box-shadow: 0 2px 14px rgba(0,0,0,0.07);
  transition: box-shadow 0.32s ease, transform 0.32s ease;
  margin-bottom: 28px !important;
  overflow: hidden;
}
.page-id-37 .bbm-charity-card:hover {
  box-shadow: 0 10px 40px rgba(0,0,0,0.14);
  transform: translateY(-4px);
}
.page-id-37 .bbm-charity-card > .e-con-inner {
  align-items: center;
}

/* SPONSORZY — bbm-sponsor-card */
.page-id-39 .bbm-sponsor-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 28px !important;
  box-shadow: 0 2px 14px rgba(0,0,0,0.07);
  transition: box-shadow 0.32s ease, transform 0.32s ease;
  margin-bottom: 24px !important;
  overflow: hidden;
  align-items: center !important;
}
.page-id-39 .bbm-sponsor-card:hover {
  box-shadow: 0 10px 40px rgba(0,0,0,0.14);
  transform: translateY(-4px);
}
.page-id-39 .bbm-sponsor-card > .e-con-inner {
  align-items: center;
}
.page-id-39 .bbm-sponsor-card .elementor-widget-image img {
  max-height: 100px;
  width: auto;
  object-fit: contain;
}

.page-id-39 .bbm-sponsor-placeholder {
  display: block;
  width: 100%;
  max-width: 180px;
  min-height: 110px;
  margin: 0 auto;
  border: 2px dashed rgba(0, 119, 182, 0.28);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(0,119,182,0.06));
}

/* HOMEPAGE SPONSORS MOBILE/TEXT PATCH */
.bbm-sponsors__logo-card--text {
  padding: 0;
}

.bbm-sponsors__logo-link--text {
  min-height: 94px;
  padding: 16px 18px;
  text-decoration: none;
}

.bbm-sponsors__text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 58px;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.45;
  color: #0077b6;
}

.bbm-sponsors__logo-link--text:hover .bbm-sponsors__text-link,
.bbm-sponsors__logo-link--text:focus .bbm-sponsors__text-link {
  color: #0f172a;
}

@media (max-width: 980px) {
  .bbm-sponsors__panel {
    grid-template-columns: 1fr;
  }

  .bbm-sponsors__group--lead {
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  .bbm-sponsors__logos {
    grid-template-columns: 1fr;
  }

  .bbm-sponsors__logo-card {
    min-height: 88px;
  }
}

/* HOMEPAGE SPONSORS VIEWPORT FIX */
@media (max-width: 980px) {
  .bbm-sponsors__logos {
    grid-template-columns: 1fr !important;
  }

  .bbm-sponsors__logo-card {
    min-height: 88px;
  }
}

/* HOMEPAGE ELEMENTOR IMAGE WIDGET PATCH */
.elementor-column.bbm-card-img > .elementor-widget-wrap,
.elementor-column.bbm-card-img .elementor-widget-image,
.elementor-column.bbm-card-img .elementor-widget-image .elementor-widget-container {
  width: 100% !important;
  height: 100% !important;
}

.elementor-column.bbm-card-img .elementor-widget-image img {
  width: 100% !important;
  height: 100% !important;
  min-height: 520px;
  object-fit: cover;
  display: block;
}

@media (max-width: 767px) {
  .elementor-column.bbm-card-img .elementor-widget-image img {
    min-height: 260px;
  }
}
