/* ============================================
   Pettie's Auto Body — Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #FEFEF7;
    color: #1a1a1a;
}

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

/* --- Navigation --- */
.nav-fixed {
    background: rgba(254, 254, 247, 0);
    backdrop-filter: blur(0px);
    transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

.nav-fixed.scrolled {
    background: rgba(254, 254, 247, 0.92);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(27, 94, 32, 0.08);
}

.nav-logo-bg {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(200, 230, 201, 0.3);
    transition: transform 0.3s ease;
}

.nav-fixed:not(.scrolled) .nav-logo-bg {
    background: rgba(255, 255, 255, 0.15);
}

.nav-logo-bg:hover {
    transform: rotate(-8deg) scale(1.05);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #1B5E20;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Primary Button */
.btn-primary {
    background: #1B5E20;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.625rem 1.25rem;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    white-space: nowrap;
}

.btn-primary:hover {
    background: #144518;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(27, 94, 32, 0.3);
}

/* Hero Buttons */
.btn-primary-lg {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    color: #1B5E20;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.0625rem;
    padding: 1rem 2rem;
    border-radius: 60px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.btn-primary-lg:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
    background: #f0f9f0;
}

.btn-primary-lg-arrow {
    transition: transform 0.3s ease;
}

.btn-primary-lg:hover .btn-primary-lg-arrow {
    transform: translateX(4px);
}

.btn-secondary-lg {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.0625rem;
    padding: 1rem 2rem;
    border-radius: 60px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-secondary-lg:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-3px);
}

/* Mobile Menu */
.mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-menu-link {
    border-bottom: 1px solid rgba(27, 94, 32, 0.08);
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-menu-link:hover {
    color: #1B5E20;
    padding-left: 8px;
}

/* --- Hero --- */
.hero {
    background: linear-gradient(135deg, #071a09 0%, #1B5E20 35%, #2e7d32 60%, #4caf50 80%, #66bb6a 100%);
    position: relative;
}

.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.06) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 20%, rgba(102,187,106,0.3) 0%, transparent 50%);
    pointer-events: none;
}

/* Hero geometric shapes */
.hero-shape {
    position: absolute;
    pointer-events: none;
}

.shape-circle-1 {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.05);
    top: -150px;
    right: -150px;
    animation: floatSlow 20s ease-in-out infinite;
}

.shape-circle-2 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(102, 187, 106, 0.12);
    bottom: 10%;
    left: -60px;
    animation: floatSlow 15s ease-in-out infinite reverse;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid rgba(255, 255, 255, 0.04);
    top: 20%;
    left: 8%;
    animation: spinSlow 30s linear infinite;
}

.shape-square {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.06);
    bottom: 25%;
    right: 10%;
    transform: rotate(45deg);
    animation: floatSlow 12s ease-in-out infinite;
}

.shape-dots {
    width: 120px;
    height: 120px;
    top: 30%;
    right: 5%;
    background-image: radial-gradient(circle, rgba(255,255,255,0.15) 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    animation: floatSlow 18s ease-in-out infinite reverse;
}

.shape-line {
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    bottom: 35%;
    left: 5%;
    transform: rotate(-15deg);
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Hero scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.5;
    animation: fadeInUp 1s ease 1.5s both;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.7); }
    50% { opacity: 1; transform: scaleY(1); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translate(-50%, 20px); }
    to { opacity: 0.5; transform: translate(-50%, 0); }
}

/* --- Section Shared --- */
.section {
    position: relative;
    padding: 6rem 0;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #1B5E20;
    margin-bottom: 1rem;
}

.section-label::before {
    content: '';
    width: 24px;
    height: 2px;
    background: #1B5E20;
    display: inline-block;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    color: #0a0a0a;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    line-height: 1.7;
    max-width: 560px;
}

/* --- Background Shapes --- */
.bg-shape {
    position: absolute;
    pointer-events: none;
}

.bg-shape-circle {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(200, 230, 201, 0.25);
    top: -100px;
    right: -150px;
}

.bg-shape-rect {
    width: 200px;
    height: 200px;
    background: rgba(27, 94, 32, 0.04);
    border-radius: 32px;
    bottom: 10%;
    left: -50px;
    transform: rotate(20deg);
}

/* --- Services --- */
.services-section {
    background: #FEFEF7;
}

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

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(27, 94, 32, 0.08);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #1B5E20;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(27, 94, 32, 0.1);
    border-color: rgba(27, 94, 32, 0.15);
}

.service-card.card-1 { animation-delay: 0s; }
.service-card.card-2 { animation-delay: 0.05s; }
.service-card.card-3 { animation-delay: 0.1s; }
.service-card.card-4 { animation-delay: 0.15s; }
.service-card.card-5 { animation-delay: 0.2s; }
.service-card.card-6 { animation-delay: 0.25s; }

.service-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1B5E20;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon-wrap {
    background: linear-gradient(135deg, #1B5E20, #2e7d32);
    color: #fff;
    transform: scale(1.08) rotate(-3deg);
}

.service-card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: #0a0a0a;
    margin-bottom: 0.5rem;
}

