/* ── Base ── */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    overflow-x: hidden;
}

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

/* ── Scroll Reveal (progressive enhancement) ── */
.js .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* ── Navbar ── */
.nav-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(253, 248, 239, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(6, 78, 59, 0.06);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav-fixed.scrolled {
    background: rgba(253, 248, 239, 0.97);
    box-shadow: 0 1px 20px rgba(6, 78, 59, 0.06);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #064e3b;
    transition: width 0.3s ease;
}

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

/* ── Hero ── */
.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

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

.hero-img {
    transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-image-wrap:hover .hero-img {
    transform: scale(1.03);
}

.floating-card {
    position: absolute;
    bottom: 12%;
    left: -40px;
    z-index: 10;
    animation: float 4s ease-in-out infinite;
}

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

/* ── Marquee ── */
.marquee-track {
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Section Eyebrow ── */
.section-eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #059669;
    margin-bottom: 1rem;
}

/* ── Section Title ── */
.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 500;
    line-height: 1.1;
    color: #1a1a1a;
}

/* ── Buttons ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: #064e3b;
    color: #fdf8ef;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none;
    border-radius: 2px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background: #047857;
    transform: translateY(-2px);
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.btn-primary:hover .btn-arrow {
    transform: translate(4px, -4px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: transparent;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none;
    border-radius: 2px;
    border: 1.5px solid rgba(26, 26, 26, 0.2);
    transition: border-color 0.3s ease, transform 0.2s ease;
}

.btn-secondary:hover {
    border-color: #064e3b;
    color: #064e3b;
    transform: translateY(-2px);
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: #fdf8ef;
    color: #064e3b;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    border-radius: 2px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-cta:hover {
    background: #f5e6c0;
    transform: translateY(-2px);
}

.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    background: transparent;
    color: #fdf8ef;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none;
    border-radius: 2px;
    border: 1.5px solid rgba(253, 248, 239, 0.3);
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.2s ease;
}

.btn-cta-secondary:hover {
    border-color: rgba(253, 248, 239, 0.7);
    background: rgba(253, 248, 239, 0.08);
    transform: translateY(-2px);
}

/* ── Service Cards ── */
.service-card {
    padding: 2rem;
    background: white;
    border-radius: 4px;
    border: 1px solid rgba(6, 78, 59, 0.06);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.service-card:hover {
    box-shadow: 0 20px 60px rgba(6, 78, 59, 0.08);
    transform: translateY(-4px);
}

/* ── Neighborhood Cards ── */
.neighborhood-card {
    border-radius: 4px;
    overflow: hidden;
}

.neighborhood-card h3 {
    transition: color 0.3s ease;
}

.neighborhood-card:hover h3 {
    color: #064e3b;
}

/* ── Testimonial Cards ── */
.testimonial-card {
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.testimonial-card:hover {
    box-shadow: 0 20px 60px rgba(6, 78, 59, 0.08);
    transform: translateY(-4px);
}

/* ── Form Inputs ── */
.input-field {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid rgba(26, 26, 26, 0.12);
    border-radius: 2px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 15px;
    color: #1a1a1a;
    background: #fdf8ef;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.input-field::placeholder {
    color: #b0a89e;
}

.input-field:focus {
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.input-field:hover:not(:focus) {
    border-color: rgba(6, 78, 59, 0.3);
}

/* ── Mobile Menu ── */
.mobile-link {
    font-family: 'Playfair Display', Georgia, serif;
}

/* ── Responsive ── */
@media (max-width: 1023px) {
    .floating-card {
        display: none;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .section-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }

    .service-card {
        padding: 1.5rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    #contact-form {
        padding: 1.5rem;
    }
}
