/*
Theme Name: Portal Imóveis BA
Theme URI: https://portalimoveisba.com.br
Description: Tema profissional para Portal de Imóveis em Salvador/BA
Author: Portal Imóveis BA
Author URI: https://portalimoveisba.com.br
Version: 1.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: portalimoveisba
Domain Path: /languages
Requires PHP: 7.4
*/

/* ============================================
   VARIÁVEIS DE CORES E DESIGN
   ============================================ */

:root {
    --primary: #0d2b46;
    --secondary: #1a3a52;
    --accent: #d4af37;
    --orange: #ff9500;
    --light: #f5f5f5;
    --text-dark: #333;
    --text-light: #666;
    --border: #ddd;
    --success: #27ae60;
    --warning: #f39c12;
    --error: #e74c3c;
}

/* ============================================
   RESET E BASE
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: #fff;
}

/* ============================================
   HEADER
   ============================================ */

header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    width: 90%;
    max-width: 1800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-size: 1.3rem;
    font-weight: bold;
    color: white;
}

.logo-img {
    height: 60px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
    font-weight: 500;
}

nav a:hover {
    color: var(--accent);
}

.announce-btn {
    background: var(--orange);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
}

.announce-btn:hover {
    background: #ff7a00;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 149, 0, 0.4);
}

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

.login-btn {
    color: white;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-block;
    white-space: nowrap;
    cursor: pointer;
}

.login-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--accent);
    color: var(--accent);
}

/* ============================================
   CONTAINER PRINCIPAL
   ============================================ */

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.hero-content {
    flex: 1;
    text-align: left;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.hero-image {
    flex: 1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image img,
.hero-image svg {
    width: 100%;
    max-width: 550px;
    height: auto;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 3rem 2rem 1rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

footer h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

footer ul {
    list-style: none;
}

footer ul li {
    margin-bottom: 0.7rem;
}

footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

/* ============================================
   MAIN CONTENT
   ============================================ */

main {
    margin-bottom: 3rem;
}

/* ============================================
   BREADCRUMB
   ============================================ */

.breadcrumb {
    background: var(--light);
    padding: 1rem 2rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

/* ============================================
   PAGINATION & NAVIGATION
   ============================================ */

.pagination,
.posts-navigation {
    text-align: center;
    margin: 2rem 0;
}

.pagination a,
.pagination span,
.posts-navigation a {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s;
}

.pagination a:hover,
.posts-navigation a:hover {
    background: var(--primary);
    color: white;
}

.pagination .current {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .hero .container {
        flex-direction: column;
        gap: 2rem;
    }

    .hero-content {
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    nav {
        gap: 1rem;
    }

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

@media (max-width: 768px) {
    header .container {
        flex-wrap: wrap;
        gap: 1rem;
    }

    nav {
        order: 3;
        width: 100%;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .logo-img {
        height: 50px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .announce-btn,
    .login-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    footer .container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    header {
        padding: 0.75rem 1rem;
    }

    .logo-img {
        height: 45px;
    }

    nav {
        gap: 0.5rem;
    }

    .hero h1 {
        font-size: 1.25rem;
    }

    .hero p {
        font-size: 0.9rem;
    }
}
