/* =========================================
   VARIÁVEIS & TEMAS (Light & Dark)
   ========================================= */
:root {
    /* Cores da Marca */
    --brand-primary: #00713c;
    --brand-primary-hover: #005a30;
    --brand-secondary: #1d1d1b;

    /* Tema LIGHT (Padrão) */
    /* Backgrounds */
    --bg-page: #F4F7F5;              /* Fundo geral da página */
    --bg-surface: #FFFFFF;            /* Cards e superfícies */
    --bg-surface-alt: #E6EBE8;        /* Superfícies alternadas */
    --bg-section-alt: #FFFFFF;        /* Seções com destaque (serviços, contato) */
    
    /* Textos */
    --text-main: #1d1d1b;             /* Títulos principais */
    --text-body: #4A4A4A;             /* Texto corpo padrão */
    --text-muted: #787878;            /* Texto secundário/subtítulos */
    --text-section: #565656;          /* Títulos de seções específicas */
    --text-inverse: #FFFFFF;          /* Texto em fundos escuros */
    
    --border-color: rgba(0,0,0,0.05);
    --shadow-card: 0 10px 30px rgba(0,0,0,0.05);
    --shadow-float: 0 20px 40px rgba(0,0,0,0.08);

    /* Geometria */
    --container-width: 1200px;
    --radius-card: 24px;
    --radius-btn: 50px;
    --section-curve: 80px;
}

/* Tema DARK */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-page: #121212;
        --bg-surface: #1E1E1E;
        --bg-surface-alt: #252525;
        --bg-section-alt: #FFFFFF;
        
        --text-main: #EAEAEA;
        --text-body: #B0B0B0;
        --text-muted: #909090;
        --text-section: #CCCCCC;
        --text-inverse: #1d1d1b;
        
        --border-color: rgba(255,255,255,0.05);
        --shadow-card: 0 10px 30px rgba(0,0,0,0.3);
        --shadow-float: 0 20px 40px rgba(0,0,0,0.5);
    }
}

/* =========================================
   RESET & BASE
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', 'DM Sans', sans-serif;
    background-color: var(--bg-page);
    color: var(--text-body);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* =========================================
   LAYOUT & RESPONSIVIDADE
   ========================================= */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

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

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

/* =========================================
   TIPOGRAFIA
   ========================================= */
h1, h2, h3, h4 {
    color: var(--text-main);
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-family: 'DM Sans', sans-serif;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 20px;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
}

.highlight {
    color: var(--brand-primary);
}

.highlight-alt {
    color: var(--text-body);
    font-weight: 400;
}

.highlight-alt-2 {
    color: var(--text-muted);
    font-weight: 400;
}

/* =========================================
   NAVEGAÇÃO
   ========================================= */
.nav-header {
    background: transparent;
    padding: 10px 0;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.nav-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: -15%;
    width: 55%;
    height: 100%;
    background: var(--brand-secondary);
    transform: skewX(35deg);
    border-radius: 0 0 0 10px;
    z-index: -1;
}

.nav-header .btn-outline {
    border-color: #FFFFFF;
    color: #FFFFFF;
}

.nav-header .btn-outline:hover {
    background-color: #FFFFFF;
    color: var(--brand-secondary);
    border-color: #FFFFFF;
}

.logo-img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-inverse);
    color: #FFFFFF;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-inverse);
    transition: all 0.3s ease;
}

/* =========================================
   BOTÕES
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 35px;
    border-radius: var(--radius-btn);
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--brand-primary);
    color: #FFFFFF;
    box-shadow: 0 10px 20px rgba(0, 113, 60, 0.25);
}

.btn-primary:hover {
    background-color: var(--brand-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 113, 60, 0.35);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--brand-primary);
    color: var(--brand-primary);
}

.btn-outline:hover {
    background: var(--brand-primary);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 113, 60, 0.25);
}

.full-width {
    width: 100%;
}

/* =========================================
   HERO SECTION
   ========================================= */
header {
    background: url('../assets/img1.jpg') no-repeat center center/cover;
    padding: 250px 0 125px 0;
    position: relative;
    border-bottom-right-radius: var(--section-curve);
}

