:root {
    --mra-orange: #c8350b;
    --mra-navy: #1b3554;
    --dark-text: #333;
    --light-bg: #f4f4f4;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    line-height: 1.6;
    color: var(--dark-text);
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Layout Components --- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.brand-bar {
    background: var(--mra-orange);
    padding: 18px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand-logo-link {
    display: inline-flex;
    align-items: center;
}

.brand-logo-image {
    display: block;
    max-width: 420px;
    width: min(420px, 100%);
    height: auto;
}

.brand-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.header-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 132px;
    padding: 12px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    transition: 0.2s ease;
}

.call-action {
    background: var(--white);
    color: var(--mra-orange);
}

.book-action {
    background: rgba(255,255,255,0.14);
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.6);
}

.header-action:hover {
    transform: translateY(-1px);
}

.top-bar {
    background: #f5f5f5;
    color: var(--mra-navy);
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    font-size: 0.92rem;
    font-weight: 700;
    border-bottom: 1px solid #e7e7e7;
}

.top-bar a {
    color: var(--mra-orange);
    text-decoration: none;
}

.navbar {
    padding: 14px 5%;
    background: var(--white);
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 22px;
}

.nav-links a {
    text-decoration: none;
    color: var(--mra-navy);
    font-weight: 700;
    font-size: 0.98rem;
}

.nav-links a:hover {
    color: var(--mra-orange);
}

@media (max-width: 900px) {
    .brand-bar,
    .top-bar,
    .navbar {
        padding-left: 16px;
        padding-right: 16px;
    }

    .brand-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .brand-actions,
    .nav-links {
        width: 100%;
        justify-content: flex-start;
    }

    .top-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* --- Hero Section --- */

.hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
                url('/images/appliance-repair-service-chandler-az.jpg') center/cover;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 5%;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.location-text {
    color: var(--mra-orange);
}

.hero-badges {
    margin: 20px 0;
    font-weight: bold;
}

.hero-badges span {
    display: inline-block;
    margin: 0 10px;
    background: rgba(255,255,255,0.2);
    padding: 5px 15px;
    border-radius: 5px;
}

.main-btn {
    display: inline-block;
    background: var(--mra-orange);
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.2rem;
    transition: 0.3s;
}

.main-btn:hover {
    background: #a62b09;
    transform: translateY(-3px);
}

/* --- Services Grid --- */
.services-section {
    padding: 60px 5%;
    background: var(--white);
    text-align: center;
}

.section-support-copy {
    max-width: 900px;
    margin: 24px auto 0;
    color: #555;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.service-card {
    padding: 40px 20px;
    border: 1px solid #eee;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    border-color: var(--mra-orange);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.service-card h3 {
    color: var(--mra-navy);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-card p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
}

/* --- Luxury Brands (Now Second) --- */
.luxury-section {
    padding: 60px 5%;
    background: var(--light-bg);
}

.luxury-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--mra-navy);
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.brand-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.brand-card h3 {
    margin-bottom: 10px;
    color: var(--mra-orange);
}

.brand-card a {
    text-decoration: none;
    color: var(--mra-navy);
    font-weight: bold;
    display: block;
    margin-top: 15px;
}

/* --- Trust Image --- */
.trust-image-section img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* --- Neighborhoods (Now Third) --- */
.neighborhoods-section {
    padding: 60px 5%;
    background: var(--white);
    text-align: center;
    border-top: 1px solid #eee;
}

.neighborhood-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
    padding: 0 20px;
}

.city-group h3 {
    color: var(--mra-orange);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.city-group p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.8;
}

.city-group p strong {
    color: var(--mra-navy);
}

/* --- Floating Action Buttons --- */
.fab-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
}

.fab {
    width: 65px;
    height: 65px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.7rem;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

.call { background-color: var(--mra-orange); }
.text { background-color: #e65100; }
.book { background-color: var(--mra-navy); }

.fab span {
    margin-top: 2px;
}

/* --- Responsive Fixes --- */
@media (max-width: 600px) {
    .hero-content h1 { font-size: 2rem; }
    .hero-badges span { display: block; margin: 10px 0; }

    .fab {
        width: 60px;
        height: 60px;
    }
    .fab-container {
        bottom: 15px;
        right: 15px;
        gap: 8px;
    }
    
    .top-bar {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
}

.hero-homepage {
    min-height: 64vh;
}

.hero-actions-row {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 16px;
}

.secondary-btn {
    display: inline-block;
    background: transparent;
    color: white;
    padding: 13px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1.05rem;
    border: 2px solid rgba(255,255,255,0.75);
}

.secondary-btn:hover {
    background: rgba(255,255,255,0.12);
}

.service-card-link {
    text-decoration: none;
    color: inherit;
}

.service-card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: center center;
    border-radius: 12px;
    margin-bottom: 18px;
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 34px;
}

.brand-card {
    background: var(--white);
    border: 1px solid #e9e9e9;
    border-radius: 12px;
    padding: 28px 24px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.04);
}

.brand-card h3 {
    color: var(--mra-navy);
    margin-bottom: 10px;
}

.brand-card p {
    color: #666;
    margin-bottom: 16px;
}

.brand-card a,
.zip-card a,
.content-link-grid a,
.secondary-links a {
    color: var(--mra-orange);
    font-weight: 700;
    text-decoration: none;
}

.trust-image-section {
    text-align: center;
    padding: 40px 5%;
}

.trust-image-section img {
    width: 100%;
    max-width: 1200px;
    border-radius: 14px;
    box-shadow: 0 6px 28px rgba(0,0,0,0.10);
}

.neighborhoods-section, .seo-content-section {
    padding: 60px 5%;
    background: var(--light-bg);
}

.neighborhood-grid, .zip-grid, .content-link-grid, .secondary-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 28px;
}

