/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'DM Sans', sans-serif;
    background-color: #FDF8F3;
    color: #3C2415;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ─── Typography ─── */
.font-serif { font-family: 'Playfair Display', serif; }
.font-dm { font-family: 'DM Sans', sans-serif; }

/* ─── Animations ─── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.animate-fade-up {
    animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.animate-fade-in {
    animation: fadeIn 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ─── Scroll Reveal ─── */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-on-scroll[data-delay="1"] { transition-delay: 0.1s; }
.reveal-on-scroll[data-delay="2"] { transition-delay: 0.2s; }

/* ─── Divider Line ─── */
.divider-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, #B8634A/20, transparent);
}

/* ─── Section Eyebrow ─── */
.section-eyebrow {
    letter-spacing: 0.2em;
    font-size: 0.65rem;
    font-weight: 500;
}

/* ─── Section Heading ─── */
.section-heading {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 400;
    line-height: 1.15;
}

/* ─── Buttons ─── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 32px;
    background: #B8634A;
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 500;
    border-radius: 2px;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}
.btn-primary:hover {
    background: #9A503D;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(184, 99, 74, 0.25);
}
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 32px;
    background: transparent;
    color: #3C2415;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 500;
    border: 1.5px solid #3C2415/20;
    border-radius: 2px;
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.2s ease;
}
.btn-secondary:hover {
    border-color: #B8634A;
    background: rgba(184, 99, 74, 0.05);
    transform: translateY(-2px);
}
.btn-light {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    background: #fff;
    color: #B8634A;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 500;
    border-radius: 2px;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}
.btn-light:hover {
    background: #F5E6D3;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.btn-light-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    background: transparent;
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 500;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 2px;
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.2s ease;
}
.btn-light-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

/* ─── Hero ─── */
.hero-image-wrapper { position: relative; }
.hero-image { box-shadow: 0 32px 64px rgba(60, 36, 21, 0.15); }
.hero-stat {
    background: #fff;
    box-shadow: 0 16px 48px rgba(60, 36, 21, 0.12);
}

/* ─── About ─── */
.about-image { box-shadow: 0 32px 64px rgba(60, 36, 21, 0.15); }

/* ─── Service Cards ─── */
.service-card {
    padding: 2rem;
    border-radius: 4px;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
    background: #fff;
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(60, 36, 21, 0.08);
}
.service-icon { transition: transform 0.3s ease; }
.service-card:hover .service-icon { transform: scale(1.05); }

/* ─── Neighborhood Cards ─── */
.neighborhood-img-wrapper {
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(60, 36, 21, 0.08);
}
.neighborhood-card {
    padding: 0;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.neighborhood-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(60, 36, 21, 0.12);
}

/* ─── Testimonial Cards ─── */
.testimonial-card {
    padding: 2rem;
    background: rgba(245, 230, 211, 0.06);
    border: 1px solid rgba(245, 230, 211, 0.1);
    border-radius: 4px;
    transition: background 0.3s ease, transform 0.3s ease;
}
.testimonial-card:hover {
    background: rgba(245, 230, 211, 0.1);
    transform: translateY(-4px);
}

/* ─── Contact Form ─── */
.form-input,
.form-select,
.form-textarea {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    color: #3C2415;
    background: #FDF8F3;
    border: 1.5px solid #3C2415/12;
    border-radius: 2px;
    padding: 12px 16px;
    width: 100%;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    outline: none;
}
.form-input::placeholder,
.form-textarea::placeholder {
    color: #3C2415/35;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: #B8634A;
    box-shadow: 0 0 0 3px rgba(184, 99, 74, 0.1);
    background: #fff;
}
.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='%23B8634A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%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; }

/* ─── Contact Info ─── */
.contact-info-item { transition: transform 0.2s ease; }
.contact-info-item:hover { transform: translateX(4px); }

/* ─── Back to Top ─── */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: #B8634A;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    z-index: 30;
    box-shadow: 0 4px 16px rgba(184, 99, 74, 0.3);
}
.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: #9A503D;
    box-shadow: 0 8px 24px rgba(184, 99, 74, 0.4);
}

/* ─── Header ─── */
#site-header {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}
#site-header.scrolled {
    background: rgba(253, 248, 243, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(60, 36, 21, 0.06);
}

/* ─── Mobile Menu ─── */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.menu-toggle.active .menu-line:first-child {
    transform: rotate(45deg) translate(3px, 3px);
}
.menu-toggle.active .menu-line:last-child {
    opacity: 0;
}
.mobile-link {
    transition: opacity 0.3s ease;
}

/* ─── Responsive ─── */
@media (max-width: 767px) {
    .hero-headline { font-size: clamp(2.5rem, 10vw, 4rem); }
    .hero-stat { position: relative; bottom: auto; left: auto; margin-top: 1.5rem; }
    .about-image-accent { display: none !important; }
    .hero-image-accent { display: none !important; }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-headline { font-size: clamp(3rem, 6vw, 4.5rem); }
}

/* ─── Utility ─── */
.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;
}
