/* ============================================
   Milena Schroeder — Real Estate Website
   Classic & Elegant · Emerald + Cream
   ============================================ */

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

:root {
    --emerald-900: #0B2B1A;
    --emerald-800: #1B4332;
    --emerald-700: #2D6A4F;
    --emerald-600: #40916C;
    --emerald-500: #52B788;
    --cream-50: #FAF8F5;
    --cream-100: #F5F0E8;
    --cream-200: #EDE5D8;
    --cream-300: #E0D5C4;
    --charcoal: #1A1A1A;
    --text-dark: #2C2C2C;
    --text-medium: #5A5A5A;
    --text-light: #8A8A8A;
    --white: #FFFFFF;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Lato', 'Helvetica Neue', Arial, sans-serif;
    --shadow-sm: 0 1px 3px rgba(11, 43, 26, 0.08);
    --shadow-md: 0 4px 20px rgba(11, 43, 26, 0.1);
    --shadow-lg: 0 8px 40px rgba(11, 43, 26, 0.12);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background-color: var(--cream-50);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

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

/* ── Typography ── */
.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--emerald-700);
    margin-bottom: 12px;
}

.section-eyebrow--light {
    color: var(--cream-200);
}

.section-heading {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.2;
    color: var(--emerald-800);
    margin-bottom: 20px;
}

.section-heading--light {
    color: var(--white);
}

.section-subtitle {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    color: var(--text-medium);
    max-width: 600px;
    line-height: 1.7;
}

.section-subtitle--light {
    color: var(--cream-200);
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 14px 32px;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn--primary {
    background: var(--emerald-700);
    color: var(--white);
    border-color: var(--emerald-700);
}

.btn--primary:hover {
    background: var(--emerald-800);
    border-color: var(--emerald-800);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--ghost {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn--ghost:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.btn--dark {
    background: var(--emerald-800);
    color: var(--white);
    border-color: var(--emerald-800);
}

.btn--dark:hover {
    background: var(--emerald-900);
    border-color: var(--emerald-900);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--lg {
    padding: 18px 42px;
    font-size: 0.938rem;
}

.btn--full {
    width: 100%;
}

/* ── Header ── */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 24px;
    transition: all var(--transition);
}

.header.scrolled {
    background: rgba(250, 248, 245, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
    transition: color var(--transition);
}

.header.scrolled .header__logo {
    color: var(--emerald-800);
}

.header__logo-icon {
    display: flex;
    align-items: center;
}

.header__logo-text {
    letter-spacing: 0.02em;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.nav__link {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    transition: color var(--transition);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width var(--transition);
}

.nav__link:hover::after,
.nav__link:focus::after {
    width: 100%;
}

.nav__link:hover {
    color: var(--white);
}

.header.scrolled .nav__link {
    color: var(--text-medium);
}

.header.scrolled .nav__link:hover {
    color: var(--emerald-700);
}

.nav__link--cta {
    padding: 10px 22px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.nav__link--cta:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.7);
}

.header.scrolled .nav__link--cta {
    border-color: var(--emerald-700);
    color: var(--emerald-700);
}

.header.scrolled .nav__link--cta:hover {
    background: var(--emerald-700);
    color: var(--white);
}

/* Mobile Nav Toggle */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav__toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition);
}

.header.scrolled .nav__toggle-bar {
    background: var(--emerald-800);
}

.nav__toggle.active .nav__toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.nav__toggle.active .nav__toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Hero ── */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(11, 43, 26, 0.72) 0%,
        rgba(27, 67, 50, 0.55) 50%,
        rgba(11, 43, 26, 0.65) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    padding-top: 80px;
}

.hero__eyebrow {
    color: var(--cream-200);
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.hero__headline {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5.5vw, 4.25rem);
    font-weight: 300;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease 0.15s forwards;
    opacity: 0;
}

.hero__subheadline {
    font-size: 1.125rem;
    color: var(--cream-200);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 560px;
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    animation: fadeInUp 0.8s ease 0.45s forwards;
    opacity: 0;
}

.hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

.hero__scroll svg {
    animation: bounce 2s ease infinite;
}

/* ── About ── */
.about {
    padding: 120px 0;
    background: var(--cream-50);
}

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

.about__image-wrap {
    position: relative;
}

.about__image-wrap img {
    width: 100%;
    height: 560px;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.about__image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    border: 2px solid var(--emerald-600);
    border-radius: var(--radius-md);
    z-index: -1;
}

.about__content {
    max-width: 520px;
}

.about__text {
    font-size: 1.0625rem;
    color: var(--text-medium);
    line-height: 1.85;
    margin-bottom: 20px;
}

.about__stats {
    display: flex;
    align-items: center;
    gap: 32px;
    margin: 40px 0;
    padding: 32px 0;
    border-top: 1px solid var(--cream-300);
    border-bottom: 1px solid var(--cream-300);
}

.stat__number {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--emerald-700);
    line-height: 1;
    margin-bottom: 8px;
}

.stat__label {
    font-size: 0.8125rem;
    color: var(--text-light);
    letter-spacing: 0.04em;
    line-height: 1.5;
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: var(--cream-300);
}

/* ── Services ── */
.services {
    padding: 120px 0;
    background: var(--emerald-800);
}

.services__header {
    text-align: center;
    margin-bottom: 64px;
}

.services__header .section-eyebrow {
    color: var(--emerald-500);
}

.services__header .section-subtitle {
    margin: 0 auto;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 40px 32px;
    transition: all var(--transition);
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.service-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald-500);
    margin-bottom: 24px;
}

