/* ==========================================
   American Construction & Remodeling
   Custom Styles — burgundy + blush palette
   ========================================== */

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

/* --- Scroll Reveal (progressive enhancement) --- */
.reveal-item {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.js-active .reveal-item {
    opacity: 0;
    transform: translateY(24px);
}
.js-active .reveal-item.revealed {
    opacity: 1;
    transform: translateY(0);
}
.js-active .reveal-item:nth-child(2) { transition-delay: 0.08s; }
.js-active .reveal-item:nth-child(3) { transition-delay: 0.16s; }
.js-active .reveal-item:nth-child(4) { transition-delay: 0.24s; }
.js-active .reveal-item:nth-child(5) { transition-delay: 0.32s; }
.js-active .reveal-item:nth-child(6) { transition-delay: 0.40s; }

/* --- Container --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* --- Section --- */
.section { padding: 96px 0; }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #800020;
    background: rgba(128, 0, 32, 0.08);
    border: 1px solid rgba(128, 0, 32, 0.15);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 16px;
}
.section-title {
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 600;
    line-height: 1.2;
    color: #1a1a2e;
    margin-bottom: 16px;
}
.section-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px 28px;
    border-radius: 8px;
    transition: all 0.25s ease;
    white-space: nowrap;
}
.btn-primary {
    background: #800020;
    color: #fff;
    border: 2px solid #800020;
}
.btn-primary:hover, .btn-primary:focus-visible {
    background: #6b001a;
    border-color: #6b001a;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(128, 0, 32, 0.3);
}
.btn-outline-light {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.6);
}
.btn-outline-light:hover, .btn-outline-light:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-2px);
}
.btn-secondary {
    background: rgba(128, 0, 32, 0.08);
    color: #800020;
    border: 1px solid rgba(128, 0, 32, 0.2);
}
.btn-secondary:hover { background: rgba(128, 0, 32, 0.14); }
.btn-full { width: 100%; justify-content: center; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-sm { padding: 10px 20px; font-size: 0.875rem; }
.mt-3 { margin-top: 12px; }

/* --- Navigation --- */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(254, 246, 247, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(128, 0, 32, 0.08);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}
#navbar.nav-scrolled {
    background: rgba(254, 246, 247, 0.96);
    box-shadow: 0 2px 20px rgba(128, 0, 32, 0.08);
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-logo svg { flex-shrink: 0; }
.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: #444;
    padding: 8px 14px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: #800020; background: rgba(128, 0, 32, 0.06); }
.nav-cta {
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: #800020;
    background: rgba(128, 0, 32, 0.08);
    padding: 8px 16px;
    border-radius: 6px;
    margin-left: 8px;
    transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: rgba(128, 0, 32, 0.14); transform: translateY(-1px); }

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 110;
}
.nav-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: #800020;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] .nav-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: #fef6f7;
        flex-direction: column;
        align-items: stretch;
        padding: 88px 24px 32px;
        gap: 4px;
        transform: translateX(100%);
        transition: transform 0.35s ease;
        box-shadow: -4px 0 24px rgba(0,0,0,0.1);
    }
    .nav-menu.open { transform: translateX(0); }
    .nav-link { padding: 12px 16px; font-size: 1rem; }
    .nav-cta { margin-left: 0; margin-top: 12px; justify-content: center; }
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('https://images.pexels.com/photos/4792489/pexels-photo-4792489.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center center / cover no-repeat;
    overflow: hidden;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 0, 8, 0.82) 0%, rgba(128, 0, 32, 0.70) 50%, rgba(26, 0, 8, 0.78) 100%);
}
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 120px 24px 80px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(252, 228, 230, 0.9);
    background: rgba(252, 228, 230, 0.12);
    border: 1px solid rgba(252, 228, 230, 0.2);
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 24px;
}
.hero-badge svg { width: 14px; height: 14px; }
.hero h1 {
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(2rem, 5.5vw, 3.75rem);
    font-weight: 600;
    line-height: 1.12;
    color: #fff;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}
.hero-sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.7;
    color: rgba(252, 228, 230, 0.85);
    max-width: 580px;
    margin: 0 auto 36px;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-bottom: 56px;
}
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.stat-num {
    display: block;
    font-family: 'Lora', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: #fce4ec;
}
.stat-label {
    font-size: 0.8rem;
    color: rgba(252, 228, 230, 0.7);
    letter-spacing: 0.04em;
}
.hero-divider {
    width: 1px;
    height: 40px;
    background: rgba(252, 228, 230, 0.25);
    align-self: center;
}
.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: rgba(252, 228, 230, 0.6);
    animation: heroScroll 2s ease-in-out infinite;
}
@keyframes heroScroll {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
    50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

/* --- Services --- */
.services { background: #fef6f7; }
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}
.service-card {
    background: #fff;
    border-radius: 16px;
    padding: 36px 28px;
    border: 1px solid rgba(128, 0, 32, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(128, 0, 32, 0.1);
    border-color: rgba(128, 0, 32, 0.15);
}
.service-icon {
    width: 56px;
    height: 56px;
    background: rgba(128, 0, 32, 0.07);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.service-icon svg { width: 28px; height: 28px; }
.service-title {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 10px;
}
.service-desc {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #666;
}

/* --- About --- */
.about { background: #fff; }
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.about-images {
    position: relative;
    min-height: 500px;
}
.about-img-main {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(128, 0, 32, 0.12);
}
.about-img-main img { width: 100%; height: 500px; object-fit: cover; }
.about-img-float {
    position: absolute;
    bottom: -32px;
    right: -24px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(128, 0, 32, 0.15);
    border: 4px solid #fff;
}
.about-img-float img { width: 100%; height: 200px; object-fit: cover; }
.about-badge {
    position: absolute;
    top: -20px;
    right: 40px;
    background: #800020;
    color: #fce4ec;
    border-radius: 16px;
    padding: 20px 24px;
    text-align: center;
    box-shadow: 0 12px 32px rgba(128, 0, 32, 0.3);
}
.about-badge-num {
    display: block;
    font-family: 'Lora', Georgia, serif;
    font-size: 2rem;
    font-weight: 600;
    line-height: 1;
}
.about-badge-label {
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    opacity: 0.85;
    margin-top: 4px;
}
.about-content .section-tag { margin-bottom: 12px; }
.about-content .section-title { text-align: left; margin-bottom: 24px; }
.about-text {
    font-size: 1rem;
    line-height: 1.75;
    color: #555;
    margin-bottom: 16px;
}
.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 28px;
}
.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
}
.about-feature svg { flex-shrink: 0; width: 20px; height: 20px; }

@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; gap: 48px; }
    .about-images { min-height: 400px; }
    .about-img-main img { height: 400px; }
    .about-content .section-title { text-align: center; }
    .about-content .section-tag { display: block; text-align: center; }
    .about-text { text-align: center; }
}

