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

:root {
    --primary: #1B4D3E;
    --primary-light: #2A7D62;
    --primary-dark: #0F2E25;
    --accent: #F59E0B;
    --accent-light: #FCD34D;
    --bg: #FAFAF8;
    --bg-white: #FFFFFF;
    --bg-warm: #F5F0EB;
    --text: #1A1A1A;
    --text-light: #6B7280;
    --text-lighter: #9CA3AF;
    --border: #E5E7EB;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    gap: 8px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}
.btn-primary:hover { background: var(--primary-light); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-search {
    background: var(--accent);
    color: var(--primary-dark);
    font-weight: 700;
    padding: 12px 32px;
    border-radius: 10px;
}
.btn-search:hover { background: var(--accent-light); transform: translateY(-1px); }

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 10px 24px;
}
.btn-outline:hover { background: var(--primary); color: white; }

.btn-outline-sm {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--border);
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 8px;
}
.btn-outline-sm:hover { border-color: var(--primary); }

.btn-white {
    background: white;
    color: var(--primary);
    font-weight: 700;
    padding: 14px 32px;
    font-size: 1rem;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-ghost {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 1.5px solid rgba(255,255,255,0.3);
    padding: 14px 32px;
}
.btn-ghost:hover { background: rgba(255,255,255,0.25); }

.btn-nav {
    background: var(--primary);
    color: white;
    padding: 8px 20px;
    font-size: 0.9rem;
}
.btn-nav:hover { background: var(--primary-light); }

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 800;
}

.logo-icon { font-size: 1.6rem; }
.logo-text { color: var(--text); }
.logo-accent { color: var(--primary); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-light);
    transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.mobile-menu span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    padding: 140px 0 80px;
    overflow: hidden;
    background: linear-gradient(165deg, #f0fdf4 0%, #fefce8 50%, #fff7ed 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(27,77,62,0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(245,158,11,0.08) 0%, transparent 50%);
}

.hero-container { position: relative; z-index: 1; }

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 600px;
    margin-bottom: 32px;
    line-height: 1.7;
}

/* Search Bar */
.search-bar {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 16px;
    padding: 8px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    max-width: 700px;
    gap: 4px;
}

.search-icon {
    padding: 0 12px;
    font-size: 1.2rem;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.95rem;
    font-family: inherit;
    padding: 8px;
    min-width: 0;
}

.search-select {
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text-light);
    padding: 8px 12px;
    border-left: 1px solid var(--border);
    background: transparent;
    cursor: pointer;
}

.hero-tags {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
    font-size: 0.85rem;
}

.hero-tags span { color: var(--text-lighter); }

.hero-tags a {
    color: var(--primary);
    font-weight: 500;
    padding: 4px 12px;
    background: rgba(27,77,62,0.06);
    border-radius: 100px;
    transition: all var(--transition);
}
.hero-tags a:hover { background: rgba(27,77,62,0.12); }

.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

/* ===== SECTIONS ===== */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(27,77,62,0.08);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.section-tag.light {
    background: rgba(255,255,255,0.2);
    color: white;
}

.section-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* ===== CATEGORIES ===== */
.categories {
    padding: 80px 0;
    background: var(--bg-white);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.category-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid transparent;
    transition: all var(--transition);
    cursor: pointer;
    position: relative;
}

.category-card:hover {
    border-color: var(--primary);
    background: white;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.category-card.featured {
    background: linear-gradient(135deg, rgba(27,77,62,0.04), rgba(245,158,11,0.04));
    border: 1px solid rgba(27,77,62,0.1);
}

.category-icon { font-size: 1.8rem; }

.category-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    flex: 1;
}

.category-count {
    font-size: 0.8rem;
    color: var(--text-lighter);
    position: absolute;
    bottom: 8px;
    right: 16px;
}

.category-arrow {
    opacity: 0;
    color: var(--primary);
    font-weight: 700;
    transition: all var(--transition);
}

.category-card:hover .category-arrow { opacity: 1; }

.categories-cta {
    text-align: center;
    margin-top: 40px;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
    padding: 80px 0;
    background: var(--bg);
}

.steps-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.step {
    text-align: center;
    padding: 40px 32px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    flex: 1;
    max-width: 300px;
    position: relative;
}

