/* ============================================
   ALC Homes — Custom Styles
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
button { cursor: pointer; font-family: inherit; }
ul { list-style: none; padding: 0; margin: 0; }
a { text-decoration: none; color: inherit; }

/* --- Utility --- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }

.section__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1B4332;
    margin-bottom: 12px;
}
.section__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #D4A843;
    flex-shrink: 0;
}
.section__title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    color: #1B4332;
    margin: 0 0 16px;
}
.section__title--light { color: #FDFCF8; }
.section__desc {
    font-size: 1.0625rem;
    color: #4a6b52;
    line-height: 1.7;
    max-width: 560px;
}
.section__header { text-align: center; margin-bottom: 56px; }
.section__header .section__desc { margin: 0 auto; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 13px 28px;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.btn--primary {
    background: #1B4332;
    color: #FDFCF8;
    border-color: #1B4332;
}
.btn--primary:hover { background: #153528; border-color: #153528; transform: translateY(-1px); }
.btn--ghost {
    background: transparent;
    color: #1B4332;
    border-color: #1B4332;
}
.btn--ghost:hover { background: #1B4332; color: #FDFCF8; }
.btn--gold {
    background: #D4A843;
    color: #1B4332;
    border-color: #D4A843;
}
.btn--gold:hover { background: #C49A30; border-color: #C49A30; transform: translateY(-1px); }
.btn--white {
    background: #FDFCF8;
    color: #1B4332;
    border-color: #FDFCF8;
}
.btn--white:hover { background: #EDE8DD; transform: translateY(-1px); }
.btn--lg { padding: 16px 32px; font-size: 1rem; }
.btn--full { width: 100%; justify-content: center; }

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(253, 252, 248, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(27, 67, 50, 0.08);
    transition: box-shadow 0.3s ease;
}
.nav.scrolled { box-shadow: 0 2px 24px rgba(27, 67, 50, 0.1); }
.nav__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav__logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: #1B4332;
    flex-shrink: 0;
}
.nav__links {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}
.nav__link {
    padding: 8px 16px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #1B4332;
    border-radius: 6px;
    transition: background 0.2s;
}
.nav__link:hover { background: rgba(27, 67, 50, 0.06); }
.nav__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #1B4332;
    color: #FDFCF8;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 8px;
    transition: background 0.2s;
    flex-shrink: 0;
}
.nav__cta:hover { background: #153528; }
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    margin-left: auto;
}
.nav__bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #1B4332;
    border-radius: 2px;
    transition: all 0.3s;
}

/* Mobile nav */
@media (max-width: 868px) {
    .nav__toggle { display: flex; }
    .nav__cta { display: none; }
    .nav__links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(253, 252, 248, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 16px 24px 24px;
        gap: 4px;
        border-bottom: 1px solid rgba(27, 67, 50, 0.1);
        transform: translateY(-120%);
        opacity: 0;
        transition: all 0.3s ease;
        pointer-events: none;
    }
    .nav__links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    .nav__link { width: 100%; padding: 12px 16px; }
}

