/* ==========================================================
   INGRACE HOMEPAGE — COMPLETE FINAL LAYOUT
   Direct replacement for homepage-layout.css
   ========================================================== */

:root {
    --ingrace-blue: #075895;
    --ingrace-deep-blue: #004c8e;
    --ingrace-button: #0c55ce;
    --ingrace-text: #2d2d2d;
    --ingrace-light: #f7f7f7;
    --ingrace-footer: #181818;
    --content-width: 1180px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ingrace-text);
    background: #ffffff;
    font-size: 20px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body .container {
    width: min(calc(100% - 3rem), var(--content-width));
    margin-inline: auto;
}

/* =========================
   TOP BAR
   ========================= */

body .topbar {
    min-height: 44px;
    background: var(--ingrace-blue);
    color: #ffffff;
}

body .topbar-inner {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
}

body .topbar-contact {
    display: flex;
    gap: 24px;
    margin-left: auto;
    font-size: 15px;
}

body .topbar-contact a {
    color: #ffffff;
    text-decoration: none;
}

/* =========================
   NAVIGATION
   ========================= */

body .site-header {
    position: relative;
    z-index: 20;
    background: #ffffff;
    border: 0;
    box-shadow: 0 3px 16px rgba(0, 45, 82, 0.09);
}

body .header-inner {
    display: flex;
    min-height: 128px;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    padding-top: 28px;
    padding-bottom: 28px;
}

body .brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 1rem;
    text-decoration: none;
}

body .header-logo {
    display: block;
    width: auto;
    max-width: 135px;
    max-height: 95px;
    object-fit: contain;
}

body .brand-name {
    color: var(--ingrace-deep-blue);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

body .primary-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 38px;
}

body .primary-nav a {
    position: relative;
    display: inline-block;
    padding-top: 28px;
    padding-bottom: 28px;
    color: var(--ingrace-deep-blue);
    font-size: 19px;
    font-weight: 700;
    text-decoration: none;
}

body .primary-nav a::after {
    position: absolute;
    right: 0;
    bottom: 17px;
    left: 0;
    height: 3px;
    background: var(--ingrace-button);
    content: "";
    opacity: 0;
    transform: scaleX(0);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

body .primary-nav a:hover::after,
body .primary-nav a:focus-visible::after {
    opacity: 1;
    transform: scaleX(1);
}

/* =========================
   ROW 1 — VIDEO HERO
   ========================= */

body .hero {
    position: relative;
    display: grid;
    min-height: 920px;
    overflow: hidden;
    color: #ffffff;
    background: var(--ingrace-deep-blue);
    isolation: isolate;
}

body .hero-has-image {
    background-image: var(--hero-image);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

body .hero-fallback {
    background:
        linear-gradient(rgba(0, 40, 75, 0.7), rgba(0, 40, 75, 0.7)),
        var(--ingrace-deep-blue);
}

body .hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body .hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 20, 35, var(--hero-overlay-opacity, 0.55));
    pointer-events: none;
}

body .hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-self: center;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    padding-top: 210px;
    padding-bottom: 210px;
    text-align: center;
}

body .hero-content h1 {
    max-width: 1080px;
    margin: 0 0 24px;
    color: #ffffff;
    font-size: clamp(68px, 8vw, 108px);
    font-weight: 400;
    line-height: 1;
    text-shadow: 0 4px 28px rgba(0, 0, 0, 0.35);
}

body .hero-content p {
    max-width: 800px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(23px, 2vw, 30px);
    line-height: 1.6;
    text-shadow: 0 3px 20px rgba(0, 0, 0, 0.35);
}

body .hero-button {
    display: inline-block;
    margin-top: 38px;
    padding: 17px 32px;
    border-radius: 3px;
    background: var(--ingrace-button);
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    text-transform: uppercase;
}

/* =========================
   ROW 2 — WHO WE ARE
   ========================= */

body .who-section {
    padding: 100px 0;
    background: #ffffff;
}

body .who-grid {
    display: grid;
    grid-template-columns: minmax(0, 56%) minmax(0, 44%);
    gap: 64px;
    align-items: center;
}

body .who-image-column {
    min-width: 0;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 16px 40px rgba(0, 49, 91, 0.14);
}

body .who-image-column img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 440px;
    object-fit: cover;
}

body .who-content-column {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
}

body .who-content-column h2,
body .operations-heading h2,
body .location-content-column h2 {
    margin-top: 0;
    color: var(--ingrace-deep-blue);
    font-size: clamp(36px, 3.4vw, 48px);
    font-weight: 600;
    line-height: 1.15;
}

body .who-content-column h2 {
    margin-bottom: 20px;
}

body .section-copy {
    color: var(--ingrace-text);
    font-size: 20px;
    line-height: 1.85;
}

body .section-copy p {
    margin: 0 0 18px;
}

body .who-button {
    display: block;
    width: 100%;
    margin-top: 14px;
    padding: 17px 22px;
    border-radius: 3px;
    background: var(--ingrace-button);
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
}

