/*
   Storefront refinement
   This final homepage layer keeps the visual system quiet so the shop,
   products, and store photography do the work.
*/

:root {
    --background: #0c0d0c;
    --background-soft: #121312;
    --surface: #171817;
    --surface-light: #202120;
    --border: #30312f;
    --text: #f3f3ef;
    --muted: #b5b6b1;
    --accent: #e16f1d;
    --accent-hover: #f27c24;
    --max-width: 1320px;
}

html {
    background: var(--background);
}

body {
    background: var(--background);
    color: var(--text);
}

.site-header {
    border-bottom: 1px solid rgba(225, 111, 29, 0.5);
}

.site-header .top-nav {
    min-height: 78px;
    background: rgba(8, 9, 8, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: none;
}

.top-nav .nav-links {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.top-nav .nav-links a {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.72rem;
    letter-spacing: 0.055em;
}

.top-nav .nav-links a:hover,
.top-nav .nav-links a:focus-visible {
    color: #ffffff;
}

.nav-button,
.primary-button,
.secondary-button {
    min-height: 44px;
    border-radius: 4px;
    box-shadow: none;
    transform: none;
}

.nav-button:hover,
.primary-button:hover,
.secondary-button:hover {
    transform: none;
}

.hero {
    min-height: clamp(560px, 68svh, 700px);
    background: #090a09;
}

.hero::before,
.hero::after {
    display: none !important;
}

.hero-slideshow {
    background: url("images/hero-slides/05-vintage-jeep-store.jpg") center center / cover no-repeat;
}

.hero-slide {
    display: none !important;
}

.hero-overlay {
    background: rgba(5, 6, 5, 0.64) !important;
}

.hero-inner {
    display: block;
    width: min(100% - 48px, var(--max-width));
    padding: clamp(64px, 6vw, 82px) 0 clamp(64px, 5vw, 72px);
}

.hero-content {
    max-width: 640px;
    margin: 0;
    padding: 0;
}

.hero .eyebrow {
    margin-bottom: 20px;
    color: #ff8b37;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-shadow: none;
}

.hero-brand-logo {
    width: min(100%, 180px);
    margin: 0 0 18px;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.45));
}

.hero-content .hero-seo-title,
.hero h1 {
    max-width: 17ch;
    margin: 0;
    color: #ffffff;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: 0;
    text-transform: none;
    text-wrap: balance;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
    max-width: 42rem;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.08rem;
    line-height: 1.6;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.hero-actions {
    gap: 10px;
    margin-top: 24px;
}

.hero-actions .primary-button {
    padding-inline: 24px;
}

.hero-store-card,
.hero-highlights,
.hero-slide-dots {
    display: none !important;
}

main {
    width: min(100% - 48px, var(--max-width));
}

.featured-section,
.used-section,
.inventory-section,
.accessory-market-section,
.marketplace-section,
.google-reviews-section,
.social-section,
.services-section,
.contact-section {
    width: 100%;
    margin: 0;
    padding: clamp(68px, 8vw, 112px) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.featured-section {
    border-top: 0;
}

.featured-heading,
.used-heading,
.inventory-heading,
.accessory-market-heading,
.marketplace-heading,
.google-reviews-heading,
.social-heading,
.services-heading,
.contact-heading {
    max-width: 760px;
    margin-bottom: 30px;
}

.featured-heading h2,
.used-heading h2,
.inventory-heading h2,
.accessory-market-heading h2,
.marketplace-heading h2,
.google-reviews-heading h2,
.social-heading h2,
.services-heading h2,
.contact-heading h2,
.store-faq h2 {
    color: var(--text);
    font-size: 2.5rem;
    line-height: 1.05;
    letter-spacing: 0;
    text-wrap: balance;
}

.section-eyebrow {
    margin-bottom: 12px;
    color: #f17a28;
    font-size: 0.69rem;
    letter-spacing: 0.1em;
}

.featured-heading p:last-child,
.used-heading p:last-child,
.marketplace-heading p:last-child,
.social-heading p:last-child,
.services-heading p:last-child,
.contact-heading p:last-child,
.inventory-note,
.google-reviews-heading p:last-child {
    max-width: 650px;
    color: var(--muted);
    line-height: 1.65;
}

.featured-grid,
.used-grid,
.inventory-grid,
.accessory-market-grid {
    gap: 18px;
}

.inventory-card,
.featured-card,
.used-grid .inventory-card,
.accessory-listing-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--surface);
    box-shadow: none;
    transform: none !important;
    transition: border-color 160ms ease, background 160ms ease;
}

