﻿/* WordPress / Astra: full-width breakout + scoped layout */
.bmap-custom-page {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
}

.bmap-custom-page * {
  box-sizing: border-box;
}

.bmap-custom-page > * {
  margin: 0;
  padding: 0;
}

.bmap-custom-page {
  --bg: #050510;
  --primary: #179FB7;
  --primary-dark: #195286;
  --text: #4A4A55;
  --muted: #6F6F7A;
  background: #f8f8f8;
  color: var(--text);
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow-x: hidden;
}

.bmap-l-container {
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: 0 1rem;
}

.bmap-custom-page section:not(.hero) {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.bmap-custom-page h1,
.bmap-custom-page h2,
.bmap-custom-page h3 {
  letter-spacing: -0.03em;
}

.gradient-text {
  background-image: linear-gradient(120deg, #179FB7, #195286);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* HERO */
.bmap-custom-page .hero {
  position: relative;
  min-height: clamp(480px, 58vh, 680px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #c8c8c8;
}

.bmap-custom-page .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center 32%;
  background-repeat: no-repeat;
}

.bmap-custom-page .hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(5, 5, 16, 0.18) 0%,
    rgba(5, 5, 16, 0.55) 100%
  );
}

.bmap-custom-page .hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 4rem 0 3rem;
  width: 100%;
}

.bmap-custom-page .hero-title {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  margin: 0;
  color: #ffffff;
}

/* TEAM SECTIONS */
.bmap-team {
  background: #f3f5f7;
  color: #1A1A1A;
}

.bmap-team-container {
  max-width: min(1280px, 96vw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.bmap-team-header {
  text-align: center;
  margin-bottom: 2.5rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.bmap-team-header--core {
  max-width: min(1100px, 100%);
}

.bmap-team-header h2 {
  font-size: clamp(1.85rem, 3vw, 2.4rem);
  margin: 0 0 1rem;
  color: #1A1A1A;
}

@media (min-width: 768px) {
  .bmap-team-header--core h2 {
    white-space: nowrap;
  }
}

.bmap-team-header p {
  font-size: 1.05rem;
  color: #4A4A55;
  line-height: 1.65;
  margin: 0;
}

.bmap-team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .bmap-team-grid--core {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.35rem;
  }
}

@media (max-width: 640px) {
  .bmap-team-grid {
    grid-template-columns: 1fr;
  }
}

.bmap-team-member {
  background: #ffffff;
  border-radius: 1.2rem;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.05), 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.18s ease, box-shadow 0.22s ease;
  display: flex;
  flex-direction: column;
  text-align: center;
  overflow: hidden;
}

.bmap-team-member:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06), 0 8px 18px rgba(0, 0, 0, 0.04);
}

.bmap-team-member-photo {
  width: 100%;
  aspect-ratio: 5 / 5.5;
  border-radius: 1.2rem 1.2rem 0 0;
  object-fit: cover;
  object-position: center 15%;
  margin: 0;
  display: block;
  background: #d8dee6;
}

.bmap-team-member h3 {
  font-size: 1.25rem;
  margin: 1.25rem 1.25rem 0.65rem;
  color: #195286;
  font-weight: 700;
}

.bmap-team-member p {
  margin: 0 1.25rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #4A4A55;
  flex: 1;
}

.bmap-team-member-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  margin-bottom: 1.5rem;
  justify-content: center;
  align-items: center;
  padding: 0 1.25rem;
  min-height: 2.5rem;
}

.bmap-team-member-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(23, 159, 183, 0.1);
  color: #195286;
  text-decoration: none;
  transition: all 0.2s ease;
}

.bmap-team-member-social a:hover {
  background: #179FB7;
  color: #ffffff;
  transform: translateY(-2px);
}

.bmap-team-member-social svg,
.bmap-team-member-social .bmap-team-social-icon {
  width: 18px;
  height: 18px;
  display: block;
}

.bmap-team-member-social svg {
  fill: currentColor;
}

.bmap-team-member-social a:hover .bmap-team-social-icon {
  filter: brightness(0) invert(1);
}

/* VISION */
.bmap-custom-page section.bmap-vision {
  padding-top: 2.75rem;
  padding-bottom: 2.75rem;
}

.bmap-vision {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, #eef6f8 0%, #f7fafb 45%, #ffffff 100%);
}

