/* ============================================================
   BTE INNER PAGES — shared CSS
   ============================================================ */

/* ============================================================
   AFTERSALES HERO (full red section)
   ============================================================ */

.bte-aftersales-hero {
    background-color: var(--bte-red);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    /* Override hex bg color for red section */
}

.bte-aftersales-hero::before {
    /* hex pattern in slightly darker red */
    filter: brightness(0.85);
    opacity: 0.25;
}

.bte-aftersales-hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-12);
    padding: calc(var(--bte-header-h, 100px) + var(--space-16)) var(--gutter) var(--space-20);
    flex: 1;
    position: relative;
    z-index: 1;
    align-items: center;
}

@media (max-width: 1023px) {
    .bte-aftersales-hero__inner {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
}

.bte-aftersales-hero__heading {
    font-family: var(--font-display);
    font-size: clamp(4rem, 10vw, 9rem);
    font-weight: 800;
    text-transform: uppercase;
    color: var(--bte-white);
    line-height: 0.9;
    margin-block: var(--space-4);
}

.bte-aftersales-hero__body {
    color: rgba(255,255,255,0.85);
    font-size: var(--text-md);
    line-height: 1.7;
}

.bte-aftersales-hero__image {
    aspect-ratio: 3/4;
    overflow: hidden;
}

.bte-aftersales-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bte-aftersales-hero__right {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
    color: rgba(255,255,255,0.85);
    font-size: var(--text-md);
    line-height: 1.7;
}

/* Override aftersales menu text for red bg */
.bte-aftersales-hero .bte-aftersales-menu__item {
    color: var(--bte-navy);
    font-size: var(--text-2xl);
}

/* ============================================================
   STATS GRID
   ============================================================ */

.bte-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
    padding-block: var(--space-16);
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

@media (max-width: 768px) {
    .bte-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

.bte-stat {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    text-align: center;
}

.bte-stat__number {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    color: var(--bte-red);
    line-height: 1;
}

.bte-stat__label {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
}

/* ============================================================
   BRANDS GRID
   ============================================================ */

.bte-brands-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-5);
}

@media (max-width: 1024px) { .bte-brands-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .bte-brands-grid { grid-template-columns: repeat(2, 1fr); } }

.bte-brand-tile__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    padding: var(--space-8) var(--space-6);
    aspect-ratio: 3/2;
    transition: transform var(--dur-fast) var(--ease-spring), box-shadow var(--dur-fast);
    overflow: hidden;
}

.bte-brand-tile__inner:hover {
    transform: scale(1.04) translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.bte-brand-tile__logo {
    max-height: 60px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.bte-brand-tile__name {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--bte-navy);
    text-transform: uppercase;
}

/* ============================================================
   NEWS GRID
   ============================================================ */

.bte-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

@media (max-width: 1024px) { .bte-news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .bte-news-grid { grid-template-columns: 1fr; } }

.bte-news-card {
    display: flex;
    flex-direction: column;
    background-color: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--dur-fast) var(--ease-spring), border-color var(--dur-fast);
}

.bte-news-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 11, 53, 0.3);
}

.bte-news-card__image-link { display: block; overflow: hidden; }

.bte-news-card__image {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    transition: transform var(--dur-slow) var(--ease-out);
    display: block;
}

.bte-news-card:hover .bte-news-card__image {
    transform: scale(1.04);
}

.bte-news-card__body {
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    flex: 1;
}

.bte-news-card__date {
    font-size: var(--text-xs);
    color: var(--bte-red);
    letter-spacing: 0.05em;
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
}

.bte-news-card__title {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    font-weight: 600;
    line-height: 1.4;
    color: var(--bte-white);
}

.bte-news-card__title a {
    color: inherit;
    transition: color var(--dur-fast);
}

.bte-news-card__title a:hover { color: var(--bte-red); }

.bte-news-card__excerpt {
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.6);
    line-height: 1.65;
}

/* ============================================================
   PAGINATION
   ============================================================ */

.bte-pagination {
    margin-top: var(--space-16);
    display: flex;
    justify-content: center;
}

.bte-pagination .nav-links {
    display: flex;
    gap: var(--space-3);
    align-items: center;
}

.bte-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 700;
    color: rgba(255,255,255,0.6);
    transition: all var(--dur-fast);
}

.bte-pagination .page-numbers.current,
.bte-pagination .page-numbers:hover {
    background-color: var(--bte-red);
    border-color: var(--bte-red);
    color: var(--bte-white);
}

.bte-pagination .page-numbers.dots { border: none; }

/* 2026-07-15 fix — .page-numbers above is a fixed 2.5rem circle,
   which works fine for single-digit page numbers but not for the
   "← Older" / "Newer →" prev/next links: that text doesn't fit a
   40px circle, so it was wrapping onto two lines and spilling out
   past the circle's own border — reported live as needing to "look
   cleaner". WordPress's the_posts_pagination() already puts .prev/
   .next classes on these two specifically (see archive.php/home.php),
   so they can be styled separately from the numbered pills: same
   pill language (rounded, same border/hover treatment via the shared
   rules above) but sized to the text instead of forced into a circle. */
.bte-pagination .page-numbers.prev,
.bte-pagination .page-numbers.next {
    width: auto;
    height: 2.5rem;
    padding: 0 var(--space-5);
    border-radius: 999px;
    white-space: nowrap;
}

/* ============================================================
   CTA STRIP
   ============================================================ */

.bte-cta-strip {
    padding-block: var(--space-20);
    text-align: center;
}

