/* =========================================================
   GIX LAW FIRM - HOMEPAGE STYLESHEET
   Compact / Professional / Fully Responsive
   PHP 7.x / 8.x Compatible
   (cPanel Linter Clean)
   ========================================================= */


/* =========================================================
   1. HERO SECTION
   ========================================================= */

.home-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: #0b2138;
    color: #ffffff;
}

.home-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: #0b2138;
    background: linear-gradient(
        90deg,
        rgba(7, 24, 42, 0.98) 0%,
        rgba(11, 33, 56, 0.94) 55%,
        rgba(11, 33, 56, 0.88) 100%
    );
}

.home-hero::after {
    content: "";
    position: absolute;
    right: -120px;
    top: 50%;
    width: 440px;
    height: 440px;
    transform: translateY(-50%);
    border: 1px solid #c79a4a;
    border: 1px solid rgba(199, 154, 74, 0.20);
    border-radius: 50%;
    pointer-events: none;
}

.home-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 760px;
    padding-top: 48px;
    padding-bottom: 48px;
}

.home-hero-content::before {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    margin-bottom: 18px;
    background-color: #c79a4a;
}

.home-hero .home-eyebrow {
    margin: 0 0 12px;
    color: #d9b66e;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2.2px;
    line-height: 1.4;
    text-transform: uppercase;
}

.home-hero h1 {
    max-width: 700px;
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 46px;
    line-height: 1.12;
    letter-spacing: -0.6px;
    font-weight: 700;
}

.home-hero-text {
    max-width: 640px;
    margin: 0;
    color: #d6dde4;
    color: rgba(255, 255, 255, 0.84);
    font-size: 15px;
    line-height: 1.6;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}


/* =========================================================
   2. BUTTONS
   ========================================================= */

.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.home-btn-primary {
    background-color: #c79a4a;
    color: #ffffff;
    border: 1px solid #c79a4a;
}

.home-btn-primary:hover {
    background-color: #a9792d;
    color: #ffffff;
    border-color: #a9792d;
    transform: translateY(-2px);
}

.home-btn-outline {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.65);
}

.home-btn-outline:hover {
    background-color: #ffffff;
    color: #0b2138;
    border-color: #ffffff;
    transform: translateY(-2px);
}

.home-btn-dark {
    background-color: #0b2138;
    color: #ffffff;
    border: 1px solid #0b2138;
}

.home-btn-dark:hover {
    background-color: #c79a4a;
    color: #ffffff;
    border-color: #c79a4a;
    transform: translateY(-2px);
}


/* =========================================================
   3. TRUST BAR
   ========================================================= */

.home-trust {
    position: relative;
    z-index: 5;
    margin-top: -24px;
}

.home-trust-grid {
    display: flex;
    width: 100%;
    min-height: 84px;
    background-color: #ffffff;
    border: 1px solid #e5e9ee;
    box-shadow: 0 4px 18px #dce3eb;
    box-shadow: 0 4px 18px rgba(11, 31, 56, 0.08);
}

.home-trust-item {
    position: relative;
    flex: 1 1 25%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 14px 16px;
    text-align: center;
}

.home-trust-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 22%;
    right: 0;
    width: 1px;
    height: 56%;
    background-color: #dfe4e9;
}

.home-trust-item strong {
    display: block;
    margin: 0 0 3px;
    color: #0b2138;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 800;
}

.home-trust-item span {
    display: block;
    color: #687585;
    font-size: 12px;
    line-height: 1.35;
}


/* =========================================================
   4. SECTION HEADINGS & COMMON WRAPPERS
   ========================================================= */

.home-section-heading {
    width: 100%;
    max-width: 720px;
    margin: 0 auto 24px;
    text-align: center;
}

.home-section-heading .home-eyebrow {
    margin: 0 0 8px;
    color: #b48538;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.home-section-heading h2 {
    margin: 0 0 8px;
    color: #0b2138;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
}

.home-section-heading > p:last-child {
    max-width: 650px;
    margin: 0 auto;
    color: #536273;
    font-size: 14px;
    line-height: 1.55;
}

.home-section {
    padding-top: 45px;
    padding-bottom: 45px;
}

.home-gallery-section {
    padding-top: 45px;
    padding-bottom: 45px;
}


/* =========================================================
   5. SERVICES SECTION
   ========================================================= */

.home-services-section {
    background-color: #f5f7fa;
    padding-top: 45px;
    padding-bottom: 45px;
}

