/* ========================================
   Ralston Dawkins Auto Body Rpr
   Custom Styles
======================================== */

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

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

body {
    overflow-x: hidden;
}

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

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* --- Navigation --- */
.nav-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 249, 246, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.nav-fixed.scrolled {
    border-bottom-color: rgba(16, 185, 129, 0.12);
    box-shadow: 0 1px 20px rgba(6, 78, 59, 0.06);
}

.nav-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: opacity 0.2s ease;
}

.nav-logo:hover {
    opacity: 0.75;
}

.nav-link {
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #064e3b;
    position: relative;
    padding: 0.25rem 0;
    transition: color 0.2s ease;
}

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

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

.nav-link:hover {
    color: #059669;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #059669;
    color: #faf9f6;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.875rem 1.75rem;
    border-radius: 0;
    transition: background 0.25s ease, transform 0.15s ease;
}

.btn-primary:hover {
    background: #047857;
    transform: translateY(-1px);
}

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

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: #faf9f6;
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.875rem 1.75rem;
    border: 1px solid rgba(250, 249, 246, 0.4);
    transition: background 0.25s ease, border-color 0.25s ease;
}

.btn-secondary:hover {
    background: rgba(250, 249, 246, 0.1);
    border-color: rgba(250, 249, 246, 0.7);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: #059669;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.875rem 1.75rem;
    border: 1px solid #059669;
    transition: background 0.25s ease, color 0.25s ease;
}

.btn-outline:hover {
    background: #059669;
    color: #faf9f6;
}

.btn-outline-light {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: #faf9f6;
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.875rem 1.75rem;
    border: 1px solid rgba(250, 249, 246, 0.4);
    transition: background 0.25s ease, border-color 0.25s ease;
}

.btn-outline-light:hover {
    background: rgba(250, 249, 246, 0.1);
    border-color: rgba(250, 249, 246, 0.7);
}

.btn-large {
    padding: 1rem 2.25rem;
    font-size: 0.875rem;
}

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

/* --- Mobile Menu --- */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 1.5px;
    background: #064e3b;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

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

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background: #faf9f6;
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 40px rgba(6, 78, 59, 0.1);
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu-link {
    display: block;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #064e3b;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(16, 185, 129, 0.1);
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-menu-link:hover {
    color: #059669;
    padding-left: 0.5rem;
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 78, 59, 0.3);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mobile-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(6, 78, 59, 0.88) 0%,
        rgba(4, 120, 87, 0.78) 50%,
        rgba(5, 150, 105, 0.7) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(250, 249, 246, 0.8);
    border: 1px solid rgba(250, 249, 246, 0.2);
    padding: 0.625rem 1.25rem;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 400;
    line-height: 1.1;
    color: #faf9f6;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.hero-title-line {
    display: block;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    font-weight: 300;
    line-height: 1.7;
    color: rgba(250, 249, 246, 0.85);
    max-width: 560px;
    margin: 0 auto 2.5rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(250, 249, 246, 0.5);
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

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

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

/* --- Sections --- */
.section {
    padding: 7rem 0;
}

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

.section-label {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #059669;
    margin-bottom: 1rem;
    position: relative;
}

.section-label::before,
.section-label::after {
    content: '';
    display: inline-block;
    width: 24px;
    height: 1px;
    background: #a7f3d0;
    vertical-align: middle;
    margin: 0 0.75rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.15;
    color: #064e3b;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

.section-title .italic {
    font-style: italic;
    font-weight: 400;
}

.section-desc {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.7;
    color: #065f46;
    opacity: 0.7;
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.1);
}

.service-card {
    background: #faf9f6;
    padding: 2.5rem 2rem;
    transition: background 0.3s ease, transform 0.3s ease;
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #059669;
    transition: width 0.4s ease;
}

.service-card:hover::before {
    width: 100%;
}

.service-card:hover {
    background: #ecfdf5;
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(16, 185, 129, 0.2);
    margin-bottom: 1.5rem;
    color: #059669;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.service-card:hover .service-icon {
    background: #059669;
    border-color: #059669;
    color: #faf9f6;
}

.service-title {
    font-size: 1.125rem;
    font-weight: 500;
    color: #064e3b;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.service-desc {
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.7;
    color: #065f46;
    opacity: 0.75;
    margin-bottom: 1.25rem;
}

.service-tag {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #059669;
    padding: 0.375rem 0.75rem;
    border: 1px solid rgba(5, 150, 105, 0.3);
}

/* --- About --- */
.about {
    background: #faf9f6;
}

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

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

.about-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.about-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 60%;
    height: 60%;
    border: 1px solid rgba(16, 185, 129, 0.2);
    z-index: -1;
}

.about-content {
    max-width: 480px;
}

.about-text {
    font-size: 0.9375rem;
    font-weight: 300;
    line-height: 1.8;
    color: #065f46;
    opacity: 0.8;
    margin-bottom: 1.25rem;
}

