:root {
    --color-dark: #2a2a2a;
    --color-dark-gray: #3d3d3d;
    --color-green: #3d5c3d;
    --color-copper: #b87333;
    --color-white: #f5f1e8;
    --color-border: #e0d5c8;
    --color-text: #2a2a2a;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --color-text: #f5f1e8;
        --color-border: #4a4a4a;
    }
}

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

html { scroll-behavior: smooth; }

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

@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:wght@700&family=Work+Sans:wght@400&display=swap');

.demo-notice {
    background: var(--color-white);
    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-dark) 0%, var(--color-dark-gray) 100%);
    color: white;
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

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

.building-stack {
    animation: sediment 3s ease-out forwards;
}

@keyframes sediment {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

.connection-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawConnection 2.5s ease-out forwards;
}

.connection-line:nth-child(n+7) { animation-delay: 0.3s; }

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

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

.hero-title {
    font-family: 'Crimson Text', serif;
    font-size: clamp(2.5rem, 10vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    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.7;
}

.cta-button {
    display: inline-block;
    padding: 0.875rem 2.5rem;
    background: var(--color-copper);
    color: white;
    border: none;
    border-radius: 3px;
    font-family: 'Work Sans', 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(184, 115, 51, 0.3);
}

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

h2 {
    font-family: 'Crimson Text', serif;
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--color-dark);
}

.about {
    background: white;
}

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

.services {
    background: var(--color-white);
}

.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: 3px;
    border-left: 4px solid var(--color-copper);
    text-align: center;
    transition: all 0.3s ease;
}

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

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

.service-card h3 {
    font-family: 'Crimson Text', serif;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--color-dark);
}

.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: 3px;
    padding: 1.5rem;
    background: var(--color-white);
    transition: all 0.3s ease;
}

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

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

.property-card h3 {
    font-family: 'Crimson Text', serif;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-dark);
}

.property-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-copper);
    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-green);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 2px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

.why-us {
    background: var(--color-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-copper);
}

.reason h3 {
    font-family: 'Crimson Text', serif;
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: var(--color-dark);
}

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

.contact {
    background: var(--color-dark);
    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-copper);
    color: white;
    border-radius: 3px;
    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.3);
}

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

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

.footer {
    background: var(--color-dark);
    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; }
}