/* =========================
   ROW 3 — OPERATIONS
   ========================= */

body .operations-section {
    padding: 100px 0 110px;
    background: var(--ingrace-light);
}

body .operations-heading {
    max-width: 950px;
    margin: 0 auto 54px;
    text-align: center;
}

body .operations-heading h2 {
    margin-bottom: 14px;
}

body .operations-heading p {
    margin: 0;
    font-size: 20px;
    line-height: 1.75;
}

body .operations-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px 28px;
    align-items: start;
}

body .operation-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e0e7ed;
    border-radius: 4px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(0, 49, 91, 0.1);
    text-align: center;
}

body .operation-card img,
body .operation-placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

body .operation-card h3 {
    margin: 22px 20px 10px;
    color: var(--ingrace-deep-blue);
    font-size: 22px;
    font-weight: 700;
}

body .operation-card p {
    margin: 0;
    padding: 0 20px 26px;
    font-size: 19px;
    line-height: 1.75;
}

/* =========================
   ROW 4 — LOCATION
   ========================= */

body .location-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #075895 0%, #004c8e 100%);
    color: #ffffff;
}

body .location-grid {
    display: grid;
    grid-template-columns: minmax(0, 46%) minmax(0, 54%);
    gap: 72px;
    align-items: center;
}

body .location-content-column h2 {
    margin-bottom: 28px;
    color: #ffffff;
}

body .location-content-column .section-copy {
    color: #ffffff;
    font-size: 20px;
    line-height: 1.85;
}

body .location-image-column {
    min-width: 0;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 18px 42px rgba(0, 23, 48, 0.3);
}

body .location-image-column img {
    display: block;
    width: 100%;
    min-height: 400px;
    object-fit: cover;
}

/* =========================
   ROW 5 — FOOTER
   ========================= */

body .site-footer {
    padding: 0;
    background: var(--ingrace-footer);
    color: #ffffff;
}

body .footer-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(0, 1.15fr)
        minmax(0, 0.9fr)
        minmax(190px, 0.9fr);
    gap: 48px;
    align-items: start;
    padding-top: 62px;
    padding-bottom: 58px;
}

body .footer-column h3 {
    margin: 0 0 22px;
    color: #ffffff;
    font-size: 21px;
    font-weight: 700;
}

body .footer-column p,
body .footer-column a,
body .footer-links {
    color: #d5d5d5;
    font-size: 17px;
    line-height: 1.85;
}

body .footer-column a {
    text-decoration: none;
}

body .footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

body .footer-links li + li {
    margin-top: 14px;
}

body .footer-logo-column {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
}

body .footer-logo {
    display: block;
    width: auto;
    max-width: 210px;
    max-height: 210px;
    object-fit: contain;
}

body .footer-site-name {
    font-size: 18px;
}

body .footer-bottom {
    padding-top: 28px;
    padding-bottom: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

body .footer-bottom p {
    margin: 0;
    color: #d5d5d5;
    font-size: 16px;
}

/* =========================
   TABLET
   ========================= */

@media (max-width: 980px) {
    body {
        font-size: 18px;
    }

    body .header-inner {
        min-height: 112px;
        padding-top: 22px;
        padding-bottom: 22px;
    }

    body .primary-nav {
        gap: 20px;
    }

    body .primary-nav a {
        font-size: 17px;
    }

    body .hero {
        min-height: 820px;
    }

    body .who-grid,
    body .location-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    body .operations-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 720px) {
    body {
        font-size: 18px;
    }

    body .topbar-inner {
        justify-content: center;
    }

    body .topbar-spacer {
        display: none;
    }

    body .topbar-contact {
        flex-wrap: wrap;
        justify-content: center;
        margin-left: 0;
    }

    body .header-inner {
        min-height: auto;
        align-items: flex-start;
        flex-direction: column;
        padding-top: 28px;
        padding-bottom: 28px;
    }

    body .primary-nav {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
        gap: 0;
    }

    body .primary-nav a {
        width: 100%;
        padding-top: 13px;
        padding-bottom: 13px;
        font-size: 18px;
    }

    body .primary-nav a::after {
        bottom: 5px;
        width: 48px;
    }

    body .hero {
        min-height: 760px;
    }

    body .hero-content {
        padding-top: 145px;
        padding-bottom: 145px;
    }

    body .hero-content h1 {
        font-size: clamp(52px, 14vw, 72px);
    }

    body .hero-content p {
        font-size: 21px;
    }

    body .who-section,
    body .operations-section,
    body .location-section {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    body .who-grid,
    body .operations-grid,
    body .location-grid,
    body .footer-grid {
        grid-template-columns: 1fr;
    }

    body .who-image-column img {
        min-height: 320px;
    }

    body .location-image-column {
        order: -1;
    }

    body .location-image-column img {
        min-height: 300px;
    }

    body .footer-grid {
        gap: 38px;
        padding-top: 50px;
        padding-bottom: 48px;
    }
}
