/* Homepage refinements. Shared catalog and detail-page styles stay in styles.css. */
.catalog-home {
  --ink: #163c2b;
  --ink-2: #365747;
  --muted: #617168;
  --line: #dde6df;
  --paper: #f6f8f5;
  --page-gutter: max(24px, calc((100vw - 1280px) / 2));
  background: #fff;
  font-size: 16px;
}
.catalog-home [hidden] { display: none !important; }
.catalog-home :focus-visible { outline: 3px solid #0b7a05; outline-offset: 4px; }
.catalog-home .strength-hero :focus-visible,
.catalog-home .mega-catalog :focus-visible,
.catalog-home .site-footer :focus-visible { outline-color: #a8ed8f; }
.catalog-home h1, .catalog-home h2 { letter-spacing: -.045em; text-wrap: balance; }
.catalog-home h3 { line-height: 1.3; }
.catalog-home main { display: flex; flex-direction: column; }
.catalog-home main > * { min-width: 0; }
.catalog-home main:focus { outline: none; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 12px 18px; color: white; background: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.catalog-home .eyebrow { margin-bottom: 16px; font-size: .75rem; font-weight: 700; letter-spacing: .15em; line-height: 1.5; }
.catalog-home .button { min-height: 50px; border-radius: 6px; padding: 12px 22px; font-size: .9375rem; transition: background .18s, border-color .18s, transform .18s; }
.catalog-home .button:hover { transform: translateY(-1px); }
.catalog-home .utility-bar { min-height: 34px; padding: 6px var(--page-gutter); background: #143d29; font-size: .75rem; letter-spacing: .03em; }
.catalog-home .utility-bar a { font-size: .75rem; }
.catalog-home .sage-brand-row { grid-template-columns: 210px minmax(180px, 580px) auto; gap: 36px; min-height: 98px; padding: 16px var(--page-gutter); }
.catalog-home .brand-logo { width: 164px; height: auto; }
.catalog-home .header-search { min-height: 48px; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.catalog-home .header-search:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px #0b7a0514; }
.catalog-home .header-search input { min-height: 46px; padding: 0 16px; background: transparent; font-size: 1rem; }
.catalog-home .header-search input:focus { box-shadow: none; }
.catalog-home .header-actions button { min-height: 44px; gap: 9px; font-size: .875rem; white-space: nowrap; }
.catalog-home .header-actions button span { display: inline; }
.catalog-home .header-actions svg { width: 21px; height: 21px; }
.catalog-home .quote-count { min-width: 22px; height: 22px; border-radius: 50%; }
.catalog-home .sage-main-row { justify-content: space-between; gap: 20px; min-height: 52px; padding: 0 var(--page-gutter); }
.catalog-home .sage-main-row .main-nav { gap: 32px; }
.catalog-home .sage-main-row .main-nav > a, .catalog-home .spotlight-menu > summary { padding: 14px 0; font-size: .875rem; font-weight: 600; letter-spacing: 0; }
.catalog-home .nav-catalog-link { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; font-weight: 600; }
.nav-catalog-link svg { width: 17px; height: 17px; }
.catalog-home .spotlight-menu > div { left: 0; transform: none; border-radius: 0 0 8px 8px; }
.catalog-home .mega-catalog { z-index: 25; min-height: 48px; background: #173e2d; }
.catalog-home .mega-nav { background: inherit; }
.catalog-home .mega-list { justify-content: center; flex-wrap: wrap; column-gap: 8px; padding: 0 var(--page-gutter); }
.catalog-home .mega-primary { min-height: 48px; }
.catalog-home .mega-category-link { padding: 0 7px; font-size: .875rem; }
.catalog-home .mega-trigger { width: 28px; padding: 0 5px; min-height: 44px; }
.catalog-home .mega-panel { padding: 28px var(--page-gutter); gap: 18px; max-height: 65vh; overflow: auto; border-bottom: 3px solid var(--green); }
.catalog-home .mega-group { padding: 0 18px 0 0; }
.catalog-home .mega-group strong { color: var(--muted); font-size: .75rem; }
.catalog-home .mega-group a { color: var(--ink-2); font-size: .9375rem; padding: 8px; }
/* Explicit open state keeps the menu button and aria-expanded in sync. */
.catalog-home .mega-item:hover .mega-panel,
.catalog-home .mega-item:focus-within .mega-panel { display: none; }
.catalog-home .mega-item.mega-open .mega-panel { display: grid; }
.catalog-home .mega-item .mega-trigger svg { transform: none; }
.catalog-home .mega-item.mega-open .mega-trigger svg { transform: rotate(180deg); }
.category-toggle { display: none; }

.catalog-home .strength-hero { order: 0; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); min-height: 0; margin: 32px var(--page-gutter) 0; border-radius: 12px; background: #173e2d; }
.catalog-home .strength-intro { padding: clamp(32px, 4.4vw, 68px); background: transparent; }
.catalog-home .strength-intro .eyebrow { color: #b6e5a5; }
.catalog-home .strength-intro h1 { margin-bottom: 24px; font-size: clamp(2.5rem, 4.2vw, 4rem); line-height: 1.08; font-weight: 700; }
.catalog-home .strength-intro > p:not(.eyebrow) { margin-bottom: 28px; color: #d2dfd6; font-size: 1rem; line-height: 1.75; }
.catalog-home .strength-actions { gap: 12px; }
.catalog-home .strength-actions .button-primary { color: #173e2d; background: #c3eead; }
.catalog-home .strength-actions .button-primary:hover { background: #d7f7c6; }
.catalog-home .strength-actions .button-light { color: #fff; border-color: #789781; background: transparent; }
.catalog-home .strength-actions .button-light:hover { background: #ffffff12; }
.catalog-home .strength-intro .hero-footnote { margin: 26px 0 0; font-size: .8125rem; color: #c0d4c7; }
.hero-product { min-width: 0; align-self: stretch; display: flex; flex-direction: column; margin: 16px 16px 16px 0; padding: 28px 32px; border-radius: 8px; color: var(--ink); background: #eef2e9; }
.hero-product-label { font-size: .75rem; letter-spacing: .12em; font-weight: 600; }
.hero-product img { flex: 1; min-height: 0; width: 100%; height: 320px; object-fit: contain; mix-blend-mode: multiply; transition: transform .4s; }
.hero-product:hover img { transform: scale(1.025); }
.hero-product-caption { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; border-top: 1px solid #d0dace; }
.hero-product-caption small { display: block; margin-bottom: 4px; font-size: .75rem; letter-spacing: .06em; color: var(--muted); }
.hero-product-caption strong { font-family: Manrope, Arial, sans-serif; font-size: 1.25rem; }
.hero-product-arrow { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border-radius: 50%; color: #fff; background: var(--ink); font-size: 1.5rem; }
.catalog-home .strength-panel { order: 1; display: block; padding: 0 var(--page-gutter); background: white; }
.catalog-home .strength-stats { margin: 32px 0 0; grid-template-columns: repeat(4, minmax(0, 1fr)); border-width: 0 0 1px; }
.catalog-home .strength-stats article { min-height: 122px; margin: 0 0 28px; padding: 8px 30px; }
.catalog-home .strength-stats article:first-child { padding-left: 0; }
.catalog-home .strength-stats strong { font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -.04em; }
.catalog-home .strength-stats span { margin-top: 10px; font-size: .875rem; }
.catalog-home .strength-services { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.catalog-home .strength-services li { gap: 12px; font-size: .875rem; line-height: 1.65; }
.catalog-home .strength-services svg { width: 22px; height: 22px; }

.catalog-home .sage-products { order: 3; padding: 76px var(--page-gutter) 64px; background: #fff; }
.catalog-home .products-heading { align-items: center; margin-bottom: 30px; gap: 24px; }
.catalog-home .products-heading h2, .catalog-home .stories-heading h2, .catalog-home .welcome-copy h2 { margin-bottom: 0; font-size: clamp(2rem, 3.3vw, 3rem); line-height: 1.16; }
.catalog-home .products-heading .eyebrow { margin-bottom: 12px; }
.catalog-home .search-field { flex: 0 1 320px; width: 320px; border-radius: 6px; background: var(--paper); }
.catalog-home .search-field input { min-width: 0; font-size: 1rem; }
.catalog-home .search-field svg { flex: 0 0 18px; }
.catalog-home .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 22px; }
.catalog-home .product-card { display: flex; flex-direction: column; padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.catalog-home .product-card:hover { border-color: #b5c9b9; box-shadow: 0 8px 24px #143d290c; }
.catalog-home .product-image-wrap { background: #f5f6f3; }
.catalog-home .product-image { padding: 18px; mix-blend-mode: multiply; }
.catalog-home .product-body { flex: 1; display: flex; flex-direction: column; padding: 12px 18px 18px; }
.catalog-home .product-category { margin: 0 0 6px; color: var(--muted); font-size: .875rem; }
.catalog-home .product-body h3 { margin: 0 0 10px; font-size: 1.125rem; font-weight: 700; line-height: 1.4; letter-spacing: -.01em; }
.catalog-home .product-rating { font-size: .875rem; }
.catalog-home .item-number { margin: auto 0 14px; color: var(--muted); font-size: .875rem; }
.catalog-home .product-card-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.catalog-home .product-price { font-size: 1rem; font-weight: 700; }
.catalog-home .product-quote-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: white; font-size: .875rem; font-weight: 600; cursor: pointer; }
.catalog-home .product-quote-button:hover { background: var(--paper); border-color: var(--green); }
.catalog-home .product-quote-button[aria-pressed="true"] { color: var(--coral-dark); background: #eff7e9; border-color: #c9ddc0; }
.catalog-home .product-quote-button svg { width: 16px; height: 16px; }
.products-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 32px; }
.products-bottom p { margin: 0; color: var(--muted); font-size: .875rem; }
.catalog-home .no-results { padding: 48px 24px; border: 1px dashed var(--line); border-radius: 8px; background: var(--paper); }

.catalog-home .customer-stories { order: 2; padding: 64px var(--page-gutter); background: #f5f7f3; }
.catalog-home .stories-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.catalog-home .stories-heading > div:first-child > p:last-child { margin-top: 14px; font-size: 1rem; }
.catalog-home .stories-controls { display: flex; gap: 8px; }
.catalog-home .stories-controls button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: white; cursor: pointer; }
.catalog-home .stories-controls button:not(:disabled):hover { color: white; background: var(--green); border-color: var(--green); }
.catalog-home .stories-controls button:disabled { opacity: .35; cursor: not-allowed; }
.catalog-home .stories-controls svg { width: 18px; height: 18px; }
.catalog-home .stories-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-inline: contain; }
.catalog-home .stories-track::-webkit-scrollbar { display: none; }
.catalog-home .story-card { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: white; scroll-snap-align: start; }
.catalog-home .story-image { display: flex; align-items: center; min-height: 0; padding: 28px; background: #eeece6; }
.catalog-home .story-image img { width: 100%; height: auto; object-fit: contain; mix-blend-mode: multiply; }
.catalog-home .story-content { padding: 36px; }
.catalog-home .story-content h3 { margin-bottom: 16px; font-size: clamp(1.5rem, 2.1vw, 2rem); letter-spacing: -.03em; }
.catalog-home .story-content > p:not(.eyebrow) { font-size: 1rem; }
.catalog-home .story-stats { margin: 20px 0; border-width: 1px 0; }
.catalog-home .story-stats div { padding: 14px 18px; }
.catalog-home .story-stats div:first-child { padding-left: 0; }
.catalog-home .story-stats dt { font-size: 1.625rem; }
.catalog-home .story-stats dd { font-size: .875rem; }
.catalog-home .story-content ul { font-size: .875rem; }
.catalog-home .story-content blockquote { background: #f5f7f3; font-size: .9375rem; font-weight: 500; }
.catalog-home .welcome-section { order: 4; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); min-height: 0; gap: 64px; padding: 80px var(--page-gutter); }
.catalog-home .welcome-image { min-height: 0; display: flex; align-items: center; justify-content: center; padding: 32px; background: #f5f6f3; border-radius: 10px; }
.catalog-home .welcome-image img { height: auto; max-height: 390px; object-fit: contain; mix-blend-mode: multiply; }
.catalog-home .welcome-copy { padding: 16px 0; }
.catalog-home .welcome-copy h2 { margin-bottom: 24px; }
.catalog-home .welcome-copy > p:not(.eyebrow) { max-width: 600px; line-height: 1.8; }
.catalog-home .site-footer { grid-template-columns: 1.4fr .7fr .9fr 1.2fr; gap: 36px; padding: 56px var(--page-gutter) 24px; border-top: 0; background: #143726; font-size: .875rem; }
.catalog-home .site-footer > div:nth-child(4) { grid-column: auto; }
.catalog-home .footer-brand { padding: 10px 16px; background: white; border-radius: 5px; margin-bottom: 10px; }
.catalog-home .footer-brand .brand-logo { width: 158px; }
.catalog-home .site-footer a, .catalog-home .site-footer span { overflow-wrap: anywhere; }
.catalog-home .copyright { padding-top: 24px; font-size: .75rem; line-height: 2; }
.catalog-home .copyright button { display: inline-block; min-height: 32px; font-size: .8125rem; }

.catalog-home .modal-panel { overscroll-behavior: contain; padding: 62px 36px 36px; background: #fafbf8; }
.catalog-home .close-button { width: 44px; height: 44px; font-size: 1.75rem; color: var(--ink); border: 1px solid var(--line); border-radius: 50%; background: white; }
.catalog-home .quote-intro h2 { font-size: 2rem; }
.catalog-home .quote-line { grid-template-columns: 54px minmax(0, 1fr) 44px; border-radius: 6px; }
.catalog-home .quote-line strong { font-size: .875rem; overflow-wrap: anywhere; }
.catalog-home .quote-line small { font-size: .75rem; }
.catalog-home .remove-item { width: 44px; height: 44px; font-size: 1.5rem; }
.catalog-home form label { font-size: .875rem; }
.catalog-home form input, .catalog-home form textarea { border-radius: 5px; font-size: 1rem; }
.catalog-home .form-note { font-size: .8125rem; line-height: 1.6; }
.catalog-home .legal-panel p { font-size: 1rem; }

@media (max-width: 1100px) {
  .catalog-home .sage-brand-row { grid-template-columns: 170px minmax(160px, 1fr) auto; gap: 24px; }
  .catalog-home .mega-list { justify-content: flex-start; gap: 0 8px; }
  .catalog-home .strength-intro { padding: 36px; }
  .catalog-home .strength-intro h1 { font-size: 2.75rem; }
  .hero-product { padding: 24px; }
  .hero-product img { height: 280px; }
  .catalog-home .strength-services { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .catalog-home .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .catalog-home .welcome-section { gap: 40px; }
}
@media (max-width: 760px) {
  .catalog-home { --page-gutter: 20px; }
  .catalog-home .utility-bar { justify-content: center; }
  .catalog-home .utility-bar > span { display: block; }
  .catalog-home .utility-bar > div { display: none; }
  .catalog-home .sage-brand-row { grid-template-columns: 1fr auto; gap: 14px; padding: 12px var(--page-gutter) 16px; }
  .catalog-home .brand-logo { width: 144px; }
  .catalog-home .header-actions { grid-column: 2; grid-row: 1; }
  .catalog-home .sage-brand-row .header-search { display: grid; grid-column: 1 / -1; grid-row: 2; }
  .catalog-home .sage-main-row { min-height: 48px; overflow-x: auto; }
  .catalog-home .sage-main-row .main-nav { position: static; display: flex; flex: 0 0 auto; flex-direction: row; align-items: center; gap: 24px; padding: 0; border: 0; background: transparent; box-shadow: none; white-space: nowrap; }
  .catalog-home .sage-main-row .main-nav > a, .catalog-home .spotlight-menu > summary { padding: 14px 0; }
  .catalog-home .nav-catalog-link { flex: 0 0 auto; white-space: nowrap; }
  .catalog-home .spotlight-menu > div { width: 100%; }
  .category-toggle { width: 100%; min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 10px var(--page-gutter); border: 0; color: white; background: transparent; font-size: .875rem; text-align: left; cursor: pointer; }
  .category-toggle svg { width: 18px; height: 18px; }
  .category-toggle svg:last-child { margin-left: auto; }
  .category-toggle[aria-expanded="true"] svg:last-child { transform: rotate(180deg); }
  .catalog-home .mega-nav { display: none; }
  .catalog-home .mega-catalog.categories-open .mega-nav { display: block; }
  .catalog-home .mega-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; padding: 0; }
  .catalog-home .mega-item { border-color: #42604d; }
  .catalog-home .mega-item.mega-open { grid-column: 1 / -1; }
  .catalog-home .mega-category-link { padding: 0 16px; }
  .catalog-home .mega-trigger { width: 44px; }
  .catalog-home .mega-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 20px; max-height: none; }
  .catalog-home .strength-hero { grid-template-columns: minmax(0, 1fr); margin-top: 20px; }
  .catalog-home .strength-intro { padding: 34px 26px; }
  .catalog-home .strength-intro h1 { max-width: 540px; font-size: clamp(2.25rem, 7vw, 3.1rem); }
  .catalog-home .strength-intro > p:not(.eyebrow) { margin-bottom: 24px; }
  .catalog-home .strength-intro .hero-footnote { margin-bottom: 0; }
  .hero-product { margin: 0 12px 12px; padding: 20px 24px; }
  .hero-product img { flex: auto; height: 250px; }
  .hero-product-caption strong { font-size: 1.125rem; }
  .catalog-home .strength-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 24px; }
  .catalog-home .strength-stats article { min-height: 110px; margin: 0; padding: 22px; border-bottom: 1px solid var(--line); }
  .catalog-home .strength-stats article:nth-child(odd) { padding-left: 0; }
  .catalog-home .strength-stats article:nth-child(even) { border-right: 0; }
  .catalog-home .strength-stats article:nth-child(n+3) { border-bottom: 0; }
  .catalog-home .strength-stats strong { font-size: 2rem; }
  .catalog-home .strength-services { padding: 24px 0; gap: 20px 16px; }
  .catalog-home .strength-services li { flex-direction: column; gap: 8px; }
  .catalog-home .sage-products, .catalog-home .customer-stories { padding: 48px var(--page-gutter); }
  .catalog-home .products-heading { align-items: stretch; gap: 20px; }
  .catalog-home .search-field { flex: auto; width: 100%; }
  .catalog-home .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .catalog-home .product-body { padding: 14px; }
  .catalog-home .product-image { padding: 12px; }
  .catalog-home .product-body h3 { font-size: 1rem; }
  .catalog-home .product-card-footer { align-items: stretch; flex-direction: column; }
  .catalog-home .story-card { grid-template-columns: minmax(0, 1fr); }
  .catalog-home .story-image { padding: 36px 22px; }
  .catalog-home .story-content { padding: 28px 24px; }
  .catalog-home .story-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-home .story-stats div + div { border-top: 0; border-left: 1px solid var(--line); }
  .catalog-home .welcome-section { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 48px var(--page-gutter); }
  .catalog-home .welcome-image img { max-height: 280px; }
  .catalog-home .welcome-copy { padding: 0; }
  .catalog-home .site-footer { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; padding-top: 40px; }
  .catalog-home .site-footer > div:nth-child(4) { grid-column: 1 / -1; }
  .catalog-home .modal-panel { padding: 64px 22px 28px; }
}
@media (max-width: 360px) {
  .catalog-home { --page-gutter: 16px; }
  .catalog-home .header-actions button { gap: 6px; }
  .catalog-home .header-actions button svg { display: none; }
  .catalog-home .strength-intro { padding: 30px 20px; }
  .catalog-home .strength-actions { flex-direction: column; }
  .catalog-home .product-grid { grid-template-columns: minmax(0, 1fr); }
  .catalog-home .product-card-footer { flex-direction: row; align-items: center; }
  .catalog-home .story-content { padding: 24px 18px; }
  .catalog-home .mega-panel { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .catalog-home *, .catalog-home *::before, .catalog-home *::after { scroll-behavior: auto !important; }
}