.home-services-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 16px;
}

.home-service-card {
    position: relative;
    display: flex;
    flex: 1 1 310px;
    min-width: 260px;
    min-height: 205px;
    overflow: hidden;
    background-color: #ffffff;
    border: 1px solid #e1e6eb;
    border-radius: 8px;
    box-shadow: 0 3px 12px #e5ebf1;
    box-shadow: 0 3px 12px rgba(11, 31, 56, 0.055);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.home-service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background-color: #c79a4a;
}

.home-service-card:hover {
    transform: translateY(-3px);
    border-color: #d6b66f;
    box-shadow: 0 8px 22px #d6dfe8;
    box-shadow: 0 8px 22px rgba(11, 31, 56, 0.10);
}

.home-service-number {
    flex: 0 0 48px;
    padding-top: 20px;
    color: #c79a4a;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    text-align: center;
}

.home-service-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    padding: 20px 18px 18px 2px;
}

.home-service-content h3 {
    margin: 0 0 8px;
    color: #0b2138;
    font-size: 18px;
    line-height: 1.3;
}

.home-service-content p {
    margin: 0;
    color: #586777;
    font-size: 13px;
    line-height: 1.55;
}

.home-service-content a {
    display: inline-flex;
    width: fit-content;
    margin-top: auto;
    padding-top: 12px;
    color: #0b2138;
    font-size: 13px;
    font-weight: 700;
    border-bottom: 2px solid #c79a4a;
}

.home-service-content a:hover {
    color: #b48538;
}

.home-center-button {
    margin-top: 22px;
    text-align: center;
}


/* =========================================================
   6. ABOUT SECTION
   ========================================================= */

.home-about {
    padding-top: 48px;
    padding-bottom: 48px;
    background-color: #ffffff;
}

.home-about-grid {
    display: flex;
    align-items: center;
    gap: 38px;
}

.home-about-image {
    position: relative;
    display: inline-block;
    max-width: 380px;
    width: 100%;
    padding: 6px;
    background-color: #ffffff;
    border: 2px solid #c79a4a; /* Crisp Gold Border */
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(11, 31, 56, 0.08);
}

.home-about-image-frame {
    display: none !important; /* Hides the extra offset layer */
}

.home-about-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.home-about-content {
    flex: 1 1 0;
    min-width: 0;
    max-width: 620px;
}

.home-about-content .home-eyebrow {
    margin-bottom: 8px;
    color: #b48538;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.home-about-content h2 {
    margin: 0 0 10px;
    color: #0b2138;
    font-size: 32px;
    line-height: 1.2;
}

.home-about-content > p {
    margin: 0 0 10px;
    color: #536273;
    font-size: 14px;
    line-height: 1.6;
}

.home-about-person {
    display: flex;
    align-items: center;
    margin: 16px 0;
    padding: 10px 0;
    border-top: 1px solid #e4e8ed;
    border-bottom: 1px solid #e4e8ed;
}

.home-about-person strong {
    color: #0b2138;
    font-size: 15px;
    line-height: 1.35;
}

.home-about-person span {
    margin-top: 2px;
    color: #7a8794;
    font-size: 12px;
    line-height: 1.35;
    display: block;
}


/* =========================================================
   7. WHY CHOOSE US
   ========================================================= */

.home-why {
    padding-top: 45px;
    padding-bottom: 45px;
    background-color: #f5f7fa;
}

.home-why-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 14px;
}

