/* Homepage-only design layer. The shared Master styles and other pages stay intact. */
.os-home {
    --os-ink: #17262f;
    --os-muted: #62717a;
    --os-accent: #e77a3d;
    --os-accent-dark: #c65d2b;
    --os-paper: #ffffff;
    --os-canvas: #f2f4f4;
    --os-line: #e1e6e7;
    --os-shadow: 0 16px 42px rgba(23, 38, 47, 0.08);
    color: var(--os-ink);
    background: var(--os-canvas);
    font-size: 16px;
    line-height: 1.8;
    width: 100vw;
    max-width: 100vw;
    margin-inline: calc(50% - 50vw);
    overflow: hidden;
}

.os-home,
.os-home * {
    box-sizing: border-box;
}

/* The homepage header is positioned over the opening hero; remove the theme's reserved top gap. */
.app-content > .main-content {
    padding-top: 0;
}

.os-home > section {
    position: relative;
    margin: 0;
    padding: clamp(48px, 6vw, 82px) 0;
    border: 0;
}

.os-home > section > .container {
    width: min(1220px, calc(100% - 40px));
    max-width: none;
    padding-right: 0;
    padding-left: 0;
}

.os-home h2,
.os-home h3,
.os-home h4 {
    color: var(--os-ink);
    font-weight: 750;
    line-height: 1.55;
}

.os-home h2 {
    font-size: clamp(25px, 2.8vw, 36px);
}

.os-home h3 {
    margin: 0 0 10px;
    font-size: clamp(24px, 2.4vw, 32px);
}

.os-home p {
    color: var(--os-muted);
    line-height: 1.95;
}

.os-home > section > .container hr,
.os-home #section_onlinesazeh_total > .row > .col-md-12 > hr {
    width: 58px;
    height: 3px;
    margin: 17px auto 28px;
    border: 0;
    background: var(--os-accent);
    opacity: 1;
}

/* Full-bleed hero based on the live OnlineSazeh.net hero image and palette. */
.os-home #heroBanner {
    display: flex;
    width: 100vw;
    max-width: none;
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    align-items: center;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: clamp(96px, 12vh, 144px) 0 clamp(48px, 8vh, 88px);
    overflow: hidden;
    color: #fff;
    background-color: #171b1e;
    background-image:
        linear-gradient(90deg, rgba(13, 16, 18, 0.95) 0%, rgba(18, 22, 24, 0.78) 43%, rgba(179, 81, 37, 0.50) 100%),
        url("../images/hero-steel-building.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 0;
    box-shadow: none;
}

.os-home .os-hero__inner {
    width: min(1480px, calc(100% - 64px));
    margin: 0 auto;
}

.os-home .os-hero__copy {
    width: min(100%, 880px);
    text-align: right;
}

.os-home .os-hero__copy h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(36px, 5vw, 68px);
    font-weight: 800;
    line-height: 1.35;
}

.os-home .os-hero__lead {
    max-width: 680px;
    margin: 12px 0 0;
    color: #f4b18a;
    font-size: clamp(22px, 2.1vw, 30px);
    font-weight: 650;
    line-height: 1.65;
}

.os-home .os-hero__description {
    max-width: 850px;
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(16px, 1.25vw, 19px);
    font-weight: 450;
    line-height: 2;
}

.os-home .os-hero__highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin: 18px 0 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.94);
    list-style: none;
}

.os-home .os-hero__highlights li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.7;
}

.os-home .os-hero__highlights li::before {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 2px;
    background: #f4a274;
    content: "";
}

.os-home .os-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.os-home .os-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border: 1px solid transparent;
    border-radius: 3px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.os-home .os-button--primary {
    color: #fff;
    background: var(--os-accent);
}

.os-home .os-button--primary:hover {
    color: #fff;
    background: var(--os-accent-dark);
    transform: translateY(-2px);
}

.os-home .os-button--outline {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.58);
    background: rgba(20, 24, 26, 0.16);
}

.os-home .os-button--outline:hover {
    color: #fff;
    border-color: #fff;
    background: rgba(20, 24, 26, 0.36);
}

