* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-bg: #ecf0f1;
    --dark-text: #2c3e50;
    --border-radius: 8px;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: #f9f9f9;
}

.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    z-index: 9000;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header e Navigation */
header {
    background-color: #3a5570;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

/* Navbar layout */
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* botão hamburger e comportamento mobile */
.nav-toggle {
    display: none; /* só aparece em mobile */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle .hamburger {
    width: 25px;
    height: 3px;
    background-color: white;
    position: relative;
    display: block;
}

.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
    content: '';
    width: 25px;
    height: 3px;
    background-color: white;
    position: absolute;
    left: 0;
    transition: transform 0.3s;
}
.nav-toggle .hamburger::before { top: -8px; }
.nav-toggle .hamburger::after { top: 8px; }

/* quando menu aberto, inverter linhas */
.nav-toggle.open .hamburger {
    background-color: transparent;
}
.nav-toggle.open .hamburger::before {
    transform: translateY(8px) rotate(45deg);
}
.nav-toggle.open .hamburger::after {
    transform: translateY(-8px) rotate(-45deg);
}

/* Seção Hero */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 6rem 2rem;
    text-align: center;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Botões */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #2f89c6;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background-color: white;
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.section-subtitle {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.about-hero {
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    top: -220px;
    right: -140px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 72%);
    pointer-events: none;
}

.about-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-kicker {
    display: inline-block;
    margin-bottom: 0.8rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.34);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.about-section {
    padding: 3.5rem 2rem;
    background-color: #fff;
}

.about-section-alt {
    background-color: var(--light-bg);
}

.about-section h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.about-intro {
    font-size: 1.05rem;
    color: #52606d;
    margin-bottom: 1.5rem;
    max-width: 880px;
}

.about-hero .about-intro {
    color: rgba(255, 255, 255, 0.92);
    max-width: 720px;
}

.about-metrics {
    display: grid;
    gap: 0.9rem;
}

.about-metric {
    padding: 1rem 1.1rem;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.32);
    color: #fff;
    backdrop-filter: blur(2px);
}

.about-metric strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.about-metric span {
    font-size: 0.92rem;
    opacity: 0.95;
}

.about-solutions {
    position: relative;
}

.about-solutions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.about-solution-card {
    position: relative;
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid #d8e3ef;
    background: linear-gradient(165deg, #ffffff 0%, #f5f8fc 100%);
    box-shadow: 0 6px 18px rgba(18, 45, 72, 0.08);
}

.about-solution-card h3 {
    margin-bottom: 0.55rem;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.about-solution-video {
    width: 100%;
    margin-top: 0.75rem;
    border-radius: 8px;
    border: 1px solid #d8e3ef;
    background: #000;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.about-badge {
    display: inline-block;
    margin-bottom: 0.75rem;
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.about-flow-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
}

.about-flow-step {
    background: #fff;
    border-radius: 10px;
    padding: 1rem;
    border: 1px solid #d8e3ef;
    box-shadow: var(--shadow);
}

.about-flow-step span {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--secondary-color);
    color: #fff;
    font-weight: 700;
    margin-bottom: 0.55rem;
}

.about-flow-step h3 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 0.35rem;
}

.about-points-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.about-point-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    padding: 1.2rem;
    box-shadow: var(--shadow);
}

.about-point-card h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.45rem;
}

.about-contact-section {
    padding-top: 3rem;
}

.about-contact-form {
    max-width: 760px;
}

.about-contact-section .about-intro {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.about-contact-form .btn {
    align-self: center;
    min-width: 220px;
    text-align: center;
}

.properties-section {
    padding: 4rem 2rem;
    background-color: white;
}

.properties-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
    justify-content: center;
    gap: 1.5rem;
}

.property-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.ad-card {
    cursor: default;
}

.ad-image {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-placeholder {
    font-size: 3rem;
    color: #fff;
}

.ad-price {
    color: var(--primary-color);
    font-size: 1.05rem;
}

.ad-card .property-actions {
    margin-top: 0.2rem;
}

.property-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background-color: #000;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.card-viewer-360 {
    width: 100%;
    height: 200px;
    position: relative;
    cursor: grab;
    transition: all 0.3s;
}

.card-viewer-360:active {
    cursor: grabbing;
}

.card-viewer-360 canvas {
    border-radius: 0 !important;
    display: block;
}

