/* ============================= */
/* HAMBURGER MENU                */
/* ============================= */

.cbm-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  cursor: pointer;
  z-index: 100;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.cbm-hamburger:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(178, 116, 9, 0.5);
}

.cbm-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.25s ease,
              width 0.35s ease;
}

.cbm-hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.cbm-hamburger.is-open span:nth-child(2) {
  opacity: 0;
  width: 10px;
}

.cbm-hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Overlay backdrop */
.cbm-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.cbm-nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Slide-in drawer */
.cbm-mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 95;
  width: min(320px, 85vw);
  height: 100dvh;
  background:
    radial-gradient(circle at 80% 15%, rgba(178, 116, 9, 0.22), transparent 38%),
    linear-gradient(180deg, #1a1100 0%, #0d0b08 100%);
  border-left: 1px solid rgba(178, 116, 9, 0.22);
  display: flex;
  flex-direction: column;
  padding: 0;
  transform: translateX(100%);
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.cbm-mobile-nav.is-open {
  transform: translateX(0);
}

/* Drawer header */
.cbm-mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.cbm-mobile-nav-header .cbm-mobile-logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: rgb(255, 240, 227);
}

.cbm-mobile-nav-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  font-size: 20px;
  transition: background 0.2s ease, color 0.2s ease;
}

.cbm-mobile-nav-close:hover {
  background: rgba(178, 116, 9, 0.25);
  color: #ffffff;
}

/* Drawer nav links */
.cbm-mobile-nav-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 36px 28px 28px;
  gap: 6px;
}

.cbm-mobile-nav-links a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 22px;
  font-weight: 700;
  padding: 14px 16px;
  border-radius: 12px;
  transition: background 0.25s ease,
              color 0.25s ease,
              transform 0.25s ease;
}

.cbm-mobile-nav-links a::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(178, 116, 9, 0.6);
  flex-shrink: 0;
  transition: background 0.25s ease, transform 0.25s ease;
}

.cbm-mobile-nav-links a:hover {
  background: rgba(178, 116, 9, 0.12);
  color: #ffffff;
  transform: translateX(4px);
}

.cbm-mobile-nav-links a:hover::before {
  background: #b27409;
  transform: scale(1.4);
}

/* Drawer CTA */
.cbm-mobile-nav-cta {
  padding: 0 28px 40px;
}

.cbm-mobile-nav-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 18px 28px;
  border-radius: 999px;
  background: #ffffff;
  color: #111111;
  text-decoration: none;
  font-size: 17px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cbm-mobile-nav-cta a:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.14),
              0 0 20px rgba(178, 116, 9, 0.22);
}

.cbm-mobile-nav-cta a span {
  font-size: 20px;
  color: #b27409;
}

