:root {

    --primary-blue: #1976d2;
    /* Adjusted to match the specific blue requested */
    --hover-blue: #1565c0;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --bg-light: #ffffff;
    --bg-shape: #e3f2fd;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-y: scroll;
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.5;
    min-height: 100vh;
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navbar */
.navbar {
    padding: 0;
    margin: 0;
    background: #ffffff;
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 80px;
    width: auto;
    mix-blend-mode: multiply;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--text-gray);
    position: relative;
}

.nav-link.active,
.nav-link:hover {
    color: var(--primary-blue);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-blue);
    border-radius: 99px;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.user-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem 0.375rem 0.375rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.user-dropdown-toggle:hover,
.user-dropdown-toggle.active {
    border-color: var(--primary-blue);
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.15);
}

.user-avatar-nav {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e3f2fd 0%, #90caf9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--primary-blue);
}

.user-name-nav {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.9rem;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown-toggle i {
    color: var(--text-gray);
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.user-dropdown-toggle.active i {
    transform: rotate(180deg);
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 100;
    overflow: hidden;
}

.user-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.15s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

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

.dropdown-item i {
    width: 18px;
    text-align: center;
    color: var(--text-gray);
}

.dropdown-item:hover i {
    color: var(--primary-blue);
}

.dropdown-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 0.25rem 0;
}

.logout-btn:hover {
    background: #fef2f2;
    color: #dc2626;
}

.logout-btn:hover i {
    color: #dc2626;
}

/* Hide user name on mobile */
@media (max-width: 640px) {
    .user-name-nav {
        display: none;
    }

    .user-dropdown-toggle i {
        display: none;
    }

    .user-dropdown-toggle {
        padding: 0.25rem;
    }
}

.btn {
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-align: center;
    display: inline-block;
}

.btn-outline {
    border: 1px solid #e5e7eb;
    color: var(--text-dark);
    background: white;
}

.btn-outline:hover {
    border-color: var(--text-dark);
}

.btn-primary {
    background-color: var(--primary-blue);
    color: white;
    border: 1px solid var(--primary-blue);
}

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

/* Hero Section */
.hero-section {
    padding: 3rem 2rem 4rem;
    margin-top: 0;
    position: relative;
    overflow: hidden;
    background: #ffffff;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(ellipse at center, #1976d2 0%, #42a5f5 30%, #90caf9 60%, #e3f2fd 85%, #ffffff 100%);
    border-radius: 2rem;
    padding: 2rem;
}

.hero-img {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 700;
    color: #4b5563;
    /* Dark gray for the main text part */
    margin-bottom: 2rem;
}

.hero-text h1 .highlight {
    color: var(--primary-blue);
}

.search-box {
    margin-bottom: 2.5rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-md);
    padding: 0.25rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.15);
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 0.75rem;
}

.search-icon {
    color: var(--text-gray);
    font-size: 1rem;
}

.search-input {
    flex: 1;
    padding: 1rem 0;
    border: none;
    outline: none;
    font-size: 1rem;
    color: var(--text-dark);
    font-family: inherit;
    background: transparent;
}

.search-clear-btn {
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-clear-btn:hover {
    background: #f1f5f9;
    color: var(--text-dark);
}

.search-clear-btn.hidden {
    display: none;
}

/* Search Results Dropdown */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    z-index: 100;
    max-height: 350px;
    overflow-y: auto;
}

.search-results.hidden {
    display: none;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: all 0.15s ease;
    border-bottom: 1px solid #f1f5f9;
}

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

.search-result-item:hover,
.search-result-item.active {
    background: #f8fafc;
}

.search-result-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.search-result-icon.hydraulic {
    background: #e1f5fe;
    color: #0288d1;
}

.search-result-icon.electric {
    background: #fffde7;
    color: #f9a825;
}

.search-result-icon.ac {
    background: #e0f7fa;
    color: #00acc1;
}

.search-result-icon.furniture {
    background: #f3e5f5;
    color: #7b1fa2;
}

.search-result-icon.cleaning {
    background: #e3f2fd;
    color: #1976d2;
}

.search-result-icon.painting {
    background: #fff3e0;
    color: #f57c00;
}