.inventory-card::before,
.inventory-card::after,
.featured-card::before,
.featured-card::after,
.used-grid .inventory-card::before,
.used-grid .inventory-card::after,
.accessory-listing-card::before,
.accessory-listing-card::after {
    display: none !important;
}

.inventory-card:hover,
.featured-card:hover,
.used-grid .inventory-card:hover,
.accessory-listing-card:hover {
    border-color: rgba(225, 111, 29, 0.8);
    background: #1b1c1a;
}

.inventory-card .product-image-wrapper,
.featured-card .product-image-wrapper,
.used-grid .product-image-wrapper,
.accessory-listing-image {
    border-bottom: 1px solid var(--border);
    background: #101110;
    box-shadow: none;
}

.inventory-card .product-image-wrapper.has-catalog-product-image,
.featured-card .product-image-wrapper.has-catalog-product-image,
.used-grid .product-image-wrapper.has-catalog-product-image {
    background: #f4f3ef;
}

.inventory-card img,
.featured-card img,
.used-grid img,
.accessory-listing-image img {
    transform: none !important;
    transition: none;
}

.inventory-card-content,
.featured-card .inventory-card-content,
.accessory-listing-content {
    padding: 20px;
}

.inventory-card h2,
.featured-card h2,
.used-grid h2,
.accessory-listing-content h3 {
    min-height: 0;
    color: #ffffff;
    letter-spacing: 0;
}

.controls,
.mini-inventory-toolbar,
.accessory-market-toolbar {
    border: 1px solid var(--border);
    border-radius: 4px;
    background: #141513;
    box-shadow: none;
}

.filter-btn,
.accessory-category-filters button,
.mini-filter-buttons button {
    border-radius: 999px;
    box-shadow: none;
}

.marketplace-grid,
.social-grid,
.services-grid,
.store-information,
.google-review-grid {
    gap: 14px;
}

.marketplace-card,
.social-card,
.service-card,
.store-info-card,
.google-review-card {
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--surface) !important;
    box-shadow: none;
    transform: none !important;
}

.marketplace-card:hover,
.social-card:hover,
.service-card:hover,
.store-info-card:hover,
.google-review-card:hover {
    border-color: rgba(225, 111, 29, 0.8);
    box-shadow: none;
    transform: none;
}

.google-review-card blockquote {
    font-family: Arial, Helvetica, sans-serif;
    font-style: normal;
}

.store-faq {
    margin-top: 42px;
    padding-top: 42px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.store-faq details {
    border-radius: 4px;
    background: #141513;
}

footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: #080908;
}

@media (max-width: 980px) {
    .hero {
        min-height: 600px;
    }

    .hero-inner {
        padding-block: 76px 68px;
    }
}