.step-number {
    position: absolute;
    top: -14px;
    left: 24px;
    background: var(--primary);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.step-icon { font-size: 2.5rem; margin-bottom: 16px; }

.step h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.step p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.step-arrow {
    font-size: 1.5rem;
    color: var(--text-lighter);
    font-weight: 700;
}

/* ===== FEATURED ARTISANS ===== */
.featured-artisans {
    padding: 80px 0;
    background: var(--bg-white);
}

.artisans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.artisan-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--border);
    transition: all var(--transition);
    position: relative;
}

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

.artisan-card.premium {
    border-color: var(--accent);
    background: linear-gradient(to bottom, #FFFBEB, white 40%);
}

.artisan-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--accent);
    color: var(--primary-dark);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 100px;
}

.artisan-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.artisan-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.artisan-info h3 { font-size: 1.05rem; font-weight: 700; }
.artisan-trade { font-size: 0.85rem; color: var(--text-light); }

.artisan-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.stars { color: var(--accent); font-size: 0.9rem; }
.rating-text { font-size: 0.8rem; color: var(--text-light); }

.artisan-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 16px;
}

.artisan-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.artisan-tags span {
    font-size: 0.78rem;
    padding: 4px 12px;
    background: var(--bg);
    border-radius: 100px;
    color: var(--text-light);
    font-weight: 500;
}

.artisan-actions {
    display: flex;
    gap: 12px;
}

/* ===== CTA ARTISAN ===== */
.cta-artisan {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
}

.cta-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 64px;
    align-items: center;
}

.cta-text h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-text p {
    font-size: 1.05rem;
    opacity: 0.85;
    margin-bottom: 24px;
    line-height: 1.7;
}

.cta-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

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

.cta-visual { display: flex; justify-content: center; }

.cta-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    width: 280px;
    box-shadow: var(--shadow-lg);
    transform: rotate(2deg);
}

.cta-card-header {
    background: var(--primary-dark);
    color: white;
    padding: 12px 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.cta-card-body {
    padding: 24px;
    text-align: center;
}

.cta-card-avatar { font-size: 3rem; margin-bottom: 12px; }
.cta-card-name { font-weight: 700; color: var(--text); margin-bottom: 4px; }
.cta-card-trade { font-size: 0.85rem; color: var(--text-light); margin-bottom: 12px; }
.cta-card-stars { color: var(--accent); margin-bottom: 16px; }

.cta-card-cta {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ===== TRUST ===== */
.trust {
    padding: 64px 0;
    background: var(--bg-warm);
}

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

.trust-item { text-align: center; }
.trust-icon { font-size: 2rem; margin-bottom: 12px; }
.trust-item h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.trust-item p { font-size: 0.85rem; color: var(--text-light); line-height: 1.6; }

/* ===== FOOTER ===== */
.footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.8);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .logo { margin-bottom: 16px; }
.footer-brand .logo-text { color: white; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; opacity: 0.7; }

.footer-links h4 {
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    font-size: 0.85rem;
    padding: 4px 0;
    opacity: 0.6;
    transition: opacity var(--transition);
}
.footer-links a:hover { opacity: 1; }

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    opacity: 0.5;
    text-align: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    .nav-links { display: none; }
    .mobile-menu { display: flex; }

    .hero { padding: 120px 0 60px; }
    .hero-stats { gap: 32px; }

    .steps-grid { flex-direction: column; }
    .step-arrow { transform: rotate(90deg); }

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

    .cta-content { grid-template-columns: 1fr; }
    .cta-visual { display: none; }

    .trust-grid { grid-template-columns: repeat(2, 1fr); }

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

@media (max-width: 640px) {
    .search-bar {
        flex-direction: column;
        padding: 12px;
    }
    .search-select {
        border-left: none;
        border-top: 1px solid var(--border);
        width: 100%;
    }
    .search-input { width: 100%; }
    .btn-search { width: 100%; }

    .hero-stats { flex-direction: column; gap: 16px; }

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

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

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

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content { animation: fadeInUp 0.6s ease-out; }
.hero-stats { animation: fadeInUp 0.6s ease-out 0.2s both; }
