/* ========================================
   BDTEnterprises, LLC — Custom Styles
   ======================================== */

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(28px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Navbar --- */
#navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(254, 253, 248, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(196, 114, 78, 0.1);
    transition: box-shadow 0.3s ease;
}

#navbar.scrolled {
    box-shadow: 0 4px 24px rgba(113, 58, 40, 0.08);
}

.nav-link {
    position: relative;
}

/* --- Mobile Menu --- */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    animation: menuSlideIn 0.3s ease forwards;
}

.mobile-menu-content {
    padding-top: 2rem;
    padding-bottom: 2rem;
    max-height: 100vh;
    overflow-y: auto;
}

.mobile-menu-link {
    display: block;
    border-radius: 0.75rem;
}

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

/* --- Hero --- */
.hero-section {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(50, 23, 14, 0.82) 0%,
        rgba(139, 71, 46, 0.72) 50%,
        rgba(50, 23, 14, 0.80) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 820px;
    padding: 2rem 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(244, 184, 165, 0.18);
    border: 1px solid rgba(244, 184, 165, 0.3);
    color: #f9dbd1;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    letter-spacing: 0.04em;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
}

.hero-title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    font-weight: 400;
    line-height: 1.12;
    color: #fefdf8;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(253, 249, 237, 0.82);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    background: #C4724E;
    color: #fefdf8;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(196, 114, 78, 0.35);
}

