/* ============================================
   City of Sunland Park — Auto Repair
   Bold editorial style | Emerald + Cream
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
    background-color: #fefdf8;
}

img, svg {
    display: block;
    max-width: 100%;
}

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

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

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }

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

    /* Stagger delays */
    .service-card.reveal:nth-child(1) { transition-delay: 0.05s; }
    .service-card.reveal:nth-child(2) { transition-delay: 0.1s; }
    .service-card.reveal:nth-child(3) { transition-delay: 0.15s; }
    .service-card.reveal:nth-child(4) { transition-delay: 0.2s; }
    .service-card.reveal:nth-child(5) { transition-delay: 0.25s; }
    .service-card.reveal:nth-child(6) { transition-delay: 0.3s; }

    .why-card.reveal:nth-child(1) { transition-delay: 0.05s; }
    .why-card.reveal:nth-child(2) { transition-delay: 0.1s; }
    .why-card.reveal:nth-child(3) { transition-delay: 0.15s; }
    .why-card.reveal:nth-child(4) { transition-delay: 0.2s; }
    .why-card.reveal:nth-child(5) { transition-delay: 0.25s; }
    .why-card.reveal:nth-child(6) { transition-delay: 0.3s; }

    .testimonial-card.reveal:nth-child(1) { transition-delay: 0.05s; }
    .testimonial-card.reveal:nth-child(2) { transition-delay: 0.15s; }
    .testimonial-card.reveal:nth-child(3) { transition-delay: 0.25s; }
}

/* --- Section Spacing --- */
.section {
    padding: 100px 0;
}

@media (max-width: 767px) {
    .section {
        padding: 72px 0;
    }
}

/* --- Section Eyebrow --- */
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #047857;
}

.eyebrow-line {
    display: block;
    width: 32px;
    height: 2px;
    background-color: #047857;
    flex-shrink: 0;
}

/* --- Section Title --- */
.section-title {
    font-family: 'Playfair Display', Georgia, serif;
}