/* --- Gallery --- */
.gallery { background: #fef6f7; }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 20px 16px;
    background: linear-gradient(to top, rgba(26, 0, 8, 0.75) 0%, transparent 100%);
    color: #fce4ec;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-caption { opacity: 1; }

@media (max-width: 768px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr; }
}

/* --- Testimonials --- */
.testimonials { background: #fff; }
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.testimonial-card {
    background: #fef6f7;
    border-radius: 16px;
    padding: 32px 28px;
    border: 1px solid rgba(128, 0, 32, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(128, 0, 32, 0.08);
}
.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}
.testimonial-stars svg { width: 18px; height: 18px; }
.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 20px;
    font-style: italic;
}
.testimonial-author {
    font-size: 0.875rem;
    font-weight: 600;
    color: #800020;
}

/* --- CTA Banner --- */
.cta-banner {
    background: linear-gradient(135deg, #800020 0%, #550014 100%);
    padding: 80px 0;
}
.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}
.cta-text { flex: 1; min-width: 280px; }
.cta-title {
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 600;
    color: #fce4ec;
    margin-bottom: 12px;
}
.cta-desc {
    font-size: 1.05rem;
    color: rgba(252, 228, 230, 0.8);
    line-height: 1.6;
}
.cta-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* --- Contact --- */
.contact { background: #fef6f7; }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}
.contact-info .section-tag { margin-bottom: 12px; }
.contact-info .section-title { text-align: left; margin-bottom: 16px; }
.contact-desc {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 32px;
}
.contact-details { display: flex; flex-direction: column; gap: 24px; margin-bottom: 28px; }
.contact-detail {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(128, 0, 32, 0.07);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-icon svg { width: 22px; height: 22px; }
.contact-detail strong {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #800020;
    margin-bottom: 4px;
}
.contact-detail p {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.6;
    margin: 0;
}
.contact-detail a {
    color: #800020;
    font-weight: 500;
    transition: color 0.2s;
}
.contact-detail a:hover { color: #6b001a; text-decoration: underline; }
.contact-map {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(128, 0, 32, 0.1);
}
.map-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: rgba(128, 0, 32, 0.05);
    color: #800020;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s;
    width: 100%;
    text-align: left;
}
.map-link:hover { background: rgba(128, 0, 32, 0.1); }

/* Contact Form */
.contact-form-wrap {
    background: #fff;
    border-radius: 20px;
    padding: 40px 36px;
    box-shadow: 0 8px 40px rgba(128, 0, 32, 0.07);
    border: 1px solid rgba(128, 0, 32, 0.06);
}
.form-title {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 24px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e8d8da;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #333;
    background: #fef6f7;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #800020;
    box-shadow: 0 0 0 3px rgba(128, 0, 32, 0.1);
    background: #fff;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #aaa; }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-note {
    font-size: 0.8rem;
    color: #888;
    text-align: center;
    margin-top: 12px;
}

/* Form Success */
.form-success {
    text-align: center;
    padding: 40px 20px;
}
.form-success svg { width: 48px; height: 48px; margin-bottom: 16px; }
.form-success-title {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 8px;
}
.form-success p { color: #666; font-size: 0.95rem; line-height: 1.6; }

@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .contact-info .section-title { text-align: center; }
    .contact-info .section-tag { display: block; text-align: center; }
    .contact-desc { text-align: center; }
    .form-row { grid-template-columns: 1fr; }
}

/* --- Footer --- */
.footer {
    background: #1a0004;
    color: rgba(252, 228, 230, 0.7);
    padding: 64px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 48px;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.footer-logo svg { flex-shrink: 0; }
.footer-logo span { color: #fce4ec; }
.footer-desc { font-size: 0.9rem; line-height: 1.65; }
.footer-heading {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fce4ec;
    margin-bottom: 16px;
}
.footer-ul li { margin-bottom: 10px; }
.footer-ul a {
    font-size: 0.9rem;
    color: rgba(252, 228, 230, 0.6);
    transition: color 0.2s;
}
.footer-ul a:hover { color: #fce4ec; }
.footer-phone {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fce4ec;
    transition: color 0.2s;
}
.footer-phone:hover { color: #f5b0ba; }
.footer-map-link {
    font-size: 0.85rem;
    color: rgba(252, 228, 230, 0.6);
    transition: color 0.2s;
}
.footer-map-link:hover { color: #fce4ec; }
.footer-bottom {
    border-top: 1px solid rgba(252, 228, 230, 0.1);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.8rem;
    color: rgba(252, 228, 230, 0.4);
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; }
}
