/* Custom Unique Variables Theme configuration */
:root {
    --z-body-bg: #f8fafc;
    --z-card-bg: #f1f5f9; /* Soft tint framework wrapper background */
    --z-surface-bg: #ffffff;
    --z-border-line: #cbd5e1;
    --z-text-dark: #0f172a;
    --z-text-paragraph: #475569;
    --z-text-muted: #64748b;
    
    /* Core Accent Palette mimicking uploaded asset layout */
    --z-accent-green: #e2f2ed;
    --z-text-green: #0d684d;
    --z-star-bg: #15803d;


    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --surface: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 4px 6px -1px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 40px -15px rgba(15, 23, 42, 0.12);
    --radius-round: 9999px;
    --radius-box: 16px;
    --transition: cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
    
    /* Button Colors */
    --z-color-danger: #2563eb;
    --z-color-success: #16a34a;
    --z-color-dark: #003333;
    
    /* Global Rounding Definition */
    --z-radius-main: 8px;
    --z-font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--z-body-bg);
    font-family: var(--z-font-stack);
    color: var(--z-text-dark);
    line-height: 1.6;
    padding-bottom: 0px;
}




/* ================= NAVIGATION BAR ================= */
.header-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 5%;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    /* color: var(--text-dark); */
    letter-spacing: -0.5px;
}

.logo span { color: var(--primary); }

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    /* color: var(--text-dark); */
    font-size: 22px;
    cursor: pointer;
    padding: 4px 8px;
    transition: var(--transition);
}

.menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

.menu li { position: relative; }

.menu li a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 15px;
    padding: 10px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    transition: var(--transition);
}

.menu li a:hover, .menu li a.active {
    color: var(--primary);
    background: var(--primary-light);
}

.arrow-icon {
    font-size: 12px;
    transition: transform 0.2s ease;
}

/* --- Desktop Dropdown System (Width > 768px) --- */
@media (min-width: 769px) {
    .menu .dropdown-menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background: var(--surface);
        min-width: 240px;
        list-style: none;
        border-radius: 12px;
        padding: 8px;
        margin-top: 4px;
        box-shadow: var(--shadow-lg);
        border: 1px solid var(--border-color);
    }

    .menu .dropdown-menu::before {
        content: '';
        position: absolute;
        top: -12px;
        left: 0;
        width: 100%;
        height: 12px;
    }

    .menu li:hover > .dropdown-menu {
        display: block;
        animation: fadeIn 0.2s ease-out;
    }

    .dropdown-menu .dropdown-sub-menu,
    .dropdown-sub-menu .dropdown-deep-menu {
        display: none;
        position: absolute;
        right: 100%;
        top: -8px;
        background: var(--surface);
        min-width: 240px;
        list-style: none;
        border-radius: 12px;
        padding: 8px;
        box-shadow: var(--shadow-lg);
        border: 1px solid var(--border-color);
        margin-right: 4px;
    }

    .dropdown-menu .dropdown-sub-menu::before,
    .dropdown-sub-menu .dropdown-deep-menu::before {
        content: '';
        position: absolute;
        top: 0;
        right: -12px;
        width: 12px;
        height: 100%;
    }

    .dropdown-sub:hover > .dropdown-sub-menu,
    .dropdown-sub-inner:hover > .dropdown-deep-menu {
        display: block;
        animation: fadeIn 0.15s ease-out;
    }
}




/* ================= ANIMATIONS ================= */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================= MOBILE TARGET RESPONSIVE SYSTEM ================= */
@media (max-width: 992px) {
    .search-container form { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    /* Primary Container Navigation Hidden Offscreen Initially */
    .menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--surface);
        padding: 10px 0;
        box-shadow: var(--shadow-lg);
        border-bottom: 1px solid var(--border-color);
        gap: 0;
    }

    .menu.active {
        display: flex;
    }

    .menu li {
        width: 100%;
    }

    .menu li a {
        width: 100%;
        padding: 14px 24px;
        border-radius: 0;
        border-bottom: 1px solid #f1f5f9;
    }

    /* Native-like Accordion Trees for Mobile Devices */
    .menu .dropdown-menu,
    .dropdown-menu .dropdown-sub-menu,
    .dropdown-sub-menu .dropdown-deep-menu {
        display: none; /* Controlled exclusively by clicking headers */
        position: static;
        width: 100%;
        background: #f8fafc;
        box-shadow: none;
        border: none;
        padding: 0;
        margin: 0;
    }

    /* Sub-levels get slightly darker backgrounds to distinguish depth */
    .dropdown-menu .dropdown-sub-menu { background: #f1f5f9; }
    .dropdown-sub-menu .dropdown-deep-menu { background: #e2e8f0; }

    /* Open Class triggered by JS click updates */
    .menu .open-active {
        display: block !important;
    }

    /* Rotate icons downwards when an accordion row is open */
    .arrow-rotate > .arrow-icon {
        transform: rotate(90deg);
    }

    .hero h1 { font-size: 34px; }
    .search-container form { grid-template-columns: 1fr; }
    .footer-container { flex-direction: column; gap: 36px; }
}




/* 1. Intro Premium Top Banner Styling */
.z-hero-banner {
    background: linear-gradient(135deg, #091e3a 0%, #1e3a8a 100%);
    color: #ffffff;
    padding: 100px 24px;
    text-align: center;
}

.z-hero-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.z-hero-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: #93c5fd;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.z-hero-banner h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.z-hero-banner p {
    color: #cbd5e1;
    font-size: 15px;
    max-width: 600px;
    margin: 0 auto;
}

/* Base Main Layout Alignment Container */
.z-main-container {
    max-width: 1200px;
    margin: 100px auto 0;
    padding: 0 20px;
}

/* 2. Dynamic Location Title Header Style */
.z-section-header {
    text-align: center;
    margin-bottom: 30px;
}

.z-section-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--z-text-dark);
    position: relative;
    display: inline-block;
}

