/* ============================================
   JORDAN BODY AND TIRE SHOP — STYLESHEET
   ============================================ */

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

:root {
    --emerald-50:  #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-200: #a7f3d0;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --emerald-800: #065f46;
    --emerald-900: #064e3b;
    --emerald-950: #022c22;

    --cream-50:  #fefdf8;
    --cream-100: #fefce8;
    --cream-200: #fef9c3;
    --cream-300: #fef08a;

    --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;
    --slate-950: #020617;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
    --shadow-xl: 0 24px 60px rgba(0,0,0,0.16), 0 8px 20px rgba(0,0,0,0.08);
}

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

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--slate-800);
    background: var(--cream-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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;
}

/* --- NAVIGATION --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(254, 253, 248, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(6, 78, 59, 0.08);
    transition: box-shadow 0.3s ease;
}

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

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--emerald-900);
    letter-spacing: -0.02em;
}

.nav-logo-mark {
    color: var(--emerald-700);
}

.nav-logo-text {
    display: none;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu a {
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--slate-600);
    border-radius: var(--radius-sm);
    transition: color 0.2s, background 0.2s;
}

.nav-menu a:hover {
    color: var(--emerald-800);
    background: var(--emerald-50);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--emerald-800);
    color: white !important;
    padding: 10px 18px !important;
    border-radius: var(--radius-sm);
    font-weight: 600 !important;
    transition: background 0.2s, transform 0.2s !important;
}

.nav-cta:hover {
    background: var(--emerald-700) !important;
    transform: translateY(-1px);
}

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

.nav-toggle-bar {
    width: 22px;
    height: 2px;
    background: var(--slate-700);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- HERO --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--slate-950);
}

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(2, 6, 23, 0.88) 0%,
        rgba(6, 78, 59, 0.75) 50%,
        rgba(2, 6, 23, 0.85) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 24px 80px;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--emerald-200);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.12;
    color: white;
    max-width: 820px;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--slate-300);
    max-width: 600px;
    line-height: 1.7;
    margin-bottom: 40px;
}

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

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

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

.hero-stat-num {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--emerald-400);
    letter-spacing: -0.02em;
}

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

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(148, 163, 184, 0.3);
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: var(--font-sans);
    text-decoration: none;
}

.btn-primary {
    background: var(--emerald-700);
    color: white;
    border-color: var(--emerald-700);
}

.btn-primary:hover {
    background: var(--emerald-600);
    border-color: var(--emerald-600);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    color: var(--emerald-800);
    border-color: var(--emerald-800);
}

.btn-outline-light:hover {
    background: var(--emerald-800);
    color: white;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

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

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

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 64px;
}

.section-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--emerald-700);
    background: var(--emerald-50);
    border: 1px solid var(--emerald-200);
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    color: var(--slate-900);
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.text-emerald {
    color: var(--emerald-700);
}

.section-sub {
    font-size: 1.05rem;
    color: var(--slate-500);
    line-height: 1.7;
}

/* --- SERVICES --- */
.services {
    background: white;
}

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

.service-card {
    background: var(--cream-50);
    border: 1px solid var(--slate-100);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: all 0.3s ease;
}

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

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--emerald-50);
    border: 1px solid var(--emerald-100);
    border-radius: var(--radius-md);
    color: var(--emerald-700);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 10px;
}

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

/* --- ABOUT --- */
.about {
    background: var(--cream-50);
}

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

.about-images {
    position: relative;
}

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

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

.about-img-float {
    position: absolute;
    bottom: -32px;
    right: -24px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 4px solid var(--cream-50);
}

.about-img-float img {
    width: 260px;
    height: 208px;
    object-fit: cover;
}

.about-experience-badge {
    position: absolute;
    top: -20px;
    right: 40px;
    background: var(--emerald-800);
    color: white;
    padding: 20px 24px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.about-exp-num {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    color: var(--emerald-200);
}

.about-exp-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--emerald-300);
    margin-top: 4px;
    font-weight: 600;
}

.about-content .section-tag { margin-bottom: 16px; }
.about-content .section-title { margin-bottom: 20px; text-align: left; }

.about-text {
    font-size: 1rem;
    color: var(--slate-600);
    line-height: 1.75;
    margin-bottom: 16px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
    margin-top: 28px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--slate-700);
}

.about-check {
    color: var(--emerald-600);
    flex-shrink: 0;
}

/* --- WHY US --- */
.why-us {
    background: var(--slate-900);
    color: white;
}

.why-us .section-tag {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--emerald-300);
}

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

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

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

.why-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(16, 185, 129, 0.3);
    transform: translateY(-4px);
}

.why-num {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 800;
    color: var(--emerald-800);
    line-height: 1;
    margin-bottom: 16px;
    opacity: 0.6;
}

