/* ============================================
   JC Autoworks LLC — Custom Styles
   Deep Navy (#1E3A5F) + Warm Gold (#D4A017)
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --navy-900: #0D1F33;
    --navy-800: #1E3A5F;
    --navy-700: #2C4A6E;
    --navy-600: #3D5A80;
    --gold-600: #B8860B;
    --gold-500: #D4A017;
    --gold-400: #E8B94D;
    --gold-300: #F0CC7A;
    --neutral-900: #111827;
    --neutral-800: #1F2937;
    --neutral-700: #374151;
    --neutral-600: #4B5563;
    --neutral-500: #6B7280;
    --neutral-400: #9CA3AF;
    --neutral-300: #D1D5DB;
    --neutral-200: #E5E7EB;
    --neutral-100: #F3F4F6;
    --neutral-50: #F9FAFB;
    --white: #FFFFFF;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --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;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--neutral-800);
    background-color: var(--white);
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

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

/* --- Scroll Reveal (Progressive Enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    white-space: nowrap;
}

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

.btn:active {
    transform: translateY(0);
}

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

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

.btn-gold {
    background-color: var(--gold-500);
    color: var(--navy-900);
    border-color: var(--gold-500);
}

.btn-gold:hover {
    background-color: var(--gold-400);
    border-color: var(--gold-400);
}

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

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--navy-800);
    border-color: var(--white);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* --- Section Common --- */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold-500);
    margin-bottom: 12px;
}

.section-label::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 2px;
    background-color: var(--gold-500);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.15;
    color: var(--navy-900);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 17px;
    color: var(--neutral-600);
    max-width: 640px;
    line-height: 1.7;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .section-subtitle {
    margin: 0 auto;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(30, 58, 95, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: all var(--transition);
}

.navbar.scrolled {
    background-color: rgba(13, 31, 51, 0.98);
    box-shadow: var(--shadow-lg);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
}

.logo span {
    color: var(--gold-500);
}

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

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    transition: color var(--transition);
}

.nav-links a:hover {
    color: var(--gold-400);
}

.nav-cta {
    background-color: var(--gold-500) !important;
    color: var(--navy-900) !important;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600 !important;
    transition: all var(--transition) !important;
}

.nav-cta:hover {
    background-color: var(--gold-400) !important;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--white);
    border-radius: 2px;
    transition: all var(--transition);
}

.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 Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--navy-900);
}

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 31, 51, 0.92) 0%, rgba(30, 58, 95, 0.85) 50%, rgba(13, 31, 51, 0.88) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 120px 0 80px;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(212, 160, 23, 0.15);
    border: 1px solid rgba(212, 160, 23, 0.4);
    color: var(--gold-400);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 28px;
    letter-spacing: 0.04em;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 5vw, 58px);
    font-weight: 800;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 24px;
}

.hero-title em {
    color: var(--gold-400);
    font-style: normal;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 19px);
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 56px;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    font-weight: 500;
}

.trust-divider {
    width: 1px;
    height: 20px;
    background-color: rgba(255,255,255,0.2);
}

/* --- Services Section --- */
.services {
    padding: 100px 0;
    background-color: var(--neutral-50);
}

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

.service-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    border: 1px solid var(--neutral-200);
    transition: all var(--transition);
}

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

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(30, 58, 95, 0.06);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 15px;
    color: var(--neutral-600);
    line-height: 1.7;
}

/* --- About Section --- */
.about {
    padding: 100px 0;
    background-color: var(--white);
}

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

.about-image {
    position: relative;
}