.os-home .os-button:focus-visible,
.os-home a:focus-visible {
    outline: 3px solid #f5a374;
    outline-offset: 3px;
}

/* Service sections: clear spacing, readable copy and consistent linked cards. */
.os-home #executive_services,
.os-home #section_onlinesazeh_total {
    background: var(--os-canvas);
}

.os-home #design_services,
.os-home #supplier-section {
    background: #fff;
}

/* Executive services: centered introduction followed by a dedicated service-card system. */
.os-home #executive_services {
    padding: clamp(54px, 7vw, 88px) 0;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(38, 91, 111, 0.08), transparent 58%),
        linear-gradient(180deg, #f6f8f9 0%, #edf2f4 100%);
}

.os-home #executive_services > .container {
    width: min(1320px, calc(100% - 48px));
}

.os-home #executive_services .os-executive__intro {
    position: relative !important;
    inset: auto !important;
    display: flow-root !important;
    float: none !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-width: 980px;
    margin: 0 auto;
    padding: 0 20px;
    overflow: visible;
    text-align: center;
    transform: none !important;
}

.os-home #executive_services .os-executive__intro-copy {
    position: static !important;
    display: block !important;
    float: none !important;
    width: 100% !important;
    height: auto !important;
    max-width: none;
    transform: none !important;
}

.os-home #executive_services .os-executive__intro-copy > * {
    position: static !important;
    float: none !important;
    transform: none !important;
}

.os-home #executive_services .os-executive__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border: 1px solid #d4e0e5;
    border-radius: 999px;
    background: #fff;
    color: #244554;
    font-size: 14px;
    font-weight: 700;
}

.os-home #executive_services .os-executive__eyebrow::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #df7540;
    content: "";
}

.os-home #executive_services .os-executive__intro h2 {
    position: static !important;
    display: block !important;
    float: none !important;
    width: auto !important;
    height: auto !important;
    margin: 14px 0 12px;
    color: #18333f;
    font-size: clamp(30px, 3.4vw, 44px);
    font-weight: 800;
    line-height: 1.4;
    transform: none !important;
}

.os-home #executive_services .os-executive__intro h2::after {
    display: block;
    width: 74px;
    height: 4px;
    margin: 14px auto 0;
    border-radius: 4px;
    background: linear-gradient(90deg, #df7540 0 34%, #234c5b 34% 100%);
    content: "";
}

.os-home #executive_services .os-executive__intro p {
    position: static !important;
    display: block !important;
    float: none !important;
    width: auto !important;
    height: auto !important;
    max-width: 790px;
    margin: 0 auto;
    color: #465b64;
    font-size: clamp(16px, 1.2vw, 18px);
    line-height: 1.95;
    transform: none !important;
}

.os-home #executive_services .os-executive__grid {
    position: relative;
    display: grid !important;
    clear: both;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: minmax(152px, 1fr);
    align-items: stretch;
    gap: 16px;
    margin: 38px 0 0;
    padding: 0;
    list-style: none;
}

.os-home #executive_services .os-executive__grid li {
    position: static;
    min-width: 0;
    margin: 0;
    padding: 0;
    float: none !important;
}

.os-home #executive_services .os-executive__service {
    position: relative;
    display: flex;
    min-height: 152px;
    height: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 9px;
    padding: 24px 24px;
    border: 1px solid #dce5e8;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(23, 50, 62, 0.055);
    color: #203d49;
    text-align: right;
    text-decoration: none;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.os-home #executive_services .os-executive__service:hover {
    transform: translateY(-2px);
    border-color: #a9c1ca;
    background: #fff;
    box-shadow: 0 15px 34px rgba(23, 50, 62, 0.13);
    color: #173744;
}

.os-home #executive_services .os-executive__service:active {
    transform: translateY(0);
}

.os-home #executive_services .os-executive__name {
    display: block;
    min-width: 0;
    color: inherit;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.os-home #executive_services .os-executive__summary {
    display: block;
    max-width: 42ch;
    color: #687a82;
    font-size: 16px;
    font-weight: 450;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.os-home #executive_services .os-executive__service:focus-visible {
    outline: 3px solid #28576a;
    outline-offset: 3px;
}

