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

:root {
    --primary-color: #1E88E5;
    --primary-dark: #1565C0;
    --primary-hover: #43A047;
    --secondary-color: #0D47A1;
    --text-color: #263238;
    --light-gray: #f5f7fa;
    --dark-gray: #546E7A;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.modern-bg-init { }
body { position: relative; }
body::before { content: none; background: none; }

body {
    background-color: var(--light-gray);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-size: 15px;
    position: relative;
    /* Removed inline background to use pseudo-element for better visibility */
}

/* ORGANIC CURVES BACKGROUND - PREMIUM SAAS STYLE (Fixed Visibility) */
body::before {
    content: '';
    position: fixed; /* Fixed to viewport to stay visible on scroll */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999; /* Float ABOVE everything but let clicks pass through */
    opacity: 0.6; /* Global subtle reducer */
    mix-blend-mode: multiply; /* Better integration with backgrounds */
    
    /* Reduced stroke opacity for subtle look (0.05 - 0.08 range) */
    background-image: 
        /* Top Left - Organic Blue Curve */
        url("data:image/svg+xml,%3Csvg width='800' height='800' viewBox='0 0 800 800' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M-100 0C100 0 300 100 400 300C500 500 300 700 100 750' stroke='%231E88E5' stroke-width='3' stroke-opacity='0.08' fill='none'/%3E%3Ccircle cx='0' cy='0' r='500' stroke='%2343A047' stroke-width='2' stroke-opacity='0.05' fill='none'/%3E%3Cpath d='M-50 100C150 100 350 200 450 400' stroke='%231E88E5' stroke-width='2' stroke-opacity='0.06' fill='none'/%3E%3C/svg%3E"),
        
        /* Top Right - Continuing Wave Sequence */
        url("data:image/svg+xml,%3Csvg width='800' height='800' viewBox='0 0 800 800' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M800 0C600 0 400 150 500 400C600 650 850 600 900 800' stroke='%231E88E5' stroke-width='3' stroke-opacity='0.08' fill='none'/%3E%3Ccircle cx='800' cy='0' r='600' stroke='%231E88E5' stroke-width='2' stroke-opacity='0.04' fill='none'/%3E%3Cpath d='M900 100C700 150 550 300 650 500' stroke='%2343A047' stroke-width='2' stroke-opacity='0.05' fill='none'/%3E%3C/svg%3E"),

        /* Bottom Right - Subtle Wave */
        url("data:image/svg+xml,%3Csvg width='1000' height='600' viewBox='0 0 1000 600' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 600C200 550 400 400 1000 500' stroke='%231E88E5' stroke-width='3' stroke-opacity='0.06' fill='none'/%3E%3Cpath d='M200 600C400 500 600 350 1000 450' stroke='%2343A047' stroke-width='2' stroke-opacity='0.05' fill='none'/%3E%3C/svg%3E");
    
    background-repeat: no-repeat, no-repeat, no-repeat;
    background-position: top -50px left -50px, top -100px right -100px, bottom -50px right -50px;
    background-size: 60vw 60vw, 50vw 50vw, 70vw 50vh; /* Responsive sizing */
}

/* FOOTER - MODERN SAAS STYLE */
footer {
    background-color: #1a202c; /* Darker, cooler gray (Tailwind Gray-900 style) */
    color: #e2e8f0;
    padding: 40px 0 20px; /* More vertical breathing room */
    margin-top: auto;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05); /* Subtle border */
}

/* Footer Background Effect */
footer::before { 
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Added 2 more wave lines for richer effect */
    background-image: url("data:image/svg+xml,%3Csvg width='1440' height='400' viewBox='0 0 1440 400' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M-100 300C200 350 500 200 900 300C1200 400 1500 350 1600 300' stroke='white' stroke-width='2' stroke-opacity='0.03' fill='none'/%3E%3Cpath d='M-100 350C250 380 600 280 950 320C1250 360 1550 300 1650 280' stroke='white' stroke-width='1.5' stroke-opacity='0.02' fill='none'/%3E%3Cpath d='M-100 250C150 200 450 300 800 250C1150 200 1450 320 1600 350' stroke='white' stroke-width='1' stroke-opacity='0.02' fill='none'/%3E%3Ccircle cx='1400' cy='400' r='300' stroke='white' stroke-width='1' stroke-opacity='0.02' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: cover;
    z-index: 0;
}

/* Ensure content stays above background */
.footer-grid, .footer-bottom {
    position: relative;
    z-index: 1;
}

/* Footer Grid - Asymmetric Layout */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr; /* Brand column wider */
    gap: 40px;
    margin-bottom: 60px;
}

