/* ===== CSS VARIABLES ===== */
:root {
    --resital-purple: #4B3891;
    --resital-dark: #2E2466;
    --resital-light: #6B54B8;
    --eco-green: #4CAF50;
    --eco-light: #8BC34A;
    --eco-dark: #2E7D32;
    --bg-light: #F4F7F6;
    --bg-white: #ffffff;
    --text-dark: #1A1A1A;
    --text-muted: #666;
    --border: #e5e5e5;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(75, 56, 145, 0.15);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}

/* ===== RESET ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 140px; }
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 5%; }
.section { padding: 80px 0; }
.section-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--resital-purple);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 12px;
    letter-spacing: 1px;
}
.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70px;
    height: 4px;
    background: var(--eco-green);
    border-radius: 2px;
}
.section-title.centered { text-align: center; }
.section-title.centered::after { left: 50%; transform: translateX(-50%); }
.section-desc {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}
.btn-primary { background: var(--resital-purple); color: white; }
.btn-primary:hover { background: var(--resital-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; color: var(--resital-purple); border-color: var(--resital-purple); padding: 8px 20px; font-size: 12px; }
.btn-outline:hover { background: var(--resital-purple); color: white; }
.btn-cta {
    background: linear-gradient(135deg, var(--eco-green), var(--eco-light));
    color: white;
    padding: 12px 30px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(76, 175, 80, 0.6); }
.btn-full { width: 100%; }

/* ===== HEADER ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    box-shadow: var(--shadow-sm);
}
.header-top {
    background: linear-gradient(135deg, var(--resital-dark), var(--resital-purple));
    padding: 20px 0;
}
.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4%;
    display: grid;
    grid-template-columns: 1.1fr 1fr 0.9fr;
    align-items: center;
    gap: 30px;
}
.logo-link { display: flex; align-items: center; transition: var(--transition); }
.logo-link:hover { transform: scale(1.03); }
.logo-link img {
    height: 95px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
}
.logo-resital { justify-self: start; }
.logo-resital img {
    mix-blend-mode: lighten;
    filter: brightness(1.2) contrast(1.1) drop-shadow(0 2px 8px rgba(0,0,0,0.3));
    max-width: 360px;
}
.logo-eco { justify-self: center; }
.logo-eco img {
    mix-blend-mode: screen;
    filter: brightness(1.1) drop-shadow(0 2px 8px rgba(0,0,0,0.3));
    max-width: 280px;
}
.header-cta {
    justify-self: end;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}
.cta-label {
    color: var(--eco-light);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}
.btn-cta {
    padding: 14px 36px;
    font-size: 15px;
}

.main-nav {
    background: var(--resital-purple);
    border-top: 1px solid rgba(255,255,255,0.1);
}
.main-nav ul {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-around;
    gap: 10px;
}
.main-nav a {
    display: block;
    padding: 15px 20px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
    transition: var(--transition);
}
.main-nav a:hover { color: var(--eco-light); }
.main-nav a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--eco-green);
    transition: var(--transition);
    transform: translateX(-50%);
}
.main-nav a:hover::after { width: 80%; }

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}
.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(100deg, var(--resital-dark) 0%, var(--resital-purple) 45%, #5E8B3A 75%, var(--eco-light) 100%);
    min-height: 520px;
    position: relative;
    overflow: hidden;
    color: white;
    display: flex;
    align-items: center;
}
.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        radial-gradient(ellipse at 75% 40%, rgba(255, 193, 7, 0.35) 0%, transparent 45%),
        radial-gradient(circle at 85% 85%, rgba(139, 195, 74, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 15% 50%, rgba(46, 36, 102, 0.4) 0%, transparent 60%);
}
.hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(139, 195, 74, 0.3), transparent);
    pointer-events: none;
}
.hero-slide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 70px 4%;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 2;
    width: 100%;
}
.hero-content h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: 1px;
}
.hero-content p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    margin-bottom: 30px;
    opacity: 0.95;
}
.hero-content .btn-primary {
    background: white;
    color: var(--resital-purple);
}
.hero-content .btn-primary:hover { background: var(--eco-green); color: white; }

.hero-visual {
    position: relative;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-visual i {
    position: absolute;
    opacity: 0.95;
    filter: drop-shadow(0 6px 20px rgba(0,0,0,0.3));
}
.hero-visual .fa-city {
    font-size: 14rem;
    color: rgba(255,255,255,0.95);
    z-index: 2;
}
.hero-visual .fa-sun {
    font-size: 11rem;
    color: #FFC107;
    top: 8%;
    right: 22%;
    z-index: 1;
    animation: rotate 30s linear infinite;
    filter: drop-shadow(0 0 40px rgba(255, 193, 7, 0.6));
}
.hero-visual .leaf-1 {
    font-size: 8rem;
    color: var(--eco-light);
    bottom: 5%;
    left: 5%;
    transform: rotate(-30deg);
    z-index: 3;
}
.hero-visual .leaf-2 {
    font-size: 6.5rem;
    color: var(--eco-green);
    bottom: 15%;
    right: 8%;
    transform: rotate(45deg);
    z-index: 3;
}
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.hero-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}
.dot.active { background: white; width: 30px; border-radius: 5px; }

/* ===== ABOUT ===== */
.section-about { background: var(--bg-white); }
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    align-items: start;
}
.section-about p { margin-bottom: 15px; color: var(--text-muted); }
.about-icon {
    display: flex;
    gap: 25px;
    margin-top: 30px;
    font-size: 2.5rem;
    color: var(--eco-green);
}
.about-icon i:nth-child(1) { color: var(--resital-purple); }
.about-icon i:nth-child(3) { color: var(--eco-dark); }

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.project-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}
.project-card:hover {
    border-color: var(--eco-green);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.project-img {
    height: 100px;
    background: linear-gradient(135deg, var(--bg-light), #e8f5e9);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--eco-green);
    margin-bottom: 15px;
}
.project-card h3 { font-size: 1rem; color: var(--eco-green); margin-bottom: 4px; }
.project-card p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 10px; }
.project-loc { font-size: 0.8rem; color: var(--resital-purple); }

/* ===== CONSULTANTS ===== */
.section-consultants { background: var(--bg-light); }
.consultant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}
.consultant-card {
    background: white;
    padding: 30px 20px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-top: 4px solid var(--resital-purple);
}
.consultant-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--eco-green);
}
.consultant-avatar {
    width: 90px;
    height: 90px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--resital-purple), var(--eco-green));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
}
.consultant-card h3 { color: var(--resital-purple); margin-bottom: 5px; }
.consultant-role { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 15px; }
.consultant-contact {
    display: flex;
    justify-content: center;
    gap: 12px;
}
.consultant-contact a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--resital-purple);
    transition: var(--transition);
}
.consultant-contact a:hover {
    background: var(--resital-purple);
    color: white;
    transform: scale(1.1);
}