.search-result-icon.installation {
    background: #eceff1;
    color: #546e7a;
}

.search-result-icon.repairs {
    background: #efebe9;
    color: #6d4c41;
}

.search-result-icon.handyman {
    background: #e8f5e9;
    color: #388e3c;
}

.search-result-icon.metalwork {
    background: #eceff1;
    color: #37474f;
}

.search-result-icon.carpentry {
    background: #fbe9e7;
    color: #795548;
}

.search-result-icon.leaks {
    background: #e0f7fa;
    color: #00838f;
}

.search-result-info {
    flex: 1;
}

.search-result-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.15rem;
}

.search-result-category {
    font-size: 0.8rem;
    color: var(--text-gray);
}

.search-result-highlight {
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.15) 0%, rgba(25, 118, 210, 0.1) 100%);
    color: var(--primary-blue);
    padding: 0 2px;
    border-radius: 2px;
}

/* No Results & Similar */
.search-no-results {
    padding: 1.5rem;
    text-align: center;
}

.search-no-results-icon {
    font-size: 2.5rem;
    color: #e5e7eb;
    margin-bottom: 0.75rem;
}

.search-no-results-text {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.search-similar-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
    padding: 0.75rem 1.25rem;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
}

.search-similar-title i {
    color: var(--primary-blue);
    margin-right: 0.5rem;
}

.btn-cta {
    background-color: var(--primary-blue);
    color: white;
    font-size: 1.125rem;
    padding: 1rem 2rem;
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: none;
}