.btn-primary:hover {
    background: #a85a3a;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(196, 114, 78, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: rgba(254, 253, 248, 0.12);
    border: 1.5px solid rgba(254, 253, 248, 0.35);
    color: #fefdf8;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    text-decoration: none;
    backdrop-filter: blur(8px);
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.btn-secondary:hover {
    background: rgba(254, 253, 248, 0.2);
    border-color: rgba(254, 253, 248, 0.6);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    display: block;
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.1rem;
    color: #f9dbd1;
    font-weight: 400;
}

.hero-stat-label {
    display: block;
    font-size: 0.75rem;
    color: rgba(244, 184, 165, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.15rem;
}

.hero-stat-divider {
    width: 1px;
    height: 32px;
    background: rgba(244, 184, 165, 0.25);
}

/* --- Sections --- */
.section {
    padding: 6rem 0;
}

.section--alt {
    background: #fdf9ed;
}

.section--dark {
    background: linear-gradient(135deg, #32170e 0%, #5c3022 50%, #713a28 100%);
}

.section--cta {
    background: linear-gradient(135deg, #fdf0eb 0%, #f9dbd1 100%);
}

/* --- Section Labels & Titles --- */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #C4724E;
    margin-bottom: 0.75rem;
}

.section-label-light {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ee9172;
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 400;
    color: #292524;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.section-title-light {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 400;
    color: #fefdf8;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.section-body {
    font-size: 1.05rem;
    color: #57534e;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.section-body-light {
    font-size: 1.05rem;
    color: rgba(253, 249, 237, 0.78);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* --- About --- */
.about-image-wrap {
    position: relative;
}

.about-img {
    width: 100%;
    height: auto;
    border-radius: 1.25rem;
    box-shadow: 0 20px 60px rgba(113, 58, 40, 0.15);
    display: block;
}

.about-accent {
    position: absolute;
    bottom: -16px;
    right: -16px;
    width: 120px;
    height: 120px;
    background: #C4724E;
    border-radius: 1.25rem;
    z-index: -1;
    opacity: 0.25;
}

/* --- Cards --- */
.card {
    background: #fefdf8;
    border-radius: 1.25rem;
    padding: 2rem;
    border: 1px solid rgba(196, 114, 78, 0.1);
    box-shadow: 0 4px 20px rgba(113, 58, 40, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(113, 58, 40, 0.12);
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 1rem;
    background: linear-gradient(135deg, #fdf0eb 0%, #f9dbd1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C4724E;
    margin-bottom: 1.25rem;
}

.card-title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.25rem;
    color: #292524;
    margin-bottom: 0.6rem;
    line-height: 1.3;
}

.card-body {
    font-size: 0.95rem;
    color: #78716c;
    line-height: 1.7;
}

/* --- Community Image Grid --- */
.community-image-grid {
    position: relative;
    height: 500px;
}

.community-img {
    border-radius: 1.25rem;
    object-fit: cover;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

.community-img--main {
    width: 280px;
    height: 360px;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
}

.community-img--small {
    width: 240px;
    height: 240px;
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 2;
    border: 4px solid #3c1f12;
}

.community-accent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: #C4724E;
    border-radius: 50%;
    opacity: 0.3;
    z-index: 0;
}

/* --- Contact --- */
.contact-info-card {
    background: #fefdf8;
    border-radius: 1.5rem;
    padding: 2.5rem;
    border: 1px solid rgba(196, 114, 78, 0.1);
    box-shadow: 0 8px 32px rgba(113, 58, 40, 0.07);
}

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

.contact-info-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 0.875rem;
    background: linear-gradient(135deg, #fdf0eb 0%, #f9dbd1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C4724E;
}

.contact-info-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #a85a3a;
    margin-bottom: 0.2rem;
}

.contact-info-value {
    font-size: 0.95rem;
    color: #292524;
    line-height: 1.6;
}

.contact-info-divider {
    height: 1px;
    background: rgba(196, 114, 78, 0.1);
    margin: 1.25rem 0;
}

/* --- Contact Form --- */
.contact-form {
    background: #fefdf8;
    border-radius: 1.5rem;
    padding: 2.5rem;
    border: 1px solid rgba(196, 114, 78, 0.1);
    box-shadow: 0 8px 32px rgba(113, 58, 40, 0.07);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #44403c;
    margin-bottom: 0.4rem;
}

.form-label-optional {
    font-weight: 400;
    color: #a8a29e;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #e7e5e4;
    border-radius: 0.875rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.95rem;
    color: #292524;
    background: #fefdf8;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #a8a29e;
}

.form-input:focus,
.form-textarea:focus {
    border-color: #C4724E;
    box-shadow: 0 0 0 3px rgba(196, 114, 78, 0.12);
}

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

.form-submit {
    display: inline-flex;
    align-items: center;
    background: #C4724E;
    color: #fefdf8;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(196, 114, 78, 0.3);
    width: 100%;
    justify-content: center;
}

.form-submit:hover {
    background: #a85a3a;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(196, 114, 78, 0.35);
}

.form-success {
    margin-top: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: #f0fdf4;
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-success-text {
    font-size: 0.95rem;
    color: #166534;
    line-height: 1.5;
}

/* --- Footer --- */
.footer {
    background: #1c0f09;
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.footer-tagline {
    max-width: 280px;
}

.footer-nav-title,
.footer-contact-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #C4724E;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-link {
    display: block;
    color: rgba(203, 198, 190, 0.7);
    font-size: 0.9rem;
    text-decoration: none;
    padding: 0.35rem 0;
    transition: color 0.2s;
    line-height: 1.5;
}

.footer-link:hover {
    color: #f9dbd1;
}

.footer-bottom {
    border-top: 1px solid rgba(203, 198, 190, 0.1);
    padding: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-copyright {
    font-size: 0.85rem;
    color: rgba(203, 198, 190, 0.5);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .section {
        padding: 4rem 0;
    }

    .hero-section {
        min-height: 85vh;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-stat-divider {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .community-image-grid {
        height: 360px;
    }

    .community-img--main {
        width: 200px;
        height: 260px;
    }

    .community-img--small {
        width: 160px;
        height: 160px;
    }

    .about-accent {
        width: 80px;
        height: 80px;
        bottom: -10px;
        right: -10px;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .contact-form,
    .contact-info-card {
        padding: 1.5rem;
    }
}
