/* ==========================================================================
   Template 3 — Full-Width Alternating Sections — Ridgeview Auto Repair
   Mobile-first, hard-coded, no frameworks.
   ========================================================================== */

:root {
    --slate: #262b31;
    --slate-2: #32393f;
    --red: #cf4a30;
    --red-dark: #b23c25;
    --amber: #f0a500;
    --ink: #22262b;
    --muted: #5c636b;
    --bg: #ffffff;
    --bg-soft: #f2f4f7;
    --border: #e4e7ea;
    --radius: 0.75rem;
    --shadow: 0 6px 24px rgba(34, 38, 43, 0.08);
    --shadow-lg: 0 12px 40px rgba(34, 38, 43, 0.14);
    --max: 72rem;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3 {
    line-height: 1.15;
    margin: 0 0 0.5rem;
    color: var(--ink);
    font-weight: 800;
    letter-spacing: -0.02em;
}

p {
    margin: 0 0 1rem;
}

a {
    color: var(--red);
    text-decoration: none;
}

a:hover {
    color: var(--red-dark);
}

a:focus-visible,
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--amber);
    outline-offset: 2px;
}

.container {
    width: 100%;
    max-width: var(--max);
    margin-inline: auto;
    padding-inline: 1.25rem;
}

section {
    padding: 3.5rem 0;
}

section[id] {
    scroll-margin-top: 6rem;
}

.section-head {
    max-width: 40rem;
    margin-bottom: 2.25rem;
}

.section-head .eyebrow,
.hero-band .eyebrow {
    margin: 0 0 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 700;
    font-size: 0.8rem;
}

.section-head .eyebrow {
    color: var(--red);
}

.section-head h2 {
    font-size: 1.9rem;
}

.section-head p {
    color: var(--muted);
}

.section-head--center {
    margin-inline: auto;
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.7rem 1.4rem;
    font-size: 1rem;
    line-height: 1.2;
    text-align: center;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
    background: var(--red);
    color: #fff;
    box-shadow: 0 4px 14px rgba(207, 74, 48, 0.28);
}

.btn-primary:hover {
    background: var(--red-dark);
    color: #fff;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--ink);
    border-color: var(--border);
}

.btn-outline:hover {
    border-color: var(--red);
    color: var(--red);
}

.btn-ghost-light {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-ghost-light:hover {
    background: rgba(255, 255, 255, 0.28);
    color: #fff;
    border-color: #fff;
}

.btn-block {
    width: 100%;
}
/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--border);
}

.site-header.is-scrolled {
    box-shadow: 0 4px 16px rgba(34, 38, 43, 0.08);
}

.header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.25rem;
    padding-block: 0.6rem;
}

.brand {
    display: inline-flex;
    align-items: center;
}

.brand img {
    height: 46px;
    width: auto;
}

/* Hamburger toggle (mobile) */
.nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-left: auto;
    padding: 0;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    cursor: pointer;
}

.nav-toggle:hover {
    border-color: var(--red);
}

.nav-toggle-icon {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 1.5rem;
    height: 1.5rem;
}

.nav-toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Navigation (collapsed on mobile until toggled) */
.site-nav {
    flex-basis: 100%;
    order: 10;
    display: none;
}

.site-nav.is-open {
    display: block;
}

.site-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0.5rem 0 0.75rem;
    border-top: 1px solid var(--border);
}

.site-nav a {
    display: block;
    color: var(--ink);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.6rem 0.25rem;
}

.site-nav a:hover {
    color: var(--red);
}

.site-nav-cta {
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--border);
}

.site-nav-cta .btn {
    width: 100%;
    color: #fff;
}

.site-nav-cta .btn:hover {
    color: #fff;
}

/* Header CTA (desktop only) */
.header-cta {
    display: none;
}
/* Hero band */
.hero-band {
    position: relative;
    color: #fff;
    padding: 5.5rem 0;
    background-color: var(--slate);
    background-image:
        linear-gradient(rgba(38, 43, 49, 0.85), rgba(38, 43, 49, 0.76)),
        url("../images/template-3-hero-001.jpg");
    background-size: cover;
    background-position: center;
}

