/* Hero Slider */
.hero-slider {
    position: relative;
    height: min(78vh, 680px);
    min-height: 520px;
    overflow: hidden;
    background: #0a0a0a;
}

.hero-slides {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.72) 0%,
        rgba(0, 0, 0, 0.45) 45%,
        rgba(0, 0, 0, 0.25) 100%
    );
}

/* Vertical branch rail (left) */
.hero-branch-rail {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 36px;
    padding: 40px 20px;
    background: transparent;
    border: none;
}

.hero-branch-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.55);
    font-family: var(--font-main);
    padding: 4px;
    transition: color 0.2s;
}

.hero-branch-item:hover,
.hero-branch-item.active {
    color: #fff;
}

.hero-branch-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
}

.hero-branch-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Hero caption (center-left) */
.hero-slide-content {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    padding: 0 80px 0 120px;
    pointer-events: none;
}

.hero-caption {
    position: absolute;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    max-width: 720px;
}

.hero-caption.active {
    opacity: 1;
    transform: translateY(0);
}

.hero-tagline {
    font-size: clamp(0.75rem, 1.5vw, 0.9rem);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(2.2rem, 5.5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
}

/* Bottom-left nav arrows */
.hero-controls {
    position: absolute;
    bottom: 36px;
    left: 120px;
    z-index: 6;
    display: flex;
    gap: 20px;
}

.hero-arrow {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s;
    font-family: var(--font-main);
}

.hero-arrow:hover {
    color: #fff;
}

/* Tagline bar */
.hero-tagline-bar {
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    padding: 24px 0;
}

.hero-tagline-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.hero-tagline-text strong {
    display: block;
    font-size: 1rem;
    color: var(--color-text-dark);
    margin-bottom: 4px;
}

.hero-tagline-text p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.hero-social {
    display: flex;
    gap: 20px;
}

.hero-social a {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--color-text-dark);
    text-transform: uppercase;
}

.hero-social a:hover {
    color: var(--color-red);
}

/* Search section */
.hero-search-section {
    background: var(--color-bg-light);
    padding: 0 0 50px;
    margin-top: 0;
    width: 100%;
}

.hero-search-section .search-widget {
    width: 100%;
    max-width: none;
}

.search-form-home {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Compact dark search bar */
.search-bar-compact {
    display: flex;
    align-items: center;
    gap: 0;
    background: #1a1a1a;
    padding: 20px 32px;
    border-radius: 0;
    width: 100%;
}

.search-bar-field {
    flex: 1;
    min-width: 0;
    padding: 0 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.search-bar-field:last-of-type {
    border-right: none;
}

.search-underline {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 10px 28px 10px 0;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
}

.search-underline option {
    color: #333;
    background: #fff;
}

.search-underline:focus {
    outline: none;
    border-bottom-color: var(--color-red);
}

.search-filter-toggle {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    margin: 0 16px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.search-filter-toggle:hover,
.search-filter-toggle[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.search-submit-btn {
    flex-shrink: 0;
    padding: 14px 32px;
    background: var(--color-red);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-family: var(--font-main);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.search-submit-btn:hover {
    background: var(--color-red-dark);
}

/* Expanded filter panel */
.search-expanded-panel {
    background: #f0f0f0;
    padding: 28px 32px 32px;
    border: none;
    border-top: none;
    width: 100%;
}

.search-expanded-panel[hidden] {
    display: none;
}

.search-condition-row {
    display: flex;
    gap: 0;
    margin-bottom: 28px;
    width: fit-content;
    border: 1px solid #ccc;
    overflow: hidden;
}

.condition-pill {
    padding: 10px 28px;
    background: #fff;
    border: none;
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--color-text-dark);
    transition: all 0.2s;
}

.condition-pill.active {
    background: var(--color-red);
    color: #fff;
}

.filter-grid {
    display: grid;
    gap: 24px 20px;
    margin-bottom: 24px;
}

.filter-row-4 {
    grid-template-columns: repeat(4, 1fr);
}

.filter-field label,
.filter-group-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-dark);
    margin-bottom: 10px;
}

.filter-underline {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #333;
    font-family: var(--font-main);
    font-size: 0.9rem;
    padding: 8px 24px 8px 0;
    color: var(--color-text-dark);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
}

.filter-underline:focus {
    outline: none;
    border-bottom-color: var(--color-red);
}

.filter-range-group {
    grid-column: span 2;
}

.filter-range-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.filter-row-pills .filter-field:nth-child(1),
.filter-row-pills .filter-field:nth-child(2) {
    grid-column: span 1;
}

.pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill-btn {
    min-width: 40px;
    padding: 8px 16px;
    border: 1px solid #ccc;
    border-radius: 50px;
    background: #fff;
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-dark);
    cursor: pointer;
    transition: all 0.2s;
}

.pill-btn:hover {
    border-color: var(--color-red);
    color: var(--color-red);
}

.pill-btn.active {
    background: var(--color-red);
    border-color: var(--color-red);
    color: #fff;
}

@media (max-width: 992px) {
    .search-bar-compact {
        flex-wrap: wrap;
        padding: 16px;
    }

    .search-bar-compact .search-submit-btn {
        order: 5;
        width: calc(100% - 60px);
        margin-top: 8px;
    }

    .search-bar-compact .search-filter-toggle {
        order: 4;
        margin: 8px 0 0;
    }

    .search-bar-field {
        flex: 1 1 40%;
        border-right: none;
        padding: 0 8px;
    }

    .search-filter-toggle {
        margin: 0 8px;
    }

    .filter-row-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-range-group {
        grid-column: span 2;
    }
}

@media (max-width: 576px) {
    .search-bar-field {
        flex: 1 1 100%;
    }

    .search-submit-btn {
        width: 100%;
        margin-top: 8px;
    }

    .search-filter-toggle {
        margin: 0 auto;
    }

    .filter-row-4 {
        grid-template-columns: 1fr;
    }

    .filter-range-group {
        grid-column: span 1;
    }
}

/* Section headers */
.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 36px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-heading {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.view-all-link {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--color-red);
    text-transform: uppercase;
    white-space: nowrap;
}

/* Vehicle types carousel */
.vehicle-types-section {
    background: #f5f5f5;
}

.vehicle-types-section .section-heading {
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    line-height: 1.15;
}

.vehicle-types-section .section-label {
    margin-bottom: 10px;
}

.type-carousel-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.type-carousel {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.type-carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
}

.type-carousel-arrow {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--color-red);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: opacity 0.2s;
}

