/* Turney Repair & Towing: site overrides on top of the Industro template.
   Palette: charcoal #23262B, steel #EEF0F2, mid-grey #4a4f57, red #C8202B */

html { scroll-behavior: smooth; }

body { color: #4a4f57; }

/* Buttons: keep white text on red in every state */
.btn-primary:hover, .btn-primary:focus, .btn-primary:active { color: #fff; }
.btn-outline-light:hover { color: #23262B; }

/* Keyboard focus */
a:focus-visible, .btn:focus-visible, button:focus-visible {
    outline: 3px solid #C8202B;
    outline-offset: 2px;
}
.bg-dark a:focus-visible, .hero a:focus-visible, .cta-band a:focus-visible { outline-color: #fff; }

/* Navbar: always visible (template hides it until you scroll 300px) */
.navbar.sticky-top { top: 0; }
.navbar .navbar-brand { padding-right: 50px; }
.navbar .navbar-brand .brand-name {
    font-family: "Rubik", sans-serif;
    font-weight: 600;
    font-size: 1.3rem;
    line-height: 1.1;
    color: #fff;
}
@media (max-width: 991.98px) {
    .navbar { padding-right: 1rem !important; }
    .navbar .navbar-brand { padding-left: 1rem !important; height: 64px; }
    .navbar .navbar-brand .brand-name { font-size: 1.05rem; }
}

/* Hero */
.hero {
    background:
        linear-gradient(90deg, rgba(35,38,43,.93) 0%, rgba(35,38,43,.62) 55%, rgba(35,38,43,.2) 100%),
        url(../img/oversize-load-escort.jpg) center 40% / cover no-repeat;
    min-height: 68vh;
    display: flex;
    align-items: center;
}
.hero h1 { max-width: 16ch; }
.hero .lead { max-width: 34rem; }

/* Inner page header */
.page-header {
    background:
        linear-gradient(90deg, rgba(35,38,43,.93) 0%, rgba(35,38,43,.55) 100%),
        url(../img/oversize-load-escort.jpg) center 40% / cover no-repeat;
}

/* Service cards */
.svc {
    height: 100%;
    padding: 2rem 1.75rem;
    background: #fff;
    border-top: 4px solid #C8202B;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}
.svc .svc-icon {
    width: 64px; height: 64px;
    margin-bottom: 1.25rem;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: #EEF0F2;
    color: #C8202B;
    font-size: 1.5rem;
}
.svc h3 { font-size: 1.35rem; }
.svc-cta {
    height: 100%;
    padding: 2rem 1.75rem;
    background: #23262B;
    color: #fff;
    display: flex; flex-direction: column; justify-content: center;
}

/* About photo */
.about-photo { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* Gallery */
.gallery-item { display: block; overflow: hidden; background: #23262B; }
.gallery-item img {
    display: block; width: 100%;
    aspect-ratio: 1 / 1; object-fit: cover;
    transition: transform .5s;
}
.gallery-item:hover img { transform: scale(1.04); }

/* Call-to-action band */
.cta-band { background: #C8202B; color: #fff; }
.cta-band .btn-light { color: #23262B; }

/* Contact cards */
.contact-card { background: #EEF0F2; height: 100%; }

/* Phone bar on phones and tablets */
.call-bar { display: none; }
@media (max-width: 991.98px) {
    .call-bar {
        display: block;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030;
        padding: .9rem 1rem calc(.9rem + env(safe-area-inset-bottom, 0px));
        background: #C8202B; color: #fff;
        font-family: "Rubik", sans-serif; font-weight: 600; font-size: 1.2rem;
        text-align: center; text-decoration: none;
    }
    .call-bar:hover { color: #fff; }
    body { padding-bottom: 4rem; }
}

/* Back to top: template CSS shows it on load; JS toggles .show instead */
.back-to-top { display: none; }
.back-to-top.show { display: flex; }
@media (max-width: 991.98px) { .back-to-top { bottom: 80px; right: 16px; } }

/* Respect reduced-motion settings */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .wow { visibility: visible !important; animation: none !important; }
    .animated { animation: none !important; }
    .gallery-item img { transition: none; }
}

/* Contact cards: line the buttons up along the bottom */
.contact-card { display: flex; flex-direction: column; align-items: center; }
.contact-card > .btn:last-child, .contact-card > p:last-child { margin-top: auto; }
