.bmg-home {
  --bmg-ink: #111417;
  --bmg-muted: #5f6670;
  --bmg-gold: #b58a3a;
  --bmg-gold-light: #d7bc82;
  --bmg-red: #c5232d;
  --bmg-surface: #f5f3ef;
  --bmg-line: #e4e1da;
  color: var(--bmg-ink);
  font-size: 17px;
  line-height: 1.65;
}

.bmg-home *, .bmg-home *::before, .bmg-home *::after { box-sizing: border-box; }
.bmg-home h1, .bmg-home h2, .bmg-home h3 { color: var(--bmg-ink); line-height: 1.15; letter-spacing: -0.025em; }
.bmg-home h1 { margin: 14px 0 18px; font-size: clamp(2.2rem, 5vw, 4.75rem); max-width: 880px; }
.bmg-home h2 { margin: 10px 0 28px; font-size: clamp(1.75rem, 3vw, 3rem); }
.bmg-home h3 { margin: 0 0 10px; font-size: 1.2rem; }
.bmg-home p { margin-top: 0; }
.bmg-home a { color: inherit; }

.bmg-container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.bmg-section { padding: clamp(64px, 8vw, 108px) 0; }
.bmg-section--muted { background: var(--bmg-surface); }
.bmg-grid { display: grid; gap: clamp(24px, 4vw, 52px); align-items: center; }
.bmg-grid--2 { grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); }
.bmg-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }

.bmg-hero { padding: clamp(72px, 10vw, 132px) 0; background: radial-gradient(circle at 80% 15%, rgb(181 138 58 / 22%), transparent 38%), linear-gradient(135deg, #fff 0%, #f3efe7 100%); border-bottom: 1px solid var(--bmg-line); }
.bmg-eyebrow { margin: 0; color: #846423; font-size: .78rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.bmg-lead { max-width: 760px; color: #3f464e; font-size: clamp(1.05rem, 1.6vw, 1.28rem); }
.bmg-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 24px; }
.bmg-button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 12px 22px; border: 1px solid transparent; border-radius: 8px; font-weight: 800; text-decoration: none; transition: transform .18s ease, background .18s ease; }
.bmg-button:hover { transform: translateY(-1px); }
.bmg-button--primary { background: var(--bmg-red); color: #fff !important; }
.bmg-button--primary:hover { background: #a91922; }
.bmg-button--ghost { border-color: #2f353b; background: transparent; color: var(--bmg-ink) !important; }
.bmg-card { height: 100%; padding: clamp(24px, 3vw, 38px); border: 1px solid var(--bmg-line); border-radius: 16px; background: #fff; box-shadow: 0 14px 40px rgb(20 20 20 / 6%); }
.bmg-card--accent { border-top: 5px solid var(--bmg-gold); }
.bmg-text-link { color: #7b5a1e !important; font-weight: 800; text-decoration: none; }

.bmg-section--needs { padding-top: clamp(54px, 7vw, 88px); padding-bottom: clamp(54px, 7vw, 88px); }
.bmg-section-intro { max-width: 720px; margin: -12px 0 30px; color: var(--bmg-muted); }
.bmg-primary-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.bmg-service-path { display: flex; flex-direction: column; position: relative; min-height: 320px; padding: clamp(28px, 3vw, 42px); overflow: hidden; border: 1px solid var(--bmg-line); border-radius: 20px; background: #151a1f; color: #eef1f3; box-shadow: 0 16px 42px rgb(20 20 20 / 10%); }
.bmg-service-path::after { content: ''; position: absolute; right: -60px; bottom: -70px; width: 190px; height: 190px; border: 32px solid rgb(255 255 255 / 7%); border-radius: 50%; }
.bmg-service-path--factory { background: #7e1b22; }
.bmg-service-path--care { background: #70531e; }
.bmg-service-path__number { display: block; margin-bottom: 46px; color: #e0bd79; font-size: .82rem; font-weight: 900; letter-spacing: .12em; }
.bmg-service-path h3 { max-width: 310px; margin-bottom: 14px; color: #fff; font-size: clamp(1.35rem, 2.2vw, 1.85rem); }
.bmg-service-path p { max-width: 360px; color: rgb(255 255 255 / 78%); }
.bmg-service-path a { position: relative; margin-top: auto; padding-top: 12px; z-index: 1; display: flex; min-height: 44px; align-items: center; color: #fff; font-weight: 850; text-decoration: none; }
.bmg-service-path::after { pointer-events: none; }
.bmg-home .bmg-lead-form--compact { margin-top: 20px; }
.bmg-home .bmg-card--accent h2 { font-size: clamp(1.6rem, 2.4vw, 2.3rem); }
.bmg-service-path a:hover { color: #f0d49d; }
.bmg-quick-links { display: flex; margin-top: 24px; flex-wrap: wrap; gap: 9px; }
.bmg-quick-links a { padding: 9px 13px; border: 1px solid var(--bmg-line); border-radius: 999px; background: #fff; color: #343b43; font-size: .86rem; font-weight: 750; text-decoration: none; }
.bmg-quick-links a:hover { border-color: var(--bmg-gold); color: #725317; }
.bmg-needs-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.bmg-need { display: flex; min-height: 186px; flex-direction: column; gap: 7px; padding: 22px 18px; border: 1px solid var(--bmg-line); border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgb(20 20 20 / 5%); text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.bmg-need:hover { transform: translateY(-3px); border-color: var(--bmg-gold-light); box-shadow: 0 16px 38px rgb(20 20 20 / 9%); }
.bmg-need__icon { display: grid; width: 48px; height: 48px; margin-bottom: 8px; place-items: center; border-radius: 12px; background: #f4ede0; color: #7b5a1e; font-size: 1.45rem; font-weight: 900; }
.bmg-need strong { font-size: 1rem; line-height: 1.3; }
.bmg-need > span:last-child { color: var(--bmg-muted); font-size: .84rem; line-height: 1.45; }

.bmg-trust-list, .bmg-check-list { margin: 0; padding: 0; list-style: none; }
.bmg-trust-list { display: flex; flex-wrap: wrap; gap: 10px 22px; color: #4f565d; font-size: .92rem; }
.bmg-trust-list li::before, .bmg-check-list li::before { content: '✓'; margin-right: 8px; color: #92702f; font-weight: 900; }
.bmg-check-list li { padding: 11px 0; border-bottom: 1px solid var(--bmg-line); }
.bmg-check-list li:last-child { border: 0; }

.bmg-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 34px 0 0; padding: 0; list-style: none; counter-reset: bmg-step; }
.bmg-steps li { position: relative; min-height: 180px; padding: 64px 22px 24px; border: 1px solid var(--bmg-line); border-radius: 14px; background: #fff; counter-increment: bmg-step; }
.bmg-steps li::before { content: counter(bmg-step, decimal-leading-zero); position: absolute; top: 18px; left: 22px; color: var(--bmg-gold); font-size: 1.5rem; font-weight: 900; }
.bmg-steps strong, .bmg-steps span { display: block; }
.bmg-steps strong { margin-bottom: 8px; }
.bmg-steps span { color: var(--bmg-muted); font-size: .95rem; }

.bmg-section--dark { background: var(--bmg-ink); color: #eef0f2; }
.bmg-section--dark h2, .bmg-section--dark a { color: #fff; }
.bmg-section--dark .bmg-eyebrow { color: var(--bmg-gold-light); }
.bmg-card--light { color: var(--bmg-ink); }
.bmg-company { padding-block: 36px; border-top: 1px solid var(--bmg-line); background: #fff; color: #4f565d; font-size: .9rem; }
.bmg-company p { margin: 0; }
.bmg-button--dark { background: var(--bmg-ink); color: #fff !important; }
.bmg-proof { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 2rem; }
.bmg-proof h2 { margin-bottom: 12px; }
.bmg-proof p { max-width: 720px; color: var(--bmg-muted); }
.bmg-proof__actions { display: flex; align-items: center; gap: 18px; }
.bmg-faq-layout { display: grid; grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr); gap: clamp(30px, 6vw, 86px); align-items: start; }
.bmg-faq-list { border-top: 1px solid var(--bmg-line); }
.bmg-faq-list details { border-bottom: 1px solid var(--bmg-line); }
.bmg-faq-list summary { padding: 20px 40px 20px 0; color: var(--bmg-ink); font-weight: 820; cursor: pointer; }
.bmg-faq-list details p { max-width: 760px; padding: 0 34px 20px 0; color: var(--bmg-muted); }
.bmg-section-heading { display: flex; margin-bottom: 30px; align-items: end; justify-content: space-between; gap: 2rem; }
.bmg-section-heading h2 { margin-bottom: 0; }
.bmg-product-preview { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.bmg-product-card { display: flex; min-width: 0; min-height: 100%; flex-direction: column; overflow: hidden; border: 1px solid var(--bmg-line); border-radius: 12px; background: #fff; box-shadow: 0 8px 24px rgb(20 20 20 / 4%); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.bmg-product-card:hover { transform: translateY(-3px); border-color: #d8c38f; box-shadow: 0 14px 32px rgb(20 20 20 / 9%); }
.bmg-product-card__image { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #f7f8f9; }
.bmg-product-card__image img { display: block; width: 100%; height: 100%; padding: 10px; object-fit: contain; }
.bmg-product-card__badge { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 4px 7px; border-radius: 999px; background: #f2b532; color: #fff; font-size: .72rem; font-weight: 850; }
.bmg-product-card__content { display: flex; height: 100%; padding: 13px 14px 14px; flex-direction: column; }
.bmg-product-card h3 { display: -webkit-box; min-height: 3.95em; margin: 0 0 8px; overflow: hidden; font-size: .9rem; line-height: 1.32; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.bmg-product-card h3 a { text-decoration: none; }
.bmg-product-card__rating { margin-bottom: 8px; color: #f4a900; font-size: .76rem; font-weight: 800; }
.bmg-product-card__rating span { color: #9aa1a7; font-weight: 600; }
.bmg-product-card__price { margin-top: auto; color: var(--bmg-red); font-size: .9rem; font-weight: 850; }
.bmg-product-card__price del { color: #a9adb2; font-size: .78rem; font-weight: 600; }
.bmg-product-card__price ins { text-decoration: none; }
.bmg-product-card__link { margin-top: 9px; color: #73551b !important; font-size: .78rem; font-weight: 800; text-decoration: none; }

.bmg-article-preview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.bmg-article-card { overflow: hidden; border: 1px solid var(--bmg-line); border-radius: 16px; background: #fff; }
.bmg-article-card__image { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #e9ecef; }
.bmg-article-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.bmg-article-card:hover img { transform: scale(1.03); }
.bmg-article-card > div { padding: 22px; }
.bmg-article-card time { color: #737b83; font-size: .78rem; }
.bmg-article-card h3 { margin: 8px 0 14px; font-size: 1.15rem; line-height: 1.45; }
.bmg-article-card h3 a { text-decoration: none; }

@media (max-width: 900px) {
  .bmg-grid--2, .bmg-grid--3 { grid-template-columns: 1fr; }
  .bmg-primary-services { grid-template-columns: 1fr; }
  .bmg-service-path { min-height: 275px; }
  .bmg-needs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bmg-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bmg-proof, .bmg-faq-layout { grid-template-columns: 1fr; }
  .bmg-proof__actions { align-items: flex-start; }
  .bmg-product-preview { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bmg-article-preview { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .bmg-container { width: min(100% - 28px, 1180px); }
  .bmg-hero { padding-top: 54px; }
  .bmg-actions { flex-direction: column; }
  .bmg-button { width: 100%; }
  .bmg-needs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .bmg-service-path { min-height: 300px; }
  .bmg-need { min-height: 166px; padding: 18px 14px; }
  .bmg-trust-list { display: grid; }
  .bmg-steps { grid-template-columns: 1fr; }
  .bmg-proof__actions { flex-direction: column; align-items: stretch; }
  .bmg-section-heading { align-items: flex-start; flex-direction: column; gap: .5rem; }
  .bmg-product-preview { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .bmg-product-card__content { padding: 11px; }
  .bmg-product-card h3 { min-height: 3.8em; font-size: .84rem; }
}

@media (prefers-reduced-motion: reduce) {
  .bmg-home * { scroll-behavior: auto !important; transition: none !important; }
}


/* BMG 0.10.6 — Apple-style native horizontal sections, mobile only.
 * Scope: primary services, service quick-links and homepage tool cards.
 * No carousel library, no autoplay, no DOM/markup changes.
 */
@media (max-width: 767px) {
  .bmg-home .bmg-primary-services,
  .bmg-home .bmg-quick-links {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 14px;
    scrollbar-width: none;
    margin-inline: -14px;
    padding-inline: 14px;
  }

  .bmg-home .bmg-primary-services::-webkit-scrollbar,
  .bmg-home .bmg-quick-links::-webkit-scrollbar,
  .bmg-home .bmg-tool-cards::-webkit-scrollbar {
    display: none;
  }

  .bmg-home .bmg-primary-services {
    gap: 12px;
    padding-block: 3px 10px;
  }

  .bmg-home .bmg-primary-services > .bmg-service-path {
    flex: 0 0 min(84vw, 360px);
    min-width: 0;
    min-height: 300px;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
  }

  .bmg-home .bmg-quick-links {
    gap: 8px;
    margin-top: 18px;
    padding-block: 2px 7px;
  }

  .bmg-home .bmg-quick-links > a {
    flex: 0 0 auto;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    scroll-snap-align: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bmg-home .bmg-primary-services,
  .bmg-home .bmg-quick-links {
    scroll-behavior: auto;
    scroll-snap-type: none;
  }
}

/* BMG 0.10.7 — Apple-style pagination dots for the three mobile swipe sections. */
.bmg-swipe-dots{display:none}
@media (max-width:767px){
  .bmg-home .bmg-swipe-dots{display:flex;align-items:center;justify-content:center;gap:6px;margin:8px 0 18px;min-height:12px}
  .bmg-home .bmg-swipe-dots button{width:6px;height:6px;min-width:6px;padding:0;border:0;border-radius:50%;background:#b9c0c4;cursor:pointer;transition:transform .18s ease,background-color .18s ease}
  .bmg-home .bmg-swipe-dots button[aria-current="true"]{width:8px;height:8px;min-width:8px;background:#233e4d;transform:scale(1.05)}
  .bmg-home .bmg-quick-links + .bmg-swipe-dots{margin-top:4px}
}

/* BMG 0.10.8 — refined mobile carousel proportions, Apple-like pagination. */
@media (max-width: 767px) {
  .bmg-home .bmg-primary-services > .bmg-service-path {
    flex-basis: min(67vw, 270px);
    min-height: 300px;
  }
  .bmg-home .bmg-tool-cards > .bmg-tool-card {
    flex-basis: min(67vw, 270px);
  }
  .bmg-home .bmg-swipe-dots {
    gap: 6px;
    min-height: 10px;
    margin: 7px 0 16px;
  }
  .bmg-home .bmg-swipe-dots button {
    width: 7px;
    height: 7px;
    min-width: 7px;
    border-radius: 50%;
    background: #b8c0c4;
    transform: none;
  }
  .bmg-home .bmg-swipe-dots button[aria-current="true"] {
    width: 24px;
    height: 7px;
    min-width: 24px;
    border-radius: 999px;
    background: #233e4d;
    transform: none;
  }
}


/* BMG 0.10.9 — compact Apple-like page control; defeat inherited theme button sizing. */
@media (max-width: 767px) {
  .bmg-home .bmg-swipe-dots {
    display:flex!important; align-items:center!important; justify-content:center!important;
    gap:9px!important; min-height:8px!important; height:8px!important;
    margin:12px 0 20px!important; padding:0!important; line-height:0!important;
  }
  .bmg-home .bmg-swipe-dots > button {
    appearance:none!important; -webkit-appearance:none!important;
    box-sizing:border-box!important; display:block!important; flex:0 0 7px!important;
    inline-size:7px!important; block-size:7px!important; width:7px!important; height:7px!important;
    min-inline-size:0!important; min-block-size:0!important; min-width:0!important; min-height:0!important;
    max-width:7px!important; max-height:7px!important; margin:0!important; padding:0!important;
    border:0!important; border-radius:999px!important; box-shadow:none!important;
    background:#9aa0a6!important; opacity:.58!important; line-height:0!important;
    transform:none!important; transition:width .22s ease,flex-basis .22s ease,opacity .22s ease,background-color .22s ease!important;
  }
  .bmg-home .bmg-swipe-dots > button[aria-current="true"] {
    flex-basis:28px!important; inline-size:28px!important; width:28px!important; max-width:28px!important;
    block-size:7px!important; height:7px!important; max-height:7px!important;
    background:#3f4448!important; opacity:1!important;
  }
}


/* BMG 0.10.10 — only the large service cards keep page-control dots. */
@media (max-width:767px){
  .bmg-home .bmg-quick-links{gap:7px!important;margin-top:14px!important;padding-block:1px 5px!important}
  .bmg-home .bmg-quick-links>a{min-height:36px!important;padding:7px 11px!important;font-size:.80rem!important}
}
