/* BairesRentals - Estilos Consolidados */

/* CSS Variables for Dark Mode */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e1e5e9;
    --bg-navbar: rgba(255, 255, 255, 0.95);
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-tertiary: #888888;
    --text-light: #cccccc;
    --border-color: #e1e5e9;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.2);
    --shadow-heavy: rgba(0, 0, 0, 0.4);
    --accent-primary: #8200f2;
    --accent-hover: #6e00d1;
    --accent-light: #a855f7;
    --whatsapp: #25D366;
    --whatsapp-hover: #20B954;
}

[data-theme="dark"] {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --bg-navbar: rgba(10, 10, 10, 0.95);
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --text-tertiary: #808080;
    --text-light: #cccccc;
    --border-color: #3a3a3a;
    --shadow-light: rgba(0, 0, 0, 0.3);
    --shadow-medium: rgba(0, 0, 0, 0.5);
    --shadow-heavy: rgba(0, 0, 0, 0.7);
    --accent-primary: #8200f2;
    --accent-hover: #6e00d1;
    --accent-light: #a855f7;
    --whatsapp: #25D366;
    --whatsapp-hover: #20B954;
}

/* Reset básico */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Lexend', 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

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

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 600;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.section-description {
    text-align: left;
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: #fff;
    border-color: var(--accent-primary);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.btn-outline:hover {
    background-color: var(--accent-primary);
    color: #fff;
}

.btn-full {
    width: 100%;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--bg-navbar);
    backdrop-filter: blur(10px);
    z-index: 900 !important;
    padding: .5rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px var(--shadow-light);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 60px;
    width: auto;
    border-radius: .4rem;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 15px;
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}

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

.nav-link.active {
    font-weight: 500;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--accent-primary);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    height: 96vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--shadow-heavy);
    z-index: -1;
}

.hero-content {
    max-width: 1000px;
    padding: 0 2rem;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: -1px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.hero-buttons .btn {
    min-width: 200px;
    justify-content: center;
}

.btn-whatsapp {
    background-color: var(--whatsapp);
    color: #fff;
    border-color: var(--whatsapp);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-whatsapp:hover {
    background-color: var(--whatsapp-hover);
    border-color: var(--whatsapp-hover);
    transform: translateY(-2px);
}

.btn-whatsapp .whatsapp-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background-color: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-title {
    color: var(--accent-primary);
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.feature-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    letter-spacing: 1px;
}

/* About Section */
.about {
    padding: 6rem 0;
    background-color: var(--bg-primary);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Projects Section */
.projects {
    padding: 6rem 0;
    background-color: var(--bg-secondary);
}

.project {
    margin-bottom: 4rem;
}

.project-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

    .project-reverse .project-content {
    direction: rtl;
    }

.project-reverse .project-info {
    direction: ltr;
}

.project-info {
    padding: 2rem;
}

.project-status {
    color: var(--accent-light);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 1rem;
}

.project-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.project-description {
    font-size: 1.1rem;
    color: var(--text-tertiary);
    line-height: 1.5;
    margin-bottom: 2rem;
    letter-spacing: -0.5px;
}

.project-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-light);
}

.project-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Services Section */
.services {
    padding: 6rem 0;
    background-color: var(--bg-primary);
}

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

.properties-subtitle {
    text-align: center;
    color: var(--text-primary);
    font-size: 2rem;
    margin-bottom: 3rem;
    margin-top: 2rem;
}

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

.service {
    padding: 1.6rem;
    border-radius: 12px;
    background-color: var(--bg-secondary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.service:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-light);
}

.service-image {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-primary);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.property-card .service-image {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.property-card .service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.service-title {
    color: var(--text-primary);
    margin-top: 1rem;
    margin-bottom: .5rem;
    font-size: 1.25rem;
    text-transform: uppercase;
    text-align: left;
}

.service-subtitle {
    text-align: left;
}

.service-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: left;
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--whatsapp);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-top: auto;
}

.whatsapp-link:hover {
    background-color: var(--whatsapp-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background-color: var(--bg-secondary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-details {
    margin-top: 2rem;
}

.contact-item {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-item strong {
    color: var(--text-primary);
    font-weight: 600;
}

.contact-item span {
    color: var(--text-secondary);
}

.contact-form {
    background-color: var(--bg-primary);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px var(--shadow-light);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

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

.form-group select {
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background-color: #8200f2;
    color: #fff;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}
@media (min-width: 768px) {
    .footer-logo {
        flex-direction: column;
        align-items: flex-start;
        text-align: center;
        justify-content: center;
        gap: 0;
    }
}

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

.footer-logo p {
    /* color: var(--text-light); */
    font-size: 0.9rem;
    margin: 0;
}
@media (min-width: 768px) {
    .footer-logo p {
        text-align:left
    }
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    /* color: var(--text-light); */
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-light);
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 3rem;
    }
    
    .project-content {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: 0;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-navbar);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        clip-path: inset(0 0 100% 0);
        transition: clip-path 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 2rem 0;
        gap: 1rem;
        box-shadow: 0 4px 20px var(--shadow-medium);
        z-index: 100;
        pointer-events: none;
    }

    .nav-menu .nav-link {
        color: var(--text-primary);
        font-weight: 500;
        padding: 0.5rem 1rem;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active {
        color: var(--accent-primary);
        background-color: rgba(130, 0, 242, 0.1);
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu.active {
        clip-path: inset(0 0 0 0);
        pointer-events: auto;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8.9px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8.9px) rotate(-45deg);
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-reverse .project-content {
        direction: ltr;
    }

    .project-image {
        order: -1;
    }

    .project-reverse .project-image {
        order: 0;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 0 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .features {
        padding: 4rem 0;
    }

    .about,
    .projects,
    .services,
    .contact {
        padding: 4rem 0;
    }

    .feature {
        padding: 1rem;
    }

    .project-info {
        padding: 1rem;
    }

    .contact-form {
        padding: 1.5rem;
    }
    
    .properties-subtitle {
        font-size: 1.5rem;
    }
    
    .service {
        padding: 1.5rem;
    }
    
    .property-card .service-image {
        height: 180px;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Dark Mode Toggle Button */
.theme-toggle {
    position: relative;
    width: 50px;
    height: 25px;
    background-color: var(--bg-tertiary);
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: 2px solid var(--border-color);
    margin-left: auto;
    margin-right: 1.5rem;
    display:none;
}
@media screen and (min-width: 768px) {
    .theme-toggle {
        margin-left: 1rem;
        display: block;
    }
}

.theme-toggle-checkbox {
    display: none;
}

.theme-toggle-slider {
    position: absolute;
    top: 0px;
    left: 2px;
    width: 20px;
    height: 20px;
    background-color: var(--text-primary);
    border-radius: 50%;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle-slider::before {
    content: '☀️';
    font-size: 12px;
}

[data-theme="dark"] .theme-toggle-slider::before {
    content: '🌙';
}

.theme-toggle-checkbox:checked ~ .theme-toggle-slider {
    transform: translateX(23px);
}

[data-theme="dark"] .theme-toggle {
    background-color: var(--bg-secondary);
    border-color: var(--bg-tertiary);
}

/* Animation for fade-in effect */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Smooth scroll offset for fixed navbar */
section {
    scroll-margin-top: 80px;
}