/* ══════════════════════════════════════════
   BPMRiders – Custom CSS (single source of truth)
   ══════════════════════════════════════════ */

/* ── CSS VARIABLES ── */
:root {
  --brand: #870C1D;
  --brand-dark: #6e0a17;
  --brand-light: #FBF8F2;
  --gold: #D2A154;
  --dark: #141414;
  --gray: #6b7280;
  --light: #FBF8F2;
  --white: #ffffff;
  --border: #e5e7eb;
}

/* ── FOOTER & LINK HOVER (gold accent) ── */
.footer_link:hover { color: var(--gold) !important; }

/* ── FONT ── */
body { font-family: 'Host Grotesk', sans-serif; }

/* ── SECTION LABEL (pill) ── */
.section-label {
  display: inline-block;
  background: var(--brand-light);
  color: var(--brand);
  font-weight: 600;
  font-size: .75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: .4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
  width: fit-content;
  align-self: flex-start;
}

/* ── DECOR LINES (pink → burgundy filter) ── */
.decor-1, .decor-2, .decor-3, .decor-4,
.decor-7, .decor-8, .decor-9 {
  filter: hue-rotate(15deg) saturate(0.8) brightness(0.55);
}
/* Footer decor lines → gold */
.decor-5.is-footer, .decor-6.is-footer {
  filter: hue-rotate(54deg) saturate(0.5) brightness(1.1);
}

/* ── BUTTON HOVER (standard for all buttons) ── */
.button_arrow-wrapper {
  transition: transform .4s cubic-bezier(.135, .9, .15, 1);
}
.button_content-wrapper {
  transition: background-color .3s ease;
}
.button:hover .button_arrow-wrapper {
  transform: translateX(.25rem) rotate(45deg);
}
.button:hover .button_content-wrapper {
  background-color: var(--brand-dark);
}
.button:hover .button_content-wrapper.is-secondary {
  background-color: #e8e8e8;
}
.button:hover .button_arrow-wrapper.is-secondary {
  background-color: #e8e8e8;
}

/* ── HEADINGS: scaled down ── */
.heading-style-h1 { font-size: 3.5rem !important; }

/* ── HERO: full-width image, black fallback ── */
.section_header { background-color: #000 !important; }
.header_image { width: 100vw !important; max-width: none !important; margin-left: 50% !important; transform: translateX(-50%) !important; }

/* ── LAYOUT: more breathing room ── */
.padding-global { padding-left: 3rem !important; padding-right: 3rem !important; }

/* ── SWIPER NAVIGATION ARROWS ── */
.swiper.swiper2 { position: relative; overflow: visible !important; }
.section_casestudies { overflow: visible !important; }
.swiper2-prev, .swiper2-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition: background .2s, border-color .2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.swiper2-prev { left: 1rem; }
.swiper2-next { right: 1rem; }
.swiper2-prev::after { content: "\2039"; font-size: 1.5rem; font-weight: 700; color: var(--dark); line-height: 1; }
.swiper2-next::after { content: "\203A"; font-size: 1.5rem; font-weight: 700; color: var(--dark); line-height: 1; }
.swiper2-prev:hover, .swiper2-next:hover {
  background: var(--brand);
  border-color: var(--brand);
}
.swiper2-prev:hover::after, .swiper2-next:hover::after {
  color: var(--white);
}

/* ── TOOLS/PRODUCTS: center logos ── */
.tools_list { justify-content: center !important; }
.tools_component { align-items: center; text-align: center; }
.tools_logotype-grid { display: flex !important; justify-content: center; gap: 3rem; flex-wrap: wrap; }
.tools_logotype-icon { justify-content: center; }

/* ── HIDE EMPTY IMAGE WRAPPERS ── */
.service_image-wrapper:empty { display: none; }

/* ── STATS SECTION ACCENTS ── */
.stats_text { color: rgba(210,161,84,0.7); }
.stats_content-wrapper { border-top: 1px solid rgba(135,12,29,0.3); }

/* ── MOBILE HAMBURGER ── */
.navigation_trigger {
  display: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 100;
}
@media (max-width: 991px) {
  .navigation_trigger { display: flex; flex-direction: column; justify-content: center; align-items: center; }
  .navigation_links-wrapper.is-desktop { display: none !important; }
}
.trigger__line {
  width: 1.5rem;
  height: 2px;
  background-color: var(--dark);
  margin: 3px 0;
  transition: transform 0.3s, opacity 0.3s;
}
.navigation_trigger.is-open .trigger__line.is-1 {
  transform: rotate(45deg) translate(2px, 2px);
}
.navigation_trigger.is-open .trigger__line.is-2 {
  transform: rotate(-45deg) translate(2px, -2px);
}
.navigation_mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 99;
  padding: 5rem 2rem 2rem;
  overflow-y: auto;
}
.navigation_mobile-menu a {
  color: var(--white);
  text-decoration: none;
}
@media (min-width: 992px) {
  .navigation_mobile-menu { display: none !important; }
}

