/* ============================================
   Gabriela Moreno — Real Estate Website
   Clean minimalist · Teal + Slate Grey
   ============================================ */

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

:root {
    --teal-50: #f0fdfa;
    --teal-100: #ccfbf1;
    --teal-200: #99f6e4;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;
    --teal-700: #0f766e;
    --teal-800: #115e59;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--slate-800);
    background: #ffffff;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.15;
    color: var(--slate-900);
}

.section-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--teal-600);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 24px;
}

.section-title-center {
    text-align: center;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 14px 32px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    text-decoration: none;
}

.btn-primary {
    background: var(--teal-600);
    color: #fff;
}

.btn-primary:hover {
    background: var(--teal-700);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--slate-700);
    border: 1px solid var(--slate-300);
}

.btn-ghost:hover {
    border-color: var(--teal-600);
    color: var(--teal-600);
}

.btn-full {
    width: 100%;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--slate-100);
    transition: all 0.3s var(--ease-out);
}

.nav.scrolled {
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--slate-900);
    letter-spacing: -0.01em;
}

.nav-logo:hover {
    color: var(--teal-600);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--slate-600);
    transition: color 0.25s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--teal-600);
    transition: width 0.3s var(--ease-out);
}

.nav-link:hover {
    color: var(--teal-600);
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle-line {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--slate-700);
    transition: all 0.3s var(--ease-out);
    transform-origin: center;
}

.nav-toggle.active .nav-toggle-line:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle.active .nav-toggle-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .nav-toggle-line:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 72px;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
    padding-top: 40px;
    padding-bottom: 40px;
}

.hero-content {
    padding-right: 20px;
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--teal-600);
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 4.5rem);
    line-height: 1.05;
    margin-bottom: 28px;
    color: var(--slate-900);
}

.hero-title em {
    font-style: italic;
    color: var(--teal-600);
}

.hero-description {
    font-size: 1.05rem;
    color: var(--slate-500);
    line-height: 1.8;
    max-width: 440px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 75vh;
    max-height: 700px;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.hero-image-accent {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--teal-200);
    z-index: 0;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--slate-400);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--teal-400), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.4; transform: scaleY(0.6); }
}

/* --- About --- */
.about {
    padding: 140px 0;
    background: var(--slate-50);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content {
    padding-right: 20px;
}

.about-text {
    font-size: 1rem;
    color: var(--slate-600);
    line-height: 1.85;
    margin-bottom: 20px;
}

.about-divider {
    width: 60px;
    height: 1px;
    background: var(--teal-200);
    margin: 36px 0;
}

.about-stats {
    display: flex;
    gap: 48px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    color: var(--teal-600);
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--slate-500);
    letter-spacing: 0.05em;
}

.about-image img {
    width: 100%;
    height: 620px;
    object-fit: cover;
}

/* --- Services --- */
.services {
    padding: 140px 0;
    background: #fff;
}

.services .container {
    max-width: 1100px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 64px;
}

.service-card {
    padding: 40px 32px;
    border: 1px solid var(--slate-100);
    transition: all 0.4s var(--ease-out);
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--teal-600);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-out);
}

.service-card:hover {
    border-color: var(--teal-100);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
    transform: translateY(-4px);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    color: var(--teal-600);
}

.service-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    margin-bottom: 14px;
    color: var(--slate-900);
}

.service-description {
    font-size: 0.925rem;
    color: var(--slate-500);
    line-height: 1.8;
}

/* --- Areas --- */
.areas {
    padding: 140px 0;
    background: var(--slate-900);
    color: #fff;
}

.areas-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.areas-content {
    padding-right: 20px;
}

.areas-content .section-label {
    color: var(--teal-400);
}

.areas-content .section-title {
    color: #fff;
}

.areas-text {
    font-size: 1rem;
    color: var(--slate-400);
    line-height: 1.85;
    margin-bottom: 36px;
}

.areas-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 32px;
    margin-bottom: 40px;
}

.areas-list li {
    font-size: 0.9rem;
    color: var(--slate-300);
    padding-left: 16px;
    position: relative;
}

.areas-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 5px;
    height: 1px;
    background: var(--teal-500);
}

.areas-image img {
    width: 100%;
    height: 700px;
    object-fit: cover;
    opacity: 0.9;
}