.why-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

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

/* --- REVIEWS --- */
.reviews {
    background: white;
}

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

.review-card {
    background: var(--cream-50);
    border: 1px solid var(--slate-100);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: all 0.3s ease;
}

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

.review-stars {
    display: flex;
    gap: 4px;
    color: #f59e0b;
    margin-bottom: 16px;
}

.review-text {
    font-size: 0.95rem;
    color: var(--slate-600);
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.review-author {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.review-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--slate-800);
}

.review-location {
    font-size: 0.8rem;
    color: var(--slate-400);
}

/* --- CTA BANNER --- */
.cta-banner {
    background: var(--emerald-900);
    padding: 80px 0;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.cta-content {
    flex: 1;
    min-width: 280px;
}

.cta-title {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: 12px;
}

.cta-text {
    font-size: 1.05rem;
    color: var(--emerald-200);
    line-height: 1.65;
}

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

/* --- CONTACT --- */
.contact {
    background: var(--cream-50);
}

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

.contact-info .section-tag { margin-bottom: 16px; }
.contact-info .section-title { margin-bottom: 16px; text-align: left; }

.contact-desc {
    font-size: 1rem;
    color: var(--slate-500);
    line-height: 1.7;
    margin-bottom: 32px;
}

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

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

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--emerald-50);
    border: 1px solid var(--emerald-100);
    border-radius: var(--radius-md);
    color: var(--emerald-700);
    flex-shrink: 0;
}

.contact-detail strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--slate-800);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.contact-detail p {
    font-size: 0.92rem;
    color: var(--slate-600);
    line-height: 1.6;
}

.contact-detail a {
    color: var(--emerald-700);
    font-weight: 600;
    transition: color 0.2s;
}

.contact-detail a:hover {
    color: var(--emerald-500);
}

/* --- FORM --- */
.contact-form-wrap {
    background: white;
    border: 1px solid var(--slate-100);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.contact-form-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--slate-900);
    margin-bottom: 24px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 14px;
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: var(--font-sans);
    color: var(--slate-800);
    background: var(--slate-50);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--emerald-500);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
    background: white;
}

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

.form-success {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: var(--emerald-50);
    border: 1px solid var(--emerald-200);
    border-radius: var(--radius-sm);
    color: var(--emerald-800);
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 16px;
}

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

/* --- MAP --- */
.map-section {
    background: var(--slate-200);
}

.map-section iframe {
    width: 100%;
    height: 380px;
    filter: grayscale(30%);
}

/* --- FOOTER --- */
.footer {
    background: var(--slate-950);
    color: var(--slate-400);
    padding: 72px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    margin-bottom: 16px;
}

.footer-logo-mark {
    color: var(--emerald-500);
}

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

.footer-links h4,
.footer-contact h4 {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--slate-200);
    margin-bottom: 16px;
}

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

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

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

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    line-height: 1.5;
}

.footer-contact svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--emerald-500);
}

.footer-contact a {
    color: var(--emerald-400);
    transition: color 0.2s;
}

.footer-contact a:hover {
    color: var(--emerald-300);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 24px 0;
    font-size: 0.82rem;
    color: var(--slate-500);
}

.footer-bottom a {
    color: var(--emerald-500);
    transition: color 0.2s;
}

.footer-bottom a:hover {
    color: var(--emerald-400);
}

/* --- SCROLL ANIMATIONS --- */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: none;
}

/* --- MOBILE --- */
@media (max-width: 1024px) {
    .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-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(254, 253, 248, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 24px;
        gap: 4px;
        border-bottom: 1px solid var(--slate-200);
        transform: translateY(-120%);
        opacity: 0;
        transition: transform 0.35s ease, opacity 0.35s ease;
        pointer-events: none;
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-menu a {
        padding: 12px 16px;
        font-size: 1rem;
        width: 100%;
    }

    .nav-cta {
        justify-content: center;
        margin-top: 8px;
    }

    .hero-content {
        padding: 100px 24px 60px;
    }

    .hero-stats {
        gap: 20px;
    }

    .hero-stat-divider {
        display: none;
    }

    .section {
        padding: 72px 0;
    }

    .services-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-img-float {
        right: 0;
        bottom: -24px;
    }

    .about-img-main img {
        height: 320px;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .cta-inner {
        flex-direction: column;
        text-align: center;
    }

    .cta-actions {
        justify-content: center;
    }

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

    .contact-form-wrap {
        padding: 28px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

@media (max-width: 480px) {
    .hero-headline {
        font-size: 1.9rem;
    }

    .hero-actions {
        flex-direction: column;
    }

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

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

    .cta-actions {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: none;
    }
}

@media not all and (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}