.home-why-card {
    position: relative;
    flex: 1 1 220px;
    min-width: 190px;
    min-height: 195px;
    padding: 18px 16px;
    background-color: #ffffff;
    border: 1px solid #e2e7ec;
    border-top: 3px solid #c79a4a;
    border-radius: 6px;
    box-shadow: 0 2px 10px #e6ecf2;
    box-shadow: 0 2px 10px rgba(11, 31, 56, 0.045);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.home-why-card:hover {
    transform: translateY(-2px);
    border-color: #d5b56c;
    box-shadow: 0 6px 18px #d8e0e8;
    box-shadow: 0 6px 18px rgba(11, 31, 56, 0.09);
}

.home-why-card > span {
    display: block;
    margin-bottom: 8px;
    color: #c79a4a;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

.home-why-card h3 {
    margin: 0 0 6px;
    color: #0b2138;
    font-size: 17px;
    line-height: 1.35;
}

.home-why-card p {
    margin: 0;
    color: #657383;
    font-size: 13px;
    line-height: 1.5;
}


/* =========================================================
   8. OFFICE GALLERY
   ========================================================= */

.home-gallery-section {
    background-color: #ffffff;
}

.home-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.home-gallery-item {
    position: relative;
    flex: 1 1 calc(25% - 8px);
    min-width: 0;
    height: 180px;
    overflow: hidden;
    border-radius: 5px;
    background-color: #e9edf1;
}

.home-gallery-large {
    flex: 2 1 calc(50% - 6px);
    height: 370px;
}

.home-gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.home-gallery-item:hover img {
    transform: scale(1.03);
}


/* =========================================================
   9. CTA BANNER
   ========================================================= */

.home-cta {
    position: relative;
    z-index: 2;
    padding-top: 38px;
    padding-bottom: 38px;
    background-color: #0b2138;
}

.home-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.home-cta .home-eyebrow {
    margin-bottom: 6px;
    color: #d9b66e;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.home-cta h2 {
    margin: 0 0 6px;
    color: #ffffff;
    font-size: 28px;
    line-height: 1.2;
}

.home-cta p:not(.home-eyebrow) {
    max-width: 640px;
    margin: 0;
    color: #c2cbd4;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    line-height: 1.5;
}

.home-cta .home-btn {
    flex-shrink: 0;
}


/* =========================================================
   10. TABLET VIEW (max-width: 960px)
   ========================================================= */

@media (max-width: 960px) {

    .home-hero h1 {
        font-size: 40px;
    }

    .home-about-grid {
        flex-direction: column;
        gap: 30px;
    }

    .home-about-image {
        max-width: 360px;
    }

    .home-gallery-item {
        flex: 1 1 calc(50% - 6px);
    }

    .home-gallery-large {
        flex: 1 1 100%;
        height: 240px;
    }
}


/* =========================================================
   11. MOBILE VIEW (max-width: 720px)
   Eliminates horizontal scrolling, balances section spacing
   ========================================================= */

@media (max-width: 720px) {

    .home-hero {
        min-height: auto;
    }

    .home-hero::after {
        display: none;
        /* Prevents overflow drift on mobile */
    }

    .home-hero-content {
        padding-top: 38px;
        padding-bottom: 38px;
    }

    .home-hero h1 {
        font-size: 30px;
        line-height: 1.15;
    }

    .home-hero-actions {
        flex-direction: column;
        gap: 10px;
    }

    .home-hero-actions .home-btn {
        width: 100%;
    }

    /* Trust Bar Mobile 2x2 Grid */

    .home-trust {
        margin-top: 0;
    }

    .home-trust-grid {
        flex-wrap: wrap;
    }

    .home-trust-item {
        flex: 1 1 50%;
        min-height: 68px;
        padding: 10px 12px;
    }

    .home-trust-item:nth-child(2)::after {
        display: none;
    }

    .home-trust-item strong {
        font-size: 16px;
    }

    .home-trust-item span {
        font-size: 11px;
    }

    /* Standard Compact Section Spacing on Mobile */

    .home-section,
    .home-services-section,
    .home-gallery-section,
    .home-about,
    .home-why {
        padding-top: 34px;
        padding-bottom: 34px;
    }

    .home-section-heading {
        margin-bottom: 20px;
    }

    .home-section-heading h2,
    .home-about-content h2 {
        font-size: 24px;
    }

    /* Services Single Column Stack */

    .home-services-grid {
        flex-direction: column;
        gap: 12px;
    }

    .home-service-card {
        flex: 1 1 100%;
        min-height: auto;
    }

    /* About Section */

    .home-about-image img {
        height: 340px;
    }

    /* Why Section Single Column */

    .home-why-grid {
        flex-direction: column;
        gap: 10px;
    }

    .home-why-card {
        flex: 1 1 100%;
        min-height: auto;
    }

    /* Gallery 2-Column Mobile Grid */

    .home-gallery-item {
        flex: 1 1 calc(50% - 6px);
        height: 140px;
    }

    .home-gallery-large {
        flex: 1 1 100%;
        height: 200px;
    }

    /* CTA Banner */

    .home-cta {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .home-cta-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .home-cta .home-btn {
        width: 100%;
    }
}


/* =========================================================
   12. ACCESSIBILITY (REDUCED MOTION)
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .home-btn,
    .home-service-card,
    .home-why-card,
    .home-gallery-item img {
        transition: none;
    }
}
