/* ============================================
   Rede Imobiliaria Campinas - Styles
   Paleta: Azul imobiliario, verde, branco
   ============================================ */

:root {
    --primary: #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --accent: #15803d;
    --accent-light: #22c55e;
    --white: #ffffff;
    --off-white: #f8fafc;
    --gray-light: #e2e8f0;
    --gray: #64748b;
    --gray-dark: #334155;
    --black: #0f172a;
    --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', 'Segoe UI', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--black);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

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

a:hover {
    color: var(--primary-light);
}

img {
    max-width: 100%;
    height: auto;
}

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

/* ---- HEADER ---- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-light);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary);
    font-weight: 700;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-family: var(--font-heading);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.logo-city {
    font-size: 12px;
    color: var(--gray);
    font-weight: 400;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--gray-dark);
    font-size: 14px;
    font-weight: 500;
    padding: 4px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

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

.nav-link:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--black);
    position: relative;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--black);
    transition: var(--transition);
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    bottom: -7px;
}

.menu-toggle.active .hamburger {
    background: transparent;
}

.menu-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.menu-toggle.active .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* ---- HERO ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #0c2461 100%);
    padding-top: 72px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.15);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 60px 20px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--accent-light);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(21, 128, 61, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

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

.btn-whatsapp {
    background: #25d366;
    color: var(--white);
    padding: 16px 40px;
}

.btn-whatsapp:hover {
    background: #128c7e;
    color: var(--white);
}

.btn-full {
    width: 100%;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

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

.stat-label {
    font-size: 14px;
    opacity: 0.8;
}

/* ---- SECTIONS ---- */
.section {
    padding: 80px 0;
}

.section:nth-child(even) {
    background: var(--off-white);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--primary);
    text-align: center;
    margin-bottom: 12px;
}

.section-desc {
    text-align: center;
    color: var(--gray);
    max-width: 650px;
    margin: 0 auto 48px;
    font-size: 15px;
}

/* ---- IMOVEIS GRID ---- */
.imoveis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

.imovel-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.imovel-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.imovel-image {
    height: 200px;
    position: relative;
}

.imovel-ap {
    background: linear-gradient(135deg, #93c5fd, #3b82f6);
}

.imovel-casa {
    background: linear-gradient(135deg, #86efac, #22c55e);
}

.imovel-comercial {
    background: linear-gradient(135deg, #fcd34d, #f59e0b);
}

.imovel-terreno {
    background: linear-gradient(135deg, #a5b4fc, #6366f1);
}

.imovel-info {
    padding: 24px;
}

.imovel-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent);
    color: var(--white);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.imovel-info h3 {
    font-size: 18px;
    color: var(--black);
    margin-bottom: 8px;
}

.imovel-info p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 16px;
}

.imovel-detalhes {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.imovel-detalhes span {
    font-size: 13px;
    color: var(--gray);
    background: var(--off-white);
    padding: 4px 10px;
    border-radius: 6px;
}

.imovel-preco {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
}

/* ---- SOBRE ---- */
.sobre-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.sobre-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--primary);
}

.sobre-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.sobre-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.sobre-card h3 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 12px;
}

.sobre-card p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.8;
}

.sobre-content {
    max-width: 900px;
    margin: 0 auto;
}

.sobre-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary);
    margin: 32px 0 16px;
}

.sobre-content p {
    font-size: 15px;
    color: var(--gray-dark);
    line-height: 1.9;
    margin-bottom: 16px;
}

.autoridade-links {
    margin-top: 40px;
    padding: 24px;
    background: var(--off-white);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--accent);
}

.autoridade-links h4 {
    font-size: 15px;
    color: var(--black);
    margin-bottom: 12px;
}

.autoridade-links ul {
    list-style: none;
}

.autoridade-links li {
    margin-bottom: 8px;
}

.autoridade-links a {
    font-size: 14px;
    color: var(--primary);
    border-bottom: 1px dotted var(--primary-light);
}

.autoridade-links a:hover {
    color: var(--accent);
}

/* ---- BAIRROS ---- */
.bairros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.bairro-card {
    background: var(--white);
    padding: 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--accent);
}

.bairro-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.bairro-card h3 {
    font-size: 17px;
    color: var(--primary);
    margin-bottom: 8px;
}

.bairro-card p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.7;
}

/* ---- CONTATO ---- */
.contato-section {
    background: var(--off-white);
}

.contato-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: start;
}

.contato-info h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.contato-info p {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 24px;
}

.contato-lista {
    list-style: none;
    margin-bottom: 24px;
}

.contato-lista li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--gray-dark);
    border-bottom: 1px solid var(--gray-light);
}

.contato-form {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contato-form h3 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-dark);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--black);
    transition: var(--transition);
    background: var(--off-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: var(--white);
}

/* ---- FOOTER ---- */
.footer {
    background: var(--black);
    color: var(--gray-light);
    padding: 60px 0 0;
}

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

.footer-col h4 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 16px;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.7;
}

.footer-col ul {
    list-style: none;
}

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

.footer-col a {
    color: var(--gray-light);
    font-size: 14px;
}

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

.footer-bottom {
    text-align: center;
    padding: 24px 0;
}

.footer-bottom p {
    font-size: 13px;
}

/* ---- WHATSAPP FLOAT ---- */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25d366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: #128c7e;
    color: var(--white);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav {
        position: fixed;
        top: 72px;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 20px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        box-shadow: var(--shadow);
    }

    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
    }

    .nav-link {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid var(--gray-light);
        font-size: 16px;
    }

    .hero {
        min-height: auto;
        padding-top: 72px;
        padding-bottom: 40px;
    }

    .hero-content {
        padding: 40px 16px;
    }

    .hero-stats {
        gap: 24px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .contato-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

    .imoveis-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- ANIMATIONS ---- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}