:root {
    --color-primary: #0a3d66;
    --color-secondary: #2d5a3d;
    --color-accent: #006b8f;
    --color-gold: #d4a574;
    --color-text: #1a1a1a;
    --color-light: #f5f5f5;
    --color-border: #e0e0e0;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --color-text: #e0e0e0;
        --color-light: #1a1a1a;
        --color-border: #333;
    }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-light);
}

.demo-notice {
    background: var(--color-light);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.hero {
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.15;
    z-index: 0;
}

.network {
    width: 100%;
    height: 100%;
}

.net-line {
    stroke: white;
    stroke-width: 2;
    opacity: 0.4;
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    animation: drawLine 2s ease-out forwards;
}

.net-line:nth-child(2) { animation-delay: 0.2s; }
.net-line:nth-child(3) { animation-delay: 0.4s; }
.net-line:nth-child(4) { animation-delay: 0.6s; }
.net-line:nth-child(5) { animation-delay: 0.8s; }
.net-line:nth-child(6) { animation-delay: 1s; }

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

.node {
    fill: white;
    opacity: 0.6;
    animation: pulse 3s ease-in-out infinite;
}

.node-center {
    opacity: 1;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { r: 8px; opacity: 0.8; }
    50% { r: 12px; opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 600px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 10vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    animation: slideUp 1s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    padding: 0.875rem 2.5rem;
    background: white;
    color: var(--color-primary);
    border: none;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

section {
    padding: 3rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--color-primary);
}

.about {
    background: white;
}

.about p {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    padding: 2rem;
    background: white;
    border-radius: 4px;
    border-left: 4px solid var(--color-accent);
    text-align: center;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    color: var(--color-accent);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--color-primary);
}

.service-card p {
    font-size: 0.95rem;
    opacity: 0.8;
}

.properties {
    background: white;
}

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

.property-card {
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 1.5rem;
    background: var(--color-light);
    transition: all 0.3s ease;
}

.property-card:hover {
    box-shadow: 0 8px 24px rgba(10, 61, 102, 0.15);
    border-color: var(--color-accent);
}

.property-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--color-accent);
    color: white;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.property-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.property-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-accent);
    margin: 0.75rem 0;
}

.property-details {
    font-size: 0.875rem;
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.property-address {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.property-btn {
    display: block;
    padding: 0.625rem 1.25rem;
    background: var(--color-accent);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 3px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.property-btn:hover {
    background: var(--color-primary);
    transform: scale(1.02);
}

.why-us {
    background: white;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

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

.reason-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    color: var(--color-secondary);
}

.reason h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: var(--color-primary);
}

.reason p {
    opacity: 0.8;
    font-size: 0.95rem;
}

.contact {
    background: var(--color-primary);
    color: white;
    text-align: center;
}

.contact h2 {
    color: white;
}

.contact-methods {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    background: var(--color-accent);
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.contact-btn svg {
    width: 24px;
    height: 24px;
}

.contact-btn.whatsapp-alt {
    background: #25d366;
}

.contact-btn.instagram {
    background: #e4405f;
}

.footer {
    background: var(--color-primary);
    color: white;
    text-align: center;
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer p {
    margin: 0.25rem 0;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    section { padding: 2rem 1.5rem; }
    .properties-grid, .services-grid, .reasons-grid {
        grid-template-columns: 1fr;
    }
    .contact-methods {
        flex-direction: column;
        align-items: stretch;
    }
    .contact-btn {
        justify-content: center;
    }
}

@supports (animation-timeline: view()) {
    section:not(.hero) {
        animation: revealSection linear both;
        animation-timeline: view();
        animation-range: entry 0% cover 30%;
    }
    @keyframes revealSection {
        from { opacity: 0.3; transform: translateY(20px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
