/* ========================================
   A & W Automotive — Classic & Elegant
   Terracotta + Sand Color Palette
======================================== */

/* --- CSS Custom Properties --- */
:root {
    --color-terracotta: #B45309;
    --color-terracotta-dark: #8B4006;
    --color-terracotta-light: #D4721C;
    --color-sand: #F5F0E8;
    --color-sand-dark: #E8DFD0;
    --color-sand-light: #FAF7F2;
    --color-cream: #FFFDF9;
    --color-charcoal: #2C2420;
    --color-warm-gray: #5C4F47;
    --color-medium-gray: #8A7E76;
    --color-light-border: #E0D6C8;

    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Lato', 'Segoe UI', system-ui, sans-serif;

    --shadow-sm: 0 1px 3px rgba(44, 36, 32, 0.08);
    --shadow-md: 0 4px 16px rgba(44, 36, 32, 0.10);
    --shadow-lg: 0 8px 32px rgba(44, 36, 32, 0.12);
    --shadow-card: 0 2px 12px rgba(44, 36, 32, 0.07);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

ul { list-style: none; }

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

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.25;
    color: var(--color-charcoal);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); }
h4 { font-size: 1rem; }

p { color: var(--color-warm-gray); }

.lead {
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    color: var(--color-warm-gray);
    line-height: 1.75;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-transform: uppercase;
}

.btn-primary {
    background-color: var(--color-terracotta);
    color: #fff;
    border-color: var(--color-terracotta);
}

.btn-primary:hover {
    background-color: var(--color-terracotta-dark);
    border-color: var(--color-terracotta-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.7);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
    padding: 16px 24px;
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(250, 247, 242, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-light-border);
    transition: box-shadow var(--transition);
}

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

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0;
    padding-bottom: 0;
    height: 76px;
}

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

.logo-icon {
    color: var(--color-terracotta);
}

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

.nav a:not(.btn) {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-warm-gray);
    letter-spacing: 0.02em;
    position: relative;
}

.nav a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-terracotta);
    transition: width var(--transition);
}

.nav a:not(.btn):hover {
    color: var(--color-terracotta);
}

.nav a:not(.btn):hover::after {
    width: 100%;
}

.nav .btn {
    padding: 10px 22px;
    font-size: 0.85rem;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-charcoal);
    transition: all var(--transition);
    transform-origin: center;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-charcoal);
    overflow: hidden;
    padding-top: 76px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(44, 36, 32, 0.88) 0%,
        rgba(44, 36, 32, 0.72) 50%,
        rgba(180, 83, 9, 0.35) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 820px;
    padding: 60px 24px;
}

.hero-title {
    color: #fff;
    margin-bottom: 24px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.hero-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--color-terracotta-light);
    margin: 24px auto 0;
    border-radius: 2px;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
    line-height: 1.75;
    margin-bottom: 40px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-info {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
}

.hero-info-item svg {
    color: var(--color-terracotta-light);
    flex-shrink: 0;
}

/* --- Sections --- */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-title {
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--color-medium-gray);
}

/* --- Services --- */
.services {
    background-color: var(--color-sand-light);
}

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

.service-card {
    background-color: var(--color-cream);
    border-radius: var(--radius-md);
    padding: 40px 32px;
    border: 1px solid var(--color-light-border);
    transition: all var(--transition);
}

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

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(180, 83, 9, 0.08);
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    color: var(--color-terracotta);
    transition: all var(--transition);
}

.service-card:hover .service-icon {
    background-color: var(--color-terracotta);
    color: #fff;
}

.service-card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* --- About --- */
.about {
    background-color: var(--color-cream);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    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: 6/7;
}

.about-content {
    padding: 16px 0;
}

.about-content .section-title {
    text-align: left;
    margin-bottom: 24px;
}

.about-content .lead {
    margin-bottom: 20px;
}

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

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--color-light-border);
}

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

.stat-number {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-terracotta);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--color-medium-gray);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

/* --- Testimonials --- */
.testimonials {
    background-color: var(--color-charcoal);
    color: #fff;
}

.testimonials .section-title {
    color: #fff;
}

.testimonials .section-subtitle {
    color: rgba(255, 255, 255, 0.6);
}

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

.testimonial-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    transition: all var(--transition);
}

.testimonial-card:hover {
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
}

.testimonial-quote {
    font-family: var(--font-serif);
    font-size: 4rem;
    line-height: 1;
    color: var(--color-terracotta-light);
    margin-bottom: 8px;
}

.testimonial-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-name {
    font-weight: 700;
    color: #fff;
    font-size: 0.95rem;
}

.author-detail {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* --- CTA / Contact --- */
.cta {
    background-color: var(--color-sand);
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.cta-content {
    padding: 16px 0;
}

.cta-content .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.cta-content .lead {
    margin-bottom: 40px;
}

.cta-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cta-info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.cta-info-item svg {
    color: var(--color-terracotta);
    flex-shrink: 0;
    margin-top: 2px;
}

.cta-info-item strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--color-charcoal);
    margin-bottom: 4px;
}

.cta-info-item p {
    font-size: 0.95rem;
    color: var(--color-warm-gray);
    line-height: 1.6;
}

.cta-info-item a {
    color: var(--color-terracotta);
}

.cta-info-item a:hover {
    text-decoration: underline;
}

.cta-form-wrapper {
    background-color: var(--color-cream);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-light-border);
}

.cta-form h3 {
    font-size: 1.5rem;
    margin-bottom: 28px;
    color: var(--color-charcoal);
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-charcoal);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--color-charcoal);
    background-color: var(--color-sand-light);
    border: 1px solid var(--color-light-border);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-terracotta);
    box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.12);
}

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

.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    gap: 12px;
}

.form-success svg {
    color: var(--color-terracotta);
}

.form-success p {
    color: var(--color-warm-gray);
    font-size: 1rem;
}

/* --- Footer --- */
.footer {
    background-color: var(--color-charcoal);
    color: rgba(255, 255, 255, 0.7);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-brand .logo {
    color: #fff;
    margin-bottom: 16px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
    font-weight: 700;
}

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

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

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

.footer-contact p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 4px;
}

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

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
}

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

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Default visible state for no-JS */
.reveal {
    opacity: 1;
    transform: none;
}

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

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        background-color: rgba(250, 247, 242, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--color-light-border);
        box-shadow: var(--shadow-md);
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
    }

    .nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav a:not(.btn) {
        font-size: 1rem;
    }

    .hero {
        min-height: auto;
        padding: 120px 0 80px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-info {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

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

    .about-image-wrapper {
        order: -1;
    }

    .about-content .section-title,
    .cta-content .section-title {
        text-align: center;
    }

    .about-content .lead,
    .cta-content .lead {
        text-align: center;
    }

    .about-stats {
        justify-content: center;
    }

    .cta-form-wrapper {
        padding: 28px;
    }

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

    .section {
        padding: 72px 0;
    }
}

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

    .hero-content {
        padding: 40px 16px;
    }

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

    .about-stats {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
}