.type-carousel-arrow:hover {
    opacity: 0.7;
}

.type-card-home {
    flex: 0 0 calc((100% - 80px) / 5);
    min-width: 160px;
    background: #fff;
    border: 1px solid #e4e4e4;
    padding: 28px 18px 24px;
    text-align: center;
    transition: border-color 0.25s, box-shadow 0.25s;
    color: #111;
    text-decoration: none;
}

.type-card-home:hover {
    border-color: var(--color-red);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    color: #111;
}

.type-card-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    background: #eee;
}

.type-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.type-card-home h3 {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    margin: 0;
    color: #111;
}

/* Recent vehicles */
.recent-vehicles-section {
    background: #fff;
}

.recent-vehicles-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.recent-vehicles-title {
    text-align: left;
}

.recent-vehicles-header .section-label {
    margin-bottom: 10px;
}

.recent-vehicles-header .section-heading {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.15;
    letter-spacing: 0.5px;
    margin: 0;
    color: #111;
}

.home-branch-tabs {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding-bottom: 2px;
}

.home-branch-tab {
    padding: 12px 28px;
    background: #fff;
    border: 1px solid #111;
    border-radius: 999px;
    font-family: var(--font-main);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    color: #111;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.home-branch-tab.active {
    background: var(--color-red);
    border-color: var(--color-red);
    color: #fff;
}

.home-branch-tab:hover:not(.active) {
    background: #fff;
    border-color: #111;
    color: #111;
}

@media (max-width: 768px) {
    .recent-vehicles-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .home-branch-tabs {
        justify-content: flex-start;
    }
}

.section-cta {
    text-align: center;
    margin-top: 40px;
}

/* Trade-in — matches woodmeadauto.com Drive Your Dreams banner */
.trade-in-section {
    position: relative;
    background: #000;
    color: #fff;
    padding: 120px 0 140px;
    overflow: hidden;
}