.service-card__title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 12px;
}

.service-card__text {
    font-size: 0.9375rem;
    color: var(--cream-200);
    line-height: 1.75;
}

/* ── Areas ── */
.areas {
    padding: 120px 0;
    background: var(--cream-50);
}

.areas__header {
    text-align: center;
    margin-bottom: 64px;
}

.areas__header .section-subtitle {
    margin: 0 auto;
}

.areas__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.area-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.area-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.area-card:hover img {
    transform: scale(1.05);
}

.area-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 43, 26, 0.85) 0%, rgba(11, 43, 26, 0.2) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
    transition: background var(--transition);
}

.area-card:hover .area-card__overlay {
    background: linear-gradient(to top, rgba(11, 43, 26, 0.9) 0%, rgba(11, 43, 26, 0.3) 60%, rgba(11, 43, 26, 0.1) 100%);
}

.area-card__title {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 8px;
}

.area-card__text {
    font-size: 0.9375rem;
    color: var(--cream-200);
    line-height: 1.7;
    max-width: 360px;
}

/* ── Testimonials ── */
.testimonials {
    padding: 120px 0;
    background: var(--cream-100);
}

.testimonials__header {
    text-align: center;
    margin-bottom: 64px;
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 40px 32px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.testimonial-card__stars {
    display: flex;
    gap: 4px;
    color: var(--emerald-600);
    margin-bottom: 20px;
}

.testimonial-card__text {
    font-family: var(--font-serif);
    font-size: 1.1875rem;
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.75;
    margin-bottom: 24px;
}

.testimonial-card__author {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--emerald-700);
    letter-spacing: 0.04em;
}

/* ── CTA ── */
.cta {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.cta__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

.cta__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(11, 43, 26, 0.82) 0%,
        rgba(27, 67, 50, 0.72) 100%
    );
}

.cta__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.cta__headline {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 300;
    line-height: 1.2;
    color: var(--white);
    margin-bottom: 20px;
}

.cta__text {
    font-size: 1.1rem;
    color: var(--cream-200);
    margin-bottom: 40px;
    line-height: 1.8;
}

/* ── Contact ── */
.contact {
    padding: 120px 0;
    background: var(--cream-50);
}

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

.contact__info {
    max-width: 480px;
}

.contact__text {
    font-size: 1.0625rem;
    color: var(--text-medium);
    line-height: 1.85;
    margin-bottom: 40px;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact__detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 4px;
}

.contact__detail-value {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--emerald-800);
    line-height: 1.6;
    transition: color var(--transition);
}

.contact__detail-value:hover {
    color: var(--emerald-600);
}

.contact__detail-value a {
    color: inherit;
}

.contact__detail-value a:hover {
    color: var(--emerald-600);
}

/* Form */
.contact__form-wrap {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-medium);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--cream-50);
    border: 1.5px solid var(--cream-200);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    outline: none;
}

.form-input:focus {
    border-color: var(--emerald-600);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(82, 183, 136, 0.15);
}

.form-input::placeholder {
    color: var(--text-light);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235A5A5A' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

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

.form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px;
    text-align: center;
    color: var(--emerald-700);
}

.form-success svg {
    color: var(--emerald-600);
}

.form-success p {
    font-size: 1rem;
    line-height: 1.6;
}

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

.footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    text-align: center;
}

.footer__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
}

.footer__tagline {
    font-size: 0.875rem;
    color: var(--cream-300);
    letter-spacing: 0.04em;
}

.footer__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
}

.footer__nav a {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cream-300);
    transition: color var(--transition);
}

.footer__nav a:hover {
    color: var(--white);
}

.footer__copy {
    font-size: 0.8125rem;
    color: var(--cream-300);
    opacity: 0.7;
}

/* ── Animations ── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(6px);
    }
    60% {
        transform: translateY(3px);
    }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ── Responsive ── */
@media (max-width: 1024px) {
    .about__inner {
        gap: 48px;
    }

    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials__grid .testimonial-card:last-child {
        grid-column: span 2;
        max-width: 50%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav__toggle {
        display: flex;
    }

    .nav__list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--emerald-900);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 28px;
        transition: right var(--transition);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
    }

    .nav__list.open {
        right: 0;
    }

    .nav__link {
        color: var(--cream-200);
        font-size: 1rem;
    }

    .nav__link:hover {
        color: var(--white);
    }

    .nav__link--cta {
        border-color: rgba(255, 255, 255, 0.3);
        color: var(--white);
    }

    .nav__overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .nav__overlay.active {
        display: block;
    }

    .hero__headline {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .about__inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about__image-wrap img {
        height: 400px;
    }

    .about__image-accent {
        display: none;
    }

    .about__stats {
        flex-wrap: wrap;
        gap: 24px;
    }

    .services__grid {
        grid-template-columns: 1fr;
    }

    .areas__grid {
        grid-template-columns: 1fr;
    }

    .testimonials__grid {
        grid-template-columns: 1fr;
    }

    .testimonials__grid .testimonial-card:last-child {
        grid-column: span 1;
        max-width: 100%;
    }

    .contact__inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact__form-wrap {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .hero {
        min-height: 600px;
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        width: 100%;
        text-align: center;
    }

    .section-heading {
        font-size: 1.75rem;
    }

    .about, .services, .areas, .testimonials, .contact {
        padding: 80px 0;
    }

    .cta {
        padding: 80px 0;
    }
}