/* Drawer stagger animation for links */
.cbm-mobile-nav.is-open .cbm-mobile-nav-links a {
  animation: cbmDrawerLinkIn 0.38s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.cbm-mobile-nav.is-open .cbm-mobile-nav-links a:nth-child(1) { animation-delay: 0.06s; }
.cbm-mobile-nav.is-open .cbm-mobile-nav-links a:nth-child(2) { animation-delay: 0.10s; }
.cbm-mobile-nav.is-open .cbm-mobile-nav-links a:nth-child(3) { animation-delay: 0.14s; }
.cbm-mobile-nav.is-open .cbm-mobile-nav-links a:nth-child(4) { animation-delay: 0.18s; }

@keyframes cbmDrawerLinkIn {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================= */
/* MOBILE RESPONSIVE OVERRIDES   */
/* ============================= */

/* Show hamburger, hide desktop nav & btn on mobile */
@media (max-width: 980px) {
  .cbm-hamburger {
    display: flex;
  }

  /* Keep Get Started btn hidden on tablet/mobile
     (it lives inside the drawer instead) */
  .cbm-btn {
    display: none;
  }
}

/* ============================= */
/* TABLET (max-width: 980px)     */
/* ============================= */
@media (max-width: 980px) {
  .cbm-header {
    padding: 28px 5% 0;
  }

  .cbm-hero-content {
    margin-top: 80px;
    padding: 60px 5% 30px;
  }

  .cbm-hero-content h2 {
    font-size: clamp(42px, 6vw, 64px);
    margin-bottom: 28px;
  }

  .cbm-hero-content p {
    font-size: 18px;
    margin-bottom: 36px;
  }

  .cbm-service-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .cbm-service-image {
    min-height: 300px;
  }

  .cbm-service-content {
    padding: 32px 28px 36px;
  }

  .cbm-service-content h3 {
    font-size: clamp(40px, 5vw, 60px);
  }

  .cbm-service-number {
    top: 20px;
    right: 20px;
  }

  .cbm-footer-cta {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 56px 6%;
    text-align: center;
    align-items: center;
    justify-items: center;
  }

  .cbm-footer-cta h2 {
    text-align: center;
  }

  .cbm-footer-connector {
    width: 100%;
    max-width: 420px;
  }

  .cbm-footer-btn {
    justify-self: center;
    min-width: 0;
    width: auto;
    max-width: 340px;
    min-height: 72px;
    padding: 20px 40px;
    font-size: 18px;
  }

  .cbm-footer-main {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 52px 6% 48px;
  }

  .cbm-footer-links {
    justify-content: start;
    padding-top: 0;
    gap: 60px;
  }

  .cbm-logo-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 64px;
    column-gap: 32px;
  }
}

/* ============================= */
/* MOBILE (max-width: 640px)     */
/* ============================= */
@media (max-width: 640px) {
  /* Header */
  .cbm-header {
    padding: 22px 5% 0;
    align-items: center;
  }

  .cbm-logo h1 {
    font-size: clamp(22px, 6vw, 28px);
  }

  .cbm-logo p {
    font-size: 9px;
    letter-spacing: 0.42em;
    padding-left: 10px;
    margin-top: 5px;
  }

  /* Hero content */
  .cbm-hero-content {
    margin-top: 60px;
    padding: 50px 5% 24px;
    min-height: calc(100vh - 90px);
  }

  .cbm-hero-content h2 {
    font-size: clamp(34px, 9vw, 48px);
    line-height: 1.18;
    letter-spacing: 0;
    margin-bottom: 20px;
    word-spacing: normal;
  }

  .cbm-hero-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 32px;
  }

  .cbm-socials {
    gap: 22px;
    margin-bottom: 32px;
  }

  .cbm-socials a {
    font-size: 20px;
  }

  /* Image strip */
  .cbm-image-strip {
    height: 220px;
  }

  .cbm-strip-image {
    flex-basis: 270px;
    height: 220px;
  }

  /* Services intro */
  .cbm-services-intro {
    padding: 56px 18px 44px;
  }

  .cbm-services-intro h2 {
    font-size: clamp(38px, 10vw, 52px);
    margin-bottom: 22px;
  }

  .cbm-services-intro p {
    font-size: 16px;
    line-height: 1.55;
    font-weight: 400;
  }

  /* Service cards */
  .cbm-services-cards {
    width: calc(100% - 24px);
    gap: 24px;
  }

  .cbm-service-card {
    padding: 10px;
    border-radius: 20px;
    min-height: auto;
  }

  .cbm-service-image {
    min-height: 240px;
    border-radius: 14px;
  }

  .cbm-service-content {
    padding: 24px 20px 28px;
    transform: none;
  }

  .cbm-service-content h3 {
    font-size: clamp(36px, 9vw, 48px);
    margin-bottom: 16px;
  }

  .cbm-service-content p {
    font-size: 16px;
    line-height: 1.5;
  }

  .cbm-service-number {
    width: 44px;
    height: 44px;
    font-size: 18px;
    top: 18px;
    right: 18px;
  }

  /* Services button */
  .cbm-services-button-wrap {
    padding-top: 36px;
  }

  .cbm-services-btn {
    padding: 16px 28px;
    gap: 16px;
    font-size: 16px;
    width: calc(100% - 24px);
    max-width: 400px;
    justify-content: center;
  }

  .cbm-services-btn span {
    font-size: 26px;
  }

  /* Brands section */
  .cbm-brands-section {
    min-height: auto;
  }

  .cbm-brands-inner {
    width: calc(100% - 24px);
    padding: 60px 0 64px;
  }

  .cbm-brands-heading {
    margin-bottom: 52px;
    padding: 0 8px;
  }

  .cbm-brands-heading h2 {
    font-size: clamp(32px, 9vw, 48px);
    letter-spacing: 0;
    margin-bottom: 18px;
  }

  .cbm-brands-heading p {
    font-size: 16px;
    line-height: 1.5;
  }

  .cbm-logo-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 48px;
    column-gap: 20px;
  }

  .cbm-brand-logo {
    font-size: 22px;
    min-width: auto;
    min-height: 48px;
  }

  .cbm-logo-oppo  { font-size: 34px; }
  .cbm-logo-fila  { font-size: 42px; }
  .cbm-logo-skoda { font-size: 20px; }
  .cbm-logo-kia   { font-size: 38px; }
  .cbm-logo-nokia { font-size: 28px; }
  .cbm-logo-symbol {
    width: 60px;
    height: 60px;
    min-width: 60px;
    font-size: 42px;
  }

  /* Footer CTA */
  .cbm-footer-cta {
    padding: 44px 20px;
    gap: 20px;
    text-align: center;
    align-items: center;
    justify-items: center;
  }

  .cbm-footer-cta h2 {
    font-size: clamp(36px, 10vw, 52px);
    text-align: center;
  }

  .cbm-footer-connector {
    height: 70px;
    width: 100%;
    max-width: 320px;
  }

  .cbm-footer-btn {
    justify-self: center;
    min-width: 0;
    width: auto;
    max-width: 280px;
    min-height: 60px;
    padding: 16px 32px;
    font-size: 15px;
    text-align: center;
  }

  /* Footer main */
  .cbm-footer-main {
    padding: 40px 20px 44px;
    gap: 32px;
  }

  .cbm-footer-logo {
    margin-bottom: 32px;
  }

  .cbm-footer-logo h3 {
    font-size: clamp(30px, 8vw, 42px);
  }

  .cbm-footer-logo p {
    padding-left: 18px;
    font-size: 11px;
    letter-spacing: 0.48em;
    margin-top: 8px;
  }

  .cbm-footer-text,
  .cbm-footer-contact {
    font-size: 16px;
  }

  .cbm-footer-contact {
    margin-top: 18px;
    word-break: break-all;
  }

  /* Footer links */
  .cbm-footer-links {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding-top: 0;
  }

  .cbm-footer-link-group {
    gap: 16px;
  }

  .cbm-footer-link-group a {
    font-size: 16px;
  }
}

/* ============================= */
/* SMALL MOBILE (max-width: 380px) */
/* ============================= */
@media (max-width: 380px) {
  .cbm-logo h1 {
    font-size: 20px;
  }

  .cbm-hero-content h2 {
    font-size: 30px;
  }

  .cbm-hero-content p {
    font-size: 15px;
  }

  .cbm-service-content h3 {
    font-size: 32px;
  }

  .cbm-brands-heading h2 {
    font-size: 30px;
  }

  .cbm-logo-grid {
    row-gap: 38px;
  }

  .cbm-footer-links {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

