/* ==========================================================================
   BayBiz Service Directory - Global Master Styles
   Includes: Branding, Professional Desktop Header, Tight Mobile Stack
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&display=swap');

html { overflow-y: scroll; }

:root {
    --primary: #3f21b5;
    --primary-dark: #2e1896;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --text-main: #1a1a1a;
    --text-muted: #888;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* 1. RESET & BASE */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.main-wrapper { max-width: 1240px; margin: 0 auto; padding: 30px 20px; }

/* 2. TOP NAVIGATION */
.top-nav {
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.nav-container {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

/* 3. SEARCH BAR */
.search-bar form { display: flex; background: var(--white); border-radius: 30px; overflow: hidden; padding: 2px; }
.search-bar input { flex: 1; border: none; padding: 8px 15px; font-size: 13px; outline: none; color: #333; background: transparent; }
.btn-search-white { background: var(--primary) !important; color: var(--white) !important; border: none; padding: 0 20px; border-radius: 20px; font-weight: 800; font-size: 11px; text-transform: uppercase; cursor: pointer; }

/* 5. MASTER TYPOGRAPHY */
.welcome-section h1, .directory-title { font-size: 42px !important; font-weight: 900 !important; letter-spacing: -1.5px !important; text-align: center !important; color: #1a1a1a !important; margin-bottom: 15px !important; }
.subtitle { font-size: 18px !important; text-align: center !important; max-width: 800px; margin: 0 auto 30px auto !important; color: var(--text-muted) !important; }

/* 6. GLOBAL BREADCRUMBS */
.breadcrumb-nav { display: flex; align-items: center; margin-bottom: 25px; font-size: 13px; font-weight: 600; }
.breadcrumb-nav a { text-decoration: none; color: var(--text-muted); transition: 0.2s; }
.breadcrumb-nav a:hover { color: var(--primary); }
.breadcrumb-nav .sep { margin: 0 10px; color: #cbd5e1; font-weight: 400; }
.breadcrumb-nav .active { color: var(--text-main); pointer-events: none; }

/* 7. MOBILE RESPONSIVENESS */
@media screen and (max-width: 950px) {
    header.top-nav { padding: 8px 0 !important; }
    header.top-nav .nav-container { display: flex !important; flex-direction: column !important; height: auto !important; min-height: 0 !important; }
    header.top-nav .logo { margin-bottom: 8px; font-size: 20px !important; }
    header.top-nav .search-bar { width: 100% !important; margin: 0 0 10px 0 !important; }

    .welcome-section h1, .directory-title { font-size: 26px !important; }
    .subtitle { font-size: 14px !important; }
}

/* 8. SCROLLBAR & BACK TO TOP */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }

#backToTop { position: fixed; bottom: 30px; right: 30px; z-index: 2000; background-color: var(--primary); color: white; width: 45px; height: 45px; border-radius: 50%; display: none; justify-content: center; align-items: center; cursor: pointer; border: none; box-shadow: 0 4px 15px rgba(63, 33, 181, 0.3); transition: all 0.3s ease; font-size: 20px; }
#backToTop:hover { background-color: var(--primary-dark); transform: translateY(-5px); }

/* 9. MASTER FOOTER */
.home-footer, .contact-footer { text-align: center !important; padding: 60px 20px; color: #bbb; font-size: 13px; width: 100%; display: block; border-top: 1px solid #eee; background: #fff; margin-top: 50px; }
.footer-links { margin-top: 15px; }
.footer-links a { color: #999; text-decoration: none; font-weight: 600; margin: 0 5px; }
.footer-links a:hover { color: var(--primary); }
/* --- Legal Content Styling --- */
.legal-container {
    max-width: 900px;
    margin: 0 auto;
}

.legal-content-card {
    background: #fff;
    padding: 50px;
    border-radius: 35px;
    border: 1px solid #f0f0f0;
    box-shadow: var(--shadow);
}

.legal-section {
    margin-bottom: 35px;
}

.legal-section h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
}

.legal-section p {
    font-size: 15px;
    color: #444;
    line-height: 1.7;
}

.legal-section ul {
    padding-left: 20px;
    margin-top: 10px;
}

.legal-section li {
    font-size: 15px;
    color: #444;
    margin-bottom: 10px;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .legal-content-card { padding: 25px; }
}