/* --- Hero --- */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(160deg, #FDFCF8 0%, #f0f5f2 50%, #dce8df 100%);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(27, 67, 50, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.hero__grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1B4332;
    margin-bottom: 20px;
}
.hero__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #D4A843;
    flex-shrink: 0;
}
.hero__headline {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    font-weight: 800;
    line-height: 1.08;
    color: #0f271d;
    margin: 0 0 24px;
    letter-spacing: -0.02em;
}
.hero__sub {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #2a5c34;
    max-width: 480px;
    margin: 0 0 36px;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Stat cards */
.hero__cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    position: relative;
}
.stat-card {
    padding: 24px 20px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.stat-card:hover { transform: translateY(-4px); }
.stat-card--accent {
    background: #1B4332;
    color: #FDFCF8;
    box-shadow: 0 8px 32px rgba(27, 67, 50, 0.25);
}
.stat-card--dark {
    background: #0f271d;
    color: #FDFCF8;
    box-shadow: 0 8px 32px rgba(15, 39, 29, 0.3);
}
.stat-card--outline {
    background: #FDFCF8;
    color: #1B4332;
    border: 2px solid rgba(27, 67, 50, 0.12);
    box-shadow: 0 4px 16px rgba(27, 67, 50, 0.06);
}
.stat-card--wide {
    grid-column: span 2;
    flex-direction: row;
    align-items: center;
    gap: 16px;
}
.stat-card__num {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}
.stat-card__label {
    font-size: 0.8125rem;
    opacity: 0.75;
    line-height: 1.4;
}
.stat-card--outline .stat-card__num { color: #1B4332; }
.stat-card--outline .stat-card__label { color: #4a6b52; }

@media (max-width: 868px) {
    .hero { padding: 100px 0 64px; }
    .hero__grid { grid-template-columns: 1fr; gap: 48px; }
    .hero__cards { order: -1; max-width: 480px; margin: 0 auto; }
}

/* --- Services --- */
.services { background: #FDFCF8; }
.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.service-card {
    background: #FDFCF8;
    border: 1px solid rgba(27, 67, 50, 0.1);
    border-radius: 16px;
    padding: 32px 28px;
    transition: all 0.25s ease;
}
.service-card:hover {
    border-color: #1B4332;
    box-shadow: 0 8px 32px rgba(27, 67, 50, 0.1);
    transform: translateY(-4px);
}
.service-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: #f0f5f2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: background 0.2s;
}
.service-card:hover .service-card__icon { background: #1B4332; }
.service-card:hover .service-card__icon svg { stroke: #D4A843; }
.service-card__title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1875rem;
    font-weight: 700;
    color: #1B4332;
    margin: 0 0 10px;
}
.service-card__desc {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #4a6b52;
    margin: 0;
}

@media (max-width: 868px) {
    .services__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
    .services__grid { grid-template-columns: 1fr; }
}

/* --- About --- */
.about { background: #1B4332; }
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.about__image { position: relative; }
.about__img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}
.about__badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: #D4A843;
    color: #0f271d;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 14px 20px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.about__content { color: #FDFCF8; }
.about__content .section__eyebrow { color: #D4A843; }
.about__content .section__dot { background: #D4A843; }
.about__text {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: rgba(253, 252, 248, 0.8);
    margin: 0 0 16px;
}
.about__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 28px 0 36px;
}
.about__list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9375rem;
    color: rgba(253, 252, 248, 0.9);
    line-height: 1.5;
}
.about__list svg { flex-shrink: 0; margin-top: 2px; }

@media (max-width: 868px) {
    .about__grid { grid-template-columns: 1fr; gap: 40px; }
    .about__img { height: 360px; }
    .about__badge { right: 16px; bottom: -16px; }
    .about__list { grid-template-columns: 1fr; }
}

/* --- Projects --- */
.projects { background: #FDFCF8; }
.projects__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.project-card {
    border-radius: 16px;
    overflow: hidden;
    background: #FDFCF8;
    border: 1px solid rgba(27, 67, 50, 0.08);
    transition: all 0.25s ease;
}
.project-card:hover {
    box-shadow: 0 8px 32px rgba(27, 67, 50, 0.12);
    transform: translateY(-4px);
}
.project-card__img { overflow: hidden; }
.project-card__img img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.project-card:hover .project-card__img img { transform: scale(1.04); }
.project-card__info { padding: 20px 24px 24px; }
.project-card__tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #D4A843;
    background: rgba(212, 168, 67, 0.12);
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}
.project-card__name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1875rem;
    font-weight: 700;
    color: #1B4332;
    margin: 0;
}

@media (max-width: 540px) {
    .projects__grid { grid-template-columns: 1fr; }
}

/* --- Testimonials --- */
.testimonials { background: #f0f5f2; }
.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.testimonial-card {
    background: #FDFCF8;
    border-radius: 16px;
    padding: 32px 28px;
    border: 1px solid rgba(27, 67, 50, 0.06);
    transition: all 0.25s ease;
}
.testimonial-card:hover {
    box-shadow: 0 8px 32px rgba(27, 67, 50, 0.08);
    transform: translateY(-4px);
}
.testimonial-card__stars {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}
.testimonial-card__text {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #2a5c34;
    margin: 0 0 20px;
    font-style: italic;
}
.testimonial-card__author { display: flex; flex-direction: column; gap: 2px; }
.testimonial-card__name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.9375rem;
    color: #1B4332;
}
.testimonial-card__location {
    font-size: 0.8125rem;
    color: #4a6b52;
}

@media (max-width: 868px) {
    .testimonials__grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
}

/* --- CTA Banner --- */
.cta-banner {
    background: linear-gradient(135deg, #0f271d 0%, #1B4332 60%, #2a5c34 100%);
    padding: 80px 0;
}
.cta-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.cta-banner__title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 700;
    color: #FDFCF8;
    margin: 0 0 12px;
    line-height: 1.2;
}
.cta-banner__desc {
    font-size: 1.0625rem;
    color: rgba(253, 252, 248, 0.75);
    line-height: 1.65;
    max-width: 480px;
    margin: 0;
}
.cta-banner__actions { display: flex; gap: 16px; flex-shrink: 0; flex-wrap: wrap; }

@media (max-width: 768px) {
    .cta-banner__inner { flex-direction: column; text-align: center; }
    .cta-banner__desc { max-width: 100%; }
    .cta-banner__actions { justify-content: center; }
}

/* --- Contact --- */
.contact { background: #1B4332; }
.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}
.contact__info { color: #FDFCF8; }
.contact__info .section__eyebrow { color: #D4A843; }
.contact__info .section__dot { background: #D4A843; }
.contact__desc {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: rgba(253, 252, 248, 0.75);
    margin: 0 0 40px;
}
.contact__details { display: flex; flex-direction: column; gap: 24px; }
.contact__item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.contact__item-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(212, 168, 67, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact__item-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #D4A843;
    margin-bottom: 4px;
}
.contact__item-value {
    font-size: 0.9375rem;
    color: #FDFCF8;
    line-height: 1.6;
}
.contact__item a:hover { text-decoration: underline; }

/* Form */
.contact__form-wrap {
    background: #FDFCF8;
    border-radius: 20px;
    padding: 40px 36px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}
.contact__form-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.375rem;
    font-weight: 700;
    color: #1B4332;
    margin: 0 0 24px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1B4332;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid rgba(27, 67, 50, 0.18);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    color: #1B4332;
    background: #FDFCF8;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1B4332;
    box-shadow: 0 0 0 3px rgba(27, 67, 50, 0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #8fb892; }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-note {
    text-align: center;
    font-size: 0.8125rem;
    color: #4a6b52;
    margin-top: 12px;
}

/* Success message */
.contact__success {
    text-align: center;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.contact__success svg { color: #1B4332; }
.contact__success h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.375rem;
    font-weight: 700;
    color: #1B4332;
    margin: 0;
}
.contact__success p {
    font-size: 0.9375rem;
    color: #4a6b52;
    line-height: 1.6;
    margin: 0 0 16px;
}
.contact__success .btn { margin-top: 8px; }

@media (max-width: 868px) {
    .contact__grid { grid-template-columns: 1fr; gap: 40px; }
    .form-row { grid-template-columns: 1fr; }
    .contact__form-wrap { padding: 28px 24px; }
}

/* --- Footer --- */
.footer {
    background: #0f271d;
    padding: 64px 0 0;
    color: rgba(253, 252, 248, 0.7);
}
.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(253, 252, 248, 0.08);
}
.footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1875rem;
    color: #FDFCF8;
    margin-bottom: 16px;
}
.footer__tagline {
    font-size: 0.9375rem;
    line-height: 1.65;
    max-width: 300px;
    margin: 0;
}
.footer__heading {
    font-family: 'Outfit', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #D4A843;
    margin: 0 0 16px;
}
.footer__nav ul { display: flex; flex-direction: column; gap: 10px; }
.footer__nav a {
    font-size: 0.9375rem;
    color: rgba(253, 252, 248, 0.65);
    transition: color 0.2s;
}
.footer__nav a:hover { color: #FDFCF8; }
.footer__address {
    font-size: 0.9375rem;
    line-height: 1.65;
    margin: 0 0 8px;
    font-style: normal;
    color: rgba(253, 252, 248, 0.65);
}
.footer__phone {
    font-size: 1rem;
    font-weight: 600;
    color: #D4A843;
    transition: color 0.2s;
}
.footer__phone:hover { color: #FDFCF8; }
.footer__bottom {
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.8125rem;
    color: rgba(253, 252, 248, 0.4);
}

@media (max-width: 640px) {
    .footer__grid { grid-template-columns: 1fr; gap: 32px; }
    .footer__bottom { flex-direction: column; text-align: center; }
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Fallback: ensure content is visible if JS is disabled */
@media not all and (prefers-reduced-motion: no-preference) {
    .reveal { opacity: 1; transform: none; }
}