.trade-in-watermark {
    position: absolute;
    left: 50%;
    bottom: -0.18em;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
    font-size: clamp(4.5rem, 14vw, 11rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #1a1a1a;
    line-height: 0.85;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.trade-in-inner {
    position: relative;
    z-index: 1;
}

.trade-in-content {
    max-width: 640px;
    margin: 0 auto;
}

.trade-in-content .section-label {
    color: var(--color-red);
    margin-bottom: 18px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.trade-in-content h2 {
    font-size: clamp(2.4rem, 5.5vw, 4.25rem);
    font-weight: 800;
    text-transform: uppercase;
    margin: 0 0 22px;
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: #fff;
}

.trade-in-content p {
    color: #fff;
    margin: 0;
    line-height: 1.7;
    font-size: 1rem;
    max-width: 520px;
}

@media (max-width: 768px) {
    .trade-in-section {
        padding: 80px 0 100px;
    }

    .trade-in-content {
        max-width: 100%;
    }

    .trade-in-content h2 {
        font-size: clamp(1.9rem, 9vw, 2.6rem);
    }
}

/* Home ticker — between Drive Your Dreams and Top Makes */
.home-ticker {
    background: #fff;
    overflow: hidden;
    padding: 18px 0;
    border: none;
    user-select: none;
}

.home-ticker-track {
    display: flex;
    align-items: center;
    width: max-content;
    white-space: nowrap;
    animation: home-ticker 32s linear infinite;
    will-change: transform;
}

.home-ticker-track span {
    font-family: var(--font-main);
    font-size: clamp(0.95rem, 1.6vw, 1.15rem);
    font-weight: 500;
    color: var(--color-red);
    letter-spacing: 0.01em;
    padding: 0 0.35em;
}

.home-ticker-sep {
    opacity: 0.9;
    font-weight: 400;
}

@keyframes home-ticker {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-ticker-track {
        animation: none;
    }
}

/* Brands carousel — matches woodmeadauto.com Top Makes */
.brands-section-home {
    background: #111111;
    color: #fff;
}

.brands-section-home .section-heading {
    color: #fff;
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    line-height: 1.15;
}

.brands-section-home .section-label {
    margin-bottom: 10px;
}

.brands-header-row {
    align-items: flex-end;
}

.brands-carousel-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brands-carousel {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.brands-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
}

.brands-carousel-arrow {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--color-red);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: opacity 0.2s;
}

.brands-carousel-arrow:hover {
    opacity: 0.7;
}

.brand-card {
    flex: 0 0 calc((100% - 80px) / 5);
    min-width: 140px;
    text-decoration: none;
}

.brand-card-inner {
    background: #1c1c1c;
    border: 1px solid transparent;
    padding: 36px 18px 28px;
    text-align: center;
    transition: border-color 0.25s, background 0.25s;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.brand-card:hover .brand-card-inner {
    border-color: var(--color-red);
    background: #222;
}

.brand-logo {
    width: 88px;
    height: 48px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    filter: brightness(1.05);
}

.brand-card span {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
    text-transform: none;
}

.brand-card:hover span {
    color: #fff;
}

@media (max-width: 992px) {
    .brand-card {
        flex: 0 0 calc((100% - 40px) / 3);
    }
}

@media (max-width: 640px) {
    .brand-card {
        flex: 0 0 calc((100% - 20px) / 2);
        min-width: 120px;
    }

    .brand-card-inner {
        min-height: 150px;
        padding: 28px 14px 22px;
    }

    .brand-logo {
        width: 72px;
        height: 40px;
    }
}

/* Testimonials — Google reviews layout matching woodmeadauto.com */
.testimonials-section-home {
    background: #f5f5f5;
}

.testimonials-header {
    margin-bottom: 36px;
}

.testimonials-header .section-label {
    margin-bottom: 10px;
}

.testimonials-header .section-heading {
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    line-height: 1.15;
    color: var(--color-text-dark);
}

.testimonials-layout {
    display: flex;
    align-items: stretch;
    gap: 28px;
}

.testimonials-summary {
    flex: 0 0 180px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    padding-top: 8px;
}

.testimonials-rating-word {
    font-size: 1.35rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #111;
    margin: 0;
    line-height: 1;
}

.testimonials-stars {
    display: flex;
    align-items: center;
    gap: 2px;
}

.testimonials-stars .star,
.review-card-stars .star {
    width: 22px;
    height: 22px;
    display: block;
}

.testimonials-stars .star-full,
.review-card-stars .star-full {
    fill: #fbbc05;
}

.star-half {
    width: 22px;
    height: 22px;
    display: block;
}

.star-half svg {
    width: 100%;
    height: 100%;
    display: block;
}

.testimonials-based {
    margin: 0;
    font-size: 0.9rem;
    color: #222;
}

.testimonials-based strong {
    font-weight: 700;
}

.testimonials-google-logo {
    margin-top: 4px;
}

.testimonials-carousel-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.testimonials-carousel {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
}

.reviews-carousel-arrow {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #888;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    transition: color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.reviews-carousel-arrow:hover {
    color: var(--color-red);
    border-color: var(--color-red);
}

.review-card {
    flex: 0 0 calc((100% - 40px) / 3);
    min-width: 220px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 18px 18px 16px;
    display: flex;
    flex-direction: column;
    min-height: 220px;
}

.review-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.review-card-name {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #111;
    line-height: 1.3;
}

.review-card-when {
    margin: 2px 0 0;
    font-size: 0.75rem;
    color: #888;
}

.review-google-g {
    flex-shrink: 0;
    line-height: 0;
}

.review-card-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.review-card-stars {
    display: flex;
    gap: 1px;
}

.review-card-stars .star {
    width: 16px;
    height: 16px;
}

.review-verified {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #4285f4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.review-card-body {
    flex: 1;
    overflow-y: auto;
    max-height: 110px;
    padding-right: 4px;
}

.review-card-body p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: #222;
}

.review-card-body::-webkit-scrollbar {
    width: 3px;
}

.review-card-body::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

@media (max-width: 992px) {
    .testimonials-layout {
        flex-direction: column;
    }

    .testimonials-summary {
        flex: none;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .review-card {
        flex: 0 0 calc((100% - 20px) / 2);
    }
}

@media (max-width: 640px) {
    .review-card {
        flex: 0 0 85%;
        min-width: 240px;
    }

    .reviews-carousel-arrow {
        display: none;
    }
}

/* Brand logos strip — matches woodmeadauto.com clients row */
.brand-logos-strip {
    background: #fff;
    border-top: 1px solid #e8e8e8;
    padding: 48px 0;
    overflow: hidden;
}

.brand-logos-marquee {
    overflow: hidden;
    width: 100%;
}

.brand-logos-track {
    display: flex;
    align-items: center;
    width: max-content;
    gap: 64px;
    padding: 0 32px;
    animation: brand-logos-scroll 45s linear infinite;
    will-change: transform;
}

.brand-logo-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 72px;
    width: 120px;
    opacity: 1;
    transition: opacity 0.2s, transform 0.2s;
}

.brand-logo-item img {
    max-height: 68px;
    max-width: 110px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.brand-logo-item:hover {
    opacity: 0.75;
    transform: scale(1.04);
}

@keyframes brand-logos-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .brand-logos-track {
        animation: none;
        flex-wrap: wrap;
        width: 100%;
        max-width: var(--container-width);
        margin: 0 auto;
        justify-content: center;
        gap: 36px 48px;
    }
}

@media (max-width: 768px) {
    .brand-logos-strip {
        padding: 36px 0;
    }

    .brand-logos-track {
        gap: 40px;
        animation-duration: 35s;
    }

    .brand-logo-item {
        height: 56px;
        width: 96px;
    }

    .brand-logo-item img {
        max-height: 52px;
        max-width: 90px;
    }
}

@media (max-width: 1200px) {
    .type-card-home {
        flex: 0 0 calc((100% - 60px) / 4);
    }
}

@media (max-width: 992px) {
    .type-card-home {
        flex: 0 0 calc((100% - 40px) / 3);
    }

    .type-card-image {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 420px;
        min-height: 420px;
    }

    .hero-branch-rail {
        flex-direction: row;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        height: auto;
        width: 100%;
        justify-content: center;
        gap: 16px;
        padding: 12px;
        background: transparent;
        border: none;
    }

    .hero-branch-label {
        writing-mode: horizontal-tb;
        transform: none;
        font-size: 0.6rem;
    }

    .hero-branch-item {
        flex-direction: row;
        gap: 6px;
    }

    .hero-slide-content {
        padding: 0 24px 80px 24px;
        align-items: flex-end;
    }

    .hero-controls {
        left: 24px;
        bottom: 70px;
    }

    .hero-title {
        font-size: clamp(1.6rem, 8vw, 2.2rem);
    }

    .search-row-top {
        grid-template-columns: 1fr;
    }

    .search-panel {
        padding: 20px;
    }

    .hero-tagline-inner {
        flex-direction: column;
        text-align: center;
    }

    .type-carousel-wrap {
        gap: 4px;
    }

    .type-carousel-arrow {
        width: 28px;
    }

    .type-card-home {
        flex: 0 0 calc(50% - 10px);
        min-width: 140px;
        padding: 20px 12px 18px;
    }

    .type-card-image {
        width: 88px;
        height: 88px;
        margin-bottom: 14px;
    }
}