.bte-cta-strip__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-6);
    max-width: var(--container-mid);
    margin-inline: auto;
}

.bte-cta-strip__heading {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    text-transform: uppercase;
    color: var(--bte-white);
    line-height: 1.05;
}

.bte-cta-strip__body {
    font-size: var(--text-md);
    color: rgba(255,255,255,0.8);
    max-width: 50ch;
}

/* ============================================================
   SINGLE POST PROSE STYLES
   ============================================================ */

.bte-prose {
    color: rgba(255,255,255,0.85);
    font-size: var(--text-md);
    line-height: 1.8;
}

.bte-prose h2 { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 800; text-transform: uppercase; color: var(--bte-white); margin-top: var(--space-12); margin-bottom: var(--space-4); }
.bte-prose h3 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; text-transform: uppercase; color: var(--bte-white); margin-top: var(--space-10); margin-bottom: var(--space-4); }
.bte-prose p  { margin-bottom: var(--space-6); }
.bte-prose a  { color: var(--bte-teal); text-decoration: underline; }
.bte-prose a:hover { color: var(--bte-white); }
.bte-prose ul, .bte-prose ol { margin-bottom: var(--space-6); padding-left: var(--space-6); }
.bte-prose ul li { list-style: disc; margin-bottom: var(--space-2); }
.bte-prose ol li { list-style: decimal; margin-bottom: var(--space-2); }
.bte-prose blockquote {
    border-left: 3px solid var(--bte-red);
    padding-left: var(--space-6);
    margin: var(--space-10) 0;
    font-size: var(--text-lg);
    color: rgba(255,255,255,0.7);
    font-style: italic;
}
.bte-prose img {
    border-radius: var(--radius-lg);
    width: 100%;
    height: auto;
    margin-block: var(--space-8);
}
.bte-prose figure { margin-block: var(--space-8); }
.bte-prose figcaption { font-size: var(--text-sm); color: rgba(255,255,255,0.45); text-align: center; margin-top: var(--space-3); }

/* ============================================================
   DEPOT CARDS
   ============================================================ */

.bte-depots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

@media (max-width: 1024px) { .bte-depots-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .bte-depots-grid { grid-template-columns: 1fr; } }

.bte-depot-card {
    position: relative;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    background: rgba(255,255,255,0.03);
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    transition: border-color var(--dur-mid), transform var(--dur-fast) var(--ease-spring);
}

.bte-depot-card:hover {
    border-color: rgba(255, 11, 53, 0.3);
    transform: translateY(-4px);
}

.bte-depot-card--hq {
    border-color: rgba(255, 11, 53, 0.25);
    background: rgba(255, 11, 53, 0.04);
}

/* Depot image (2026-07-17) — full-width header image at the top of the
   card, above the location details. Negative margins pull it out to the
   card edges (over the card's own padding) for a clean header look, with
   the card's top corners rounded to match. */
.bte-depot-card__image {
    margin: calc(var(--space-8) * -1) calc(var(--space-8) * -1) 0;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: rgba(255, 255, 255, 0.05);
}

.bte-depot-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bte-depot-card__badge {
    display: inline-block;
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bte-red);
    border: 1px solid var(--bte-red);
    border-radius: var(--radius-pill);
    padding: var(--space-1) var(--space-3);
    align-self: flex-start;
}

.bte-depot-card__name {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 800;
    text-transform: uppercase;
    color: var(--bte-white);
    line-height: 1.1;
}

.bte-depot-card__address {
    font-style: normal;
    /* Bumped up a size (2026-07-12), was --text-sm, per client
       request to make the address text easier to read. */
    font-size: var(--text-md);
    line-height: 1.8;
    color: rgba(255,255,255,0.65);
}

.bte-depot-card__address a {
    color: var(--bte-teal);
    transition: color var(--dur-fast);
}
.bte-depot-card__address a:hover { color: var(--bte-white); }

/* Embedded Google Map (Contact page depot cards only) — plain iframe
   embed built from the depot's address, no API key required. Fixed
   aspect-ratio box so every card in the grid stays a consistent
   height regardless of the map's natural size. */
.bte-depot-card__map {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
}
.bte-depot-card__map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Address text itself is now a clickable link out to Google Maps
   (2026-07-12) — no underline by default so it still reads as plain
   text at a glance, same teal/hover treatment as the other links in
   this block via the shared .bte-depot-card__address a rule above. */
.bte-depot-card__address-link {
    text-decoration: none;
}
.bte-depot-card__address-link:hover {
    text-decoration: underline;
}

.bte-depot-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-top: auto;
}

/* Smaller CTA buttons on this page only (2026-07-12), per client
   request — scoped here rather than changing .bte-btn globally, which
   is shared by every other button on the site. */
.bte-depot-card__actions .bte-btn {
    padding: 9px 22px 9px calc(22px * 0.7);
    font-size: var(--text-xs);
}

/* ============================================================
   CAREERS LIST
   ============================================================ */

.bte-careers-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.bte-career-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-8);
    padding: var(--space-6) var(--space-8);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.03);
    transition: border-color var(--dur-fast), background-color var(--dur-fast);
}

.bte-career-item:hover {
    border-color: rgba(0, 175, 255, 0.25);
    background: rgba(0, 175, 255, 0.04);
}

.bte-career-item__title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--bte-white);
    margin-bottom: var(--space-2);
}

.bte-career-item__excerpt {
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.55);
    line-height: 1.6;
}

@media (max-width: 640px) {
    .bte-career-item { flex-direction: column; align-items: flex-start; }
}
