/* =============================================
   Hatay Esnaf — Firma Sayfası Stilleri
   ============================================= */

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

/* ===== BACK BAR ===== */
.back-bar {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #888;
    overflow-x: auto;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 100;
}
.back-bar a { color: #666; text-decoration: none; }
.back-bar a:hover { color: #e94560; }
.back-bar .sep { color: #ccc; margin: 0 2px; }
.back-bar .firm-slug { color: #1a1a2e; font-weight: 600; }

/* ===== FIRM HERO ===== */
.firm-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    padding: 55px 24px 60px;
    text-align: center;
    position: relative;
}
.hero-inner { max-width: 680px; margin: 0 auto; }
.hero-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}
.hero-brand { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.hero-brand-icon { font-size: 18px; }
.hero-brand a { color: rgba(255,255,255,0.6); text-decoration: none; }
.hero-brand a:hover { color: #fff; }
.hero-brand-name { color: rgba(255,255,255,0.6); font-weight: 600; }
.hero-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.hero-badge.free { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.8); }
.hero-badge.lite { background: #dbeafe; color: #1d4ed8; }
.hero-badge.pro { background: #dcfce7; color: #15803d; }

/* Circular avatar */
.firm-avatar {
    width: 95px;
    height: 95px;
    background: rgba(255,255,255,0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    margin: 0 auto 20px;
    border: 3px solid rgba(255,255,255,0.2);
}
.hero-name {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 10px;
    color: #fff;
}
.hero-tagline {
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    margin-bottom: 14px;
    font-style: italic;
}
.hero-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.1);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 8px;
}
.hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 22px;
    flex-wrap: wrap;
}
.hero-meta-item { display: flex; align-items: center; gap: 5px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== BUTTONS ===== */
.btn-h {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 11px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-h.primary { background: #e94560; color: #fff; }
.btn-h.primary:hover { background: #d63850; transform: translateY(-1px); }
.btn-h.secondary {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}
.btn-h.secondary:hover { background: rgba(255,255,255,0.2); }
.btn-h.whatsapp { background: #25d366; color: #fff; }
.btn-h.whatsapp:hover { background: #20bd5a; }
.btn-h.outline {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.25);
}
.btn-h.outline:hover { background: rgba(255,255,255,0.15); }

/* ===== QUICK STATS BAR ===== */
.quick-stats {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 0 24px;
}
.qs-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}
.qs-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 24px;
    border-right: 1px solid #f1f5f9;
}
.qs-item:last-child { border-right: none; }
.qs-icon { font-size: 20px; }
.qs-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: #888; margin-bottom: 1px; }
.qs-value { font-size: 14px; font-weight: 700; color: #1a1a2e; }

/* ===== CONTACT LIST (New Info Section) ===== */
.info-section { padding: 30px 24px; background: #fff; }
.contact-list-wrap {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.2s;
}
.contact-item:hover { border-color: #cbd5e1; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.04); }
.contact-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.contact-icon.phone { color: #3b82f6; }
.contact-icon.whatsapp { color: #22c55e; }
.contact-icon.email { color: #f59e0b; }
.contact-icon.address { color: #e94560; }
.contact-icon.website { color: #8b5cf6; }
.contact-icon.map { color: #14b8a6; }
.contact-content { display: flex; flex-direction: column; }
.contact-label { font-size: 11px; text-transform: uppercase; color: #64748b; font-weight: 600; margin-bottom: 2px; }
.contact-text { font-size: 14px; color: #1e293b; font-weight: 500; line-height: 1.3; }
.contact-text a { color: inherit; text-decoration: none; }
.contact-text a:hover { color: #3b82f6; }
.contact-text .sub { font-size: 12px; color: #94a3b8; font-weight: 400; margin-top: 2px; }

/* ===== DESCRIPTION ===== */
.desc-section { padding: 40px 24px; }
.desc-inner { max-width: 900px; margin: 0 auto; }
.section-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #e94560;
    font-weight: 700;
    margin-bottom: 6px;
    display: block;
}
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 18px;
}
.section-title + p { font-size: 13px; color: #888; margin-top: -12px; margin-bottom: 18px; }
.desc-text {
    font-size: 15px;
    color: #555;
    line-height: 1.85;
}
.desc-text p { margin-bottom: 1em; }
.desc-text ul, .desc-text ol { margin-bottom: 1em; padding-left: 24px; }
.desc-text li { margin-bottom: 0.5em; }
.desc-text strong { font-weight: 600; color: #1a1a2e; }
.desc-text em { font-style: italic; }
.desc-text u { text-decoration: underline; }
.desc-text a { color: #e94560; text-decoration: none; }
.desc-text a:hover { text-decoration: underline; }

/* ===== SERVICES ===== */
.services-section { padding: 40px 24px; background: #fff; }
.services-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}
.service-item {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.service-item:hover {
    border-color: #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.service-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.service-name { font-size: 14px; font-weight: 700; color: #1a1a2e; margin-bottom: 4px; }
.service-desc { font-size: 12px; color: #888; line-height: 1.6; }
.service-desc p { margin: 0; }

/* ===== WORKING HOURS ===== */
.hours-section { padding: 40px 24px; }
.hours-inner {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    overflow: hidden;
}
.hours-header {
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    color: #fff;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.hours-header-icon { font-size: 22px; }
.hours-header h3 { margin: 0; font-size: 16px; font-weight: 700; }
.hours-table { padding: 8px 0; }
.hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    border-bottom: 1px solid #f8fafc;
    font-size: 14px;
}
.hours-row:last-child { border-bottom: none; }
.hours-day { color: #1a1a2e; font-weight: 600; }
.hours-time { color: #555; }
.hours-time.closed { color: #ef4444; font-weight: 600; }
.hours-time.open { color: #22c55e; font-weight: 600; }

/* ===== GALLERY ===== */
.gallery-section { padding: 40px 24px; background: #fff; }
.gallery-section .section-label { padding: 0 24px; max-width: 900px; margin: 0 auto 16px; }
.gallery-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.gallery-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 12px;
    background: #f1f5f9;
}

/* ===== MAP ===== */
.map-section {
    padding: 30px 24px 50px;
    background: #fff;
    border-top: 1px solid #f1f5f9;
}
.map-inner { max-width: 900px; margin: 0 auto; }
.map-box { border-radius: 16px; overflow: hidden; height: 300px; box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.map-box iframe { width: 100%; height: 100%; border: none; }
.btn-map-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e94560;
    color: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 14px;
}
.btn-map-link:hover { background: #d63850; }

/* ===== UPGRADE CTA ===== */
.upgrade-cta {
    padding: 40px 24px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    text-align: center;
}
.upgrade-cta-inner { max-width: 600px; margin: 0 auto; }
.upgrade-cta h2 { font-size: 1.5rem; color: #92400e; margin-bottom: 10px; font-weight: 800; }
.upgrade-cta p { font-size: 14px; color: #a16207; margin-bottom: 25px; line-height: 1.7; }
.cta-packs { display: flex; justify-content: center; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.cta-pack {
    background: #fff;
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 20px 28px;
    text-align: center;
    min-width: 130px;
}
.cta-pack.popular { border-color: #e94560; }
.cta-pack-name { font-size: 15px; font-weight: 700; color: #f59e0b; margin-bottom: 6px; }
.cta-pack.popular .cta-pack-name { color: #e94560; }
.cta-pack-price { font-size: 1.5rem; font-weight: 800; color: #1a1a2e; }
.cta-pack-price span { font-size: 12px; font-weight: 400; color: #888; }
.btn-upgrade-main {
    display: inline-block;
    background: linear-gradient(135deg, #e94560, #d63850);
    color: #fff;
    padding: 13px 28px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(233,69,96,0.3);
}
.btn-upgrade-main:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(233,69,96,0.4); }

/* ===== COMING SOON ===== */
.coming-soon {
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 24px;
    text-align: center;
}
.cs-icon { font-size: 3.5rem; margin-bottom: 16px; }
.cs-badge {
    display: inline-block;
    padding: 4px 14px;
    background: #dbeafe;
    color: #1d4ed8;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 14px;
}
.cs-firm { font-size: 1.6rem; color: #1a1a2e; margin-bottom: 8px; }
.cs-tagline { font-size: 15px; color: #666; margin-bottom: 30px; }
.cs-progress { margin-bottom: 35px; }
.cs-progress-bar {
    background: #e2e8f0;
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
}
.cs-progress-fill {
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, #e94560, #f97316);
    border-radius: 10px;
    animation: progress-pulse 2s ease-in-out infinite;
}
@keyframes progress-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}
.cs-steps { text-align: left; max-width: 400px; margin: 0 auto 35px; }
.cs-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}
.cs-step:last-child { border-bottom: none; }
.cs-step-icon { font-size: 16px; width: 24px; text-align: center; }
.cs-step-done { color: #22c55e; }
.cs-step-pending { color: #ccc; }
.cs-step-text { font-size: 14px; color: #555; }
.cs-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== PRO CONTENT — direct render (no iframe) ===== */
/* User HTML renders without any parent color/font overrides.
   Only box-sizing border-box is inherited so user layouts work correctly. */
.pro-content { width: 100%; max-width: 100%; }
.pro-content-inner { width: 100%; }
.pro-content-inner * { box-sizing: border-box; }
/* Iframe fills its container and scrolls internally */
.pro-iframe { width: 100%; height: 100%; min-height: 600px; border: none; display: block; }

/* ===== SOCIAL BAR ===== */
.social-section { padding: 30px 24px; background: #fff; }
.social-inner { max-width: 900px; margin: 0 auto; }
.social-links { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #f1f5f9;
    background: #f8fafc;
    color: #1a1a2e;
    transition: all 0.2s;
}
.social-link:hover { border-color: #e2e8f0; background: #fff; }
.social-link-icon { font-size: 16px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-name { font-size: 1.5rem; }
    .hero-top { flex-direction: column; gap: 10px; align-items: flex-start; }
    .info-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; align-items: center; }
    .cs-actions { flex-direction: column; align-items: center; }
    .qs-inner { flex-direction: column; }
    .qs-item { border-right: none; border-bottom: 1px solid #f1f5f9; }
    .qs-item:last-child { border-bottom: none; }
    .about-inner { grid-template-columns: 1fr; }
    .about-visual { display: none; }
}
@media (max-width: 480px) {
    .firm-hero { padding: 35px 16px 45px; }
    .info-section, .services-section, .map-section { padding: 25px 16px; }
    .back-bar { padding: 10px 16px; }
    .hours-section { padding: 25px 16px; }
}