/* --- Testimonial --- */
.testimonial {
    padding: 120px 0;
    background: var(--teal-50);
}

.testimonial-container {
    max-width: 800px;
    text-align: center;
}

.testimonial-quote {
    position: relative;
}

.testimonial-mark {
    color: var(--teal-300);
    margin-bottom: 32px;
}

.testimonial-text {
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 2.5vw, 1.6rem);
    font-style: italic;
    line-height: 1.7;
    color: var(--slate-700);
    margin-bottom: 32px;
}

.testimonial-author {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-style: normal;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--slate-400);
}

/* --- Contact --- */
.contact {
    padding: 140px 0;
    background: #fff;
}

.contact-intro {
    text-align: center;
    font-size: 1rem;
    color: var(--slate-500);
    max-width: 560px;
    margin: 0 auto 64px;
    line-height: 1.8;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--slate-200);
    color: var(--teal-600);
    flex-shrink: 0;
}

.contact-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--slate-400);
    margin-bottom: 6px;
}

.contact-item p,
.contact-item a {
    font-size: 0.95rem;
    color: var(--slate-700);
    line-height: 1.6;
}

.contact-item a:hover {
    color: var(--teal-600);
}

/* Form */
.contact-form-wrapper {
    position: relative;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--slate-500);
}

.form-optional {
    font-weight: 300;
    text-transform: none;
    letter-spacing: 0;
    color: var(--slate-400);
}

.form-input,
.form-textarea {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--slate-800);
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    padding: 14px 16px;
    outline: none;
    transition: all 0.25s ease;
    border-radius: 0;
    -webkit-appearance: none;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--teal-500);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.08);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--slate-300);
}

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

.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 40px;
    gap: 16px;
}

.form-success svg {
    color: var(--teal-500);
}

.form-success h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--slate-900);
}

.form-success p {
    font-size: 0.95rem;
    color: var(--slate-500);
    line-height: 1.7;
}

/* --- Footer --- */
.footer {
    padding: 64px 0 40px;
    background: var(--slate-900);
    color: var(--slate-400);
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: #fff;
    margin-bottom: 8px;
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--slate-500);
}

.footer-nav {
    display: flex;
    gap: 32px;
}

.footer-nav a {
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--slate-400);
    transition: color 0.25s ease;
}

.footer-nav a:hover {
    color: var(--teal-400);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--slate-800);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--slate-500);
}

.footer-disclaimer {
    font-size: 0.75rem;
}

/* --- Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-container,
    .about-container,
    .areas-container {
        gap: 48px;
    }
    
    .services-grid {
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s var(--ease-out), padding 0.4s var(--ease-out);
        border-bottom: 1px solid var(--slate-100);
    }
    
    .nav-menu.open {
        max-height: 300px;
        padding: 24px 0;
    }
    
    .nav-menu li {
        padding: 12px 24px;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .hero {
        min-height: auto;
        padding: 120px 0 80px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-content {
        padding-right: 0;
        order: 1;
    }
    
    .hero-image {
        order: 2;
    }
    
    .hero-image img {
        height: 50vh;
        max-height: 400px;
    }
    
    .hero-image-accent {
        display: none;
    }
    
    .hero-scroll {
        display: none;
    }
    
    .about {
        padding: 80px 0;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .about-content {
        padding-right: 0;
        order: 2;
    }
    
    .about-image {
        order: 1;
    }
    
    .about-image img {
        height: 400px;
    }
    
    .about-stats {
        gap: 32px;
    }
    
    .services {
        padding: 80px 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 32px 28px;
    }
    
    .areas {
        padding: 80px 0;
    }
    
    .areas-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .areas-content {
        padding-right: 0;
        order: 2;
    }
    
    .areas-image {
        order: 1;
    }
    
    .areas-image img {
        height: 400px;
    }
    
    .areas-list {
        grid-template-columns: 1fr;
    }
    
    .testimonial {
        padding: 80px 0;
    }
    
    .contact {
        padding: 80px 0;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .footer-main {
        flex-direction: column;
        gap: 24px;
    }
    
    .footer-nav {
        flex-wrap: wrap;
        gap: 16px 24px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 20px;
    }
}