.service-card-desc {
    font-size: 0.9375rem;
    color: #6b7280;
    line-height: 1.65;
}

/* --- About --- */
.about-section {
    background: linear-gradient(180deg, #FEFEF7 0%, #f0f7f0 100%);
}

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

.about-image-main {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(27, 94, 32, 0.15);
    aspect-ratio: 4/3;
}

.about-image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-image-main:hover img {
    transform: scale(1.04);
}

.about-image-accent {
    position: absolute;
    width: 120px;
    height: 120px;
    background: #1B5E20;
    border-radius: 24px;
    bottom: -30px;
    right: -30px;
    z-index: -1;
    opacity: 0.15;
}

.about-image-dots {
    position: absolute;
    width: 80px;
    height: 80px;
    top: -20px;
    right: 40px;
    background-image: radial-gradient(circle, #1B5E20 1.5px, transparent 1.5px);
    background-size: 12px 12px;
    opacity: 0.2;
}

.about-stat-card {
    position: absolute;
    bottom: -20px;
    left: 30px;
    background: #fff;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.about-text {
    font-size: 1.0625rem;
    color: #4b5563;
    line-height: 1.8;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-feature-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #e8f5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1B5E20;
    flex-shrink: 0;
}

/* --- Why Us --- */
.why-section {
    background: #1B5E20;
    position: relative;
    overflow: hidden;
}

.why-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.03) 1px, transparent 0);
    background-size: 32px 32px;
    pointer-events: none;
}

.why-shape-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    top: -100px;
    left: -100px;
    pointer-events: none;
}

.why-shape-2 {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(102, 187, 106, 0.1);
    bottom: -60px;
    right: -60px;
    pointer-events: none;
}

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

@media (max-width: 767px) {
    .why-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

.why-card {
    padding: 2rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s ease;
}

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

.why-card-number {
    font-family: 'Space Grotesk', sans-serif;
}

.why-card h3 {
    font-family: 'Space Grotesk', sans-serif;
}

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

/* --- CTA --- */
.cta-section {
    background: linear-gradient(135deg, #0d2f10 0%, #1B5E20 50%, #2e7d32 100%);
    position: relative;
    overflow: hidden;
}

.cta-shape-1 {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    top: -200px;
    right: -100px;
    pointer-events: none;
}

.cta-shape-2 {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(102, 187, 106, 0.08);
    bottom: -100px;
    left: -50px;
    pointer-events: none;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    color: #1B5E20;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.0625rem;
    padding: 1rem 2rem;
    border-radius: 60px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
    background: #f0f9f0;
}

.btn-cta-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.0625rem;
    padding: 1rem 2rem;
    border-radius: 60px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-cta-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-3px);
}

/* --- Contact --- */
.contact-section {
    background: #FEFEF7;
}

.contact-shape-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(200, 230, 201, 0.2);
    top: -100px;
    left: -100px;
    pointer-events: none;
}

.contact-shape-2 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(27, 94, 32, 0.04);
    bottom: 10%;
    right: 5%;
    pointer-events: none;
}

.contact-info-space {
    padding: 1rem 0;
}

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

.contact-info-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1B5E20;
    flex-shrink: 0;
}

.contact-form-wrapper {
    border: 1px solid rgba(27, 94, 32, 0.08);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.form-input {
    width: 100%;
    padding: 0.8125rem 1rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    color: #1a1a1a;
    background: #fff;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: #1B5E20;
    box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

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

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #1B5E20;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: #144518;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(27, 94, 32, 0.3);
}

.btn-submit-icon {
    transition: transform 0.3s ease;
}

.btn-submit:hover .btn-submit-icon {
    transform: translate(2px, -2px);
}

.form-success {
    text-align: center;
    padding: 2rem 0;
    animation: fadeIn 0.5s ease;
}

.form-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #e8f5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1B5E20;
    margin: 0 auto;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* --- Footer --- */
.footer {
    background: #071a09;
    position: relative;
}

.footer-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.02) 1px, transparent 0);
    background-size: 24px 24px;
    pointer-events: none;
}

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

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

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* --- Scroll Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* --- Responsive --- */
@media (max-width: 767px) {
    .section {
        padding: 4rem 0;
    }
    
    .hero {
        min-height: 100vh;
        min-height: 100dvh;
    }
    
    .shape-circle-1 {
        width: 300px;
        height: 300px;
        right: -80px;
        top: -60px;
    }
    
    .shape-circle-2 {
        width: 150px;
        height: 150px;
    }
    
    .shape-triangle {
        border-left-width: 40px;
        border-right-width: 40px;
        border-bottom-width: 70px;
    }
    
    .shape-square {
        width: 50px;
        height: 50px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image-accent {
        width: 60px;
        height: 60px;
        bottom: -15px;
        right: -15px;
    }
    
    .about-stat-card {
        padding: 0.875rem 1.125rem;
    }
    
    .about-stat-card .font-display {
        font-size: 2rem;
    }
}
