/* =========================================
   M&M Garage Services
   ========================================= */

/* --- Custom Properties --- */
:root {
    --primary: #00BFFF;
    --primary-dark: #009BD6;
    --primary-light: #33CCFF;
    --black: #0A0A0A;
    --dark: #111111;
    --dark-2: #1A1A1A;
    --gray-dark: #333333;
    --gray: #666666;
    --gray-light: #999999;
    --off-white: #F4F4F4;
    --white: #FFFFFF;
    --font-heading: 'Barlow Condensed', Impact, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --header-h: 72px;
    --container: 1140px;
}

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

/* --- Base --- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-dark);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.15;
    color: var(--black);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

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

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

ul {
    list-style: none;
}

/* --- Utilities --- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
    text-align: center;
    justify-content: center;
}

.btn:active {
    transform: scale(0.97);
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

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

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

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

.btn-dark:hover {
    background: var(--dark-2);
    border-color: var(--dark-2);
}

.btn-full {
    width: 100%;
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--black);
    height: var(--header-h);
    transition: box-shadow 0.3s;
}

.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
}

.logo img {
    height: 40px;
    width: auto;
}

.main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--dark);
    flex-direction: column;
    padding: 16px 0;
}

.main-nav.active {
    display: flex;
}

.main-nav a {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 20px;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: var(--primary);
}

.header-phone {
    display: none;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    transition: color 0.2s;
}

.header-phone:hover {
    color: var(--primary-light);
}

.header-phone svg {
    flex-shrink: 0;
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: transform 0.3s, opacity 0.2s;
    transform-origin: center;
}

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

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

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

/* --- Hero --- */
.hero {
    background: var(--black);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(0, 191, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-logo {
    margin: 0 auto 40px;
    max-width: 260px;
}

.hero h1 {
    color: var(--white);
    font-size: clamp(2.2rem, 6vw, 4rem);
    margin-bottom: 20px;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    color: var(--gray-light);
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

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

/* Hero animations */
.hero-logo {
    animation: fadeUp 0.5s ease-out both;
}

.hero h1 {
    animation: fadeUp 0.5s ease-out 0.1s both;
}

.hero p {
    animation: fadeUp 0.5s ease-out 0.2s both;
}

.hero-address {
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 32px;
    letter-spacing: 0.01em;
}

.hero-ctas {
    animation: fadeUp 0.5s ease-out 0.3s both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Section Headers --- */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin-bottom: 12px;
}

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

/* --- Services --- */
.services {
    padding: 80px 0;
    background: var(--off-white);
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.service-card {
    background: var(--white);
    padding: 32px 28px;
    border-left: 4px solid var(--primary);
    flex: 0 1 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.service-icon {
    color: var(--primary);
    margin-bottom: 16px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.service-card p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* --- About --- */
.about {
    padding: 80px 0;
    background: var(--dark);
}

.about-grid {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.about-text h2 {
    color: var(--white);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin-bottom: 20px;
}

.about-text h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin-top: 16px;
}

.about-text p {
    color: var(--gray-light);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 16px;
}

.about-points {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-point {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.about-point-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: rgba(0, 191, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.about-point strong {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: block;
    margin-bottom: 4px;
}

.about-point p {
    color: var(--gray-light);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* --- CTA Banner --- */
.cta-banner {
    background: var(--primary);
    padding: 48px 0;
}

.cta-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.cta-banner h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    color: var(--black);
}

.cta-banner p {
    color: rgba(0, 0, 0, 0.7);
    font-size: 1rem;
    margin-top: 6px;
}

/* --- Contact --- */
.contact {
    padding: 80px 0;
}

.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

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

.contact-item svg {
    flex-shrink: 0;
    color: var(--primary);
    margin-top: 2px;
}

.contact-item strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
    color: var(--black);
}

.contact-item a {
    color: var(--primary-dark);
    font-weight: 500;
    transition: color 0.2s;
}

.contact-item a:hover {
    color: var(--primary);
}

.contact-item p {
    font-size: 0.95rem;
    color: var(--gray);
    margin: 0;
    line-height: 1.6;
}

/* --- Contact Map --- */
.contact-map {
    margin-top: 48px;
}

.contact-map iframe {
    display: block;
    width: 100%;
    min-height: 350px;
    border: 2px solid #ddd;
}

/* --- Contact Form --- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gray-dark);
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #ddd;
    background: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--gray-dark);
    transition: border-color 0.2s;
    outline: none;
    -webkit-appearance: none;
    border-radius: 0;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
}

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

/* --- Footer --- */
.site-footer {
    background: var(--black);
    padding: 60px 0 0;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand img {
    height: 36px;
    width: auto;
    margin-bottom: 14px;
}

.footer-brand p {
    color: var(--gray-light);
    font-size: 0.9rem;
    max-width: 300px;
    line-height: 1.6;
}

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links strong,
.footer-contact strong {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.footer-links a,
.footer-contact a {
    color: var(--gray-light);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding: 20px 0;
}

.footer-bottom p {
    color: var(--gray);
    font-size: 0.85rem;
    text-align: center;
}

/* --- Mobile CTA --- */
.mobile-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99;
    background: var(--primary);
    color: var(--black);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 14px 20px;
    text-align: center;
    transition: background 0.2s;
}

.mobile-cta:hover {
    background: var(--primary-dark);
}

/* =========================================
   Responsive
   ========================================= */

/* Tablet */
@media (min-width: 600px) {
    .service-card {
        flex: 0 1 calc(50% - 12px);
    }

    .hero-ctas {
        flex-direction: row;
        justify-content: center;
    }

    .contact-grid {
        flex-direction: row;
        gap: 48px;
    }

    .contact-info {
        flex: 1;
    }

    .contact-form {
        flex: 1;
    }
}

/* Desktop */
@media (min-width: 768px) {
    :root {
        --header-h: 80px;
    }

    .container {
        padding: 0 32px;
    }

    .nav-toggle {
        display: none;
    }

    .main-nav {
        display: flex;
        position: static;
        background: none;
        flex-direction: row;
        padding: 0;
        gap: 8px;
    }

    .main-nav a {
        padding: 8px 16px;
        font-size: 0.95rem;
    }

    .header-phone {
        display: flex;
    }

    .mobile-cta {
        display: none;
    }

    .hero {
        padding: 140px 0 100px;
    }

    .hero-logo {
        max-width: 320px;
    }

    .services {
        padding: 100px 0;
    }

    .about {
        padding: 100px 0;
    }

    .about-grid {
        flex-direction: row;
        gap: 64px;
        align-items: flex-start;
    }

    .about-text {
        flex: 1;
    }

    .about-points {
        flex: 1;
    }

    .contact {
        padding: 100px 0;
    }

    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
    }

    .footer-brand {
        flex: 1;
    }

    .site-footer {
        padding-bottom: 0;
    }
}

/* Large desktop */
@media (min-width: 1024px) {
    .service-card {
        flex: 0 1 calc(33.333% - 16px);
    }

    .cta-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    .contact-grid {
        gap: 80px;
    }
}

/* Ensure footer has space for mobile CTA bar on small screens */
@media (max-width: 767px) {
    .site-footer {
        padding-bottom: 56px;
    }
}
