/*
Theme Name: SmartStructure
Description: Custom classic WordPress theme migrated from the supplied SmartStructure HTML website. Includes an explicit, non-destructive content importer.
Version: 1.1.1
Requires at least: 6.6
Requires PHP: 8.1
Author: SmartStructure
Text Domain: smartstructure
*/
html { scroll-padding-top: 100px; }
.ss-wp-content { min-height: 50vh; }
.ss-form-status { margin-top: 12px; font-size: 14px; line-height: 1.5; }
.ss-form-status.is-error { color: #b42318; background: #fff1f0; padding: 10px; border-radius: 8px; }
.ss-form-status.is-success { color: #05603a; background: #ecfdf3; padding: 10px; border-radius: 8px; }
.ss-news-consent { display: block; font-size: 12px; line-height: 1.5; margin: 10px 0; }
.ss-news-consent input { width: auto !important; }
.ss-wp-skip { position: absolute; left: -10000px; }
.ss-wp-skip:focus { position: fixed; left: 12px; top: 8px; z-index: 999999; padding: 12px; background: white; color: #0a3ba8; }
body.admin-bar nav#navbar, body.admin-bar .site-header { top: 32px; }
@media(max-width:782px) { body.admin-bar nav#navbar, body.admin-bar .site-header { top: 46px; } }
.article-content .wp-block-image img { max-width: 100%; height: auto; }
.article-content table { max-width: 100%; }

/* Keep above-the-fold headings and actions visible without waiting for animation. */
.blog-hero .badge,
.blog-hero h1,
.blog-hero p,
.cat-hero-copy h1,
.cat-hero-copy p,
.cat-hero-search,
.cat-hero-location,
.cat-hero-badges,
.dealer-hero-eyebrow,
.dealer-hero-copy h1,
.dealer-hero-copy > p,
.dealer-hero-actions,
.dealer-hero-badges {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

.ss-tools-scroll-hint { display: none; }

@media (min-width: 1024px) {
  .dealer-reference-page .dealer-hero-inner { padding-top: 36px !important; }
  .dealer-reference-page .dealer-hero-copy h1 {
    font-size: clamp(42px, 3.5vw, 52px) !important;
    line-height: 1.05 !important;
  }
}

@media (max-width: 768px) {
  .cat-tab-btn { min-height: 44px !important; }
  .ss-tools-scroll-hint {
    display: block;
    margin: 0 0 8px;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    text-align: right;
  }
  .tools-tabs {
    display: flex !important;
    flex-flow: row nowrap !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline proximity;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px !important;
  }
  .tools-tabs .tab-btn {
    flex: 0 0 auto !important;
    min-width: 150px;
    min-height: 48px;
    scroll-snap-align: start;
  }
}

@media (max-width: 480px) {
  .dealer-reference-page .dealer-hero-actions a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 44px !important;
  }
}