/* ===== LISTINGS ===== */
.section-listings { background: white; }
.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}
.listing-card {
    position: relative;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.listing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.fav-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(75, 56, 145, 0.9);
    color: white;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.fav-btn:hover { background: #e91e63; }
.fav-btn.active i { font-weight: 900; }
.listing-img {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
}
.listing-img-1 { background: linear-gradient(135deg, #8bc34a, #689f38); }
.listing-img-2 { background: linear-gradient(135deg, #7986cb, #3f51b5); }
.listing-img-3 { background: linear-gradient(135deg, #81c784, #388e3c); }
.listing-img-4 { background: linear-gradient(135deg, #4caf50, #1b5e20); }
.listing-img-5 { background: linear-gradient(135deg, #a1887f, #5d4037); }
.listing-img-6 { background: linear-gradient(135deg, #64b5f6, #1976d2); }
.listing-body { padding: 15px; }
.listing-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: white;
}
.tag-sale { background: var(--eco-green); }
.tag-buy { background: var(--resital-purple); }
.tag-rent { background: #FF9800; }
.tag-eco { background: var(--eco-dark); }
.listing-body h3 { font-size: 1rem; color: var(--text-dark); margin-bottom: 4px; }
.listing-body p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 12px; }
.listings-cta { text-align: center; margin-top: 40px; }

/* ===== CONTACT ===== */
.section-contact { background: var(--bg-light); }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 30px;
}
.contact-info, .contact-actions, .contact-form-box {
    background: white;
    padding: 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.contact-info h3, .contact-actions h3, .contact-form-box h3 {
    color: var(--resital-purple);
    font-size: 1rem;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--eco-green);
    letter-spacing: 1px;
}
.info-line {
    display: flex;
    align-items: start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.info-line i { color: var(--eco-green); margin-top: 3px; }
.info-line a { color: var(--text-dark); }
.info-line a:hover { color: var(--resital-purple); }
.map-box {
    margin-top: 20px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.btn-action {
    padding: 18px 12px;
    border-radius: var(--radius-sm);
    color: white;
    font-weight: 600;
    font-size: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    transition: var(--transition);
    letter-spacing: 0.5px;
}
.btn-action i { font-size: 1.5rem; }
.btn-action:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn-consultant { background: linear-gradient(135deg, var(--eco-green), var(--eco-dark)); }
.btn-sale { background: linear-gradient(135deg, var(--resital-purple), var(--resital-dark)); }
.btn-buy { background: linear-gradient(135deg, var(--resital-light), var(--resital-purple)); }
.btn-rent { background: linear-gradient(135deg, #FF9800, #E65100); }

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--transition);
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--eco-green);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
}
.contact-form textarea { resize: vertical; min-height: 100px; }

/* ===== FOOTER ===== */
.site-footer { background: var(--resital-dark); color: white; }
.footer-top {
    max-width: 1280px;
    margin: 0 auto;
    padding: 30px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-nav {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}
.footer-nav a {
    font-size: 0.9rem;
    opacity: 0.8;
    transition: var(--transition);
}
.footer-nav a:hover { opacity: 1; color: var(--eco-light); }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.footer-social a:hover { background: var(--eco-green); transform: translateY(-3px); }
.footer-bottom {
    padding: 18px 5%;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 58px;
    height: 58px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    z-index: 999;
    transition: var(--transition);
    animation: pulse 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); }
@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5); }
    50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.8); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .grid-2 { grid-template-columns: 1fr; gap: 40px; }
    .contact-grid { grid-template-columns: 1fr; }
    .project-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-slide { grid-template-columns: 1fr; text-align: center; }
    .hero-visual { height: 250px; }
    .hero-visual .fa-city { font-size: 6rem; }
}

@media (max-width: 1100px) {
    .logo-link img { height: 75px; }
    .logo-resital img { max-width: 280px; }
    .logo-eco img { max-width: 220px; }
    .header-inner { gap: 15px; }
}

@media (max-width: 900px) {
    .logo-link img { height: 60px; }
    .logo-resital img { max-width: 230px; }
    .logo-eco img { max-width: 180px; }
}

@media (max-width: 768px) {
    .section { padding: 50px 0; }
    .header-top { padding: 12px 0; }
    .header-inner { grid-template-columns: 1fr 1fr auto; gap: 10px; }
    .logo-link img { height: 45px; }
    .logo-resital img { max-width: 150px; }
    .logo-eco img { max-width: 110px; }
    .header-cta { display: none; }
    .mobile-toggle { display: flex; justify-self: end; }
    .main-nav { display: none; }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; padding: 10px 5%; }
    .main-nav a { padding: 12px; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .project-grid { grid-template-columns: 1fr; }
    .action-grid { grid-template-columns: 1fr; }
    .footer-top { flex-direction: column; text-align: center; }
    .hero-content h1 br { display: none; }
}

@media (max-width: 500px) {
    .logo-link img { height: 38px; }
    .logo-resital img { max-width: 120px; }
    .logo-eco img { max-width: 90px; }
}

@media (max-width: 480px) {
    .listing-grid { grid-template-columns: 1fr; }
    .consultant-grid { grid-template-columns: 1fr; }
    .btn { padding: 10px 20px; font-size: 13px; }
    .whatsapp-float { width: 50px; height: 50px; font-size: 1.5rem; bottom: 15px; right: 15px; }
}
