/* =============================================
   Hatay Esnaf — Home Page Styles
   ============================================= */

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f4f6f9;
    color: #1a1a2e;
    line-height: 1.6;
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    padding: 90px 25px 80px;
    text-align: center;
}
.hero h1 {
    font-size: 2.6rem;
    font-weight: 800;
    margin: 0 0 20px;
    line-height: 1.2;
    color: #fff;
}
.hero h1 span { color: var(--color-primary); }
.hero p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin: 0 auto 35px;
    line-height: 1.8;
}
.hero-cta { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.hero-cta a {
    padding: 13px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}
.hero-cta a:first-child { background: var(--color-primary); color: #fff; }
.hero-cta a:first-child:hover { background: var(--color-primary-dark); }
.hero-cta .btn-secondary { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.4); }
.hero-cta .btn-secondary:hover { border-color: #fff; }

/* ===== SEARCH BAR ===== */
.search-bar {
    background: #fff;
    padding: 25px 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-top: -30px;
    position: relative;
    z-index: 10;
}
.search-box {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}
.search-box select,
.search-box input {
    padding: 11px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background: #f8fafc;
    color: #1a1a2e;
}
.search-box select { min-width: 140px; }
.search-box input { flex: 1; min-width: 180px; }
.search-box select:focus, .search-box input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: #fff;
}
.search-box button {
    padding: 11px 22px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.search-box button:hover { background: var(--color-primary-dark); }

/* ===== WHY SECTION ===== */
.why { padding: 70px 25px; text-align: center; }
.section-title { font-size: 1.8rem; color: #1a1a2e; margin-bottom: 8px; font-weight: 700; }
.section-sub { color: #666; margin-bottom: 45px; font-size: 1rem; }
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
}
.why-card {
    background: #fff;
    border-radius: 14px;
    padding: 30px 25px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.why-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.1); }
.why-card .icon { font-size: 2.2rem; margin-bottom: 15px; display: block; }
.why-card h3 { font-size: 1rem; color: #1a1a2e; margin-bottom: 10px; font-weight: 600; }
.why-card p { font-size: 0.9rem; color: #666; margin: 0; line-height: 1.7; }

/* ===== FIRMS SECTION ===== */
.firms-section { padding: 50px 25px 60px; }
.firms-section .container { max-width: 1100px; margin: 0 auto; }
.firms-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}
.firms-header h2 { font-size: 1.5rem; color: #1a1a2e; font-weight: 700; margin: 0; }
.firms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
}
.firm-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.firm-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.firm-card-img {
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}
.firm-card-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.firm-card-body h3 { font-size: 1.05rem; color: #1a1a2e; margin: 0 0 8px; font-weight: 600; }
.firm-card-body .meta { font-size: 0.82rem; color: #888; margin-bottom: 10px; }
.firm-card-body .pkg-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    margin-right: 6px;
}
.pkg-badge.free { background: #f1f5f9; color: #64748b; }
.pkg-badge.lite { background: #dbeafe; color: #1d4ed8; }
.pkg-badge.pro { background: #dcfce7; color: #15803d; }
.firm-card-body .excerpt { font-size: 0.85rem; color: #666; margin: 0 0 14px; flex: 1; line-height: 1.6; }
.firm-card-link { display: inline-block; color: var(--color-primary); font-size: 14px; font-weight: 600; text-decoration: none; }
.firm-card-link:hover { text-decoration: underline; }
.firm-card-link::after { content: ' →'; }
.empty-state {
    text-align: center;
    padding: 60px 25px;
    color: #888;
}
.empty-state h3 { font-size: 1.3rem; margin-bottom: 10px; color: #555; }

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
    text-align: center;
    padding: 65px 25px;
}
.cta-section h2 { font-size: 1.7rem; margin-bottom: 12px; font-weight: 700; }
.cta-section p { font-size: 1rem; opacity: 0.9; margin-bottom: 28px; }
.cta-section a {
    display: inline-block;
    background: #fff;
    color: var(--color-primary);
    padding: 13px 30px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s;
}
.cta-section a:hover { transform: scale(1.03); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero h1 { font-size: 1.9rem; }
    .hero p { font-size: 1rem; }
    .why-grid { grid-template-columns: 1fr; gap: 16px; }
    .search-box { flex-direction: column; }
    .search-box select, .search-box input, .search-box button { width: 100%; }
    .firms-grid { grid-template-columns: 1fr; }
    .firms-header { flex-direction: column; gap: 12px; align-items: flex-start; }
    .cta-section h2 { font-size: 1.4rem; }
}
@media (max-width: 480px) {
    .hero { padding: 60px 20px 55px; }
    .hero-cta { flex-direction: column; align-items: center; }
    .hero-cta a { width: 100%; max-width: 280px; text-align: center; }
}