
/* =========================================
   ANYTIME TIRES
   Interior Page Stylesheet
   anytimetire.shop
========================================= */


/* =========================================
   PAGE HERO
========================================= */

.page-hero {
    min-height: 580px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: #141414;
    background-position: center;
    background-size: cover;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, .96) 0%,
        rgba(0, 0, 0, .80) 40%,
        rgba(0, 0, 0, .25) 100%
    );
}

.page-hero-content {
    position: relative;
    z-index: 1;
    padding-block: 65px 90px;
}

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

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

.page-description {
    max-width: 570px;
    color: #d5d5d5;
    font-size: 1rem;
    margin: 25px 0 35px;
}


/* =========================================
   PAGE BACKGROUND IMAGES
========================================= */

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

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

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

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

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

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


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

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: .8rem;
    color: var(--silver);
    margin-bottom: 35px;
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb span:last-child {
    color: var(--white);
}


/* =========================================
   FEATURE CARDS
========================================= */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 285px;
    padding: 35px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 3px solid var(--dark-red);
    overflow: hidden;
    transition:
        transform .25s,
        border-color .25s,
        background .25s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--red);
    background: #191919;
}

.feature-number {
    display: inline-block;
    font-family: var(--heading);
    font-size: 3rem;
    line-height: 1;
    font-weight: 800;
    color: var(--red);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 2rem;
    margin-bottom: 18px;
}

.feature-card p {
    color: var(--silver);
    font-size: .9rem;
    line-height: 1.8;
    margin-bottom: 25px;
}

.feature-link {
    display: inline-block;
    margin-top: auto;
    color: var(--red);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .7px;
}

.feature-link:hover {
    color: white;
}


/* =========================================
   PAGE PHOTOGRAPHY
========================================= */

.page-photo {
    min-height: 480px;
    background-color: #222;
    background-position: center;
    background-size: cover;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.page-photo::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--red);
}

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

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

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

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

.company-photo {
    background-image: url("../images/about.jpg");
}


/* =========================================
   CHECKLIST
========================================= */

.check-list {
    list-style: none;
    margin: 25px 0 35px;
}

.check-list li {
    position: relative;
    padding: 11px 0 11px 30px;
    color: #ddd;
    font-size: .9rem;
    border-bottom: 1px solid var(--border);
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 10px;
    color: var(--red);
    font-size: 1rem;
    font-weight: 700;
}


/* =========================================
   SERVICE PROCESS
========================================= */

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.process-step {
    padding: 35px 25px;
    text-align: center;
    border: 1px solid var(--border);
    background: var(--surface);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 75px;
    height: 75px;
    border: 2px solid var(--red);
    border-radius: 50%;
    font-family: var(--heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--red);
    margin: 0 auto 25px;
}

.process-step h3 {
    font-size: 1.9rem;
    margin-bottom: 18px;
}

.process-step p {
    color: var(--silver);
    font-size: .9rem;
}


/* =========================================
   FREQUENTLY ASKED QUESTIONS
========================================= */

.faq-section {
    background: #111;
}

.faq-list {
    max-width: 900px;
    margin-inline: auto;
}

.faq-list details {
    margin-bottom: 15px;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: border-color .2s;
}

.faq-list details:hover,
.faq-list details[open] {
    border-color: var(--red);
}

.faq-list summary {
    position: relative;
    padding: 22px 55px 22px 25px;
    cursor: pointer;
    list-style: none;
    font-size: .95rem;
    font-weight: 600;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    content: "+";
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--red);
    font-size: 1.6rem;
    font-weight: 700;
}

.faq-list details[open] summary::after {
    content: "−";
}

.faq-list details[open] summary {
    border-bottom: 1px solid var(--border);
}

.faq-list details p {
    padding: 22px 25px;
    color: var(--silver);
    font-size: .9rem;
    line-height: 1.9;
}

.faq-list summary:focus-visible {
    outline: 2px solid white;
    outline-offset: -4px;
}


/* =========================================
   CONTACT INFORMATION
   Prepared for the Contact Page
========================================= */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
}

.contact-card {
    padding: 35px;
    background: var(--surface);
    border: 1px solid var(--border);
}

.contact-card h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.contact-card p {
    color: var(--silver);
    margin-bottom: 15px;
    overflow-wrap: anywhere;
}

.contact-card a {
    color: var(--red);
    font-weight: 600;
    overflow-wrap: anywhere;
}

.contact-card a:hover {
    color: white;
}

.map-container {
    overflow: hidden;
    border: 1px solid var(--border);
}

.map-container iframe {
    display: block;
    width: 100%;
    min-height: 450px;
    border: 0;
}


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

@media (max-width: 1000px) {

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

    .process-grid {
        gap: 20px;
    }

    .page-photo {
        min-height: 380px;
    }

}


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

@media (max-width: 650px) {

    .page-hero {
        min-height: 550px;
    }

    .page-hero::before {
        background: rgba(0, 0, 0, .78);
    }

    .page-hero-content {
        padding-block: 40px 65px;
    }

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

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

    .breadcrumb {
        margin-bottom: 30px;
    }

    .feature-grid,
    .process-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        min-height: auto;
        padding: 28px;
    }

    .feature-card h3 {
        font-size: 1.9rem;
    }

    .page-photo {
        min-height: 300px;
    }

    .process-step {
        padding: 30px 20px;
    }

    .faq-list summary {
        padding: 20px 45px 20px 18px;
        font-size: .85rem;
    }

    .faq-list summary::after {
        right: 18px;
    }

    .faq-list details p {
        padding: 18px;
        font-size: .85rem;
    }

    .contact-card {
        padding: 25px;
    }

    .map-container iframe {
        min-height: 300px;
    }

}


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

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

    .feature-card,
    .faq-list details {
        transition: none;
    }

}