.about-img-main {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-img-main img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.about-img-accent {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 55%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 4px solid var(--white);
}

.about-img-accent img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.about-content .section-label {
    text-align: left;
}

.about-content .section-title {
    text-align: left;
}

.about-content > p {
    font-size: 16px;
    color: var(--neutral-600);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-stats {
    display: flex;
    gap: 32px;
    margin: 32px 0 36px;
    padding: 24px 0;
    border-top: 1px solid var(--neutral-200);
    border-bottom: 1px solid var(--neutral-200);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: var(--navy-800);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: var(--neutral-500);
    font-weight: 500;
}

/* --- Why Us Section --- */
.why-us {
    padding: 100px 0;
    background-color: var(--navy-900);
    position: relative;
    overflow: hidden;
}

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

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

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

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

.why-card {
    background-color: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    transition: all var(--transition);
}

.why-card:hover {
    background-color: rgba(255,255,255,0.07);
    border-color: rgba(212, 160, 23, 0.3);
    transform: translateY(-2px);
}

.why-number {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 800;
    color: rgba(212, 160, 23, 0.2);
    line-height: 1;
    margin-bottom: 16px;
}

.why-card h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.why-card p {
    font-size: 15px;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
}

/* --- CTA Banner --- */
.cta-banner {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
}

.cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-banner .hero-overlay {
    background: linear-gradient(135deg, rgba(13, 31, 51, 0.93) 0%, rgba(30, 58, 95, 0.88) 100%);
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 16px;
}

.cta-content > p {
    font-size: 17px;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    margin-bottom: 32px;
}

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

/* --- Contact Section --- */
.contact {
    padding: 100px 0;
    background-color: var(--neutral-50);
}

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

.contact-info .section-label {
    text-align: left;
}

.contact-info .section-title {
    text-align: left;
}

.contact-info > .section-subtitle {
    margin-bottom: 36px;
}

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

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

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(30, 58, 95, 0.06);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--navy-900);
    margin-bottom: 2px;
}

.contact-item p {
    font-size: 15px;
    color: var(--neutral-600);
    line-height: 1.6;
}

.contact-item a {
    color: var(--navy-800);
    transition: color var(--transition);
}

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

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

/* --- Contact Form --- */
.contact-form-wrapper {
    background-color: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--neutral-200);
}

.contact-form-wrapper h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 8px;
}

.contact-form-wrapper > p {
    font-size: 15px;
    color: var(--neutral-500);
    margin-bottom: 28px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--neutral-700);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--neutral-900);
    background-color: var(--neutral-50);
    border: 1.5px solid var(--neutral-200);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold-500);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.1);
}

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

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

.form-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.form-success svg {
    margin: 0 auto 16px;
}

.form-success h4 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 8px;
}

.form-success p {
    font-size: 15px;
    color: var(--neutral-600);
}

/* --- Footer --- */
.footer {
    background-color: var(--navy-900);
    padding: 60px 0 0;
}

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

.footer-brand p {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
    margin-top: 16px;
    max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold-500);
    margin-bottom: 16px;
}

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

.footer-links a {
    font-size: 14px;
    color: rgba(255,255,255,0.55);
    transition: color var(--transition);
}

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

.footer-contact p {
    font-size: 14px;
    color: rgba(255,255,255,0.55);
    line-height: 1.8;
}

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

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255,255,255,0.35);
}

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

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background-color: rgba(13, 31, 51, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        transform: translateY(-120%);
        transition: transform var(--transition);
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    
    .nav-links.open {
        transform: translateY(0);
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-content {
        padding: 100px 0 60px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-img-accent {
        right: 0;
        bottom: -20px;
    }
    
    .about-content .section-label,
    .about-content .section-title {
        text-align: center;
    }
    
    .about-content > p {
        text-align: center;
    }
    
    .about-stats {
        justify-content: center;
    }
    
    .about-content > .btn {
        display: inline-flex;
        margin: 0 auto;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info .section-label,
    .contact-info .section-title {
        text-align: center;
    }
    
    .contact-info > .section-subtitle {
        text-align: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand p {
        max-width: 100%;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-trust {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .trust-divider {
        display: none;
    }
    
    .contact-form-wrapper {
        padding: 24px;
    }
    
    .about-img-accent {
        width: 70%;
    }
}
