/* ===== Hero Section ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    width: 100%;
    overflow: hidden;
    margin-top: 0;
    padding-top: 0;
    color: white;
    z-index: 1;
    background:
        url('../images/commercial/rva-skyline.jpeg') center center / cover no-repeat;
    background-color: #1a1a1a;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.6), rgba(0,0,0,0.3));
    z-index: 5;
}

.hero-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    max-width: 700px;
    padding-top: 0;
    gap: 1.5rem;
}

.hero-content h2,
.hero-content h1,
.hero-content p {
    margin: 0;
}

.hero-content h1 {
    font-size: 3.75rem;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.hero-content p {
    font-size: 1.35rem;
    opacity: 0.95;
    max-width: 600px;
    line-height: 1.5;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
}

.scroll-down a {
    color: white;
    font-size: 1.5rem;
    display: block;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* About Section */
.about-section h2:after,
.testimonial-preview h2:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 0.5rem auto 0;
}

.center-heading {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.about-container {
    background-color: #f9f9f9;
    padding: 20px;
    max-width: 1200px;
    margin: 20px auto;
    /* height: 50vh; */
}

.about-container p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
}

#hero-bottom {
    position: absolute;
    bottom: 0;
}

/* Services Preview Section */
.services-preview {
    padding: 80px 0 88px;
    background-color: var(--section-muted-bg);
}

.services-preview-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.services-preview-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.services-preview h2,
.services-preview .section-title {
    color: var(--secondary-color);
    font-size: 2.5rem;
    margin-bottom: 0;
}

.services-preview h2::after,
.services-preview .section-title::after {
    display: none;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(28px, 3vw, 44px);
}

.service-card {
    background: transparent;
    border-radius: 0;
    overflow: visible;
    text-align: center;
    box-shadow: none;
    transition: opacity 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.service-card:hover {
    transform: none;
    box-shadow: none;
    opacity: 0.92;
}

.service-card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    flex-shrink: 0;
    border-radius: 14px;
    margin-bottom: 1.35rem;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.service-card:hover .service-card-image img {
    transform: scale(1.03);
}

.service-card-body {
    padding: 0 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.15rem, 1.6vw, 1.45rem);
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1.35;
    max-width: 22ch;
}

.service-card p {
    font-size: 0.98rem;
    color: #333;
    margin-bottom: 0;
    line-height: 1.65;
    flex: 1;
    max-width: 34ch;
}

.service-link {
    display: none;
}

/* Portfolio Preview Section */
.portfolio-preview {
    text-align: center;
    padding: var(--spacing-xl) 0;
}

.portfolio-preview h2 {
    color: var(--dark-color);
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    position: relative;
}

.portfolio-preview h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    height: 3px;
    background-color: var(--primary-color);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
}

.overlay-content h3 {
    color: var(--light-color);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
}

.overlay-content p {
    color: var(--light-color);
    font-size: 1rem;
    margin-bottom: var(--spacing-sm);
}

.overlay-content a {
    display: inline-block;
    color: var(--light-color);
    text-decoration: none;
    border: 2px solid var(--light-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.overlay-content a:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.view-all {
    margin-top: var(--spacing-lg);
}

/* Process Section */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.process-step {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.process-step:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.step-number {
    background-color: var(--primary-color);
    color: var(--light-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0 auto var(--spacing-sm);
}

.step-content {
    margin-top: var(--spacing-sm);
}

.step-content h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
    color: var(--dark-color);
}

.step-content p {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.6;
}

/* Shared .cta-section styles live in style.css */

/* ===== Mobile ===== */
@media screen and (max-width: 768px) {
    .hero {
        min-height: 100svh;
        min-height: 100dvh;
    }

    .hero-content {
        padding: 112px 16px 60px;
        gap: 0.75rem;
        justify-content: center;
    }

    .hero-content h2 {
        font-size: 0.95rem;
        letter-spacing: 0.04em;
    }

    .hero-content h1 {
        font-size: 2.35rem;
        line-height: 1.15;
    }

    .hero-content p {
        font-size: 1.05rem;
        line-height: 1.55;
        padding: 0 4px;
    }

    .hero .button-group {
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-top: 1rem;
        gap: 0.65rem;
    }

    .hero .button-group .cta-button,
    .hero .button-group .cta-button-secondary {
        width: 100%;
        max-width: 260px;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .scroll-down {
        bottom: max(env(safe-area-inset-bottom), 16px);
    }

    .services-preview {
        padding: 48px 0 56px;
    }

    .services-preview-inner {
        padding: 0 1rem;
    }

    .services-preview-header {
        margin-bottom: 2rem;
    }

    .services-preview h2,
    .services-preview .section-title {
        font-size: 2rem;
    }

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

    .service-card-body {
        padding: 0 0.25rem;
    }

    .service-card h3,
    .service-card p {
        max-width: none;
    }
}

@media screen and (max-width: 480px) {
    .hero-content {
        padding: 104px 14px 52px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 0.98rem;
    }

    .services-preview h2,
    .services-preview .section-title {
        font-size: 1.75rem;
    }
}
