/* ==================== CSS Variables ==================== */
:root {
    --primary: #E53935;
    --primary-dark: #C62828;
    --secondary: #2E7D32;
    --accent: #FF9800;
    --foreground: #1a2332;
    --background: #ffffff;
    --muted: #f5f7fa;
    --muted-foreground: #64748b;
    --border: #e2e8f0;
    --card: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 0.5rem;
    --transition: all 0.3s ease;
}

/* ==================== Reset & Base ==================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--foreground);
    background: var(--background);
    line-height: 1.6;
}

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

ul {
    list-style: none;
}

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

/* ==================== Container ==================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ==================== Buttons ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 20px rgba(229, 57, 53, 0.4);
}

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

.btn-outline {
    background: transparent;
    color: var(--foreground);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background: var(--muted);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-full {
    width: 100%;
}

/* ==================== Top Bar ==================== */
.top-bar {
    background: var(--foreground);
    color: white;
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

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

.phone-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-icons {
    display: flex;
    gap: 0.75rem;
}

.social-icons a {
    color: white;
    opacity: 0.8;
}

.social-icons a:hover {
    color: var(--primary);
    opacity: 1;
}

/* ==================== Navigation ==================== */
.navbar {
    background: var(--background);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--foreground);
}

.logo-accent {
    color: var(--primary);
}

.nav-links {
    display: none;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--foreground);
}

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

.nav-cta {
    display: none;
}

.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--foreground);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    padding: 1rem;
    border-top: 1px solid var(--border);
    background: var(--background);
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    padding: 0.75rem 0;
    font-weight: 500;
    color: var(--foreground);
}

.mobile-menu a:hover {
    color: var(--primary);
}

@media (min-width: 1024px) {
    .nav-links {
        display: flex;
    }
    .nav-cta {
        display: inline-flex;
    }
    .mobile-menu-btn {
        display: none;
    }
}

/* ==================== Hero Section ==================== */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?w=1920&h=1080&fit=crop') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.7) 0%, rgba(26, 35, 50, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    display: grid;
    gap: 3rem;
    padding: 4rem 1rem;
}

.hero-text {
    color: white;
    animation: fadeIn 0.6s ease-out;
}

.hero-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.hero-badge {
    display: inline-block;
    background: white;
    color: var(--foreground);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.hero-badge h1 {
    font-size: 1.75rem;
    font-weight: 700;
}

.hero-description {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    color: var(--foreground);
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
}

.hero-phone svg {
    color: var(--primary);
}

.hero-phone span {
    font-size: 1.5rem;
    font-weight: 700;
}

.quote-form {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    animation: slideInRight 0.6s ease-out 0.2s both;
}

.quote-form h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--foreground);
}

.quote-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quote-form input {
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.quote-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

@media (min-width: 1024px) {
    .hero {
        min-height: 700px;
    }
    .hero-content {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
    .hero-badge h1 {
        font-size: 2.5rem;
    }
    .hero-phone span {
        font-size: 2rem;
    }
}

/* ==================== Stats Section ==================== */
.stats {
    background: var(--muted);
    padding: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-suffix {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-item p {
    color: var(--muted-foreground);
    font-size: 1.125rem;
    margin-top: 0.5rem;
}

@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== Properties Section ==================== */
.properties {
    padding: 4rem 0 6rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 3rem;
}

.properties-grid {
    display: grid;
    gap: 1.5rem;
}

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

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.property-image {
    height: 200px;
    overflow: hidden;
}

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

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

.property-content {
    padding: 1.25rem;
}

.property-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.property-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.property-location svg {
    color: var(--primary);
}

.property-buttons {
    display: flex;
    gap: 0.5rem;
}

.property-buttons .btn {
    flex: 1;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
}

@media (min-width: 640px) {
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .properties-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==================== About Section ==================== */
.about {
    padding: 4rem 0 6rem;
}

.about-grid {
    display: grid;
    gap: 3rem;
}

.about-content p {
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.highlight-item svg {
    color: var(--secondary);
    flex-shrink: 0;
}

.about-card-wrapper {
    background: rgba(229, 57, 53, 0.1);
    border-radius: 1rem;
    padding: 2rem;
}

.about-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.about-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.why-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.why-item:last-child {
    margin-bottom: 0;
}

.why-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    flex-shrink: 0;
}

.why-number.primary {
    background: var(--primary);
}

.why-number.secondary {
    background: var(--secondary);
}

.why-number.accent {
    background: var(--accent);
}

.why-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.why-item p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin: 0;
}

@media (min-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

@media (max-width: 640px) {
    .highlights-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== Services Section ==================== */
.services {
    background: var(--muted);
    padding: 4rem 0 6rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header p {
    color: var(--muted-foreground);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    gap: 1.5rem;
}

.service-card {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: rgba(229, 57, 53, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.service-icon svg {
    color: var(--primary);
}

.service-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.service-card p {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

@media (min-width: 640px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==================== Contact Section ==================== */
.contact {
    padding: 4rem 0 6rem;
}

.contact-grid {
    display: grid;
    gap: 3rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(229, 57, 53, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    color: var(--primary);
}

.contact-item h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: var(--muted-foreground);
}

.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    height: 250px;
    box-shadow: var(--shadow-lg);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.contact-form-wrapper {
    background: var(--muted);
    border-radius: var(--radius);
    padding: 2rem;
}

.contact-form-wrapper h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

#contactForm {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    gap: 1rem;
}

#contactForm input,
#contactForm textarea {
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    background: white;
    transition: var(--transition);
}

#contactForm input:focus,
#contactForm textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

#contactForm textarea {
    resize: vertical;
}

@media (min-width: 640px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ==================== Footer ==================== */
.footer {
    background: var(--foreground);
    color: white;
}

.footer-grid {
    display: grid;
    gap: 2rem;
    padding: 3rem 0;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-logo span {
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-about p {
    opacity: 0.8;
    margin-bottom: 1rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    opacity: 0.8;
}

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

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.footer-contact-item svg {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-contact-item span {
    opacity: 0.8;
}

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

.footer-bottom p {
    opacity: 0.6;
    font-size: 0.875rem;
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 2fr;
    }
}

/* ==================== WhatsApp Button ==================== */
.whatsapp-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

.whatsapp-pulse {
    position: absolute;
    inset: 0;
    background: #25D366;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--foreground);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.whatsapp-btn:hover .whatsapp-tooltip {
    opacity: 1;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid var(--foreground);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

/* ==================== Animations ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* ==================== Scrollbar ==================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--muted);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
