/* =============================================================================
   FOOTER — Hugo Cars
   ============================================================================= */

.ac-footer {
    background: #f4f0ea;
    color: #111;
    font-family: 'Lato', system-ui, sans-serif;
}

/* =============================================================================
   TOP SECTION
   ============================================================================= */
.ac-footer-top {
    padding: 64px 0 52px;
}

/*
   Grid: 4 columns, 2 rows
   Row 1: [Brand] [Hours] [Nav L] [Nav R]
   Row 2: [Brand] [Contact info spanning cols 2-4]
*/
.ac-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.6fr 1fr 1fr;
    grid-template-rows: auto auto;
    column-gap: 48px;
    row-gap: 0;
}

/* Col 1 spans both rows */
.ac-footer-brand {
    grid-column: 1;
    grid-row: 1 / 3;
    padding-right: 16px;
}

.ac-footer-dealer-name {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.4;
    color: #111;
}

.ac-footer-social {
    display: flex;
    gap: 8px;
    margin-top: 24px;
}

.ac-footer-social a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0,0,0,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
    transition: background .2s, color .2s;
    text-decoration: none;
}

.ac-footer-social a:hover {
    background: #111;
    color: #fff;
}

/* Col 2: Hours — row 1 */
.ac-footer-hours-col {
    grid-column: 2;
    grid-row: 1;
    padding-bottom: 40px;
}

.ac-footer-col-heading {
    display: block;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #111;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0,0,0,.15);
}

.ac-footer-hours-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ac-footer-hours-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    padding: 5px 0;
    border-bottom: 1px solid rgba(0,0,0,.07);
    font-size: .8rem;
}

.ac-footer-hours-list li:last-child { border-bottom: none; }

.ac-footer-hours-list .day  { font-weight: 700; color: #111; white-space: nowrap; }
.ac-footer-hours-list .time { color: #777; text-align: right; }

/* Cols 3+4: Nav — row 1 */
.ac-footer-nav-col {
    grid-row: 1;
    padding-bottom: 40px;
}

.ac-footer-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ac-footer-nav-menu li a {
    display: block;
    padding: 5px 0;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #333;
    border-bottom: 1px solid rgba(0,0,0,.07);
    text-decoration: none;
    transition: color .2s;
}

.ac-footer-nav-menu li:last-child a { border-bottom: none; }
.ac-footer-nav-menu li a:hover { color: #D2091A; }

/* Contact block — row 2, spans cols 2-4 */
.ac-footer-contact-block {
    grid-column: 2 / 5;
    grid-row: 2;
    padding-top: 0;
}

.ac-footer-contact-divider {
    width: 48px;
    height: 2px;
    background: #111;
    margin-bottom: 16px;
}

.ac-footer-contact-name {
    display: block;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #111;
    margin-bottom: 10px;
}

.ac-footer-contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 40px;
    font-size: .88rem;
    color: #444;
    margin-bottom: 6px;
}

.ac-footer-contact-row:last-child { margin-bottom: 0; }

.ac-footer-contact-row a {
    color: #333;
    text-decoration: none;
    transition: color .2s;
}

.ac-footer-contact-row a:hover { color: #D2091A; }

/* =============================================================================
   COPYRIGHT BAR
   ============================================================================= */
.ac-footer-bottom {
    background: rgba(0,0,0,.06);
    border-top: 1px solid rgba(0,0,0,.1);
    padding: 16px 0;
}

.ac-footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.ac-footer-bottom-left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .76rem;
    color: #666;
}

.ac-footer-bottom-left img { max-height: 30px; width: auto; display: block; }
.ac-footer-site-name { font-weight: 700; font-size: .82rem; color: #111; }

.ac-footer-legal {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: .76rem;
}

.ac-footer-legal a {
    color: #555;
    text-decoration: none;
    padding: 0 14px;
    white-space: nowrap;
    transition: color .2s;
}

.ac-footer-legal a:first-child { padding-left: 0; }
.ac-footer-legal a:hover { color: #D2091A; }

.ac-footer-legal-sep {
    display: inline-block;
    width: 1px;
    height: 12px;
    background: rgba(0,0,0,.2);
    flex-shrink: 0;
}

.ac-footer-powered {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .72rem;
    color: #777;
    white-space: nowrap;
}

.ac-footer-powered img { max-height: 22px; width: auto; display: block; }
.ac-footer-powered a  { display: flex; align-items: center; gap: 6px; text-decoration: none; }

/* =============================================================================
   RESPONSIVE
   ============================================================================= */
@media (max-width: 1100px) {
    .ac-footer-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto;
    }

    .ac-footer-brand       { grid-column: 1; grid-row: 1; padding-bottom: 36px; }
    .ac-footer-hours-col   { grid-column: 2; grid-row: 1; }
    .ac-footer-nav-col:nth-child(3) { grid-column: 1; grid-row: 2; }
    .ac-footer-nav-col:nth-child(4) { grid-column: 2; grid-row: 2; }
    .ac-footer-contact-block { grid-column: 1 / 3; grid-row: 3; padding-top: 32px; }
}

@media (max-width: 640px) {
    .ac-footer-top { padding: 48px 0 36px; }

    .ac-footer-grid {
        grid-template-columns: 1fr;
        grid-template-rows: unset;
    }

    .ac-footer-brand,
    .ac-footer-hours-col,
    .ac-footer-nav-col:nth-child(3),
    .ac-footer-nav-col:nth-child(4),
    .ac-footer-contact-block {
        grid-column: 1;
        grid-row: unset;
    }

    .ac-footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
    .ac-footer-legal { flex-direction: column; gap: 8px; }
    .ac-footer-legal a { padding: 0; }
    .ac-footer-legal-sep { display: none; }
}