header .container {
    max-width: 1440px;
}


header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
    border-bottom-right-radius: var(--section-curve);
}

.hero-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    gap: 30px;
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0 auto;
}

.hero-text {
    width: 100%;
    max-width: 55%;
}

.hero-text h1 {
    color: #FFFFFF;
    margin-bottom: 20px;
    font-size: clamp(3rem, 6vw, 4.5rem);
    line-height: 1.1;
    min-height: 1.1em; /* Garante altura mínima para não pular layout */
}

/* Efeito cursor piscante */
.typing-active::after {
    content: '|';
    margin-left: 5px;
    opacity: 1;
    animation: blink 0.7s infinite;
    font-weight: 300;
    color: var(--brand-primary);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}


.hero-tagline {
    color: #FFFFFF;
    border-left: 4px solid var(--brand-primary);
    padding-left: 15px;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 3px;
    display: inline-block;
}

.hero-description {
    font-size: 1.2rem;
    margin: 20px 0 30px 0;
    color: rgba(255, 255, 255, 0.9);
    max-width: 100%;
    line-height: 1.6;
}

.hero-img {
    display: none;
}


.hero-badge img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.badge-info h3 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.badge-info p {
    font-size: 0.85rem;
    color: var(--text-body);
}

/* =========================================
   SEÇÃO DE CONFIANÇA
   ========================================= */
.trust-section {
    padding: 80px 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.trust-content h2 {
    text-align: left;
    margin-bottom: 30px;
    line-height: 1.3;
}

.about-history {
    margin-bottom: 30px;
}

.about-history p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--text-body);
}

.about-history .lead-text {
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 500;
    padding: 20px;
    background: var(--bg-surface-alt);
    border-left: 4px solid var(--brand-primary);
    border-radius: 8px;
    margin-bottom: 25px;
}

.about-history strong {
    color: var(--brand-primary);
    font-weight: 600;
}

.trust-stats {
    display: flex;
    flex-direction: row;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-avatars {
    display: flex;
}

.stat-avatars img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid var(--bg-surface);
    margin-left: -15px;
    object-fit: cover;
}

.stat-avatars img:first-child {
    margin-left: 0;
}

.stat-info h3 {
    font-size: 2rem;
    color: var(--brand-primary);
    margin-bottom: 5px;
}

.stat-info p {
    font-size: 0.9rem;
    color: var(--text-body);
}

.trust-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-card {
    background: var(--bg-surface);
    padding: 30px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
    position: relative;
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-hover));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon svg {
    color: #FFFFFF;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-body);
    margin-bottom: 15px;
}

.feature-link {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-page);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.feature-link:hover {
    background: var(--brand-primary);
}

.feature-link:hover svg {
    color: #FFFFFF;
}

/* =========================================
   SEÇÃO DE SERVIÇOS
   ========================================= */
.services-section {
    padding: 80px 0;
    background: var(--bg-section-alt);
}

.title-services {
    color: var(--text-section);
}

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

.filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background: var(--bg-surface);
    border: 2px solid var(--border-color);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: var(--text-main);
}

.filter-btn:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.search-btn-round {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--brand-primary);
    border: none;
    color: #FFFFFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-btn-round:hover {
    background: var(--brand-primary-hover);
    transform: scale(1.05);
}

/* Cards de Propriedades */
.property-card {
    background: var(--bg-surface);
    /* background:  #252525; */
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

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

.card-image {
    height: 250px;
    position: relative;
    overflow: hidden;
    background: #FFFFFF;
    padding: 60px 20px 20px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image img {
    width: auto;
    height: auto;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.property-card:hover .card-image img {
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--brand-primary);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

.card-details {
    padding: 25px;
}

.card-details h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.card-content {
    padding: 25px;
}

.card-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.card-header h3 {
    font-size: 1.3rem;
    margin: 0;
    line-height: 1.3;
}

.card-description {
    color: var(--text-body);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-details .detail-item,
.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-body);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.detail-item svg {
    flex-shrink: 0;
    color: var(--brand-primary);
}

.card-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--text-body);
    font-size: 0.9rem;
    line-height: 1.4;
}

.card-features li svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--brand-primary);
}

