/* =========================================================
   FRONTEND LAYOUT CSS
   Purpose: Structural layout for public-facing pages
   Depends on: base.css
========================================================= */

/* ---------------------------------------------------------
   Fixed Header (Shrinks on Scroll)
--------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    z-index: 1000;
    transition: height 0.25s ease, box-shadow 0.25s ease;

    /* NEW: vertical gradient overlay */
    background: linear-gradient(
            to bottom,
            rgba(0,0,0,0.40) 0%,
            rgba(0,0,0,0.25) 20%,
            rgba(0,0,0,0.10) 40%,
            rgba(0,0,0,0.00) 60%
    );
}

.site-header.shrink {
    height: 60px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.header-inner {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 1.25rem;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.site-logo img {
    height: 70px;
    transition: height 0.25s ease;
}

.site-header.shrink .site-logo img {
    height: 45px;
}

/* Navigation */
.site-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.site-nav a {
    font-weight: 600;
    color: #000000;
    text-decoration: none;
}

.site-nav a:hover {
    text-decoration: underline;
}

/* ---------------------------------------------------------
   Hero Section
--------------------------------------------------------- */
.hero {
    height: 400px;
    min-height: 400px;
    max-height: 400px;
    display: flex;
    align-items: center;

    background-image: url("/images/site-image-01.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    justify-content: center;
    position: relative;
}

/* Homepage override */
.homepage .homepage-hero {
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
}

/* Homepage hero should NOT have the dark overlay */
.homepage .homepage-hero::before {
    display: none !important;
}

.hero-overlay {
    background-color: rgba(0,0,0,0.55);
    padding: 3rem 4rem;
    text-align: center;
    border-radius: 6px;
}

.hero-overlay h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.hero-overlay p {
    font-size: 1.2rem;
    max-width: none;
}

/* =========================================================
   Universal Hero Overlay (applies to all heroes except homepage)
========================================================= */
.hero:not(.homepage-hero)::before,
.hero-services::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55); /* adjust opacity as needed */
    z-index: 1;
}

/* Ensure hero text sits above overlay */
.hero *,
.hero-services * {
    position: relative;
    z-index: 2;
}

.hero:not(.homepage-hero) h1,
.hero-services h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.hero:not(.homepage-hero) p,
.hero-services p {
    font-size: 1.25rem;
    font-weight: 600;
    max-width: 700px;
}

/* ----------------------------------------------
   SERVICE HERO
---------------------------------------------- */
.service-hero img {
    width: 100%;
    aspect-ratio: 1.87 / 1;
    object-fit: cover;
    display: block;
    position: relative;
}

.service-hero {
    position: relative;
}

.service-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
}

.service-hero .hero-content {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    text-align: center;
}

/* ----------------------------------------------
   SERVICE GALLERY GRID
---------------------------------------------- */
.service-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
    gap: 15px;
}

.service-gallery-grid img {
    width: 100%;
    height: 125px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
}

/* ---------------------------------------------------------
   Statement Bar (Above the Fold)
--------------------------------------------------------- */
.statement-bar {
    background-color: #a72d2b;
    color: #ffffff;
}

.statement-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.statement-inner span {
    font-size: 1.1rem;
    font-weight: 600;
}

/* ---------------------------------------------------------
   Main Content Area
--------------------------------------------------------- */
.site-content {
    flex: 1;
    padding-top: 90px; /* match header height */
}

/* ---------------------------------------------------------
   Footer Columns
--------------------------------------------------------- */

.site-footer {
    color: #cccccc;
    padding: 3rem 1.25rem 1.5rem;
}

.footer-column {
    max-width: 260px;
}

.footer-column strong {
    display: block;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    color: #ffffff;
}

.footer-column p,
.footer-column a {
    font-size: 0.9rem;
    color: #cccccc;
    line-height: 1.6;
}

.footer-column a {
    display: block;
    text-decoration: none;
}

.footer-column a:hover {
    color: #ffffff;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;

    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-left {
    max-width: 400px;
}

.footer-right {
    display: flex;
    gap: 1.5rem;
}

.footer-right a {
    color: #cccccc;
    font-weight: 500;
}

.footer-right a:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.85rem;
    color: #888888;
}

/* ---------------------------------------------------------
   Responsive Adjustments
--------------------------------------------------------- */
@media (max-width: 768px) {

    .site-header {
        height: 70px;
    }

    .site-header.shrink {
        height: 55px;
    }

    .site-logo img {
        height: 50px;
    }

    .site-header.shrink .site-logo img {
        height: 40px;
    }

    .site-nav {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .hero-overlay {
        padding: 2rem;
    }

    .hero-overlay h1 {
        font-size: 2.2rem;
    }

    .statement-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-right {
        justify-content: center;
    }
}

/* ---------------------------------------------------------
   Project Gallery
--------------------------------------------------------- */
.project-featured {
    margin-bottom: 3rem;
}

.project-featured img {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    border-radius: 6px;
}

.project-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}

.project-gallery-grid figure {
    background-color: #1a1a1a;
    padding: 0.5rem;
    border-radius: 6px;
}

.project-featured img {
    width: 100% !important;
    height: auto !important;
    max-width: 1200px;
    display: block;
}

.project-gallery-grid figcaption {
    width: 100%;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #bbbbbb;
}

/* ---------------------------------------------------------
   Lightbox
--------------------------------------------------------- */
.lightbox {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 6px;
}

.lightbox-content p {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #cccccc;
}

/*
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.lightbox img {
    max-width: 90%;
    max-height: 80vh;
    margin-bottom: 10px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}
*/





/* ---------------------------------------------------------
   Featured Projects (Homepage)
--------------------------------------------------------- */
.featured-projects {
    padding: 4rem 1.25rem;
}

.featured-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.featured-project-card {
    background-color: #ffffff;
    border-radius: 6px;
    padding: 1.75rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.featured-project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.project-card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #222222;
}

.project-card-content p {
    font-size: 0.95rem;
    color: #555555;
    line-height: 1.6;
}

.no-projects-message {
    text-align: center;
    font-size: 1rem;
    color: #666666;
    margin-top: 2rem;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    font-size: 1.05rem;
    color: #555555;
    max-width: 600px;
    margin: 0 auto;
}

/*.................
/ Servics CSS
*/
.services-text-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.service-text-card {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px;
    background: #f7f7f7;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: background 0.2s;
}

.service-text-card:hover {
    background: #eaeaea;
}