/* ── HOMEPAGE HERO ── */
.header_component { height: max(90vh, 30rem) !important; padding-top: 9rem !important; }
.section_company { margin-top: 3rem !important; }

/* ── NAV LOGO (larger) ── */
.nav_logotype { width: 14rem !important; height: 2rem !important; }
.nav_logo-link { height: auto !important; }

/* ── HOMEPAGE: white nav on dark hero ── */
.home-dark-nav .nav_logo-link,
.home-dark-nav .nav_logotype { color: #fff !important; }
.home-dark-nav .navigation_link.is-dark { color: #fff !important; }
.home-dark-nav .navigation_underline.is-dark { background-color: var(--gold) !important; }

/* ── NAV UNDERLINE: gold on hover (all pages) ── */
.navigation_underline.is-dark { background-color: var(--gold) !important; }

/* ── MARQUEE (homepage ticker) ── */
.track-horizontal-alt {
  position: absolute;
  white-space: nowrap;
  will-change: transform;
  animation: marquee-horizontal-alt 40s linear infinite;
}
@keyframes marquee-horizontal-alt {
  from { transform: translateX(-50%); }
  to { transform: translateX(0%); }
}

/* ── CASE STUDY: category list ── */
.category_list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.category_item {
  display: flex;
  align-items: center;
  font-weight: normal;
}
.category_item::after {
  content: "/";
  font-weight: bold;
  color: var(--brand);
  margin: 0 4px;
}
.category_item:last-child::after {
  content: "";
}
.case_richtext ol ::marker,
.case_richtext ul ::marker {
  font-weight: bold;
  color: var(--brand);
}

/* ── KONTAKT: list markers ── */
.contact_list-item ol::marker,
.contact_list-item ul::marker {
  font-weight: bold;
  color: var(--brand);
}

/* ══════════════════════════════════════════
   REUSABLE LAYOUT COMPONENTS
   ══════════════════════════════════════════ */

/* ── ANIMATIONS ── */
[data-anim] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-anim].visible { opacity: 1; transform: translateY(0); }
[data-anim="left"] { transform: translateX(-40px); }
[data-anim="left"].visible { transform: translateX(0); }
[data-anim="right"] { transform: translateX(40px); }
[data-anim="right"].visible { transform: translateX(0); }
[data-anim="scale"] { transform: scale(0.88); }
[data-anim="scale"].visible { transform: scale(1); }

/* ── SECTION HEADINGS ── */
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
}
.section-sub {
  color: var(--gray);
  font-size: 1.05rem;
}

/* ── CARD (reusable bordered card with hover) ── */
.card {
  background: var(--white);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  border: 1px solid var(--border);
  transition: transform .2s, border-color .2s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
}
.card h3, .card h4 { font-weight: 700; margin-bottom: 0.6rem; }
.card p { color: var(--gray); font-size: 0.93rem; line-height: 1.6; }

/* ── GRID LAYOUTS ── */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .grid-4 { grid-template-columns: 1fr; }
}

/* ── CTA BANNER ── */
.cta-banner {
  background: var(--dark);
  color: var(--white);
  text-align: center;
  padding: 80px 5%;
}
.cta-banner h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}
.cta-banner h2 em { font-style: normal; color: var(--gold); }
.cta-banner p { color: rgba(255,255,255,0.6); margin-bottom: 2rem; font-size: 1.05rem; }

/* ── FAQ ACCORDION ── */
.faq-list {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 800px;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color .2s;
}
.faq-item.open { border-color: var(--brand); }
.faq-q {
  padding: 1.2rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  user-select: none;
}
.faq-q:hover { color: var(--brand); }
.faq-icon {
  width: 28px; height: 28px;
  background: var(--brand-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--brand);
  font-size: 1.2rem;
  font-weight: 400;
  transition: transform .3s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  padding: 0 1.5rem;
}
.faq-a p { color: var(--gray); font-size: 0.93rem; line-height: 1.7; padding-bottom: 1.2rem; }
.faq-item.open .faq-a { max-height: 300px; padding: 0 1.5rem; }