/* Vertical Stack Structure containing the listings */
.z-listings-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 3. Service Listing Card Architecture */
.z-listing-card {
    background-color: var(--z-card-bg);
    border: 1px solid var(--z-border-line);
    border-radius: var(--z-radius-main);
}

.z-card-body {
    display: flex;
    gap: 20px;
    background: var(--z-surface-bg);
    border: 1px solid var(--z-border-line);
    border-radius: var(--z-radius-main);
    padding: 24px;
    align-items: center;
}

/* Square Container For Branding Profile Image/Logo Frame */
.z-logo-box {
    width: 140px;
    height: 200px;
    border-radius: var(--z-radius-main);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    flex-shrink: 0;
    overflow: hidden; /* Prevent image overflow */
}

.z-logo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Entire logo is visible */
    border-radius: inherit;
}

.z-logo-box i {
    font-size: 50px;
    color: var(--z-text-dark);
}

/* Structural Right Component Section */
.z-info-pane {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Heading Container Row mapping */
.z-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    gap: 16px;
}

.z-business-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--z-text-dark);
}

/* Compact Premium Solid Star Rating Frame block */
.z-rating-badge {
    background-color: var(--z-star-bg);
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

/* Core metadata inline detail string pattern */
.z-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--z-text-muted);
    margin-bottom: 12px;
}

.z-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.z-meta-divider {
    color: var(--z-border-line);
    font-weight: 300;
}

/* Tiny soft badge array system configuration */
.z-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.z-tag-badge {
    background-color: var(--z-accent-green);
    color: var(--z-text-green);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px dashed rgba(13, 104, 77, 0.2);
}

/* Detailed Information Paragraph text styling */
.z-description {
    font-size: 14px;
    color: var(--z-text-paragraph);
    margin-bottom: 20px;
    text-align: justify;
}

/* Button Action Segment Strip architecture */
.z-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Universal Button Design Architecture Base style */
.z-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: var(--z-radius-main);
    transition: all 0.2s ease;
    cursor: pointer;
}

.z-btn-danger {
    background-color: var(--z-color-danger);
    color: #ffffff;
    border: 1px solid var(--z-color-danger);
}

.z-btn-danger:hover {
    background-color: #1f4daf;
}

.z-btn-success {
    background-color: var(--z-color-success);
    color: #ffffff;
    border: 1px solid var(--z-color-success);
}

.z-btn-success:hover {
    background-color: #15803d;
}

.z-btn-dark {
    background-color: var(--z-color-dark);
    color: #ffffff;
    border: 1px solid var(--z-color-dark);
}

.z-btn-dark:hover {
    background-color: #001f1f;
}

.z-btn-outline {
    background-color: transparent;
    color: var(--z-text-dark);
    border: 1.5px solid var(--z-text-dark);
}

.z-btn-outline:hover {
    background-color: #f1f5f9;
}

/* 4. Complete Mobile Responsive Media Breakpoints Layout */
@media (max-width: 850px) {
    .z-card-body {
        flex-direction: column;
        align-items: stretch;
    }

    .z-logo-box {
        align-self: center;
        width: 120px;
        height: 120px;
    }

    .z-meta-divider {
        display: none; /* Hide standard pipes on stacked dynamic viewpoints */
    }

    .z-meta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

@media (max-width: 550px) {
    .z-hero-banner h1 {
        font-size: 1.75rem;
    }

    .z-section-title {
        font-size: 20px;
    }

    .z-title-row {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 8px;
    }

    .z-action-row {
        flex-direction: column;
    }

    .z-btn {
        width: 100%;
    }
}





/* ================= FOOTER COMPONENT ================= */
footer {
    background: #0f172a;
    color: #f8fafc;
    padding-top: 80px;
    border-top: 1px solid #1e293b;
    margin-top: 100px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 32px;
    padding: 0 5% 60px;
    flex-wrap: wrap;
}

.footer-brand {
    flex: 1.5;
    min-width: 260px;
}

.footer-brand h2 {
    font-size: 24px;
    margin-bottom: 16px;
}

.footer-brand h2 span { color: var(--primary); }

.footer-brand p {
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #1e293b;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
}

.footer-socials a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.footer-links {
    flex: 1;
    min-width: 180px;
}

.footer-links h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.footer-links ul { list-style: none; }

.footer-links li { margin: 12px 0; }

.footer-links li a {
    text-decoration: none;
    color: #94a3b8;
    font-size: 14px;
    transition: var(--transition);
}

.footer-links li a:hover {
    color: white;
    padding-left: 4px;
}

.credits {
    text-align: center;
    padding: 24px 5%;
    font-size: 15px;
    color: #64748b;
    border-top: 1px solid #1e293b;
    background: #0b0f19;
}


.foot-disclaimer{
    font-size: 11px;
    margin-top: 10%;
    color: #cccccc;
}