.os-home #design_services .col-md-6 > img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border: 1px solid var(--os-line);
    border-radius: 16px;
    box-shadow: var(--os-shadow);
}

.os-home #design_services .col-md-6 > p {
    margin: 0 0 22px;
    color: #40525d;
    font-size: 17px !important;
}

.os-home #design_services .col-md-6 [data-appears-group-delay] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.os-home #design_services .col-md-6 [data-appears-group-delay] > .col-sm-3 {
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
}

.os-home #design_services .panel.panel-white {
    height: 100%;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--os-line);
    border-radius: 12px;
    background: var(--os-paper);
    box-shadow: 0 5px 18px rgba(23, 38, 47, 0.045);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.os-home #design_services .panel.panel-white:hover {
    transform: translateY(-3px);
    border-color: rgba(231, 122, 61, 0.52);
    box-shadow: var(--os-shadow);
}

.os-home #design_services .panel-body.panel-dark {
    display: flex;
    min-height: 112px;
    height: 100% !important;
    align-items: center;
    justify-content: center;
    padding: 17px 13px;
    border-radius: 0;
    background: var(--os-paper);
}

.os-home #design_services .StepTitle {
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
}

.os-home #design_services .StepTitle a {
    color: var(--os-ink);
    font-weight: 650;
    text-decoration: none;
}

.os-home #design_services .StepTitle a:hover {
    color: var(--os-accent-dark);
}

/* Data-bound articles: stable image proportions and cards that do not depend on hover. */
.os-home #section_onlinesazeh_total #portfolio {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
}

.os-home #section_onlinesazeh_total #portfolio > [id] {
    float: none;
    width: auto;
    min-width: 0;
    margin: 0;
}

.os-home #section_onlinesazeh_total .figure-wrapper,
.os-home #section_onlinesazeh_total figure {
    height: 100%;
}

.os-home #section_onlinesazeh_total figure {
    display: flex;
    flex-direction: column;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--os-line);
    border-radius: 15px;
    background: var(--os-paper);
    box-shadow: 0 7px 22px rgba(23, 38, 47, 0.055);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.os-home #section_onlinesazeh_total figure:hover {
    transform: translateY(-3px);
    border-color: rgba(231, 122, 61, 0.48);
    box-shadow: var(--os-shadow);
}

.os-home #section_onlinesazeh_total figure > img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.os-home #section_onlinesazeh_total figure figcaption {
    position: static !important;
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    width: auto;
    height: auto;
    padding: 18px !important;
    transform: none !important;
    background: var(--os-paper);
    color: var(--os-ink);
    text-align: right;
}

.os-home #section_onlinesazeh_total figure figcaption .icon-links {
    display: block;
    margin: 0 0 8px;
    text-align: right;
}

.os-home #section_onlinesazeh_total figure figcaption .icon-links a {
    color: var(--os-accent-dark);
}

.os-home #section_onlinesazeh_total figure figcaption h2 {
    margin: 0 0 8px;
    color: var(--os-ink);
    font-size: 17px;
    line-height: 1.75;
}

.os-home #section_onlinesazeh_total figure figcaption .description {
    margin: 0;
    color: var(--os-muted) !important;
    font-size: 14px;
    line-height: 1.9;
}

/* Supplier logos use a responsive, non-carousel grid inside one quiet card. */
.os-home #supplier-section .os-suppliers__card {
    padding: clamp(22px, 4vw, 48px);
    border: 1px solid var(--os-line);
    border-radius: 18px;
    background: var(--os-paper);
    box-shadow: var(--os-shadow);
}

.os-home #supplier-section .os-suppliers__card > h2 {
    margin: 0;
}

.os-home #supplier-section .os-suppliers__card > p {
    margin: 0 0 22px;
    color: var(--os-muted);
}