.city-group, .zip-card, .content-wrap, .testimonial-card {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid #eaeaea;
    padding: 24px;
}

.testimonials-section {
    padding: 60px 5%;
    background: var(--light-bg);
}

.section-intro {
    max-width: 820px;
    margin: 0 auto 28px;
}

.center-intro {
    text-align: center;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.testimonial-card p {
    font-size: 0.98rem;
    color: #555;
    margin-bottom: 16px;
}

.testimonial-card h3 {
    color: var(--mra-navy);
    margin-bottom: 4px;
}

.testimonial-card span {
    color: #777;
    font-size: 0.92rem;
}

.reviews-cta-row {
    margin-top: 24px;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.text-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    color: var(--mra-orange);
    background: rgba(200,53,11,0.08);
}

.compact-testimonials {
    background: var(--white);
}

.content-wrap {
    max-width: 1100px;
    margin: 0 auto;
}

.brand-detail-grid {
    padding: 60px 5%;
    display: grid;
    grid-template-columns: minmax(0,1.2fr) minmax(300px,0.8fr);
    gap: 36px;
    align-items: center;
}

.brand-detail-media img {
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 6px 28px rgba(0,0,0,0.08);
}

.detail-list {
    padding-left: 20px;
    margin-top: 16px;
}

.detail-list li { margin-bottom: 8px; }

@media (max-width: 900px) {
    .brand-detail-grid { grid-template-columns: 1fr; }
    .hero { height: auto; min-height: 55vh; padding-top: 60px; padding-bottom: 60px; }
}


.services-grid,
.brand-grid {
    align-items: stretch;
}

.service-card,
.brand-card-link {
    height: 100%;
}

.brand-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.brand-card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: center center;
    border-radius: 12px;
    margin-bottom: 18px;
}

.brand-card-link span {
    color: var(--mra-orange);
    font-weight: 700;
    margin-top: auto;
}


/* --- Homepage and conversion polish --- */
.hero-homepage {
    min-height: 58vh;
}
.home-proof {
    border-top: 1px solid #ececec;
}
.trust-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    max-width: 1050px;
    margin: 0 auto 28px;
}
.trust-point {
    background: var(--white);
    border: 1px solid #e7e7e7;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 700;
    color: var(--mra-navy);
    text-align: center;
}
.bottom-cta-section {
    background: var(--mra-navy);
    color: var(--white);
    padding: 64px 5%;
}
.bottom-cta-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}
.bottom-cta-inner h2 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 14px;
}
.bottom-cta-inner p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 22px;
}
.secondary-btn-dark {
    border-color: rgba(255,255,255,0.45);
    background: rgba(255,255,255,0.08);
}
.secondary-btn-dark:hover {
    background: rgba(255,255,255,0.16);
}
.page-cta {
    padding-top: 54px;
    padding-bottom: 54px;
}
.faq-section {
    padding: 60px 5%;
    background: var(--light-bg);
}
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    margin-top: 28px;
}
.faq-card {
    background: var(--white);
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.04);
}
.faq-card h3 {
    color: var(--mra-navy);
    font-size: 1.05rem;
    margin-bottom: 10px;
}
.faq-card p {
    color: #5f5f5f;
    font-size: 0.96rem;
}
.testimonial-grid.two-up {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.testimonial-grid.one-up {
    max-width: 760px;
    margin: 0 auto;
}
.luxury-section .section-intro {
    margin-bottom: 12px;
}
.services-section .section-intro,
.neighborhoods-section .section-intro,
.testimonials-section .section-intro {
    margin-bottom: 24px;
}
@media (max-width: 700px) {
    .trust-points {
        grid-template-columns: 1fr;
    }
    .bottom-cta-inner h2 {
        font-size: 1.8rem;
    }
}


/* --- Hubs, footer, and deeper site structure --- */
.appliance-hub-grid {
    margin-top: 8px;
}
.site-footer {
    background: #10253f;
    color: rgba(255,255,255,0.88);
    padding: 56px 5%;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(260px, 1.1fr) minmax(420px, 2fr);
    gap: 36px;
    align-items: start;
}
.footer-logo {
    max-width: 210px;
    display: block;
    margin-bottom: 18px;
}
.footer-brand p {
    margin-bottom: 16px;
    line-height: 1.7;
}
.footer-contact-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-contact-links a,
.footer-links-grid a {
    color: #ffffff;
    text-decoration: none;
}
.footer-contact-links a:hover,
.footer-links-grid a:hover {
    text-decoration: underline;
}
.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(140px, 1fr));
    gap: 28px;
}
.footer-links-grid h3 {
    color: #fff;
    margin-bottom: 12px;
    font-size: 1rem;
}
.footer-links-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links-grid li + li {
    margin-top: 8px;
}
@media (max-width: 900px) {
    .footer-inner {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 700px) {
    .footer-links-grid {
        grid-template-columns: 1fr;
    }
}