.about-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 2.5rem 0;
    padding: 2rem 0;
    border-top: 1px solid rgba(16, 185, 129, 0.12);
    border-bottom: 1px solid rgba(16, 185, 129, 0.12);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 400;
    color: #059669;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #065f46;
    opacity: 0.6;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(16, 185, 129, 0.2);
}

.about-cta {
    margin-top: 2rem;
}

/* --- Gallery --- */
.gallery {
    background: #f0efeA;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.08);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/2;
    cursor: pointer;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 78, 59, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-overlay span {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #faf9f6;
    border: 1px solid rgba(250, 249, 246, 0.4);
    padding: 0.625rem 1.25rem;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

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

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

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

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.92), rgba(5, 150, 105, 0.85));
}

.cta-banner > div {
    position: relative;
    z-index: 1;
}

.cta-label {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(250, 249, 246, 0.7);
    margin-bottom: 1.25rem;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 400;
    line-height: 1.15;
    color: #faf9f6;
    margin-bottom: 1.25rem;
}

.cta-text {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(250, 249, 246, 0.8);
    max-width: 520px;
    margin: 0 auto 2.5rem;
}

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

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

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

.contact-info {
    max-width: 480px;
}

.contact-desc {
    font-size: 0.9375rem;
    font-weight: 300;
    line-height: 1.7;
    color: #065f46;
    opacity: 0.75;
    margin-bottom: 2.5rem;
}

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

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

.contact-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #059669;
    flex-shrink: 0;
}

.contact-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #065f46;
    opacity: 0.5;
    margin-bottom: 0.25rem;
}

.contact-value {
    display: block;
    font-size: 0.9375rem;
    font-weight: 400;
    color: #064e3b;
}

.contact-link {
    font-size: 0.9375rem;
    font-weight: 400;
    color: #059669;
    border-bottom: 1px solid rgba(5, 150, 105, 0.3);
    padding-bottom: 2px;
    transition: border-color 0.2s ease;
}

.contact-link:hover {
    border-color: #059669;
}

.contact-map {
    border: 1px solid rgba(16, 185, 129, 0.12);
    overflow: hidden;
}

.contact-map iframe {
    filter: saturate(0.3) brightness(1.05);
    transition: filter 0.3s ease;
}

.contact-map:hover iframe {
    filter: saturate(0.6) brightness(1);
}

/* --- Contact Form --- */
.contact-form-wrapper {
    background: #f0efeA;
    padding: 2.5rem;
    border: 1px solid rgba(16, 185, 129, 0.08);
}

.form-title {
    font-size: 1.5rem;
    font-weight: 400;
    color: #064e3b;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.form-subtitle {
    font-size: 0.875rem;
    font-weight: 300;
    color: #065f46;
    opacity: 0.6;
    margin-bottom: 2rem;
    line-height: 1.6;
}

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

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

.form-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #065f46;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    background: #faf9f6;
    border: 1px solid rgba(16, 185, 129, 0.15);
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
    font-weight: 300;
    color: #064e3b;
    font-family: inherit;
    transition: border-color 0.2s ease, background 0.2s ease;
    outline: none;
    border-radius: 0;
    -webkit-appearance: none;
}

.form-input::placeholder {
    color: #065f46;
    opacity: 0.35;
}

.form-input:focus {
    border-color: #059669;
    background: #ecfdf5;
}

.form-select {
    cursor: pointer;
}

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

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

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

.success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #059669;
}

.success-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: #064e3b;
    margin-bottom: 0.5rem;
}

.success-text {
    font-size: 0.875rem;
    font-weight: 300;
    color: #065f46;
    opacity: 0.7;
    line-height: 1.6;
}

/* --- Footer --- */
.footer {
    background: #042f24;
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(16, 185, 129, 0.1);
}

.footer-desc {
    font-size: 0.875rem;
    line-height: 1.7;
}

.footer-heading {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #a7f3d0;
    margin-bottom: 1.25rem;
}

.footer-link {
    display: block;
    font-size: 0.875rem;
    font-weight: 300;
    color: rgba(250, 249, 246, 0.6);
    padding: 0.375rem 0;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-link:hover {
    color: #a7f3d0;
    padding-left: 0.5rem;
}

.footer-bottom {
    padding: 1.5rem 0;
}

.footer-copy {
    font-size: 0.75rem;
    font-weight: 300;
    color: rgba(250, 249, 246, 0.35);
    letter-spacing: 0.04em;
}

/* --- Scroll Animations (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        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);
    }
    
    .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: 1023px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-image {
        height: 400px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 767px) {
    .section {
        padding: 5rem 0;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-link,
    .btn-primary.desktop {
        display: none;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions a {
        width: 100%;
        justify-content: center;
    }
    
    .cta-actions {
        flex-direction: column;
    }
    
    .cta-actions a {
        width: 100%;
        justify-content: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image-accent {
        display: none;
    }
}