.hero-inner {
    max-width: 42rem;
}

.hero-band .eyebrow {
    color: var(--amber);
}

.hero-band h1 {
    color: #fff;
    font-size: 2.4rem;
}

.hero-band p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.92);
    max-width: 36rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* Services band */
.services-band {
    background-color: var(--bg-soft);
    background-image:
        linear-gradient(rgba(242, 244, 247, 0.93), rgba(242, 244, 247, 0.96)),
        url("../images/template-3-services-band-001.jpg");
    background-size: cover;
    background-position: center;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.service-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #f3c7bb;
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: rgba(207, 74, 48, 0.1);
    color: var(--red);
    margin-bottom: 1rem;
}

.service-icon svg {
    width: 1.6rem;
    height: 1.6rem;
}

.service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
}

.service-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}
/* About band */
.about-band {
    background: var(--bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.about-media img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
}

.trust-list {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.trust-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
}

.trust-list svg {
    width: 1.3rem;
    height: 1.3rem;
    color: var(--red);
    flex: none;
}

/* Service Area band */
.service-area-band {
    background: var(--bg-soft);
}

.area-cities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.city-chip {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
}
/* Contact band */
.contact-band {
    color: #fff;
    background-color: var(--slate);
    background-image:
        linear-gradient(rgba(38, 43, 49, 0.93), rgba(38, 43, 49, 0.9)),
        url("../images/template-3-contact-band-001.jpg");
    background-size: cover;
    background-position: center;
}

.contact-band .section-head h2 {
    color: #fff;
}

.contact-band .section-head p {
    color: rgba(255, 255, 255, 0.85);
}

.contact-band .eyebrow {
    color: var(--amber);
}

.contact-form {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.contact-form--centered {
    max-width: 40rem;
    margin-inline: auto;
}

.form-field {
    margin-bottom: 1rem;
}

.form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
    color: var(--ink);
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font: inherit;
    color: var(--ink);
    background: var(--bg-soft);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(207, 74, 48, 0.16);
    background: #fff;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.form-status {
    margin: 1rem 0 0;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background: #fdecea;
    color: #a3341f;
    font-weight: 600;
    border: 1px solid #f5b5a6;
}

/* Footer */
.site-footer {
    background: var(--slate-2);
    color: rgba(255, 255, 255, 0.78);
    padding: 3rem 0 1.5rem;
}

.site-footer h3 {
    color: #fff;
    font-size: 1rem;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.85);
}

.site-footer a:hover {
    color: #fff;
}

.footer-brand {
    color: #fff;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 2rem;
    padding-top: 1.25rem;
    font-size: 0.85rem;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
}

/* Back to RCR Web Services (fixed side button) */
.back-to-rcr {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    z-index: 40;
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    background: var(--slate);
    border-radius: 999px;
    box-shadow: var(--shadow-lg);
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.back-to-rcr:hover {
    background: var(--slate-2);
    color: #fff;
    transform: translateY(-1px);
}
/* Responsive */
@media (min-width: 640px) {
    section {
        padding: 4.5rem 0;
    }

    section[id] {
        scroll-margin-top: 5rem;
    }

    .hero-band {
        padding: 6rem 0;
    }

    .hero-band h1 {
        font-size: 3rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 820px) {
    .header-inner {
        flex-wrap: nowrap;
    }

    .nav-toggle {
        display: none;
    }

    .site-nav {
        flex-basis: auto;
        order: 0;
        display: block;
        margin-left: auto;
    }

    .site-nav ul {
        flex-direction: row;
        gap: 0.25rem 1.25rem;
        padding: 0;
        border-top: none;
    }

    .site-nav a {
        padding: 0.25rem 0;
        font-size: 0.95rem;
    }

    .site-nav-cta {
        display: none;
    }

    .header-cta {
        display: inline-flex;
        margin-left: 0;
    }
}

@media (min-width: 960px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr 1.1fr;
    }

    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
    }
}

