/* ==================================================
   PROW CONSTRUCTIONS INC. — Sections: Hero, Residential, Commercial, About,
   Projects, Testimonials, Contact + Responsive
   ================================================== */

/* ==================================================
   HERO
   ================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

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

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    animation: heroZoom 15s ease-out forwards;
}

@keyframes heroZoom {
    from {
        transform: scale(1.05);
    }

    to {
        transform: scale(1);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg,
            rgba(13, 15, 20, 0.92) 0%,
            rgba(13, 15, 20, 0.75) 50%,
            rgba(13, 15, 20, 0.35) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    padding: 0 24px;
    margin-left: max(24px, calc((100vw - 1200px) / 2));
    padding-top: calc(var(--nav-height) + 40px);
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 24px;
    background: rgba(212, 164, 53, 0.08);
    animation: fadeUp 0.8s 0.2s both;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    animation: fadeUp 0.8s 0.4s both;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin-bottom: 40px;
    line-height: 1.7;
    animation: fadeUp 0.8s 0.6s both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeUp 0.8s 0.8s both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
    animation: fadeUp 1s 1.2s both;
}

.hero-scroll-hint span {
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.scroll-arrow {
    width: 20px;
    height: 30px;
    border: 1.5px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--gold);
    border-radius: 50%;
    animation: scrollDot 1.5s ease-in-out infinite;
}

@keyframes scrollDot {

    0%,
    100% {
        top: 6px;
        opacity: 1;
    }

    80% {
        top: 16px;
        opacity: 0;
    }
}

/* ==================================================
   RESIDENTIAL
   ================================================== */
.residential-section {
    padding: 120px 0;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.residential-section::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 164, 53, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.residential-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.residential-img-col {
    position: relative;
}

.residential-hero-img {
    width: 100%;
    border-radius: var(--radius-lg);
    object-fit: cover;
    aspect-ratio: 4/5;
    box-shadow: var(--shadow-card);
    transition: transform 0.6s var(--transition);
}

.residential-img-col:hover .residential-hero-img {
    transform: scale(1.02);
}

.residential-img-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #0D0F14;
    padding: 20px 24px;
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(212, 164, 53, 0.4);
    display: flex;
    align-items: center;
    gap: 14px;
}

.res-badge-icon {
    font-size: 2rem;
    line-height: 1;
}

.res-badge-num {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.res-badge-text {
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.3;
    max-width: 80px;
}

.residential-services-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 8px;
}

/* ==================================================
   COMMERCIAL (Services)
   ================================================== */
.services-section {
    padding: 120px 0;
    background: var(--bg-alt);
}

/* ==================================================
   ABOUT
   ================================================== */
.about-section {
    padding: 120px 0;
    background: var(--bg-dark);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-visual {
    position: relative;
}

.about-img-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: visible;
}

.about-img-wrap img {
    width: 100%;
    border-radius: var(--radius-lg);
    object-fit: cover;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-card);
}

.about-badge-card {
    position: absolute;
    bottom: -24px;
    right: -24px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #0D0F14;
    padding: 24px 28px;
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(212, 164, 53, 0.4);
}

.badge-num {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
}

.badge-text {
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 4px;
    line-height: 1.3;
}

.about-content {
    padding-left: 16px;
}

/* ==================================================
   PROJECTS
   ================================================== */