.footer-grid .footer-col { min-width: 0; }

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr; /* 2x2 on tablets */
    }
}
@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr; /* Stacked on mobile */
        text-align: center;
    }
    .social-links {
        justify-content: center;
    }
}

/* Brand Column */
.footer-brand p {
    color: #94a3b8; /* Muted text */
    font-size: 15px;
    line-height: 1.6;
    margin-top: 15px;
    max-width: 300px;
}

/* Headings - The "SaaS Signature" */
.footer-col h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    color: #00A2E2; /* Muted label color */
    margin-bottom: 15px;
    border: none; /* Remove default borders */
    padding: 0;
}

/* Links */
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #cbd5e1; /* Light gray */
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: #fff;
    transform: translateX(5px); /* Slide effect */
}

/* Social Icons */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}
.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%; /* Circles */
    color: #fff;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}
.social-links a:hover {
    background: #1E88E5; /* Brand blue on hover */
    border-color: #1E88E5;
    transform: translateY(-3px);
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 13px;
    color: #64748b;
}

@media (max-width: 576px) {
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}


a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

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

/* Header */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 80px; /* Increased to 80px */
    display: flex;
    align-items: center;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

nav {
    display: flex;
    align-items: center;
}

.logo {
    font-size: 22px; /* Reduced from 24px */
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--secondary-color);
}

nav ul {
    display: flex;
    gap: 5px;
    align-items: center;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 14px;
    padding: 0 5px; /* Added padding to match header.php inline styles */
    text-transform: uppercase; /* Ensure desktop stays uppercase */
    white-space: nowrap; /* Prevent line breaks */
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px; /* Reduced from 24px */
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-align: center;
    font-size: 14px;
    height: 40px; /* Reduced from 42px */
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Compact Header Navigation for Desktop */
@media (min-width: 992px) and (max-width: 1280px) {
    nav ul {
        gap: 8px; /* Tighter gap for smaller desktops */
    }
    
    nav ul li a {
        font-size: 13px;
    }
    
    .btn {
        padding: 0 12px;
        font-size: 13px;
        height: 36px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .logo img {
        max-height: 40px !important; /* Resize logo image if present */
    }
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-outline {
    border: 1px solid #ccc;
    color: #333;
    background: transparent;
}

.btn-outline:hover {
    background-color: #f5f5f5;
    color: #333;
    border-color: #bbb;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.95); /* Transparência moderna */
        backdrop-filter: blur(10px); /* Efeito de vidro */
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
        z-index: 1001;
        border-top: 1px solid rgba(0,0,0,0.05);
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
    }

    .nav-menu.active {
        display: flex !important;
    }

    .nav-menu ul {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 8px; /* Espaçamento ajustado */
    }

    .nav-menu ul li {
        width: 100%;
    }
    
    /* Estilo dos links no mobile */
    .nav-menu ul li a {
        display: block;
        width: 100%;
        text-align: left;
        font-size: 16px; /* Fonte menor conforme solicitado */
        padding: 12px 15px;
        border-radius: 8px;
        color: var(--text-color);
        transition: all 0.3s ease;
        border-bottom: 1px solid rgba(0,0,0,0.03); /* Divisória sutil */
    }

    .nav-menu ul li a:hover {
        background-color: rgba(30, 136, 229, 0.08); /* Fundo leve ao passar o mouse */
        color: var(--primary-color);
        padding-left: 20px; /* Pequeno movimento para direita */
    }

    /* Ajuste específico para botões no menu mobile */
    .nav-menu ul li .btn {
        display: block;
        width: 100%;
        text-align: left; /* Alinhamento à esquerda conforme solicitado */
        margin-top: 5px;
        font-size: 16px;
        padding-left: 15px; /* Mesmo padding dos links */
    }
}
.hero {
    background-color: transparent;
    background-image: none;
    color: var(--text-color);
    padding: 80px 0;
    text-align: center;
    background-size: cover;
    background-position: center;
}

/* Hero com imagem de marketing: texto branco para legibilidade */
.hero.hero-image,
.hero.hero-image h2,
.hero.hero-image p {
    color: #fff;
}

/* Páginas Institucionais */
.page-content {
    padding: 60px 0;
    background-color: var(--white);
}
.page-content h1 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--text-color);
    line-height: 1.3;
}
.page-content .content-body {
    max-width: 900px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.7;
    color: var(--dark-gray);
    text-align: left;
}

