/* ========== 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 {
    overflow-x: hidden;
}

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

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ========== NAVIGATION ========== */
.nav-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
    padding-top: 0;
}

.nav-fixed.scrolled {
    background: rgba(250, 249, 246, 0.97);
    box-shadow: 0 1px 0 rgba(27, 67, 50, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-link {
    position: relative;
}

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

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

.nav-fixed.scrolled .nav-link {
    color: #1B4332;
}

.nav-fixed:not(.scrolled) .nav-link {
    color: rgba(250, 249, 246, 0.85);
}

.nav-fixed:not(.scrolled) .nav-link:hover {
    color: #fff;
}

.nav-fixed:not(.scrolled) .nav-link::after {
    background: #fff;
}

/* Mobile menu */
.mobile-menu {
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-nav-link {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(27, 67, 50, 0.1);
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

.menu-line {
    display: block;
}

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

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

#menu-toggle.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.5rem;
}

/* ========== BUTTONS ========== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #1B4332;
    color: #FAF9F6;
    padding: 0.75rem 1.75rem;
    border-radius: 2px;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    background: #2d7a32;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(27, 67, 50, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: #1B4332;
    padding: 0.75rem 1.75rem;
    border: 1.5px solid #1B4332;
    border-radius: 2px;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.btn-outline:hover {
    background: #1B4332;
    color: #FAF9F6;
    transform: translateY(-1px);
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #FAF9F6;
    color: #1B4332;
    padding: 1rem 2rem;
    border-radius: 2px;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-hero-primary:hover {
    background: #EDE9E0;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: #FAF9F6;
    padding: 1rem 2rem;
    border: 1.5px solid rgba(250, 249, 246, 0.4);
    border-radius: 2px;
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.btn-hero-secondary:hover {
    background: rgba(250, 249, 246, 0.1);
    border-color: rgba(250, 249, 246, 0.7);
    transform: translateY(-2px);
}

/* ========== HERO ========== */
.hero-gradient {
    background: linear-gradient(135deg, #0d231a 0%, #1B4332 35%, #2d7a32 70%, #388e3c 100%);
    position: relative;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(56, 142, 60, 0.3) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(45, 122, 50, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, rgba(13, 35, 26, 0.4) 0%, transparent 50%);
    pointer-events: none;
}

.hero-deco {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hero-deco-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(127, 191, 130, 0.08) 0%, transparent 70%);
    top: -100px;
    right: -100px;
}

.hero-deco-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(250, 249, 246, 0.05) 0%, transparent 70%);
    bottom: 10%;
    left: 5%;
}

.hero-deco-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(174, 208, 175, 0.1) 0%, transparent 70%);
    top: 30%;
    left: 15%;
}

.hero-eyebrow {
    opacity: 0;
    animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero-gradient h1 {
    opacity: 0;
    animation: fadeUp 0.8s ease 0.4s forwards;
}

.hero-gradient p {
    opacity: 0;
    animation: fadeUp 0.8s ease 0.6s forwards;
}

.hero-gradient .flex {
    opacity: 0;
    animation: fadeUp 0.8s ease 0.8s forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.6;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(250, 249, 246, 0.6), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

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

/* ========== SECTION HEADINGS ========== */
.section-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #1B4332;
    opacity: 0.7;
}

.section-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.1;
    color: #1B4332;
}

/* ========== ABOUT ========== */
.value-prop {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.value-prop-icon {
    width: 44px;
    height: 44px;
    background: #d5e2d8;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1B4332;
    flex-shrink: 0;
}

/* ========== SERVICES ========== */
.service-card {
    background: rgba(250, 249, 246, 0.06);
    border: 1px solid rgba(250, 249, 246, 0.1);
    border-radius: 2px;
    padding: 2rem;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

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

.service-card-icon {
    width: 56px;
    height: 56px;
    background: rgba(250, 249, 246, 0.1);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aed0af;
}

/* ========== NEIGHBORHOODS ========== */
.neighborhood-card {
    border-radius: 2px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.neighborhood-card:hover {
    transform: translateY(-4px);
}

/* ========== TESTIMONIALS ========== */
.testimonial-card {
    border-radius: 2px;
}

.testimonial-quote-icon {
    line-height: 1;
}

/* ========== CONTACT ========== */
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    background: rgba(250, 249, 246, 0.08);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aed0af;
    flex-shrink: 0;
}

/* ========== FORM ========== */
.input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #FAF9F6;
    border: 1.5px solid #EDE9E0;
    border-radius: 2px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.9375rem;
    color: #1B4332;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

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

.input-field:focus {
    border-color: #1B4332;
    box-shadow: 0 0 0 3px rgba(27, 67, 50, 0.1);
}

.input-field:hover:not(:focus) {
    border-color: #7fbf82;
}

/* ========== CLIP DIAGONAL ========== */
.clip-diagonal {
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
}

/* ========== SCROLL REVEAL ========== */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-up {
    transform: translateY(0);
}

.reveal-left {
    transform: translateX(0);
}

.reveal-right {
    transform: translateX(0);
}

/* On smaller screens, always show content */
@media (max-width: 767px) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 767px) {
    .hero-gradient {
        min-height: 100vh;
        min-height: 100dvh;
    }

    .hero-gradient h1 {
        font-size: 2.5rem;
    }

    .clip-diagonal {
        display: none;
    }

    .nav-fixed {
        padding-top: 0;
    }

    .nav-fixed.scrolled {
        padding-top: 0;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-gradient h1 {
        font-size: 3.5rem;
    }
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
    }
}

/* ========== UTILITIES ========== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
