
/* =========================================
   ANYTIME TIRES
   Official Website Stylesheet
   anytimetire.shop
========================================= */

/* Variables */

:root {
    --black: #090909;
    --surface: #141414;
    --red: #e51d2a;
    --dark-red: #bd101c;
    --white: #f5f5f5;
    --silver: #a6abb3;
    --border: #292929;
    --heading: "Barlow Condensed", sans-serif;
    --body: "Inter", sans-serif;
}

/* Global Reset */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
}

body {
    background: var(--black);
    color: var(--white);
    font-family: var(--body);
    line-height: 1.7;
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font: inherit;
    cursor: pointer;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid white;
    outline-offset: 5px;
}

.container {
    width: min(1280px, 92%);
    margin-inline: auto;
}

h1,
h2,
h3 {
    font-family: var(--heading);
    font-weight: 800;
    line-height: 1;
}

h2 {
    font-size: clamp(3rem, 6vw, 5rem);
}

h2 span {
    color: var(--red);
}

.eyebrow {
    color: var(--red);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.section {
    padding: 100px 0;
}

/* =========================================
   EMERGENCY BANNER
========================================= */

.emergency-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    background: var(--dark-red);
    padding: 9px 15px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.emergency-bar a {
    text-decoration: underline;
}

.status-dot {
    width: 7px;
    height: 7px;
    background: white;
    border-radius: 50%;
}

/* =========================================
   NAVIGATION
========================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(9, 9, 9, .97);
    border-bottom: 1px solid var(--border);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 110px;
    gap: 20px;
}

/* Official Logo */

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    height: 100px;
    flex-shrink: 0;
}

.brand img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.navigation {
    display: flex;
    align-items: center;
    gap: 20px;
}

.navigation a {
    position: relative;
    font-size: .8rem;
    font-weight: 600;
    white-space: nowrap;
    transition: color .2s;
}

.navigation a:hover,
.navigation a.active {
    color: var(--red);
}

.navigation a.active::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--red);
}

.nav-call {
    padding: 14px 24px;
    background: var(--dark-red);
    font-size: .8rem;
    font-weight: 700;
    white-space: nowrap;
    transition: background .2s;
}

.menu-toggle {
    display: none;
    background: transparent;
    color: white;
    border: 0;
    font-size: 1.8rem;
}

/* =========================================
   CINEMATIC VIDEO HERO
========================================= */

.hero {
    min-height: 720px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: #151515;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, .94) 0%,
        rgba(0, 0, 0, .72) 45%,
        rgba(0, 0, 0, .15) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-block: 100px;
}

.hero h1 {
    font-size: clamp(4rem, 8vw, 8rem);
    letter-spacing: -2px;
}

.hero h1 span {
    display: block;
    color: var(--red);
}

.hero-description {
    max-width: 530px;
    color: #ddd;
    font-size: 1rem;
    margin: 28px 0 35px;
}

/* =========================================
   BUTTONS
========================================= */

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 17px 25px;
    min-height: 55px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .5px;
    border: 1px solid transparent;
    transition:
        background .2s,
        border-color .2s,
        transform .2s;
}

.btn-primary {
    background: var(--dark-red);
    color: white;
}

.btn-primary:hover,
.nav-call:hover {
    background: #980c16;
}

.btn-outline {
    border-color: #aaa;
    background: rgba(0, 0, 0, .25);
}

.btn-outline:hover {
    background: #333;
    border-color: white;
}

/* Video Controls */

.video-controls {
    position: absolute;
    bottom: 25px;
    right: 4%;
    z-index: 3;
    display: flex;
    gap: 8px;
}

.video-controls button {
    padding: 10px 15px;
    border: 1px solid #777;
    background: rgba(0, 0, 0, .7);
    color: white;
    font-size: .75rem;
    transition: background .2s;
}

.video-controls button:hover {
    background: var(--dark-red);
}

/* =========================================
   BUSINESS HIGHLIGHTS
========================================= */

.trust-bar {
    padding: 35px 0;
    background: #111;
    border-block: 1px solid var(--border);
}

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

.trust-grid > div {
    text-align: center;
    border-right: 1px solid var(--border);
    padding: 10px;
}

.trust-grid > div:last-child {
    border: 0;
}

.trust-grid strong {
    display: block;
    font-family: var(--heading);
    font-size: 2.8rem;
    line-height: 1.2;
    color: var(--red);
}

.trust-grid span {
    font-size: .8rem;
    color: var(--silver);
}

/* =========================================
   SERVICES
========================================= */

.section-heading {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 55px;
}

.section-heading > p:last-child {
    color: var(--silver);
    margin-top: 20px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    overflow: hidden;
    transition:
        transform .25s,
        border-color .25s;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--red);
}

.service-image {
    position: relative;
    height: 230px;
    background-color: #232323;
    background-position: center;
    background-size: cover;
}