.hero h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Search Box */
.search-box {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    display: flex;
    gap: 10px;
    max-width: 900px;
    margin: 0 auto;
    flex-wrap: wrap;
    align-items: center;
}

.search-box form {
    display: flex;
    width: 100%;
    gap: 10px;
    align-items: center;
}

.search-box input {
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 16px;
    outline: none;
    flex: 1;
}

/* Custom Select Styling */
.custom-select-wrapper {
    position: relative;
    user-select: none;
    flex: 1.5;
    min-width: 200px;
}

.custom-select {
    position: relative;
    display: flex;
    flex-direction: column;
}

.custom-select-trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    padding-left: 35px;
    font-size: 16px;
    font-weight: 400;
    color: #333;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.custom-select-trigger .arrow-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%231E88E5%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%205.4%2092.7l131.6%20131.5c4.7%204.7%2012.3%204.7%2017%200l131.6-131.5A17.6%2017.6%200%200%200%20287%2069.4z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-size: contain;
    transition: transform 0.3s;
}

.custom-select.open .arrow-icon {
    transform: translateY(-50%) rotate(180deg);
}

.custom-options {
    position: absolute;
    display: block;
    top: 100%;
    left: 0;
    right: 0;
    border: 1px solid var(--border-color);
    border-top: 0;
    background: #fff;
    transition: all 0.3s;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 2;
    max-height: 200px;
    overflow-y: auto;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.custom-select.open .custom-options {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.custom-option {
    position: relative;
    display: block;
    padding: 10px 15px;
    padding-left: 35px;
    font-size: 16px;
    font-weight: 400;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
}

.custom-option:hover {
    color: #fff;
    background-color: var(--primary-color);
}

.custom-option.selected {
    color: #fff;
    background-color: var(--primary-dark);
}

.categories {
    padding: 60px 0;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h3 {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.section-title p {
    color: var(--dark-gray);
    font-size: 16px;
}

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

.category-card {
    background-color: var(--light-gray);
    padding: 30px 20px;
    border-radius: 8px;
    text-align: center;
    transition: 0.3s;
    border: 1px solid transparent;
}

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

.category-icon {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.category-card h4 {
    font-size: 16px;
    color: var(--text-color);
}

.featured-pros {
    padding: 60px 0;
    background-color: var(--light-gray);
}

.grid-pros {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.pro-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #F2F2F2;
}

.pro-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: transparent;
}

.pro-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.pro-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
}

.pro-name {
    font-size: 18px;
    margin-bottom: 5px;
}

.pro-rating {
    color: #FFD700;
    font-size: 14px;
}

.pro-category {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
}

.pro-body {
    padding: 20px;
}

.pro-location {
    color: var(--dark-gray);
    font-size: 14px;
    margin-bottom: 10px;
}

.pro-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.pro-footer {
    padding: 15px 20px;
    background-color: #f9f9f9;
    border-top: 1px solid var(--border-color);
}

.page-wrapper {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .hero h2 {
        font-size: 28px;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-box form {
        flex-direction: column;
    }
    
    .search-box input, .search-box button {
        width: 100%;
    }
}

/* Custom Dropdown Implementation (NOVO) */
.custom-dropdown-wrapper {
    position: relative !important;
    width: 100%;
}

.custom-dropdown-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 9999;
    max-height: 250px;
    overflow-y: auto;
    width: 100%;
    margin-top: 2px;
    /* Force direction down */
    bottom: auto !important;
    transform: none !important;
}

.custom-dropdown-options.show {
    display: block;
}

.dropdown-item {
    padding: 12px 15px;
    cursor: pointer;
    font-size: 15px;
    color: #333;
    border-bottom: 1px solid #f5f5f5;
    transition: background-color 0.2s;
    text-align: left;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

/* Fix for Profile Contact Box Overflow */
.contact-box {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.contact-box p, 
.contact-box a {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    font-size: 13px; /* Reduced font size to fit long emails */
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .city-wrapper {
        border-right: none;
        border-bottom: 1px solid #ddd;
        width: 100%;
    }
    
    .search-field-wrapper {
        width: 100%;
    }

    .custom-dropdown-options {
        position: absolute;
        width: 100%;
        left: 0;
        right: 0;
        z-index: 9999;
    }
}

/* --- Popular Modern Home Redesign --- */

/* Hero Home */
.hero-home {
    background-color: var(--white);
    padding: 50px 0 60px;
    text-align: center;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}
.hero-home::before { content: none; background: none; }

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 36px; /* Reduced from 42px based on feedback */
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--dark-gray);
    margin-bottom: 40px;
    font-weight: 400;
}

/* Search Card */
.search-card {
    background: #fff;
    padding: 10px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    display: inline-block;
    width: 100%;
    max-width: 850px;
    border: 1px solid #e2e8f0;
    position: relative;
}

.search-inputs-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 10px;
}

.search-field {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 5px 20px;
    position: relative;
}

.search-field label {
    color: var(--primary-color);
    font-size: 18px;
    margin-right: 10px;
}

.search-field input {
    border: none;
    outline: none;
    font-size: 16px;
    width: 100%;
    background: transparent;
    padding: 10px 0;
}

.search-divider {
    width: 1px;
    height: 40px;
    background-color: #e2e8f0;
}

.btn-search-hero {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 14px 35px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    margin-right: 5px;
}

.btn-search-hero:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

/* Services List (New Block) */
.home-services-list {
    padding: 80px 0;
    background-color: var(--white);
}

.services-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

/* Footer Inline Links (Bottom Right) */
.footer-links-inline {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links-inline li a {
    color: #64748b;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links-inline li a:hover {
    color: #fff;
}

@media (max-width: 576px) {
    .footer-links-inline {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Service Item */
.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    transition: 0.3s;
    cursor: pointer;
}

.service-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.service-item i {
    font-size: 32px;
    color: #43A047; /* Green as requested */
    margin-bottom: 15px;
}

.service-item span {
    font-weight: 600;
    color: var(--text-color);
    text-align: center;
}

/* Testimonials (Restored) */
.home-testimonials {
    padding: 50px 0;
    background-color: #f8f9fa;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

.test-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.test-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    margin-right: 15px;
}

.test-info h4 {
    font-size: 16px;
    margin-bottom: 2px;
    color: var(--text-color);
}

.test-info span {
    font-size: 13px;
    color: var(--dark-gray);
}

.testimonial-card p {
    color: #4b5563;
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
}

.test-stars {
    color: #fbbf24;
    font-size: 18px;
}

/* Budget Request (Restored) */
.home-budget-request {
    padding: 40px 0;
    background-color: var(--white);
}

.budget-card {
    background: linear-gradient(135deg, #1E88E5 0%, #1565C0 100%);
    border-radius: 24px;
    padding: 0;
    display: flex;
    overflow: hidden;
    color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.budget-content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.budget-icon {
    background: rgba(255,255,255,0.2);
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 25px;
}

.budget-content h3 {
    font-size: 32px;
    margin-bottom: 15px;
    font-weight: 700;
    color: white;
}

.budget-desc, .budget-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 500px;
    color: rgba(255,255,255,0.9);
}

.budget-desc p {
    margin-bottom: 0;
    font-size: 18px;
    color: rgba(255,255,255,0.9);
}

.btn-budget {
    background: #fff;
    color: var(--primary-color);
    padding: 15px 35px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.btn-budget:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.budget-image {
    flex: 1;
    background-color: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.budget-image::after {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    top: -25%;
    right: -25%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .search-card {
        border-radius: 20px;
        padding: 20px;
        max-width: 100%;
    }
    
    .search-inputs-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    
    .search-divider {
        width: 100%;
        height: 1px;
    }
    
    .btn-search-hero {
        width: 100%;
        margin-right: 0;
    }

    .budget-card {
        flex-direction: column;
    }

    .budget-image {
        height: 200px;
    }

    .budget-content {
        padding: 40px 30px;
    }
}

/* Utility Classes for Visibility */
.d-block-mobile { display: block; }
.d-none-mobile { display: none; }

@media (min-width: 769px) {
    .d-block-mobile { display: none; }
    .d-none-mobile { display: block; }
}

/* Mobile Search Box Redesign (Restored & Fixed) */
@media (max-width: 768px) {
    /* Removed global overflow to prevent footer issues */
    
    .mobile-search-box {
        display: flex;
        flex-direction: column;
        gap: 15px;
        background: #fff;
        padding: 20px;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .mobile-search-item {
        display: flex;
        align-items: center;
        background: #f8f9fa;
        border-radius: 8px;
        padding: 5px 15px;
        border: 1px solid #e0e0e0;
    }

    .search-icon-mobile {
        color: var(--primary-color);
        margin-right: 12px;
        font-size: 16px;
        width: 20px;
        text-align: center;
    }

    .mobile-input, .mobile-select {
        flex: 1;
        border: none;
        background: transparent;
        padding: 12px 0;
        font-size: 15px;
        outline: none;
        width: 100%;
    }

    /* Hero Text Adjustments & Blue Strip Fix */
    /* Updated .hero-home to replace .mobile-hero-isolated */
    .hero-home {
        background-image: none !important;
        background-color: #f8f9fa !important; /* Light background like Print 2 */
        height: auto !important;
        padding: 40px 0 60px !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        color: #333333 !important; /* Dark text like Print 2 */
        position: relative;
        border-radius: 0 0 50px 50px;
        margin-bottom: 40px;
        text-shadow: none !important; /* Remove text shadow */
    }

    /* Ensure NO overlay for the new class */
    .hero-home::before {
        display: none !important;
        content: none !important;
    }

    /* Update text selectors to match new class */
    .hero-home .hero-title {
        font-size: 32px !important; /* Increased significantly to match print */
        text-align: center !important;
        line-height: 1.4 !important; /* Adjusted line height for better readability */
        font-weight: 700;
        margin-bottom: 8px; /* Reduced from 20px */
        color: #212529 !important;
    }

    .hero-home .hero-subtitle {
        font-size: 18px !important; /* Reduced per user request (red circle) */
        text-align: center !important;
        margin-top: 0px !important; /* Reduced from 10px */
        margin-bottom: 30px;
        color: #01070c !important; /* Adjusted to user request */
    }

    /* Header Font Reduction */
    .logo {
        font-size: 20px !important;
    }
    
    .mobile-menu-btn {
        font-size: 20px !important;
    }

    /* Ensure search button is full width */
    .mobile-search-box button {
        width: 100%;
        margin-top: 5px;
        height: 48px;
        font-size: 16px;
    }
}

/* =========================================
   PHASE 2: MOBILE SPACING OPTIMIZATIONS
   ========================================= */
@media (max-width: 768px) {
    /* Reduce Vertical Spacing Between Sections */
    .hero-home {
        padding: 30px 0 40px !important;
    }
    
    .categories, 
    .featured-pros, 
    .home-services-list, 
    .home-testimonials {
        padding: 30px 0 !important;
    }

    /* Reduce Section Title Margins */
    .section-title {
        margin-bottom: 25px !important;
    }
    
    .section-title h2 {
        font-size: 22px !important; /* Smaller headings on mobile */
        margin-bottom: 8px !important;
    }

    /* Compact Service Items */
    .service-item {
        margin-bottom: 15px !important;
        padding: 15px !important;
    }

    .service-item i {
        font-size: 28px !important;
        margin-bottom: 10px !important;
    }

    .service-item h3 {
        font-size: 16px !important;
        margin-bottom: 8px !important;
    }
}
