/* ============================================ */
/* ABOUT PAGE — MOBILE OVERRIDES                */
/* Loaded after about.css + mobile-fixes.css    */
/* ============================================ */

/* ============================= */
/* HEADER — show hamburger,      */
/* hide desktop nav + CTA btn    */
/* ============================= */

@media (max-width: 1024px) {
  .cbm-about-header {
    min-height: auto;
    padding: 24px 5%;
    align-items: center;
  }

  /* Hide desktop nav */
  .cbm-about-header .cbm-nav {
    display: none;
  }

  /* Hide Get Started button — lives in drawer instead */
  .cbm-about-header .cbm-btn {
    display: none;
  }

  /* Show hamburger */
  .cbm-about-header .cbm-hamburger {
    display: flex;
  }
}

/* ============================= */
/* FOOTER CTA — center aligned   */
/* + button properly sized       */
/* ============================= */

@media (max-width: 1024px) {
  .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: 400px;
  }

  /* Button: no longer stretches to edge, centered, proportionate */
  .cbm-footer-btn {
    justify-self: center;
    min-width: 0;
    width: auto;
    max-width: 360px;
    min-height: 72px;
    padding: 20px 40px;
    font-size: 18px;
  }

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

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

/* ============================= */
/* TABLET (max-width: 980px)     */
/* ============================= */

@media (max-width: 980px) {
  /* Hero image */
  .cbm-about-hero {
    height: 360px;
  }

  /* Story text */
  .cbm-about-story {
    padding: 66px 5% 76px;
  }

  .cbm-story-inner p {
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.22;
  }

  /* Story wall */
  .cbm-story-wall-section {
    padding: 0 5% 90px;
  }

  .cbm-mission-card {
    margin-bottom: 72px;
  }

  /* Story cards: single column */
  .cbm-story-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
    gap: 24px;
  }

  .cbm-story-card,
  .cbm-story-card-content {
    min-height: 580px;
  }

  /* Values: single column */
  .cbm-values-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
    gap: 28px;
  }

  .cbm-value-card {
    min-height: auto;
  }
}

/* ============================= */
/* MOBILE (max-width: 640px)     */
/* ============================= */