.service-image span {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 8px 15px;
    background: var(--dark-red);
    color: white;
    font-family: var(--heading);
    font-size: 1.3rem;
    font-weight: 800;
}

.tire-image {
    background-image: url("../images/tires.jpg");
}

.roadside-image {
    background-image: url("../images/roadside.jpg");
}

.detailing-image {
    background-image: url("../images/detailing.jpg");
}

.pressure-image {
    background-image: url("../images/pressure-washing.jpg");
}

.service-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 28px;
}

.service-content h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.service-content p {
    color: var(--silver);
    font-size: .85rem;
    margin-bottom: 25px;
}

.service-content a {
    margin-top: auto;
    color: var(--red);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.service-content a:hover {
    color: white;
}

/* =========================================
   ABOUT SECTION
========================================= */

.about-section {
    background: #111;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.about-image {
    min-height: 450px;
    background:
        url("../images/about.jpg") center / cover,
        #222;
    border: 1px solid var(--border);
}

.about-content p:not(.eyebrow) {
    color: var(--silver);
    margin: 22px 0;
}

.about-content .btn {
    margin-top: 10px;
}

/* =========================================
   EMERGENCY CALL TO ACTION
========================================= */

.cta-section {
    background: linear-gradient(
        130deg,
        #9c0b16,
        #df1524
    );
    padding: 90px 0;
    text-align: center;
}

.cta-section p {
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.cta-phone {
    display: inline-block;
    font-family: var(--heading);
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 800;
    margin: 20px 0;
}

.cta-phone:hover {
    color: #ddd;
}

.cta-section .pricing-note {
    font-size: .8rem;
    font-weight: 400;
    letter-spacing: 0;
    margin-bottom: 0;
}

/* =========================================
   FOOTER
========================================= */

.site-footer {
    padding: 70px 0 25px;
    background: var(--black);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.3fr;
    gap: 40px;
}

.site-footer .brand {
    width: 260px;
    max-width: 100%;
    height: 135px;
    margin-bottom: 15px;
}

.footer-grid h3 {
    font-size: 1.6rem;
    margin-bottom: 25px;
}

.footer-grid p {
    font-size: .85rem;
    color: var(--silver);
    margin-top: 18px;
}

.footer-grid a:not(.brand) {
    display: block;
    color: var(--silver);
    font-size: .85rem;
    margin-bottom: 12px;
    overflow-wrap: anywhere;
}

.footer-grid a:hover {
    color: white;
}

.footer-grid .footer-hours {
    color: var(--red);
    font-weight: 600;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    border-top: 1px solid var(--border);
    margin-top: 45px;
    padding-top: 25px;
    font-size: .75rem;
    color: var(--silver);
}

.mobile-call {
    display: none;
}

/* =========================================
   TABLET RESPONSIVE DESIGN
========================================= */

@media (max-width: 1150px) {

    .nav-wrapper {
        min-height: 95px;
    }

    .brand {
        width: 200px;
        height: 90px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-call {
        display: none;
    }

    .navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #141414;
        padding: 25px 4%;
        flex-direction: column;
        align-items: stretch;
        border-bottom: 1px solid var(--border);
    }

    .navigation.open {
        display: flex;
    }

    .navigation a {
        padding: 8px 0;
    }

    .navigation a.active::after {
        display: none;
    }

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

}

/* =========================================
   MOBILE RESPONSIVE DESIGN
========================================= */

@media (max-width: 650px) {

    html {
        scroll-padding-top: 95px;
    }

    body {
        padding-bottom: 60px;
    }

    .section {
        padding: 65px 0;
    }

    .emergency-bar {
        font-size: .65rem;
        gap: 7px;
        text-align: center;
    }

    .nav-wrapper {
        min-height: 85px;
    }

    .brand {
        width: 180px;
        height: 80px;
    }

    .hero {
        min-height: 650px;
    }

    .hero h1 {
        font-size: clamp(3.2rem, 12vw, 5rem);
        letter-spacing: -1px;
    }

    .hero-overlay {
        background: rgba(0, 0, 0, .73);
    }

    .hero-content {
        padding-block: 70px 100px;
    }

    .hero-description {
        font-size: .9rem;
    }

    .button-group {
        flex-direction: column;
    }

    .video-controls {
        bottom: 20px;
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .trust-grid > div {
        border: 0;
    }

    .service-grid,
    .about-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .service-image {
        height: 250px;
    }

    .about-grid {
        gap: 30px;
    }

    .about-image {
        min-height: 300px;
    }

    .cta-section {
        padding: 65px 0;
    }

    .site-footer .brand {
        width: 220px;
        height: 110px;
    }

    .footer-grid {
        gap: 35px;
    }

    .mobile-call {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--dark-red);
        color: white;
        padding: 18px;
        text-align: center;
        font-size: .8rem;
        font-weight: 700;
        z-index: 200;
    }

}

/* =========================================
   ACCESSIBILITY
========================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
    }

}