.projects-section {
    padding: 120px 0;
    background: var(--bg-section);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ==================================================
   TESTIMONIALS
   ================================================== */
.testimonials-section {
    padding: 120px 0;
    background: var(--bg-dark);
    overflow: hidden;
}

/* ==================================================
   CONTACT
   ================================================== */
.contact-section {
    padding: 120px 0;
    background: var(--bg-alt);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}

/* ==================================================
   RESPONSIVE
   ================================================== */
@media (max-width: 1024px) {
    .about-grid {
        gap: 48px;
    }

    .contact-grid {
        gap: 48px;
    }

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

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

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-card:nth-child(2)::after {
        display: none;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-badge-card {
        right: 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-wrap {
        padding: 32px;
    }

    .residential-showcase {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .residential-img-badge {
        right: 0;
    }
}

@media (max-width: 768px) {

    /* Reduce section padding for tablets/phablets */
    .residential-section,
    .services-section,
    .about-section,
    .projects-section,
    .testimonials-section,
    .contact-section {
        padding: 80px 0;
    }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(10, 12, 17, 0.98);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        padding: 16px 20px 24px;
        gap: 4px;
        transform: translateY(-110%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        border-bottom: 1px solid var(--border-subtle);
        box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
        z-index: 999;
        max-height: calc(100vh - var(--nav-height));
        overflow-y: auto;
    }

    .nav-links.open {
        transform: translateY(0);
    }

    /* Regular mobile nav links — full-width tap targets */
    .nav-links .nav-link {
        width: 100%;
        padding: 14px 16px;
        font-size: 1rem;
        font-weight: 500;
        color: var(--text-secondary);
        border-radius: 10px;
        text-align: left;
        margin-left: 0;
        display: block;
    }

    .nav-links .nav-link:hover,
    .nav-links .nav-link.active {
        background: rgba(255, 255, 255, 0.05);
        color: var(--text-primary);
    }

    /* Divider before CTA button */
    .nav-links li:last-child {
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid var(--border-subtle);
    }

    /* "Get a Quote" — full-width gold button in mobile menu */
    .nav-links .nav-link.nav-cta {
        width: 100%;
        display: block;
        text-align: center;
        padding: 15px 20px;
        border-radius: 10px;
        font-size: 1rem;
        font-weight: 700;
        margin-left: 0;
        background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
        color: #0D0F14;
        box-shadow: 0 4px 20px rgba(212, 164, 53, 0.35);
        letter-spacing: 0.02em;
    }

    .nav-links .nav-link.nav-cta:hover {
        background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
        transform: none;
        box-shadow: 0 6px 24px rgba(212, 164, 53, 0.5);
    }

    .hamburger {
        display: flex;
    }

    .hero-content {
        margin-left: 0;
        padding: 0 20px;
        padding-top: calc(var(--nav-height) + 40px);
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

    .contact-form {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        padding: 32px 24px;
    }

    /* Prevent badge cards from overflowing on small screens */
    .about-badge-card {
        position: static;
        margin-top: 16px;
        display: inline-flex;
        align-self: flex-end;
    }

    .about-img-wrap {
        display: flex;
        flex-direction: column;
    }

    .residential-img-badge {
        position: static;
        margin-top: 16px;
        align-self: flex-end;
    }

    .residential-img-col {
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 560px) {

    /* Further reduce section padding for phones */
    .residential-section,
    .services-section,
    .about-section,
    .projects-section,
    .testimonials-section,
    .contact-section {
        padding: 60px 0;
    }

    .stats-section {
        padding: 40px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-actions {
        flex-direction: column;
    }

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

    .contact-form-wrap {
        padding: 24px 20px;
    }

    .testimonial-card {
        padding: 28px 20px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .contact-grid {
        gap: 32px;
    }

    .about-grid {
        gap: 32px;
    }
}

/* Extra small phones (iPhone SE, Galaxy A series, etc.) */
@media (max-width: 400px) {
    .container {
        padding: 0 16px;
    }

    :root {
        --nav-height: 64px;
    }

    .logo-img {
        height: 44px;
    }

    .hero-content {
        padding-top: calc(var(--nav-height) + 24px);
    }

    .hero-scroll-hint {
        bottom: 24px;
    }

    .residential-section,
    .services-section,
    .about-section,
    .projects-section,
    .testimonials-section,
    .contact-section {
        padding: 48px 0;
    }

    .stats-section {
        padding: 32px 0;
    }

    .stat-card {
        padding: 24px 8px;
    }

    .contact-form-wrap {
        padding: 20px 16px;
    }

    .footer {
        padding: 48px 0 0;
    }

    .footer-grid {
        gap: 24px;
        padding-bottom: 40px;
    }

    .testimonial-card {
        padding: 24px 16px;
    }

    .testimonial-text {
        font-size: 1rem;
    }

    .filter-bar {
        gap: 8px;
        margin-bottom: 32px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.82rem;
    }
}