/* --- Section Subtitle --- */
.section-subtitle {
    font-size: 1.125rem;
    line-height: 1.7;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    background: rgba(254, 253, 248, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(4, 120, 87, 0.08);
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.nav.scrolled {
    background: rgba(254, 253, 248, 0.97);
    box-shadow: 0 1px 24px rgba(4, 120, 87, 0.08);
}

.nav-logo-mark {
    color: #047857;
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.nav-logo-name {
    color: #022c22;
}

.nav-logo-sub {
    color: #047857;
}

.nav-link {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #065f46;
    position: relative;
    padding: 4px 0;
    transition: color 0.3s ease;
}

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

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

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

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #047857;
    background: rgba(4, 120, 87, 0.08);
    padding: 10px 20px;
    border-radius: 100px;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.nav-cta:hover {
    background: #047857;
    color: #fefdf8;
    transform: translateY(-1px);
}

.nav-menu-btn {
    color: #022c22;
    padding: 4px;
}

.nav-mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(254, 253, 248, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(4, 120, 87, 0.1);
    box-shadow: 0 16px 48px rgba(4, 120, 87, 0.08);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-mobile-menu.open {
    max-height: 400px;
}

.nav-mobile-link {
    font-size: 15px;
    font-weight: 500;
    color: #065f46;
    padding: 12px 0;
    border-bottom: 1px solid rgba(4, 120, 87, 0.06);
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.nav-mobile-link:hover {
    color: #047857;
    padding-left: 8px;
}

.nav-mobile-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #047857;
    background: rgba(4, 120, 87, 0.08);
    padding: 12px 20px;
    border-radius: 100px;
    margin-top: 8px;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    background: #022c22;
    position: relative;
}

.hero-bg {
    z-index: 0;
}

.hero-img {
    opacity: 0;
    transition: opacity 1.2s ease;
}

.hero-img.loaded {
    opacity: 1;
}

.hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(2, 44, 34, 0.92) 0%,
        rgba(4, 73, 55, 0.85) 40%,
        rgba(6, 95, 70, 0.75) 70%,
        rgba(4, 120, 87, 0.6) 100%
    );
}

.hero-content {
    max-width: 640px;
}

.hero-eyebrow {
    color: #6ee7b7;
}

.hero-eyebrow .eyebrow-line {
    background: #34d399;
}

.hero-headline {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-weight: 300;
}

.hero-actions {
    gap: 16px;
}

/* Stat Cards */
.hero-cards {
    perspective: 1000px;
}

.stat-card {
    background: rgba(254, 253, 248, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(254, 253, 248, 0.15);
    border-radius: 16px;
    padding: 24px 28px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
}

.stat-card:hover {
    background: rgba(254, 253, 248, 0.15);
}

.card-1 {
    transform: translateY(0) rotateX(0deg);
}

.card-2 {
    transform: translateY(12px) rotateX(1deg);
}

.card-3 {
    transform: translateY(24px) rotateX(2deg);
}

.stat-card-inner {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-card-number {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: #fefdf8;
    line-height: 1;
}

.stat-card-label {
    font-size: 13px;
    font-weight: 400;
    color: rgba(254, 253, 248, 0.7);
    letter-spacing: 0.02em;
}

/* Scroll indicator */
.hero-scroll {
    z-index: 10;
}

.scroll-line {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(254, 253, 248, 0.5);
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-text {
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #047857;
    color: #fefdf8;
    font-size: 14px;
    font-weight: 600;
    padding: 16px 32px;
    border-radius: 100px;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    letter-spacing: 0.01em;
}

.btn-primary:hover {
    background: #065f46;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(4, 120, 87, 0.3);
}

.btn-primary.btn-large {
    padding: 20px 40px;
    font-size: 16px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: #fefdf8;
    font-size: 14px;
    font-weight: 500;
    padding: 16px 32px;
    border-radius: 100px;
    border: 1.5px solid rgba(254, 253, 248, 0.3);
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.btn-secondary:hover {
    background: rgba(254, 253, 248, 0.1);
    border-color: rgba(254, 253, 248, 0.6);
    transform: translateY(-2px);
}

/* ============================================
   SERVICES
   ============================================ */
.services {
    background: #fefdf8;
}

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

@media (max-width: 767px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: #fefdf8;
    border: 1px solid rgba(4, 120, 87, 0.1);
    border-radius: 16px;
    padding: 36px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(4, 120, 87, 0.1);
    border-color: rgba(4, 120, 87, 0.2);
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(4, 120, 87, 0.08);
    border-radius: 14px;
    color: #047857;
    margin-bottom: 20px;
    transition: background 0.3s ease;
}

.service-card:hover .service-icon {
    background: #047857;
    color: #fefdf8;
}

.service-name {
    font-family: 'Playfair Display', Georgia, serif;
}

.service-desc {
    font-size: 15px;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
    position: relative;
    overflow: hidden;
}

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

.about-image {
    border-radius: 4px;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.3);
}

.about-image-accent {
    position: absolute;
    bottom: -24px;
    right: -24px;
    width: 200px;
    height: 200px;
    background: rgba(4, 120, 87, 0.15);
    border-radius: 4px;
    z-index: -1;
}

.about-badges {
    gap: 24px;
}

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

.badge-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(4, 120, 87, 0.15);
    border-radius: 10px;
    color: #34d399;
}

.badge-text {
    font-size: 14px;
    font-weight: 500;
    color: rgba(254, 253, 248, 0.85);
}

/* ============================================
   WHY US
   ============================================ */
.why-us {
    background: #fefdf8;
}

.why-card {
    padding: 40px 36px;
    border-radius: 16px;
    border: 1px solid rgba(4, 120, 87, 0.08);
    background: #fefdf8;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.why-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(4, 120, 87, 0.08);
}

.why-card-number {
    font-family: 'Playfair Display', Georgia, serif;
}

.why-card-title {
    font-family: 'Playfair Display', Georgia, serif;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
    background: #fdf9ed;
}

.testimonial-card {
    background: #fefdf8;
    border: 1px solid rgba(4, 120, 87, 0.08);
    border-radius: 16px;
    padding: 36px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(4, 120, 87, 0.08);
}

.testimonial-stars {
    display: flex;
    gap: 4px;
}

.testimonial-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.0625rem;
    font-style: italic;
    color: #065f46;
    line-height: 1.7;
}

.testimonial-author-name {
    font-family: 'Playfair Display', Georgia, serif;
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
    position: relative;
    overflow: hidden;
}

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

.cta-bg-img {
    opacity: 0;
    transition: opacity 1s ease;
}

.cta-bg-img.loaded {
    opacity: 1;
}

.cta-overlay {
    background: linear-gradient(
        135deg,
        rgba(2, 44, 34, 0.93) 0%,
        rgba(4, 73, 55, 0.88) 50%,
        rgba(6, 95, 70, 0.85) 100%
    );
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
    background: #fefdf8;
}

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

.contact-info-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(4, 120, 87, 0.08);
    border-radius: 12px;
    color: #047857;
    flex-shrink: 0;
}

.contact-info-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.contact-info-value {
    font-family: 'Playfair Display', Georgia, serif;
}

/* Form */
.contact-form-wrapper {
    border-radius: 20px;
}

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

@media (max-width: 480px) {
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
}

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

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #065f46;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    font-family: 'Inter', system-ui, sans-serif;
    color: #022c22;
    background: #fefdf8;
    border: 1.5px solid rgba(4, 120, 87, 0.15);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.form-input:focus {
    border-color: #047857;
    box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.1);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23047857' 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 16px center;
    padding-right: 44px;
}

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

.form-success {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 24px;
}

.form-success-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(4, 120, 87, 0.08);
    border-radius: 50%;
    margin: 0 auto;
}

/* ============================================
   MAP
   ============================================ */
.map-section {
    background: #022c22;
}

.map-container {
    position: relative;
}

.map-container::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, transparent, #022c22);
    z-index: 1;
    pointer-events: none;
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 400px;
    filter: saturate(0.6) contrast(1.1);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #022c22;
    color: rgba(254, 253, 248, 0.6);
}

.footer-logo-mark {
    color: #34d399;
}

.footer-logo-name {
    color: #fefdf8;
}

.footer-logo-sub {
    color: #34d399;
}

.footer-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 16px;
    font-weight: 600;
}

.footer-link {
    font-size: 14px;
    color: rgba(254, 253, 248, 0.55);
    transition: color 0.3s ease, padding-left 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.footer-link:hover {
    color: #34d399;
    padding-left: 4px;
}
