/* RR Auto Garage overrides for the Autozox-style template */

:root {
    --primary-color: #e81c2e;
    --secondary-color: #0c2957;
    --heading-color: #00173c;
    --body-color: #777777;
    --white: #ffffff;
    --font-heading: 'Rajdhani', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

.logo {
    width: auto;
    min-width: 0;
    max-width: 260px;
}

.rr-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
}

.rr-logo__mark {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Rajdhani', sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color), #ff7a32);
    box-shadow: 0 14px 28px rgba(232, 28, 46, 0.25);
}

.rr-logo__text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.rr-logo__text strong {
    color: #00173c;
    font-size: 28px;
    font-weight: 700;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 0.01em;
}

.rr-logo__text small {
    color: #6d7b92;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
}

.header-three .sticky-menu .rr-logo__text strong,
.header-three .sticky-menu .rr-logo__text small {
    color: var(--heading-color);
}

.header-three .sticky-menu.sticky .rr-logo__text strong {
    color: var(--heading-color);
}

.rr-slide {
    position: relative;
}

.rr-slide::before,
.rr-breadcrumb::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(12, 41, 87, 0.9) 0%, rgba(12, 41, 87, 0.72) 42%, rgba(12, 41, 87, 0.35) 100%);
    z-index: 1;
}

.rr-slide .container,
.rr-breadcrumb .container {
    position: relative;
    z-index: 2;
}

.slider-content h2 {
    max-width: 11ch;
}

.slider-content p {
    max-width: 620px;
}

.rr-breadcrumb {
    background-position: center;
    background-size: cover;
    position: relative;
}

.rr-breadcrumb .breadcrumb-title h2,
.rr-breadcrumb .breadcrumb-item,
.rr-breadcrumb .breadcrumb-item a {
    color: #fff;
}

.about-area .s-about-img img,
.faq-img img,
.thumbnail img,
.team-single-img img,
.entry-thumb img,
.details-thumb img,
.product-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}

.about-area .s-about-img img {
    min-height: 520px;
    max-height: 620px;
}

.about-text.second-about {
    border-radius: 18px;
    min-width: 220px;
}

.about-title h2,
.section-title h2,
.cta-title h2 {
    letter-spacing: -0.02em;
}

.green li {
    line-height: 28px;
}

.green li::marker {
    color: var(--primary-color);
}

.services-box07,
.services-box-05,
.single-post2,
.pricing-box,
.rr-sidebox,
.rr-product-card,
.blog-entry.rr-blog-entry {
    border-radius: 10px;
}

.services-box07 {
    min-height: 180px;
}

.services-content-05 h4,
.team-info h4,
.blog-content2 h4,
.rr-product-card h4 {
    min-height: auto;
}

.sd-img img {
    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(0, 23, 60, 0.12);
}

.single-team .team-thumb .brd img {
    width: 100%;
    height: 330px;
    object-fit: cover;
}

.rr-brand-chip {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
}