.os-home #supplier-section .os-supplier-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.os-home #supplier-section .os-supplier-grid > div {
    display: flex;
    min-width: 0;
    min-height: 126px;
    align-items: center;
    justify-content: center;
    padding: 18px;
    border: 1px solid #edf0f0;
    border-radius: 12px;
    background: #f8f9f9;
    transition: border-color 180ms ease, background-color 180ms ease;
}

.os-home #supplier-section .os-supplier-grid > div:hover {
    border-color: rgba(231, 122, 61, 0.46);
    background: #fff;
}

.os-home #supplier-section .os-supplier-grid img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 78px;
    margin: 0 auto;
    object-fit: contain;
}

/* Process cards keep the original modal actions. */
.os-home .os-process {
    background: #1b252b;
}

.os-home .os-process .panel.panel-dark {
    height: 100%;
    margin: 0 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: #243139;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
    transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.os-home .os-process .panel.panel-dark:hover {
    transform: translateY(-3px);
    border-color: rgba(231, 122, 61, 0.72);
    background: #293942;
}

.os-home .os-process .panel-body > a {
    display: block;
    min-height: 170px;
    padding: 24px 14px;
    color: #fff;
    text-decoration: none;
}

.os-home .os-process .StepTitle {
    margin: 12px 0 0;
    color: #fff;
    font-size: 18px;
}

@media (max-width: 991px) {
    .os-home #design_services .col-md-6 [data-appears-group-delay] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .os-home #executive_services .os-executive__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .os-home #section_onlinesazeh_total #portfolio {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .os-home #supplier-section .os-supplier-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .os-home > section {
        padding: 48px 0;
    }

    .os-home > section > .container,
    .os-home .os-hero__inner {
        width: calc(100% - 32px);
    }

    .os-home #heroBanner {
        width: 100vw;
        height: auto;
        min-height: 100vh;
        min-height: 100svh;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        padding: 104px 0 44px;
        background-position: 42% center;
    }

    .os-home .os-hero__copy h1 {
        font-size: clamp(34px, 8vw, 50px);
    }

    .os-home .os-hero__lead {
        font-size: clamp(20px, 5vw, 25px);
    }

    .os-home .os-hero__description {
        margin-top: 11px;
        font-size: 15px;
        line-height: 1.9;
    }

    .os-home .os-hero__highlights {
        gap: 7px 16px;
        margin-top: 13px;
    }

    .os-home .os-hero__highlights li {
        font-size: 13px;
    }

    .os-home #executive_services > .container {
        width: calc(100% - 32px);
    }

    .os-home #executive_services .os-executive__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .os-home #design_services .col-md-6 {
        margin-bottom: 20px;
    }

    .os-home #supplier-section .os-suppliers__card {
        padding: 24px 16px;
        border-radius: 14px;
        box-shadow: 0 8px 25px rgba(23, 38, 47, 0.06);
    }

    .os-home #supplier-section .os-supplier-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .os-home #supplier-section .os-supplier-grid > div {
        min-height: 104px;
        padding: 12px;
    }

    .os-home #supplier-section .os-supplier-grid img {
        max-height: 64px;
    }

    .os-home .os-process .col-md-4,
    .os-home .os-process .col-xs-4 {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .os-home .os-hero__copy h1 {
        font-size: 34px;
    }

    .os-home .os-button {
        min-height: 46px;
        padding: 9px 15px;
        font-size: 14px;
    }

    .os-home #executive_services .os-executive__service {
        min-height: 142px;
        gap: 8px;
        padding: 20px;
    }

    .os-home #executive_services .os-executive__name {
        font-size: 18px;
    }

    .os-home #executive_services .os-executive__summary {
        font-size: 16px;
    }

    .os-home #design_services .col-md-6 [data-appears-group-delay],
    .os-home #section_onlinesazeh_total #portfolio {
        grid-template-columns: minmax(0, 1fr);
    }

    .os-home .os-process .col-xs-4 {
        padding-right: 0;
        padding-left: 0;
    }
}

@media (max-width: 560px) {
    .os-home #executive_services .os-executive__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .os-home #executive_services .os-executive__intro {
        padding-right: 0;
        padding-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .os-home *,
    .os-home *::before,
    .os-home *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