.btn-cta:hover {
    background-color: var(--hover-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Hero Image Area */
.hero-image-container {
    position: relative;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.background-shape {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 100%;
    background: linear-gradient(135deg, #e3f2fd 0%, #90caf9 100%);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    filter: blur(40px);
    /* Soften the edges for a more modern look */
    z-index: -1;
    opacity: 0.8;
}

.hero-img {
    height: 100%;
    max-height: 600px;
    object-fit: cover;
    z-index: 1;
    border-radius: 2rem;
    /* Remove white background from JPG */
    mix-blend-mode: multiply;
    /* Soften the placeholder text/img edges */
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

.rating-badge {
    position: absolute;
    top: 40%;
    right: 0;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 2;
    min-width: 180px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.rating-badge .stars {
    color: var(--primary-blue);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    display: flex;
    gap: 2px;
}

.badge-title {
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.badge-score {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background-color: var(--primary-blue);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    width: fit-content;
}

.score-val {
    font-weight: 700;
}

/* Services Section */
.services-section {
    padding: 4rem 0 6rem;
    background: white;
}

.services-section .section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: white;
    border: 1px solid #f3f4f6;
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: #90caf9;
}

.icon-box {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    transition: all 0.3s ease;
}

.service-card:hover .icon-box {
    transform: scale(1.1);
}

/* Custom coloring for icons - 8 services */
/* 1. Hidráulica - Azul água */
.service-card:nth-child(1) .icon-box {
    color: #0288d1;
    background: linear-gradient(135deg, #e1f5fe 0%, #b3e5fc 100%);
}

/* 2. Elétrica - Amarelo */
.service-card:nth-child(2) .icon-box {
    color: #f9a825;
    background: linear-gradient(135deg, #fffde7 0%, #fff9c4 100%);
}

/* 3. Ar Condicionado - Ciano */
.service-card:nth-child(3) .icon-box {
    color: #00acc1;
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
}

/* 4. Montagem de Móveis - Roxo */
.service-card:nth-child(4) .icon-box {
    color: #7b1fa2;
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
}

/* 5. Limpeza - Azul claro */
.service-card:nth-child(5) .icon-box {
    color: #1976d2;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

/* 6. Pintura - Laranja */
.service-card:nth-child(6) .icon-box {
    color: #f57c00;
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
}

/* 7. Instalações - Cinza */
.service-card:nth-child(7) .icon-box {
    color: #546e7a;
    background: linear-gradient(135deg, #eceff1 0%, #cfd8dc 100%);
}

/* 8. Reparos - Marrom */
.service-card:nth-child(8) .icon-box {
    color: #6d4c41;
    background: linear-gradient(135deg, #efebe9 0%, #d7ccc8 100%);
}

/* 9. Marido de Aluguel - Verde */
.service-card:nth-child(9) .icon-box {
    color: #388e3c;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}

/* 10. Serralheria - Cinza escuro */
.service-card:nth-child(10) .icon-box {
    color: #37474f;
    background: linear-gradient(135deg, #eceff1 0%, #b0bec5 100%);
}

/* 11. Marcenaria - Marrom madeira */
.service-card:nth-child(11) .icon-box {
    color: #795548;
    background: linear-gradient(135deg, #fbe9e7 0%, #d7ccc8 100%);
}

/* 12. Caça Vazamentos - Azul petróleo */
.service-card:nth-child(12) .icon-box {
    color: #00838f;
    background: linear-gradient(135deg, #e0f7fa 0%, #80deea 100%);
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 0;
    }

    .navbar-content {
        flex-direction: row;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .nav-links {
        display: none;
        /* Hide nav links on mobile for simplicity in this demo */
    }

    .logo img {
        height: 120px;
    }

    .auth-buttons {
        gap: 0.5rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .hero-section {
        padding: 1rem;
        margin-top: -2rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }

    .hero-text h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }

    .search-box {
        margin-bottom: 1.5rem;
    }

    .search-input {
        padding: 0.875rem 0;
        font-size: 0.95rem;
    }

    .btn-cta {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }

    .hero-image-container {
        height: 350px;
        margin-top: 1rem;
    }

    .hero-img {
        max-height: 350px;
    }

    .rating-badge {
        right: 50%;
        transform: translateX(50%);
        top: 75%;
        width: max-content;
        padding: 0.75rem 1rem;
        min-width: 150px;
    }

    /* Services Section Mobile */
    .services-section {
        padding: 2.5rem 0 4rem;
    }

    .services-section .section-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .service-card {
        padding: 1.25rem;
    }

    .icon-box {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }

    .service-card h3 {
        font-size: 1rem;
    }

    .service-card p {
        font-size: 0.85rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .logo img {
        height: 90px;
    }

    .hero-text h1 {
        font-size: 1.75rem;
    }

    .hero-image-container {
        height: 280px;
    }

    .hero-img {
        max-height: 280px;
    }

    .rating-badge {
        font-size: 0.75rem;
        padding: 0.6rem 0.8rem;
        min-width: 130px;
    }

    .badge-title {
        font-size: 0.7rem;
    }

    .services-grid {
        gap: 0.75rem;
    }

    .service-card {
        padding: 1rem;
    }
}

/* How It Works Section */
.how-it-works-section {
    padding: 4rem 0 6rem;
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
}

.how-it-works-section .section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

/* How It Works Grid */
.how-it-works-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .how-it-works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .how-it-works-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* How Card */
.how-card {
    background: white;
    border-radius: 1rem;
    padding: 1.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.how-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border-color: #e0e7ff;
}

/* How Card Header */
.how-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.how-emoji {
    font-size: 2.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.how-card-header h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
    margin: 0;
}

/* How Card Body */
.how-card p {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.how-card p:last-of-type {
    margin-bottom: 0;
}

.how-card-highlight {
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border-left: 3px solid var(--primary-blue);
    font-weight: 500;
    color: var(--text-dark) !important;
    margin-top: 1rem !important;
}

/* How Card Link */
.how-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-blue);
    transition: all 0.2s ease;
}

.how-card-link:hover {
    color: var(--hover-blue);
    transform: translateX(4px);
}

.how-card-link span {
    font-size: 1.1rem;
}

/* How Card CTA */
.how-card-cta {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #42a5f5 100%);
    border: none;
}

.how-card-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(25, 118, 210, 0.3);
}

.how-card-cta .how-card-header h3 {
    color: white;
}

.how-card-cta p {
    color: rgba(255, 255, 255, 0.9);
}

/* App Buttons */
.app-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.app-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.5rem;
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.app-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.app-btn i {
    font-size: 1.25rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: white;
    padding: 4rem 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 640px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.25rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.2s ease;
}

.footer-social a:hover {
    background: var(--primary-blue);
    transform: translateY(-3px);
}

.footer-links h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: white;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links li i {
    color: var(--primary-blue);
    width: 16px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
}

.footer-links a:hover {
    color: white;
    padding-left: 4px;
}

.footer-bottom {
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* Legal Pages (Privacy, Terms, etc.) */
.legal-page {
    padding: 3rem 0 4rem;
    background: #f9fafb;
    min-height: calc(100vh - 200px);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.legal-content h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.last-updated {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f1f5f9;
}

.legal-section {
    margin-bottom: 2rem;
}

.legal-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.legal-section p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

.legal-section ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.legal-section li {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

@media (max-width: 640px) {
    .legal-content {
        padding: 1.5rem;
        border-radius: 0;
    }

    .legal-content h1 {
        font-size: 1.5rem;
    }
}

.legal-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Cookies Table */
.cookies-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.5rem;
    font-size: 0.9rem;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cookies-table thead {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #42a5f5 100%);
    color: white;
}

.cookies-table th {
    padding: 0.875rem 1rem;
    text-align: left;
    font-weight: 600;
}

.cookies-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    color: var(--text-gray);
}

.cookies-table tbody tr:last-child td {
    border-bottom: none;
}

.cookies-table tbody tr:nth-child(even) {
    background: #f9fafb;
}

.cookies-table tbody tr:hover {
    background: #f1f5f9;
}

@media (max-width: 640px) {
    .cookies-table {
        font-size: 0.8rem;
    }

    .cookies-table th,
    .cookies-table td {
        padding: 0.5rem;
    }
}

/* Mega Menu Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown .nav-link {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.dropdown-arrow {
    font-size: 0.65rem;
    transition: transform 0.3s ease;
    color: var(--text-gray);
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
    color: var(--primary-blue);
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    border-radius: 1rem;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15), 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1000;
    width: max-content;
    min-width: 700px;
    max-width: 900px;
    border: 1px solid #f1f5f9;
}

.nav-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.mega-menu-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding: 1.5rem;
}

.mega-menu-column {
    padding: 0.5rem 1rem;
    border-right: 1px solid #f1f5f9;
}

.mega-menu-column:last-child {
    border-right: none;
}

.mega-menu-column h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-blue);
    display: inline-block;
}

.mega-menu-column a {
    display: block;
    font-size: 0.875rem;
    color: var(--text-gray);
    padding: 0.5rem 0;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.mega-menu-column a:hover {
    color: var(--primary-blue);
    padding-left: 0.5rem;
}

.mega-menu-column .explore-link {
    color: var(--primary-blue);
    font-weight: 600;
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

.mega-menu-column .explore-link:hover {
    color: var(--hover-blue);
}

.mega-menu-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-top: 1px solid #e2e8f0;
    border-radius: 0 0 1rem 1rem;
}

.view-all-services {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.view-all-services:hover {
    color: var(--hover-blue);
    gap: 0.75rem;
}

.view-all-services i {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.view-all-services:hover i {
    transform: translateX(4px);
}

.services-count {
    font-size: 0.85rem;
    color: var(--text-gray);
}

.services-count strong {
    color: var(--primary-blue);
    font-weight: 600;
}

/* Responsive Mega Menu */
@media (max-width: 1024px) {
    .mega-menu {
        min-width: 550px;
    }

    .mega-menu-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .mega-menu-column:nth-child(2) {
        border-right: none;
    }

    .mega-menu-column:nth-child(3) {
        border-top: 1px solid #f1f5f9;
        padding-top: 1rem;
    }

    .mega-menu-column:nth-child(4) {
        border-top: 1px solid #f1f5f9;
        padding-top: 1rem;
    }
}

@media (max-width: 768px) {
    .nav-dropdown {
        display: none;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
    animation: fadeIn 0.2s ease;
}

.modal-overlay.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    border-radius: 1.25rem;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border: none;
    background: #f1f5f9;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-close:hover {
    background: #e2e8f0;
    color: var(--text-dark);
}

.modal-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
}

.modal-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #fef3c7 0%, #fcd34d 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.75rem;
    color: #f59e0b;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.modal-body {
    padding: 0 2rem 1.5rem;
}

.modal-intro {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    text-align: center;
}

.rating-criteria {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.criteria-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}

.criteria-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.criteria-emoji {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.criteria-content strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.criteria-content p {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.5;
    margin: 0;
}

.modal-footer {
    padding: 1rem 2rem 2rem;
    text-align: center;
}

.modal-footer .btn {
    min-width: 140px;
}

@media (max-width: 480px) {
    .modal-content {
        border-radius: 1rem;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .modal-header h2 {
        font-size: 1.25rem;
    }
}

/* Payment Modal Specific Styles */
.modal-icon.payment-icon {
    background: linear-gradient(135deg, #d1fae5 0%, #6ee7b7 100%);
    color: #059669;
}

.payment-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}

.payment-step:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.step-emoji {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.step-content strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.step-content p {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.5;
    margin: 0;
}

.payment-note {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 0.75rem;
    border-left: 4px solid var(--primary-blue);
}

.payment-note i {
    color: var(--primary-blue);
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.payment-note p {
    font-size: 0.85rem;
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
}

/* Support Modal Specific Styles */
.modal-icon.support-icon {
    background: linear-gradient(135deg, #dcfce7 0%, #22c55e 100%);
    color: #166534;
}

.support-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.support-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}

.support-feature:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.feature-emoji {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.feature-content strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.feature-content p {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.5;
    margin: 0;
}

.support-cta {
    margin-top: 1.5rem;
    text-align: center;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

.btn-whatsapp i {
    font-size: 1.25rem;
}

/* Service Detail Modal */
.service-detail-modal {
    max-width: 560px;
    max-height: 90vh;
    padding: 0;
    border-radius: 1.5rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-modal-header {
    text-align: center;
    padding: 2.5rem 2rem 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    flex-shrink: 0;
}

.service-modal-icon {
    width: 80px;
    height: 80px;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #42a5f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: 0 8px 25px rgba(25, 118, 210, 0.3);
}

.service-modal-icon i {
    font-size: 2rem;
    color: white;
}

.service-modal-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.5rem 0;
}

.service-modal-situation {
    font-size: 1.05rem;
    color: var(--text-gray);
    margin: 0;
    font-weight: 400;
}

.service-modal-body {
    padding: 1.5rem 2rem;
    overflow-y: auto;
    flex: 1;
}

.service-modal-section {
    margin-bottom: 1.5rem;
}

.service-modal-section:last-child {
    margin-bottom: 0;
}

.service-modal-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-modal-section h3 i {
    color: var(--primary-blue);
}

/* Subservices list */
.service-subservices {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.service-subservices li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-dark);
    padding: 0.5rem 0.75rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    border-left: 3px solid var(--primary-blue);
}

.service-subservices li i {
    color: #22c55e;
    font-size: 0.8rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

/* Service steps */
.service-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 0.75rem;
}

.service-step .step-number {
    width: 36px;
    height: 36px;
    background: var(--primary-blue);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-step .step-content {
    flex: 1;
}

.service-step .step-content strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.service-step .step-content p {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin: 0;
    line-height: 1.4;
}

/* Service modal footer */
.service-modal-footer {
    padding: 1.5rem 2rem 2rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    flex-shrink: 0;
}

.btn-cta-service {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1.125rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #2196f3 100%);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(25, 118, 210, 0.35);
}

.btn-cta-service:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(25, 118, 210, 0.45);
    background: linear-gradient(135deg, var(--hover-blue) 0%, #1e88e5 100%);
}

.btn-cta-service i {
    font-size: 1rem;
}

/* Responsive for service modal */
@media (max-width: 600px) {
    .service-detail-modal {
        border-radius: 1.25rem 1.25rem 0 0;
        margin-top: auto;
        max-height: 90vh;
    }

    .service-modal-header {
        padding: 1.75rem 1.5rem 1.25rem;
    }

    .service-modal-icon {
        width: 64px;
        height: 64px;
    }

    .service-modal-icon i {
        font-size: 1.5rem;
    }

    .service-modal-header h2 {
        font-size: 1.4rem;
    }

    .service-subservices {
        grid-template-columns: 1fr;
    }

    .service-modal-body {
        padding: 1.25rem 1.5rem;
        max-height: 40vh;
        overflow-y: auto;
    }

    .service-modal-footer {
        padding: 1.25rem 1.5rem 1.5rem;
    }
}