/*
Theme Name: Condo Service Theme
Theme URI: https://manus.im
Author: Manus
Description: Tema personalizado para o sistema de agregador de mão de obra para condomínios.
Version: 1.0.0
Text Domain: condo-service-theme
*/

:root {
    --primary-color: #1e3a5f;
    --secondary-color: #10b981;
    --bg-light: #fff;
    --border-color: #ccc;
    --text-main: #333;
    --font-heading: 'Sora', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    background-color: #f4f7f9;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
}

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

.site-header .logo img {
    margin: 0;
    width: 230px;
    height: auto;
}

/****************** header***********************************/



/* ==========================================
   RESET BÁSICO + VARIÁVEIS
========================================== */
:root {
    --primary: #1E3A5F;
    --secondary: #10B981;
    --light: #f8f9fa;
    --gray: #666;
    --border: #eee;
}

.site-header {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    position: relative;
    z-index: 1000;
}

.containerHeader {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 48px;
    width: auto;
    display: block;
}

/* Hambúrguer */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.35s ease;
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Botões */
.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 6px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.btn-action:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}


.btn-action[data-type="login"] {
    background: var(--secondary) !important;
}

.btn-logout {
    color: var(--gray);
    font-size: 0.92rem;
    text-decoration: none;
    padding: 8px 12px;
}

/* Desktop - user-menu */
.user-menu {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

/* ==========================================
   MOBILE
========================================== */
@media (max-width: 768px) {

    .hamburger {
        display: flex;
    }

    .main-nav {
        position: fixed;
        inset: 0;
        background: rgba(30, 58, 95, 0.96);
        /* var(--primary) com opacidade */
        color: white;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
        opacity: 0;
        pointer-events: none;
    }

    .main-nav.active {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

    .user-menu {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .btn-action,
    .btn-logout {
        width: 80%;
        max-width: 320px;
        padding: 14px 20px;
        font-size: 1.1rem;
        justify-content: center;
    }

    .btn-logout {
        color: white;
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 6px;
        margin-top: 30px;
    }

    /* Esconde os botões normais quando menu está fechado */
    .main-nav:not(.active) .user-menu {
        display: none;
    }
}

/* Overlay escurecido opcional no body quando menu aberto */
body.menu-open {
    overflow: hidden;
}
/****************************************************/




/* Hero Section */
.hero {
    background: var(--primary-color);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.hero-stats {
    justify-content: center;
    gap: 17px;
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(119px, 1fr));
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* Search Box */
.search-container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: -50px auto 0;
    color: var(--text-main);
}

.search-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.search-form input,
.search-form select {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    min-width: 200px;
}

.search-form button {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

/* Filters */
.filters-bar {
    margin: 40px 0 20px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.filter-link {
    background: white;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    white-space: nowrap;
    font-size: 0.9rem;
}

.filter-link.active {
    background: var(--primary-color);
    color: white;
}

/* Cards */
.providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.provider-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.provider-card:hover {
    transform: translateY(-5px);
}

.provider-info {
    padding: 20px;
}

.provider-category {
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 0.8rem;
    text-transform: uppercase;
}

/* Forms Access */
.admin-actions {
    background: #eef2f7;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.action-links {
    display: flex;
    gap: 15px;
}

.btn-action {
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    display: inline-block;
    width: fit-content;
}

/* Modal Styles */
#condo-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    backdrop-filter: blur(5px);
}

#condo-modal-container {
    position: relative;
    background: white;
    width: 90%;
    max-width: 800px;
    margin: 50px auto;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    max-height: 85vh;
    overflow-y: auto;
}

#close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
}

#condo-modal-content {
    padding: 40px;
}

/* List View Styles */
.providers-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.provider-list-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr 1fr;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

@media (max-width: 768px) {
    .provider-list-item {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Modern Form Styles */
.condo-form h3 {
    font-size: 1.2rem;
    margin: 25px 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    color: var(--primary-color);
}

.condo-form p {
    margin-bottom: 15px;
}

.condo-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #555;
}

.condo-form input[type="text"],
.condo-form input[type="email"],
.condo-form input[type="password"],
.condo-form input[type="number"],
.condo-form input[type="date"],
.condo-form select,
.condo-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: #fff;
}

.condo-form input:focus,
.condo-form select:focus,
.condo-form textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    outline: none;
}

.condo-form input[type="submit"] {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    font-size: 1rem;
    margin-top: 20px;
    transition: background 0.3s;
}

.condo-form input[type="submit"]:hover {
    background: #0d9488;
}