/* === CSS Custom Properties === */
:root {
    --color-forest: #1a5632;
    --color-forest-dark: #134126;
    --color-forest-deeper: #0d3019;
    --color-forest-light: #2a7a4a;
    --color-forest-muted: #3d8b5e;
    --color-cream: #f8f6f0;
    --color-cream-dark: #f0ece4;
    --color-warm-white: #faf9f6;
    --color-text: #1a1a1a;
    --color-text-light: #4a4a4a;
    --color-text-muted: #6b6b6b;
    --color-line: rgba(26, 86, 50, 0.12);
    --color-line-strong: rgba(26, 86, 50, 0.25);
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-warm-white);
}

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

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

ul {
    list-style: none;
}

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

@media (min-width: 768px) {
    .container {
        padding: 0 48px;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 64px;
    }
}

/* === Section === */
.section {
    padding: 96px 0;
}

@media (min-width: 768px) {
    .section {
        padding: 128px 0;
    }
}

/* === Section Header === */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

@media (min-width: 768px) {
    .section-header {
        margin-bottom: 80px;
    }
}

.section-tag {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-forest-muted);
    margin-bottom: 16px;
    display: block;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 300;
    line-height: 1.15;
    color: var(--color-text);
    margin-bottom: 24px;
}

.section-subtitle {
    font-size: 17px;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-top: 20px;
}

/* === Thin Line === */
.thin-line {
    width: 48px;
    height: 1px;
    background: var(--color-forest);
    margin: 24px 0;
}

.thin-line-center {
    margin-left: auto;
    margin-right: auto;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 14px 32px;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-forest);
    color: #ffffff;
    border-color: var(--color-forest);
}

.btn-primary:hover {
    background: var(--color-forest-dark);
    border-color: var(--color-forest-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(26, 86, 50, 0.25);
}

.btn-outline {
    background: transparent;
    color: var(--color-forest);
    border-color: var(--color-forest);
}

.btn-outline:hover {
    background: var(--color-forest);
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-outline-light {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
    background: #ffffff;
    color: var(--color-forest);
    border-color: #ffffff;
    transform: translateY(-1px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* === Navigation === */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s var(--ease-out);
}

.nav.scrolled {
    background: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 14px 0;
    box-shadow: 0 1px 0 var(--color-line);
}

.nav.scrolled .nav-logo {
    color: var(--color-forest);
}

.nav.scrolled .nav-links a {
    color: var(--color-text);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 500;
    color: #ffffff;
    transition: color 0.3s;
}

.nav-logo-icon {
    flex-shrink: 0;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.3s;
    position: relative;
}

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

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

.nav-links a:hover {
    color: #ffffff;
}

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

.nav-cta {
    padding: 10px 24px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    transition: all 0.3s var(--ease-out) !important;
}

.nav-cta:hover {
    background: #ffffff;
    color: var(--color-forest) !important;
    border-color: #ffffff;
}

.nav.scrolled .nav-cta {
    border-color: var(--color-forest);
    color: var(--color-forest) !important;
}

.nav.scrolled .nav-cta:hover {
    background: var(--color-forest);
    color: #ffffff !important;
}

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

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

.nav.scrolled .nav-toggle-line {
    background: var(--color-forest);
}

.nav-toggle.active .nav-toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}

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

.nav-toggle.active .nav-toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
}

/* Mobile Menu */
@media (max-width: 767px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--color-warm-white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 28px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s var(--ease-out);
    }

    .nav-links.open {
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        color: var(--color-text) !important;
        font-family: var(--font-serif);
        font-size: 28px;
        font-weight: 400;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-cta {
        border-color: var(--color-forest) !important;
        color: var(--color-forest) !important;
        margin-top: 8px;
    }

    .nav.scrolled .nav-links a {
        color: var(--color-text) !important;
    }
}

@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }

    .nav-links {
        display: flex;
    }
}

/* === Hero === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: 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(
        to bottom,
        rgba(13, 48, 25, 0.65) 0%,
        rgba(26, 86, 50, 0.55) 50%,
        rgba(13, 48, 25, 0.75) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 780px;
    padding: 0 24px;
}

.hero-tag {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 300;
    line-height: 1.08;
    color: #ffffff;
    margin-bottom: 28px;
}

.hero-headline-accent {
    font-style: italic;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.88);
}

.hero-sub {
    font-size: clamp(16px, 2vw, 18px);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    max-width: 540px;
    margin: 0 auto 40px;
    font-weight: 300;
}

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

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: rgba(255, 255, 255, 0.6);
    animation: float 2.5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* === About === */
.about {
    background: var(--color-warm-white);
}

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

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
    }
}

.about-image-wrap {
    position: relative;
}

.about-image-wrap::before {
    content: '';
    position: absolute;
    top: -16px;
    left: -16px;
    right: 16px;
    bottom: 16px;
    border: 1px solid var(--color-line-strong);
    border-radius: 4px;
    z-index: -1;
}

.about-image-wrap img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 4px;
}

