/* ============================================
   Reliance Auto — Editorial Auto Repair Website
   Forest Green + Off-White
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --forest: #1a4d2e;
    --forest-deep: #0f3620;
    --forest-light: #2d6a4f;
    --forest-muted: #40916c;
    --cream: #f5f0e8;
    --cream-light: #faf7f2;
    --cream-dark: #e8e0d0;
    --charcoal: #1a1a1a;
    --text: #2c2c2c;
    --text-light: #5a5a5a;
    --text-muted: #8a8a8a;
    --white: #ffffff;
    --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --shadow-sm: 0 1px 3px rgba(26, 77, 46, 0.08);
    --shadow-md: 0 4px 20px rgba(26, 77, 46, 0.1);
    --shadow-lg: 0 8px 40px rgba(26, 77, 46, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--sans);
    color: var(--text);
    background-color: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 700;
    line-height: 1.15;
    color: var(--forest);
}

.section-eyebrow {
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--forest-muted);
    margin-bottom: 16px;
    display: block;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 24px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    font-family: var(--sans);
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--forest);
    color: var(--white);
    border-color: var(--forest);
}

.btn-primary:hover {
    background: var(--forest-deep);
    border-color: var(--forest-deep);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--forest);
    border-color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--forest);
    border-color: var(--white);
}

.btn-white:hover {
    background: var(--cream);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--forest);
}

.btn-full {
    width: 100%;
}

/* ============================================
   Header
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(245, 240, 232, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(26, 77, 46, 0.08);
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--forest);
}

.logo-mark {
    width: 44px;
    height: 44px;
    background: var(--forest);
    color: var(--white);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    font-family: var(--serif);
    font-weight: 800;
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-menu a {
    padding: 8px 16px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--forest);
    background: rgba(26, 77, 46, 0.06);
}

.nav-cta {
    background: var(--forest) !important;
    color: var(--white) !important;
    margin-left: 8px;
}

.nav-cta:hover {
    background: var(--forest-deep) !important;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    position: relative;
}

.hamburger {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger::before,
.hamburger::after,
.hamburger span {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: var(--forest);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger span {
    width: 60%;
    margin-left: auto;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg) translateY(5px);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg) translateY(-5px);
}

.nav-toggle[aria-expanded="true"] .hamburger span {
    opacity: 0;
}

/* ============================================
   Hero
   ============================================ */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    margin-top: 80px;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(26, 77, 46, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(45, 106, 79, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    padding: 80px 24px 60px;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero-eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--forest-muted);
    margin-bottom: 24px;
}

.hero-headline {
    font-size: clamp(2.25rem, 5.5vw, 4.25rem);
    font-weight: 800;
    color: var(--forest);
    line-height: 1.1;
    margin-bottom: 28px;
    letter-spacing: -0.02em;
}

.hero-headline em {
    font-style: italic;
    color: var(--forest-light);
}

.hero-sub {
    font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
    color: var(--text-light);
    line-height: 1.75;
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    z-index: 1;
    height: 40vh;
    min-height: 280px;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, var(--cream), transparent);
    pointer-events: none;
}

/* ============================================
   Trust Bar
   ============================================ */
.trust-bar {
    background: var(--forest);
    padding: 0;
}

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

.trust-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 28px 32px;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.trust-item:last-child {
    border-right: none;
}

.trust-icon {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.7);
}

.trust-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

/* ============================================
   Services
   ============================================ */
.services {
    padding: 120px 0;
    background: var(--cream);
}

.section-header {
    margin-bottom: 64px;
}

.section-header--centered {
    text-align: center;
}

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

.service-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 40px 32px;
    transition: var(--transition);
    border: 1px solid rgba(26, 77, 46, 0.06);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-icon {
    width: 56px;
    height: 56px;
    background: rgba(26, 77, 46, 0.08);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--forest);
    margin-bottom: 24px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--forest);
    color: var(--white);
}

.service-title {
    font-size: 1.375rem;
    margin-bottom: 12px;
    color: var(--forest);
}

.service-desc {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ============================================
   About
   ============================================ */
.about {
    padding: 120px 0;
    background: var(--cream-light);
}

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

.about-image-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/5;
}

.about-content .section-eyebrow {
    margin-bottom: 16px;
}

.about-content .section-title {
    margin-bottom: 32px;
}

