/*
Theme Name: Crawley Gearbox Repairs Modern
Theme URI: https://crawleygearboxrepairs.co.uk
Description: A highly optimized, modern, standards-compliant theme reproducing the classic AutoEurope layout.
Version: 1.0.0
Author: Custom Development
Text Domain: crawley-gearbox-modern
*/

:root {
    --primary-color: #1a365d; /* Adjust to match your exact header blue/dark tone */
    --accent-color: #c53030;  /* Adjust to match your exact call-to-action red */
    --text-color: #2d3748;
    --bg-color: #ffffff;
    --light-bg: #f7fafc;
    --max-width: 1140px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.site-header {
    background: var(--bg-color);
    padding: 20px 0;
    border-bottom: 4px solid var(--primary-color);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.contact-info a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
}

.contact-info .phone {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-left: 15px;
}

.main-nav {
    background: var(--primary-color);
    margin-top: 15px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
}

.main-nav a {
    display: block;
    color: #fff;
    padding: 12px 20px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease;
}

.main-nav a:hover, .main-nav .current-menu-item a {
    background: var(--accent-color);
}

/* Main Content Layout */
.site-main {
    padding: 40px 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .site-main {
        grid-template-columns: 2fr 1fr;
    }
}

.content-area h1 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.content-area p {
    margin-bottom: 15px;
}

/* Sidebar & Accoutrements */
.sidebar {
    background: var(--light-bg);
    padding: 25px;
    border-radius: 4px;
    border-top: 4px solid var(--primary-color);
}

.sidebar h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Footer */
.site-footer {
    background: var(--primary-color);
    color: #fff;
    padding: 30px 0;
    margin-top: 40px;
    text-align: center;
    font-size: 0.9rem;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    text-align: left;
    margin-bottom: 20px;
}