@media (max-width: 760px) {
    .site-header .top-nav {
        min-height: auto;
        padding: 10px 12px 11px;
    }

    .top-nav .nav-links {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .hero {
        min-height: 0;
    }

    .hero-slideshow {
        background-position: 56% center;
    }

    .hero-overlay {
        background: rgba(5, 6, 5, 0.58) !important;
    }

    .hero-inner,
    main {
        width: min(100% - 28px, var(--max-width));
    }

    .featured-section,
    .used-section,
    .inventory-section,
    .accessory-market-section,
    .marketplace-section,
    .google-reviews-section,
    .social-section,
    .services-section,
    .contact-section {
        width: 100%;
    }

    .hero-inner {
        padding: 52px 0 58px;
    }

    .hero-brand-logo {
        width: min(62vw, 190px);
        margin-bottom: 16px;
    }

    .hero-content .hero-seo-title,
    .hero h1 {
        max-width: 17ch;
        font-size: 2rem;
    }

    .hero-subtitle {
        max-width: 34rem;
        font-size: 0.98rem;
        line-height: 1.55;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        margin-top: 25px;
    }

    .hero-actions a {
        width: 100%;
        min-height: 48px;
        font-size: 0.76rem;
    }

    .featured-section,
    .used-section,
    .inventory-section,
    .accessory-market-section,
    .marketplace-section,
    .google-reviews-section,
    .social-section,
    .services-section,
    .contact-section {
        padding: 56px 0;
    }

    .featured-heading,
    .used-heading,
    .inventory-heading,
    .accessory-market-heading,
    .marketplace-heading,
    .google-reviews-heading,
    .social-heading,
    .services-heading,
    .contact-heading {
        gap: 16px;
        margin-bottom: 24px;
    }

    .featured-heading h2,
    .used-heading h2,
    .inventory-heading h2,
    .accessory-market-heading h2,
    .marketplace-heading h2,
    .google-reviews-heading h2,
    .social-heading h2,
    .services-heading h2,
    .contact-heading h2,
    .store-faq h2 {
        font-size: 1.875rem;
    }

    .featured-grid,
    .used-grid,
    .inventory-grid,
    .accessory-market-grid {
        gap: 12px;
    }

    .inventory-card-content,
    .featured-card .inventory-card-content,
    .accessory-listing-content {
        padding: 14px;
    }

    .marketplace-grid,
    .social-grid,
    .services-grid,
    .store-information,
    .google-review-grid {
        gap: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* Familiar storefront hero, with the restored photo gallery. */
.hero-slideshow {
    background: #080908 url("images/hero-slides/07-pumpkin-range-guns.jpg") center center / cover no-repeat;
}

.hero-slide {
    display: block !important;
    inset: -1%;
    transform: scale(1.01);
    transition: opacity 1800ms ease, transform 12000ms ease;
}

.hero-slide.is-active {
    transform: scale(1.045);
}

/* Match the initialized layer from the first paint, including its crop/scale. */
#heroSlideLayerA {
    background-image: url("images/hero-slides/07-pumpkin-range-guns.jpg");
    background-position: center center;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(300px, 0.62fr);
    gap: clamp(42px, 7vw, 94px);
    align-items: end;
    padding: clamp(72px, 7vw, 96px) 0 clamp(64px, 6vw, 82px);
}

.hero-content {
    max-width: 640px;
}

.hero-store-card {
    display: block !important;
    max-width: 370px;
    justify-self: end;
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 4px;
    background: rgba(18, 20, 18, 0.94);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.hero-highlights {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 640px;
    margin-top: 30px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 4px;
    background: rgba(12, 13, 12, 0.84);
}

.hero-highlights div {
    min-height: 72px;
    padding: 15px 17px;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 0;
}

.hero-highlights div:last-child {
    border-right: 0;
}

.hero-highlights strong {
    color: var(--accent);
    font-size: 0.82rem;
}

.hero-highlights span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.72rem;
}

.hero-slide-dots {
    bottom: 22px;
    left: max(24px, calc((100% - 1320px) / 2));
    z-index: 5;
    display: flex !important;
    gap: 7px;
    transform: none;
}

.hero-slide-dot {
    width: 20px;
    height: 3px;
    border: 0;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.45);
    box-shadow: none;
}

.hero-slide-dot:hover,
.hero-slide-dot:focus-visible {
    background: rgba(255, 255, 255, 0.85);
    outline: 0;
}

.hero-slide-dot.is-active {
    width: 36px;
    background: var(--accent);
    box-shadow: none;
}

@media (max-width: 980px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 42px;
        padding-block: 76px 70px;
    }

    .hero-store-card {
        justify-self: start;
        max-width: 580px;
    }
}

@media (max-width: 760px) {
    .hero-inner {
        display: block;
        padding: 56px 0 62px;
    }

    .hero-store-card {
        display: none !important;
    }

    .hero-highlights {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin-top: 25px;
    }

    .hero-highlights div {
        min-height: 68px;
        padding: 12px 9px;
    }

    .hero-highlights strong {
        font-size: 0.72rem;
    }

    .hero-highlights span {
        font-size: 0.62rem;
        line-height: 1.25;
    }

    .hero-slide-dots {
        bottom: 17px;
        left: 14px;
    }
}