.bmap-vision::before {
  content: "";
  position: absolute;
  inset: 18% 18% auto;
  height: 52%;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 22px,
    rgba(23, 159, 183, 0.08) 22px,
    rgba(23, 159, 183, 0.08) 23px
  );
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  pointer-events: none;
}

.bmap-vision-note {
  position: absolute;
  font-family: "Caveat", "Segoe Script", "Brush Script MT", cursive;
  color: rgba(23, 159, 183, 0.22);
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  animation: bmapVisionFloat 7s ease-in-out infinite;
}

.bmap-vision-note--1 {
  top: 22%;
  left: 14%;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  transform: rotate(-12deg);
}

.bmap-vision-note--2 {
  top: 24%;
  right: 15%;
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  transform: rotate(14deg);
  animation-delay: -2.4s;
}

.bmap-vision-note--3 {
  bottom: 18%;
  left: 18%;
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  transform: rotate(8deg);
  animation-delay: -4.2s;
}

@keyframes bmapVisionFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -6px; }
}

.bmap-vision-inner {
  position: relative;
  z-index: 1;
  max-width: min(620px, 90vw);
  margin: 0 auto;
  padding: 0 1.25rem;
  text-align: center;
}

.bmap-vision-eyebrow {
  display: inline-block;
  margin: 0 0 0.35rem;
  font-family: "Caveat", "Segoe Script", "Brush Script MT", cursive;
  font-size: clamp(1.5rem, 2.7vw, 1.85rem);
  font-weight: 700;
  color: #179FB7;
  transform: rotate(-2deg);
}

.bmap-vision-inner h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.15rem);
  margin: 0 0 1rem;
  color: #1A1A1A;
}

.bmap-vision-body {
  font-size: 1rem;
  color: #4A4A55;
  line-height: 1.65;
  margin: 0 auto 0.85rem;
  max-width: 560px;
  text-align: left;
}

.bmap-vision-body + .bmap-vision-quote {
  margin-top: 1.15rem;
}

.bmap-vision-mark {
  background-image: linear-gradient(
    120deg,
    rgba(255, 224, 102, 0.55),
    rgba(255, 224, 102, 0.28)
  );
  background-repeat: no-repeat;
  background-size: 100% 0.55em;
  background-position: 0 88%;
  font-weight: 600;
  color: #4A4A55;
  padding: 0 0.1em;
}

.bmap-vision-quote {
  margin: 0 auto;
  max-width: 480px;
  font-family: "Caveat", "Segoe Script", "Brush Script MT", cursive;
  font-size: clamp(1.85rem, 3.1vw, 2.4rem);
  font-weight: 700;
  line-height: 1.25;
  color: #195286;
  text-wrap: balance;
}

.bmap-vision-quote::before {
  content: "„";
  color: #179FB7;
}

.bmap-vision-quote::after {
  content: "“";
  color: #179FB7;
}

/* CTA */
.bmap-cta-section {
  background: linear-gradient(to top, #0a1520 0%, #195286 45%, #179FB7 100%);
  padding: 4rem 0;
  color: #ffffff;
  text-align: center;
}

.bmap-cta-content {
  max-width: min(720px, 92vw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.bmap-cta-section h2 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: 1.25rem;
  color: #ffffff;
}

.bmap-cta-section p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.65;
  opacity: 0.95;
}

.bmap-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  background: #ffffff;
  color: #195286;
  border: none;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.bmap-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

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

.bmap-custom-page .hero-inner {
  animation: fadeInUp 0.8s ease-out;
}

/* Scroll reveal (class toggled by JS; visible if JS fails or reduced motion) */
.bmap-about-reveal {
  opacity: 1;
  transform: none;
}

.bmap-about-reveal.bmap-about-reveal--pending {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.bmap-about-reveal.bmap-about-reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .bmap-about-reveal.bmap-about-reveal--pending {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .bmap-custom-page .hero-inner {
    animation: none;
  }

  .bmap-vision-note {
    animation: none;
  }
}

@media (max-width: 640px) {
  .bmap-custom-page .hero {
    min-height: 45vh;
  }

  .bmap-custom-page .hero-title {
    font-size: 2.1rem;
  }

  .bmap-vision-inner h2,
  .bmap-team-header h2 {
    font-size: 1.75rem;
  }

  .bmap-vision-note--1,
  .bmap-vision-note--3 {
    opacity: 0.55;
  }

  .bmap-vision-body {
    text-align: left;
  }
}