.about-body {
    font-size: 1.0625rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 24px;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
    padding: 32px 0;
    border-top: 1px solid var(--cream-dark);
    border-bottom: 1px solid var(--cream-dark);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--forest);
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

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

/* ============================================
   Why Us
   ============================================ */
.why-us {
    padding: 120px 0;
    background: var(--forest);
    position: relative;
    overflow: hidden;
}

.why-us::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.why-us .section-eyebrow {
    color: rgba(255, 255, 255, 0.6);
}

.why-us .section-title {
    color: var(--white);
}

.why-us .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
    margin-top: 64px;
    position: relative;
    z-index: 1;
}

.why-item {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 24px;
}

.why-number {
    font-family: var(--serif);
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.15);
    line-height: 1;
    align-self: start;
}

.why-title {
    font-size: 1.375rem;
    color: var(--white);
    margin-bottom: 12px;
}

.why-desc {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
}

/* ============================================
   CTA Banner
   ============================================ */
.cta-banner {
    padding: 100px 0;
    background: var(--cream);
    text-align: center;
}

.cta-eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--forest-muted);
    margin-bottom: 16px;
}

.cta-headline {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    margin-bottom: 20px;
}

.cta-body {
    font-size: 1.0625rem;
    color: var(--text-light);
    max-width: 520px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ============================================
   Contact
   ============================================ */
.contact {
    padding: 120px 0;
    background: var(--cream-light);
}

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

.contact-intro {
    font-size: 1.0625rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 40px;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-detail-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: rgba(26, 77, 46, 0.08);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--forest);
}

.contact-detail-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.contact-detail-value {
    display: block;
    font-size: 1rem;
    color: var(--text);
}

.contact-detail-value a {
    color: var(--forest);
    transition: var(--transition);
}

.contact-detail-value a:hover {
    color: var(--forest-deep);
    text-decoration: underline;
}

.contact-map {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(26, 77, 46, 0.06);
}

.form-title {
    font-size: 1.75rem;
    margin-bottom: 32px;
    color: var(--forest);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--sans);
    font-size: 0.9375rem;
    color: var(--text);
    background: var(--cream-light);
    border: 1.5px solid var(--cream-dark);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--forest-muted);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(26, 77, 46, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235a5a5a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-success {
    text-align: center;
    padding: 48px 24px;
}

.form-success svg {
    color: var(--forest);
    margin: 0 auto 20px;
}

.form-success p {
    font-size: 1.0625rem;
    color: var(--text);
    line-height: 1.6;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: var(--charcoal);
    color: rgba(255, 255, 255, 0.7);
}

.footer-inner {
    padding: 64px 0 40px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 48px;
    align-items: start;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-brand .logo-mark {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
}

.footer-brand .logo-text {
    color: var(--white);
    font-size: 1.375rem;
}

.footer-tagline {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.footer-links a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-contact p {
    font-size: 0.9375rem;
    margin-bottom: 8px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-inner {
    padding: 24px 0;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.35);
    text-align: center;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-layout {
        gap: 48px;
    }

    .why-grid {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--cream);
        flex-direction: column;
        padding: 24px;
        gap: 8px;
        border-bottom: 1px solid rgba(26, 77, 46, 0.08);
        box-shadow: var(--shadow-md);
        transform: translateY(-120%);
        opacity: 0;
        transition: var(--transition);
        pointer-events: none;
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-menu a {
        padding: 12px 16px;
        width: 100%;
    }

    .nav-cta {
        margin-left: 0 !important;
        text-align: center;
    }

    .hero {
        min-height: 80vh;
    }

    .hero-inner {
        padding: 60px 24px 40px;
    }

    .hero-image {
        height: 30vh;
        min-height: 200px;
    }

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

    .trust-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        padding: 20px 24px;
    }

    .services {
        padding: 80px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-card {
        padding: 28px 24px;
    }

    .about {
        padding: 80px 0;
    }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image-wrapper {
        max-height: 400px;
    }

    .why-us {
        padding: 80px 0;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .cta-banner {
        padding: 80px 0;
    }

    .contact {
        padding: 80px 0;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact-form-wrapper {
        padding: 32px 24px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .footer-links {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .trust-bar-inner {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .cta-actions .btn {
        width: 100%;
    }
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