/* GunBroker marketplace: keep the browsing controls calm and easy to scan. */
.accessory-market-section {
    padding-block: clamp(68px, 8vw, 104px);
}

.accessory-market-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 24px;
    max-width: none;
    margin-bottom: 22px;
}

.accessory-market-heading > div {
    max-width: 940px;
}

.accessory-market-heading h2 {
    max-width: none;
    margin-bottom: 10px;
    font-size: 2.5rem;
    text-wrap: balance;
}

.accessory-market-heading p:last-child {
    max-width: 720px;
    margin-bottom: 0;
}

.accessory-market-heading .secondary-button {
    min-height: 44px;
    padding-inline: 20px;
    white-space: nowrap;
}

.accessory-market-toolbar {
    grid-template-columns: minmax(250px, 350px) minmax(0, 1fr);
    align-items: center;
    gap: 14px 20px;
    margin-bottom: 10px;
    padding: 14px;
    border-color: rgba(255, 255, 255, 0.14);
    background: #121311;
}

.accessory-market-toolbar input {
    min-height: 44px;
    padding-inline: 14px;
}

.accessory-category-filters {
    display: flex;
    flex-wrap: nowrap;
    gap: 7px;
    min-width: 0;
    overflow-x: auto;
    padding: 1px 1px 5px;
    scrollbar-color: rgba(225, 111, 29, 0.7) transparent;
    scrollbar-width: thin;
}

.accessory-category-filters::-webkit-scrollbar {
    height: 5px;
}

.accessory-category-filters::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(225, 111, 29, 0.7);
}

.accessory-category-filters button {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 8px 12px;
    white-space: nowrap;
    font-size: 0.72rem;
    letter-spacing: 0.035em;
}

.accessory-market-count {
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.82rem;
    font-weight: 700;
}

@media (max-width: 760px) {
    .accessory-market-heading {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        margin-bottom: 20px;
    }

    .accessory-market-heading h2 {
        font-size: 1.875rem;
    }

    .accessory-market-heading .secondary-button {
        width: 100%;
    }

    .accessory-market-toolbar {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 12px;
    }

    .accessory-category-filters {
        margin-inline: -2px;
    }

    .accessory-market-count {
        margin-bottom: 18px;
        font-size: 0.78rem;
    }
}

.featured-section {
    position: relative;
    padding-top: clamp(48px, 5vw, 64px);
    border-top: 0;
}

@media (max-width: 760px) {
    .featured-section {
        padding-top: 56px;
    }
}

/* Inventory section actions stay compact and consistent. */
.featured-heading,
.used-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 24px;
    max-width: none;
}

.featured-heading > div,
.used-heading > div {
    max-width: 760px;
}

.featured-heading .secondary-button,
.used-heading .secondary-button {
    width: auto;
    min-height: 42px;
    padding: 10px 16px;
    white-space: nowrap;
    font-size: 0.73rem;
    letter-spacing: 0.045em;
}

@media (max-width: 760px) {
    .featured-heading,
    .used-heading {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .featured-heading .secondary-button,
    .used-heading .secondary-button {
        width: 100%;
    }
}

/* Footer return path for long inventory pages. */
.footer-content {
    grid-template-columns: minmax(190px, 0.8fr) minmax(280px, 1.7fr) auto;
    align-items: end;
}

.footer-back-to-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 40px;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 4px;
    color: #f3f3ef;
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: border-color 160ms ease, color 160ms ease;
}

.footer-back-to-top span {
    color: var(--accent);
    font-size: 1rem;
    line-height: 1;
}

.footer-back-to-top:hover,
.footer-back-to-top:focus-visible {
    border-color: var(--accent);
    color: #ffffff;
    outline: 0;
}

@media (max-width: 760px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-back-to-top {
        justify-self: start;
    }
}

/* Public-page polish: keep navigation and supporting content subordinate. */
.hero {
    min-height: 0;
}