.about-content .section-tag {
    text-align: left;
}

.about-content .section-title {
    text-align: left;
}

.about-content p {
    color: var(--color-text-light);
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: 32px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--color-line);
}

.stat {
    flex: 1;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 42px;
    font-weight: 300;
    color: var(--color-forest);
    line-height: 1;
    display: block;
}

.stat-suffix {
    font-size: 28px;
}

.stat-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-top: 8px;
    display: block;
}

.stat-divider {
    width: 1px;
    background: var(--color-line);
    align-self: stretch;
}

/* === Services === */
.services {
    background: var(--color-cream);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

.service-card {
    background: var(--color-warm-white);
    border: 1px solid var(--color-line);
    border-radius: 6px;
    padding: 40px;
    transition: all 0.4s var(--ease-out);
}

.service-card:hover {
    border-color: var(--color-forest-muted);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(26, 86, 50, 0.08);
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-line-strong);
    border-radius: 50%;
    margin-bottom: 24px;
    color: var(--color-forest);
}

.service-card h3 {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: 12px;
}

.service-card p {
    color: var(--color-text-light);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--color-text-light);
}

.service-features li::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--color-forest-muted);
    border-radius: 50%;
    flex-shrink: 0;
}

/* === Neighborhoods === */
.neighborhoods {
    background: var(--color-warm-white);
}

.neighborhoods-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .neighborhoods-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

.neighborhood-card {
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.neighborhood-image {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.neighborhood-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

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

.neighborhood-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13, 48, 25, 0.85) 0%, rgba(13, 48, 25, 0.2) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    transition: background 0.4s;
}

.neighborhood-card:hover .neighborhood-overlay {
    background: linear-gradient(to top, rgba(13, 48, 25, 0.9) 0%, rgba(13, 48, 25, 0.3) 60%, transparent 100%);
}

.neighborhood-overlay h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 6px;
}

.neighborhood-overlay p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
}

/* === Testimonials === */
.testimonials {
    background: var(--color-forest);
    color: #ffffff;
}

.testimonials .section-tag {
    color: rgba(255, 255, 255, 0.5);
}

.testimonials .section-title {
    color: #ffffff;
}

.testimonials .thin-line-center {
    background: rgba(255, 255, 255, 0.3);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
}

.testimonial-card {
    position: relative;
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    transition: all 0.3s var(--ease-out);
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.18);
}

.testimonial-quote {
    position: absolute;
    top: 20px;
    right: 24px;
    color: var(--color-forest-light);
}

.testimonial-text {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.04em;
}

/* === CTA === */
.cta {
    background: var(--color-cream);
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-serif);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 300;
    line-height: 1.15;
    color: var(--color-text);
    margin-bottom: 20px;
}

.cta-text {
    color: var(--color-text-light);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 36px;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* === Contact === */
.contact {
    background: var(--color-warm-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 64px;
}

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

.contact-info .section-tag {
    text-align: left;
}

.contact-info .section-title {
    text-align: left;
}

.contact-intro {
    color: var(--color-text-light);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 36px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}

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

.contact-icon {
    color: var(--color-forest);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}

.contact-value {
    font-size: 15px;
    color: var(--color-text);
    line-height: 1.6;
}

.contact-value a {
    color: var(--color-forest);
    transition: color 0.3s;
}

.contact-value a:hover {
    color: var(--color-forest-dark);
    text-decoration: underline;
}

.contact-map {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--color-line);
}

/* === Contact Form === */
.contact-form-wrap {
    background: var(--color-cream);
    border: 1px solid var(--color-line);
    border-radius: 8px;
    padding: 40px;
}

.form-title {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: 28px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

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

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 300;
    color: var(--color-text);
    background: var(--color-warm-white);
    border: 1px solid var(--color-line-strong);
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-forest-muted);
    box-shadow: 0 0 0 3px rgba(26, 86, 50, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-muted);
}

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

.form-note {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-top: 16px;
    text-align: center;
}

/* Form Success */
.form-success {
    text-align: center;
    padding: 40px 20px;
}

.form-success svg {
    color: var(--color-forest);
    margin-bottom: 20px;
}

.form-success h3 {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: 12px;
}

.form-success p {
    color: var(--color-text-light);
    font-size: 15px;
    margin-bottom: 24px;
}

/* === Footer === */
.footer {
    background: var(--color-forest-deeper);
    color: rgba(255, 255, 255, 0.7);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 48px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 12px;
}

.footer-tagline {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
    max-width: 280px;
}

.footer h4 {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 20px;
}

.footer-links ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a,
.footer-contact a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: #ffffff;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
}

.footer-disclaimer {
    font-size: 12px !important;
}

/* === Scroll Reveal (progressive enhancement) === */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s var(--ease-out), transform 0.7s 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; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* === Focus Styles === */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--color-forest-muted);
    outline-offset: 2px;
    border-radius: 4px;
}

/* === Selection === */
::selection {
    background: var(--color-forest);
    color: #ffffff;
}