.rr-brand-chip span {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

/* Services Grid Refinement */
.sr-tw-ul li {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.sr-tw-ul li:hover {
    transform: translateX(10px);
    border-color: var(--primary-color);
}

.sr-tw-ul li .icon, .sr-tw-ul li .icon-right {
    background: #f7fafd;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 15px;
}

.sr-tw-ul li .text h4 {
    margin-bottom: 10px;
    font-size: 20px;
}

.single-post2 .blog-thumb2 img,
.rr-product-card .thumb img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.rr-product-card {
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.rr-product-card .content {
    padding: 24px 22px;
}

.rr-product-card .content p {
    margin-bottom: 0;
}

.blog-entry.rr-blog-entry {
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.blog-entry.rr-blog-entry .entry-thumb img {
    width: 100%;
    height: 360px;
    object-fit: cover;
}

.blog-entry.rr-blog-entry .entry-content {
    padding: 28px;
}

.blog-entry.rr-blog-entry .b-meta ul {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.blog-details-wrap blockquote {
    padding: 30px 32px;
    margin: 30px 0;
    background: #f7fafd;
    border-left: 4px solid var(--primary-color);
}

.blog-details-wrap blockquote p {
    margin: 0;
    font-size: 24px;
    line-height: 1.5;
    color: #00173c;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
}

.rr-sidebox {
    background: #f7fafd;
    padding: 35px 28px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.rr-sidebox h3 {
    margin-bottom: 12px;
}

.rr-sidebox p {
    margin-bottom: 20px;
}

.product-details ul.green,
.s-details-content ul.green,
.team-details-content ul.green {
    margin: 18px 0 24px;
}

.product-details ul.green li,
.s-details-content ul.green li,
.team-details-content ul.green li {
    list-style: disc;
    margin-left: 18px;
}

.map iframe {
    width: 100%;
    display: block;
}

.rr-footer-brand {
    font-size: 30px;
    font-weight: 700;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
}

.rr-footer-brand span {
    color: var(--primary-color);
}

/* Custom transitions and hover states for Autozox feel */
.btn {
    overflow: hidden;
    transition: all 0.5s ease;
}

.btn:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.top-bar-navy {
    background: var(--secondary-color) !important;
}

.top-bar-navy span, .top-bar-navy a, .top-bar-navy i {
    color: #fff !important;
}

.top-bar-navy a:hover {
    color: var(--primary-color) !important;
}

/* Info Boxes Styles */
.info-boxes-row {
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.info-box-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: all 0.3s ease;
    border-bottom: 4px solid transparent;
}

.info-box-card:hover, .info-box-card.active {
    background: var(--primary-color);
    border-bottom-color: var(--secondary-color);
    transform: translateY(-10px);
}

.info-box-icon {
    font-size: 40px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.info-box-card:hover .info-box-icon, .info-box-card.active .info-box-icon {
    color: var(--white);
}

.info-box-content h4 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--heading-color);
    transition: all 0.3s ease;
}

.info-box-content p {
    margin-bottom: 0;
    color: var(--body-color);
    transition: all 0.3s ease;
}

.info-box-card:hover .info-box-content h4, .info-box-card.active .info-box-content h4,
.info-box-card:hover .info-box-content p, .info-box-card.active .info-box-content p {
    color: var(--white);
}

@media (max-width: 991px) {
    .info-boxes-row {
        margin-top: 0;
        padding-top: 40px;
    }
    .info-box-card {
        margin-bottom: 30px;
    }
}

.single-testimonial {
    padding: 38px 30px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
}

.single-testimonial p {
    min-height: 120px;
}

.pricing-box strong {
    color: #6f7785;
    display: block;
    font-weight: 500;
    margin-top: 8px;
}

.pricing-box ul li {
    margin-bottom: 10px;
}

.contact-bg02 select {
    width: 100%;
    height: 64px;
    border: 1px solid #e1e8ef;
    padding: 0 25px;
    color: #777;
}

.contact-bg02 textarea {
    padding-top: 20px;
}

.single-brand img {
    margin: 0 auto;
}

.copyright-wrap ul {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* FAQ Styling Update */
.faq-wrap .card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
    border-radius: 8px !important;
}

.faq-btn {
    background: transparent !important;
    color: #fff !important;
    font-weight: 700;
    font-size: 18px;
    padding: 20px 25px !important;
    text-align: left;
    width: 100%;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-btn:not(.collapsed) {
    color: var(--primary-color) !important;
}

.faq-wrap .card-body {
    color: rgba(255, 255, 255, 0.7);
    padding: 0 25px 20px;
}

@media (max-width: 1199px) {
    .rr-logo__text strong {
        font-size: 24px;
    }
}

@media (max-width: 991px) {
    .about-area .s-about-img img,
    .single-team .team-thumb .brd img,
    .blog-entry.rr-blog-entry .entry-thumb img,
    .single-post2 .blog-thumb2 img,
    .rr-product-card .thumb img {
        height: auto;
        min-height: 0;
    }

    .copyright-wrap ul {
        justify-content: center;
        margin-top: 12px;
    }
}

@media (max-width: 767px) {
    .rr-logo__mark {
        width: 46px;
        height: 46px;
        font-size: 22px;
    }

    .rr-logo__text strong {
        font-size: 22px;
    }

    .rr-logo__text small {
        font-size: 11px;
        letter-spacing: 0.08em;
    }

    .slider-content h2 {
        max-width: none;
    }

    .blog-details-wrap blockquote p {
        font-size: 20px;
    }
}

/* --- Footer & Services Banner Refinement --- */
.brand-area {
    border-top: 5px solid rgba(0,0,0,0.1);
    box-shadow: inset 0 10px 20px rgba(0,0,0,0.1);
}

.rr-brand-chip {
    background: rgba(255,255,255,0.1);
    padding: 15px 25px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.2);
    text-align: center;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
}

.rr-brand-chip span {
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--heading-font);
    font-size: 16px;
}

.rr-brand-chip:hover {
    background: #fff;
    transform: translateY(-5px);
}

.rr-brand-chip:hover span {
    color: var(--primary-color);
}

.footer-bg {
    position: relative;
    overflow: hidden;
    background-size: cover !important;
    background-position: center !important;
}

.footer-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(12, 41, 87, 0.95) 0%, rgba(6, 21, 45, 0.98) 100%);
    z-index: 1;
}

.footer-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><path d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/></g></g></svg>');
    opacity: 0.5;
    z-index: 2;
    pointer-events: none;
}

.footer-top {
    position: relative;
    z-index: 5;
}

.footer-widget p {
    color: rgba(255,255,255,0.9) !important;
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 16px;
}

.footer-widget .f-widget-title h2 {
    font-size: 24px;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 12px;
    color: #fff !important;
}

.footer-about-content p {
    margin-bottom: 20px;
    max-width: 90%;
}

.rr-footer-about .f-widget-title h2 {
    margin-bottom: 25px;
}

.footer-social a {
    width: 45px;
    height: 45px;
    line-height: 45px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    display: inline-block;
    text-align: center;
    color: #fff;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.rr-footer-brand {
    font-family: var(--heading-font);
    font-size: 28px;
    font-weight: 800;
    color: #fff;
}

.rr-footer-brand span {
    color: var(--primary-color);
}

.footer-link ul li a {
    color: rgba(255,255,255,0.85) !important;
    transition: all 0.3s ease;
}

.footer-link ul li a:hover {
    color: var(--primary-color) !important;
    padding-left: 5px;
}

.subricbe .header-input {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 15px 20px;
    border-radius: 4px;
}

.subricbe .header-input::placeholder {
    color: rgba(255,255,255,0.4);
}