.viewer-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.82);
    color: var(--primary-color);
    font-size: 1.8rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 4;
    transition: background-color 0.2s, transform 0.2s;
}

.viewer-arrow:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-50%) scale(1.05);
}

.viewer-arrow-left {
    left: 8px;
}

.viewer-arrow-right {
    right: 8px;
}

.property-card:hover .property-image img {
    transform: scale(1.05);
}

.property-info {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.property-card h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin: 0;
}

.property-location {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin: 0;
}

.property-price {
    color: #e74c3c;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0.5rem 0 0 0;
}

.property-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    padding: 1rem;
    background-color: white;
    border-radius: var(--border-radius);
    margin: 1rem 0 0 0;
}

.meta-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background-color: transparent;
    color: var(--dark-text);
    border: none;
    padding: 0;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
}

.meta-pill svg {
    width: 24px;
    height: 24px;
    color: #7f8c8d;
    flex-shrink: 0;
}

.meta-pill span {
    font-size: 0.75rem;
    line-height: 1.2;
}

.property-actions {
    display: flex;
    gap: 0.6rem;
    margin-top: auto;
}

.property-actions .btn {
    flex: 1;
    text-align: center;
    padding: 10px 12px;
}

/* Seção Tour */
.tour-section {
    padding: 4rem 2rem;
    background-color: white;
    width: 100%;
    box-sizing: border-box;
}

.tour-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.subtitle {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.tour-container {
    background-color: #000;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-top: 2rem;
    /* make the viewer larger on desktop */
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    /* height will be determined by iframe */
}

.tour-container iframe {
    display: block;
    width: 100%;
    height: 80vh; /* make iframe taller, fills most of viewport */
}

/* Seção Info */
.info-section {
    padding: 4rem 2rem;
    background-color: var(--light-bg);
}

.info-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.feature-card p {
    color: #7f8c8d;
}

/* Seção Contato */
.contact-section {
    padding: 4rem 2rem;
    background-color: white;
}

.contact-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.visit-datetime-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: -0.8rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.card-contact-form {
    max-width: 100%;
    margin: 0.2rem 0 0;
    gap: 0.6rem;
}

.card-contact-form input,
.card-contact-form textarea {
    padding: 9px;
    font-size: 0.9rem;
}

.card-contact-form .btn {
    width: 100%;
    padding: 10px 14px;
}

.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    background: rgba(44, 62, 80, 0.97);
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.cookie-banner__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.2rem;
}

.cookie-banner__text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.cookie-banner__actions {
    display: flex;
    gap: 0.6rem;
    flex-shrink: 0;
}

.cookie-banner__actions .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem;
}

/* Header logo */
.logo {
    display: flex;
    align-items: center;
    margin: 0;
}

.logo-home-link,
.logo-home-link:visited {
    color: inherit;
    text-decoration: none;
}

.logo-image-link {
    display: inline-flex;
    align-items: center;
}

.site-logo-image {
    display: block;
    width: auto;
    height: 40px;
    max-width: min(56vw, 460px);
}

.logo-home-link:hover {
    opacity: 0.88;
}

/* Responsivo */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
        position: absolute;
        top: 60px;
        right: 20px;
        background-color: #3a5570;
        flex-direction: column;
        padding: 1rem;
        border-radius: var(--border-radius);
        display: none; /* escondido por padrão */
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    header {
        padding: 0.5rem 0;
    }

    .site-logo-image {
        height: 30px;
        max-width: 74vw;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .properties-section h2,
    .info-section h2,
    .contact-section h2 {
        font-size: 2rem;
    }

    .about-section h2 {
        font-size: 1.6rem;
    }

    .about-intro {
        font-size: 1rem;
    }

    .about-hero-grid {
        grid-template-columns: 1fr;
    }

    .about-solutions-grid {
        grid-template-columns: 1fr;
    }

    .about-flow-grid {
        grid-template-columns: 1fr;
    }

    /* Reduce padding on mobile to prevent overflow */
    .properties-section,
    .info-section,
    .contact-section {
        padding: 2rem 1rem;
    }

    .property-actions {
        flex-direction: column;
    }

    .property-meta {
        grid-template-columns: repeat(2, 1fr);
    }

    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .cookie-banner__content {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner__actions {
        justify-content: flex-end;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .whatsapp-float {
        right: 14px;
        bottom: 14px;
        width: 54px;
        height: 54px;
    }
}