.card-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-body);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.card-features {
    display: flex;
    gap: 15px;
    margin: 15px 0;
}

.card-features span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: var(--text-body);
}

.price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--brand-primary);
    display: block;
    margin: 20px 0 15px 0;
}

.section-cta {
    text-align: center;
    margin-top: 50px;
}

/* =========================================
   SEÇÃO DE DEPOIMENTOS
   ========================================= */
.testimonials-section {
    padding: 80px 0;
}

.testimonials-slider-container {
    width: 100%;
    overflow: hidden;
    margin-top: 50px;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

.testimonial-card {
    background: var(--bg-surface);
    padding: 35px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
    
    /* Carousel sizing */
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
    margin-right: 0; /* Gaps handled by padding if needed, or gap property */
    box-sizing: border-box;
    /* Add spacing between cards visually */
    border-right: 15px solid transparent;
    border-left: 15px solid transparent;
    background-clip: padding-box;
}

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

.testimonial-card.featured {
    background: var(--brand-primary);
    color: #FFFFFF;
    position: relative;
    border-color: var(--brand-primary);
}

.testimonial-card.featured::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid var(--brand-primary);
}

.testimonial-card.featured .testimonial-text,
.testimonial-card.featured h4,
.testimonial-card.featured p {
    color: #FFFFFF;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 25px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h4 {
    font-size: 1rem;
    margin-bottom: 3px;
}

.testimonial-author p {
    font-size: 0.85rem;
    color: var(--text-body);
}

.testimonials-controls {
    display: flex;
    justify-content: flex-start; /* Alinhado à esquerda */
    gap: 15px;
    margin-top: 40px;
    padding-left: 15px; /* Alinha com o primeiro card visualmente */
}

.control-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--bg-surface);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
}

.control-btn:hover svg {
    color: #FFFFFF;
}

/* Responsividade do Carrossel */
@media (max-width: 992px) {
    .testimonial-card {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 768px) {
    .testimonial-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
}


/* =========================================
   SEÇÃO DE CONTATO
   ========================================= */
.contact-section {
    padding: 80px 0;
    background: var(--bg-section-alt);
    border-top-right-radius: var(--section-curve);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-image {
    border-radius: var(--radius-card);
    overflow: hidden;
}

.contact-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.contact-form-wrapper {
    background: var(--bg-surface);
    padding: 50px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-float);
}

.contact-form-wrapper h2 {
    text-align: left;
    margin-bottom: 10px;
}

.contact-form-wrapper > p {
    color: var(--text-body);
    margin-bottom: 30px;
}

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

.form-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-page);
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--brand-primary);
}

.form-input::placeholder {
    color: var(--text-body);
}

select.form-input {
    cursor: pointer;
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

.contact-info {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--text-body);
}

.info-item svg {
    color: var(--brand-primary);
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background: var(--brand-secondary);
    color: var(--text-inverse);
    padding: 60px 0 30px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 20px;
}

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

.social-icons {
    display: flex;
    gap: 15px;
}

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

.social-icon:hover {
    background: var(--brand-primary);
    transform: translateY(-3px);
}

.footer-links h4,
.footer-contact h4 {
    color: var(--text-inverse);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.footer-links a:hover {
    color: var(--brand-primary);
}

.footer-contact address {
    color: rgba(255, 255, 255, 0.7);
    font-style: normal;
    line-height: 1.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* =========================================
   RESPONSIVIDADE
   ========================================= */
@media (max-width: 992px) {
    :root {
        --section-curve: 50px;
    }
    
    .hero-wrapper,
    .trust-grid,
    .contact-layout {
        grid-template-columns: 1fr;
    }
    
    .hero-wrapper {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-curve: 30px;
    }
    
    .nav-menu,
    .nav-actions {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .filters {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 10px;
    }
    
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    header {
        padding: 60px 0 80px 0;
    }
    
    .hero-img img {
        height: 350px;
    }
    
    .hero-badge {
        bottom: 15px;
        right: 15px;
        padding: 15px;
        max-width: 250px;
    }
    
    .contact-image img {
        height: 300px;
    }
    
    .contact-form-wrapper {
        padding: 30px 20px;
    }
}
