/* ========================================
   Camp Verde Automotive - Custom Styles
   Vibrant Modern with Teal & Slate Grey
======================================== */

/* CSS Custom Properties */
:root {
    --teal-50: #f0fdfa;
    --teal-100: #ccfbf1;
    --teal-200: #99f6e4;
    --teal-300: #5eead4;
    --teal-400: #2dd4bf;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;
    --teal-700: #0f766e;
    --teal-800: #115e59;
    --teal-900: #134e4a;
    
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    
    --accent-orange: #f97316;
    --accent-orange-light: #ffedd5;
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

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

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

body {
    font-family: var(--font-body);
    color: var(--slate-800);
    line-height: 1.6;
    background-color: #ffffff;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--slate-900);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--teal-600), var(--teal-700));
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--teal-700), var(--teal-800));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.45);
}

.btn-secondary {
    background: var(--slate-100);
    color: var(--slate-800);
    border: 2px solid var(--slate-200);
}

.btn-secondary:hover {
    background: var(--slate-200);
    border-color: var(--slate-300);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

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

/* Section Tags */
.section-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--teal-700);
    background: var(--teal-50);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

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

.section-subtitle {
    font-size: 1.1rem;
    color: var(--slate-500);
    max-width: 600px;
}

/* ========================================
   Navigation
======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--slate-100);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--slate-900);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--teal-600), var(--teal-700));
    border-radius: var(--radius-sm);
    color: #ffffff;
}

.text-teal {
    color: var(--teal-600);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--slate-600);
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--teal-600);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--slate-700);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ========================================
   Hero Section
======================================== */
.hero {
    padding-top: 72px;
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--slate-50) 0%, #ffffff 50%, var(--teal-50) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #ffffff;
    border: 1px solid var(--slate-200);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--slate-600);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--teal-500);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

.hero-title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--slate-900);
}

.text-gradient {
    background: linear-gradient(135deg, var(--teal-600), var(--teal-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--slate-500);
    margin-bottom: 2rem;
    max-width: 520px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.hero-trust {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--slate-600);
}

.trust-item svg {
    color: var(--teal-600);
}

/* Hero Visual */
.hero-visual {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.geo-shape {
    position: absolute;
    z-index: -1;
}

.geo-circle-1 {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--teal-400), var(--teal-600));
    border-radius: 50%;
    top: -30px;
    right: -30px;
    opacity: 0.3;
}

.geo-square-1 {
    width: 80px;
    height: 80px;
    background: var(--accent-orange);
    border-radius: var(--radius-md);
    bottom: 40px;
    left: -40px;
    opacity: 0.2;
    transform: rotate(15deg);
}

.hero-card {
    position: absolute;
    bottom: 30px;
    left: -30px;
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
    z-index: 2;
}

.card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--teal-500), var(--teal-600));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.card-label {
    font-size: 0.75rem;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-value {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--slate-900);
}

/* ========================================
   Services Section
======================================== */
.services {
    padding: 6rem 0;
    background: #ffffff;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

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

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

.service-card {
    background: var(--slate-50);
    border: 1px solid var(--slate-100);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--teal-500), var(--teal-600));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--teal-100), var(--teal-200));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal-700);
    margin-bottom: 1.25rem;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--slate-900);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--slate-500);
    line-height: 1.6;
}

/* ========================================
   About Section
======================================== */
.about {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--slate-900), var(--slate-800));
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-visual {
    position: relative;
}

.about-image-container {
    position: relative;
}

.about-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.about-stats {
    position: absolute;
    bottom: -20px;
    right: -20px;
    display: flex;
    gap: 1rem;
}

.stat-item {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--teal-600);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.geo-diamond {
    position: absolute;
    width: 100px;
    height: 100px;
    background: var(--accent-orange);
    opacity: 0.15;
    top: -40px;
    left: -40px;
    transform: rotate(45deg);
    border-radius: var(--radius-sm);
}

.about-content .section-tag {
    background: rgba(20, 184, 166, 0.15);
    color: var(--teal-400);
}

.about-content .section-title {
    color: #ffffff;
}

.about-text {
    color: var(--slate-300);
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 2rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-check {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--teal-500), var(--teal-600));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
}

.feature-item span {
    font-size: 0.95rem;
    color: var(--slate-200);
}

.about-content .btn-primary {
    margin-top: 1rem;
}

/* ========================================
   Why Choose Us
======================================== */
.why-us {
    padding: 6rem 0;
    background: var(--slate-50);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.why-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--slate-100);
    transition: all 0.3s ease;
    position: relative;
}

.why-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.why-card-primary {
    background: linear-gradient(135deg, var(--teal-600), var(--teal-700));
    border: none;
    color: #ffffff;
}

.why-card-primary h3,
.why-card-primary p {
    color: #ffffff;
}

.why-card-accent {
    background: var(--accent-orange-light);
    border-color: var(--accent-orange);
}

.why-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--teal-200);
    line-height: 1;
    margin-bottom: 1rem;
}

.why-card-primary .why-number {
    color: rgba(255, 255, 255, 0.3);
}

.why-card-accent .why-number {
    color: var(--accent-orange);
    opacity: 0.4;
}

.why-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.why-card p {
    font-size: 0.9rem;
    color: var(--slate-500);
    line-height: 1.6;
}

.why-card-primary p {
    color: rgba(255, 255, 255, 0.85);
}

/* ========================================
   Contact Section
======================================== */
.contact {
    padding: 6rem 0;
    background: #ffffff;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info .section-tag {
    background: var(--teal-50);
}

.contact-text {
    font-size: 1.05rem;
    color: var(--slate-500);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--teal-100), var(--teal-200));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal-700);
    flex-shrink: 0;
}

.contact-label {
    font-size: 0.8rem;
    color: var(--slate-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.contact-item p,
.contact-item a {
    font-size: 1rem;
    color: var(--slate-700);
    font-weight: 500;
}

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

/* Contact Form */
.contact-form-wrapper {
    background: var(--slate-50);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    border: 1px solid var(--slate-100);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--slate-700);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--slate-800);
    background: #ffffff;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--teal-500);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

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

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

.form-success {
    display: none;
    text-align: center;
    padding: 3rem 2rem;
}

.form-success.show {
    display: block;
}

.success-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--teal-500), var(--teal-600));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #ffffff;
}

.form-success h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--slate-900);
}

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

.contact-form.hidden {
    display: none;
}

/* ========================================
   Map Section
======================================== */
.map-section {
    border-top: 4px solid var(--teal-600);
}

.map-container {
    height: 400px;
}

/* ========================================
   Footer
======================================== */
.footer {
    background: var(--slate-900);
    color: var(--slate-300);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    margin-top: 1rem;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--slate-400);
}

.footer-links h4 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--slate-400);
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid var(--slate-800);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--slate-500);
}

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

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--slate-100);
        box-shadow: var(--shadow-lg);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .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-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-subtitle {
        margin: 0 auto 2rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-trust {
        justify-content: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .hero-image {
        height: 350px;
    }
    
    .hero-card {
        left: 10px;
        bottom: 20px;
    }
    
    .about-container {
        grid-template-columns: 1fr;
    }
    
    .about-visual {
        order: -1;
    }
    
    .about-image {
        height: 350px;
    }
    
    .about-stats {
        right: 10px;
        bottom: -10px;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        padding-top: 72px;
    }
    
    .hero-title {
        font-size: 1.875rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
}

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

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