@media (max-width: 640px) {

  /* ---- Header ---- */
  .cbm-about-header {
    padding: 18px 4%;
  }

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

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

  /* ---- Hero image ---- */
  .cbm-about-hero {
    height: 260px;
  }

  /* ---- Story section ---- */
  .cbm-about-story {
    padding: 50px 4% 60px;
  }

  .cbm-story-inner p {
    font-size: clamp(24px, 6.5vw, 34px);
    line-height: 1.25;
    letter-spacing: 0.2px;
  }

  /* Shrink pattern lines so they don't overflow */
  .cbm-pattern-lines span:nth-child(1) {
    width: 380px;
    height: 280px;
    left: -140px;
    top: -60px;
  }

  .cbm-pattern-lines span:nth-child(2) {
    width: 340px;
    height: 240px;
    left: 80px;
    top: -100px;
  }

  .cbm-pattern-lines span:nth-child(3) {
    width: 360px;
    height: 260px;
    right: -200px;
    top: -50px;
  }

  /* ---- Story wall ---- */
  .cbm-story-wall-section {
    padding: 0 4% 64px;
  }

  .cbm-mission-card {
    margin-bottom: 48px;
    padding: 22px 18px 26px;
    grid-template-columns: 14px 1fr;
    gap: 14px;
    border-radius: 16px;
  }

  .cbm-mission-dot {
    width: 10px;
    height: 10px;
    margin-top: 12px;
  }

  .cbm-mission-card h2 {
    font-size: clamp(22px, 6vw, 30px);
    line-height: 1.2;
    letter-spacing: -0.03em;
  }

  /* Story cards */
  .cbm-story-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 20px;
  }

  .cbm-story-card,
  .cbm-story-card-content {
    min-height: 500px;
  }

  .cbm-story-card-content {
    padding: 28px 18px 18px;
    transform: none; /* disable translateZ on mobile */
  }

  .cbm-story-card-content h3 {
    font-size: clamp(26px, 7vw, 34px);
    margin-bottom: 14px;
  }

  .cbm-story-card-content p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 24px;
  }

  .cbm-story-btn {
    min-height: 58px;
    padding: 16px 20px;
    font-size: 16px;
    border-radius: 12px;
  }

  .cbm-story-btn span {
    font-size: 22px;
  }

  /* ---- Values section ---- */
  .cbm-values-section {
    padding: 60px 4% 70px;
  }

  .cbm-values-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 20px;
  }

  .cbm-value-card {
    min-height: auto;
    border-radius: 18px;
  }

  .cbm-value-head {
    min-height: 90px;
    padding: 24px 22px;
    gap: 16px;
  }

  .cbm-value-head span {
    width: 11px;
    height: 11px;
    flex: 0 0 11px;
  }

  .cbm-value-head h3 {
    font-size: clamp(28px, 7vw, 36px);
    letter-spacing: -0.04em;
  }

  .cbm-value-body {
    padding: 28px 22px 32px;
  }

  .cbm-value-body p {
    font-size: clamp(22px, 5.5vw, 30px);
    line-height: 1.22;
    letter-spacing: -0.03em;
  }

  /* ---- Partnership fit section ---- */
  .cbm-fit-section {
    padding: 56px 4% 64px;
  }

  .cbm-fit-heading {
    margin-bottom: 32px;
  }

  .cbm-fit-heading span {
    font-size: 13px;
    letter-spacing: 0.1em;
    margin-bottom: 14px;
  }

  .cbm-fit-heading h2 {
    font-size: clamp(36px, 9vw, 48px);
    letter-spacing: -0.05em;
    margin-bottom: 20px;
  }

  .cbm-fit-heading p {
    font-size: clamp(20px, 5vw, 28px);
    letter-spacing: -0.03em;
  }

  .cbm-fit-list {
    gap: 16px;
    margin-bottom: 40px;
  }

  .cbm-fit-item {
    grid-template-columns: 32px 1fr;
    gap: 14px;
    padding: 18px 16px;
    border-radius: 16px;
    min-height: auto;
  }

  .cbm-fit-icon {
    font-size: 28px;
  }

  .cbm-fit-item p {
    font-size: clamp(18px, 4.5vw, 24px);
    letter-spacing: -0.03em;
    font-weight: 700;
  }

  .cbm-fit-closing {
    font-size: clamp(18px, 4.5vw, 26px);
    line-height: 1.3;
    letter-spacing: -0.02em;
    padding-top: 12px;
  }

  /* ---- Footer CTA ---- */
  .cbm-footer-cta {
    padding: 44px 4%;
    gap: 20px;
  }

  .cbm-footer-cta h2 {
    font-size: clamp(34px, 9vw, 48px);
  }

  .cbm-footer-connector {
    height: 70px;
    max-width: 280px;
  }

  .cbm-footer-btn {
    max-width: 260px;
    min-height: 58px;
    padding: 16px 28px;
    font-size: 14px;
    letter-spacing: 0.02em;
  }

  /* ---- Footer main ---- */
  .cbm-footer-main {
    padding: 40px 4% 44px;
    gap: 28px;
  }

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

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

  .cbm-footer-logo p {
    padding-left: 16px;
    font-size: 10px;
    letter-spacing: 0.46em;
  }

  .cbm-footer-text,
  .cbm-footer-contact {
    font-size: 15px;
    line-height: 1.55;
  }

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

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

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

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

/* ============================= */
/* VERY SMALL (max-width: 380px) */
/* ============================= */

@media (max-width: 380px) {
  .cbm-logo h1 {
    font-size: 18px;
  }

  .cbm-story-inner p {
    font-size: 22px;
  }

  .cbm-mission-card h2 {
    font-size: 20px;
  }

  .cbm-story-card-content h3 {
    font-size: 24px;
  }

  .cbm-value-head h3 {
    font-size: 26px;
  }

  .cbm-value-body p {
    font-size: 20px;
  }

  .cbm-fit-heading h2 {
    font-size: 32px;
  }

  .cbm-fit-item p {
    font-size: 16px;
  }

  .cbm-footer-btn {
    max-width: 100%;
    font-size: 13px;
    padding: 14px 20px;
  }

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

/* ============================= */
/* REDUCED MOTION                */
/* ============================= */

@media (prefers-reduced-motion: reduce) {
  .cbm-story-card,
  .cbm-story-card-content,
  .cbm-story-card-image,
  .cbm-story-btn,
  .cbm-value-card,
  .cbm-fit-item,
  .cbm-fit-item::before,
  .cbm-fit-light,
  .cbm-mission-card,
  .cbm-mission-dot,
  .cbm-value-head span {
    animation: none;
    transition: none;
  }
}