.hero-inner {
    padding-block: 48px 50px;
}

.hero-brand-logo {
    width: 144px;
}

.hero-content {
    width: 100%;
    min-width: 0;
}

.hero-content .hero-seo-title {
    line-height: 1.1;
    max-width: 21ch;
}

.hero .eyebrow,
.section-eyebrow,
.social-platform,
.top-nav .nav-links a,
.hero-actions a,
.footer-back-to-top {
    letter-spacing: 0;
}

.hero-subtitle,
.social-card > p:not(.social-platform),
.services-heading > p:last-child,
.service-card p,
.contact-heading > p:last-child {
    font-family: Arial, Helvetica, sans-serif;
    color: #c6c7c3;
    font-size: 1rem;
    line-height: 1.65;
}

.hero-actions .secondary-button {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.4);
}

.hero-actions .secondary-button:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #fff;
}

.social-grid,
.services-grid,
.store-information {
    gap: 24px;
}

.social-card {
    padding: 28px;
    min-width: 0;
}

.social-card-top {
    margin-bottom: 22px;
}

.social-card h3,
.service-card h3 {
    font-size: 1.375rem;
    line-height: 1.3;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.social-card > p:not(.social-platform) {
    margin-bottom: 22px;
}

.social-link-text,
.service-card a {
    font-size: 0.9375rem;
    line-height: 1.5;
    letter-spacing: 0;
}

.services-grid .service-card {
    padding: 24px 0;
    border: 0;
    border-top: 1px solid var(--border);
    border-radius: 0;
    background: transparent !important;
}

.contact-section {
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.service-card a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.store-faq summary {
    padding: 18px;
    min-height: 56px;
    font-size: 1rem;
    line-height: 1.5;
    letter-spacing: 0;
}

.hero-actions a:focus-visible,
.social-card:focus-visible,
.service-card a:focus-visible,
.store-info-card:focus-visible,
.footer-back-to-top:focus-visible {
    outline: 2px solid #ff993f;
    outline-offset: 4px;
}

@media (max-width: 980px) {
    .hero-store-card,
    .hero-highlights {
        display: none !important;
    }
}

@media (max-width: 760px) {
    .hero-inner,
    main {
        width: min(100% - 40px, var(--max-width));
    }

    .hero {
        min-height: calc(100vh - var(--mobile-nav-height, 121px) - 2px);
        min-height: calc(100svh - var(--mobile-nav-height, 121px) - 2px);
    }

    .hero-inner {
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: inherit;
        padding: 28px 0 36px;
    }

    .hero .eyebrow {
        margin-bottom: 16px;
        font-size: 0.6875rem;
        line-height: 1.5;
    }

    .hero-brand-logo {
        width: 136px;
        max-width: 100%;
        margin-bottom: 16px;
    }

    .hero-content .hero-seo-title {
        max-width: none;
        font-size: 2rem;
        line-height: 1.12;
        text-wrap: pretty;
    }

    .hero-subtitle {
        margin-top: 16px;
        font-size: 0.9375rem;
        line-height: 1.6;
    }

    .hero-actions {
        gap: 4px;
        margin-top: 22px;
    }

    .hero-actions a {
        padding: 12px 16px;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 0.875rem;
        line-height: 1.5;
    }

    .hero-actions .secondary-button {
        min-height: 44px;
        border-color: transparent;
        text-decoration: underline;
        text-underline-offset: 5px;
    }

    .hero-highlights {
        display: none !important;
    }

    .hero-slide-dots {
        left: 20px;
        right: 20px;
        gap: 5px;
    }

    .hero-slide-dot {
        min-width: 0;
        flex-shrink: 1;
    }

    .social-grid,
    .services-grid,
    .store-information {
        gap: 18px;
    }

    .social-card {
        min-height: 0;
        padding: 22px;
    }

    .social-card-top {
        margin-bottom: 18px;
    }

    .social-card > p:not(.social-platform),
    .service-card p {
        font-size: 0.9375rem;
    }

    .services-grid .service-card {
        padding: 22px 0 4px;
    }

    .store-faq {
        margin-top: 32px;
        padding-top: 32px;
    }
}
