/* ==========================================================
   OMAS HOMEPAGE — desktop reconstruction from Prestige
   Mobile is intentionally left for a later dedicated pass.
   ========================================================== */

.home .site-content > .col-full {
    max-width: none;
    margin: 0;
    padding: 0;
}

.omas-home {
    background: #fff;
    color: #202020;
}

.omas-home h1,
.omas-home h2,
.omas-home h3,
.omas-home p {
    margin-top: 0;
}

.omas-media-empty {
    background: #f2f2f2;
}

/* HERO */
.omas-hero {
    position: relative;
    min-height: 825px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #111;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: #fff;
    text-align: center;
}

.omas-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.60);
}

.omas-hero__content {
    position: relative;
    z-index: 1;
    width: min(1130px, calc(100% - 80px));
    margin: 0 auto;
    transform: translateY(-4px);
}

.omas-hero h1 {
    max-width: 1120px;
    margin: 0 auto 32px;
    color: rgba(255,255,255,.18);
    font-size: 43px;
    line-height: 1.23;
    font-weight: 700;
    letter-spacing: -.02em;
}

.omas-hero h1 span {
    color: #ffdf00;
}

.omas-hero__copy {
    max-width: 1110px;
    margin: 0 auto;
    color: #fff;
    font-size: 15px;
    line-height: 1.78;
    font-weight: 400;
}

/* 50/50 blocks */
.omas-image-text {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 555px;
    border-bottom: 1px solid #d9d9d9;
}

.omas-image-text__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 70px 7vw;
}

.omas-image-text__content h3 {
    margin-bottom: 25px;
    color: #2f2f2f;
    font-size: 39px;
    line-height: 1.14;
    font-weight: 400;
    letter-spacing: -.01em;
}

.omas-image-text__content p,
.omas-image-text__lead {
    max-width: 560px;
    margin-bottom: 0;
    color: #151515;
    font-size: 17px;
    line-height: 1.72;
}

.omas-image-text__media {
    min-height: 555px;
}

.omas-image-text__media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 555px;
    object-fit: cover;
}

.omas-image-text--ownership .omas-image-text__content {
    padding-left: 7vw;
}

.omas-image-text--ownership .omas-image-text__lead {
    max-width: 530px;
    font-size: 17px;
    line-height: 1.75;
}

.omas-image-text--history .omas-image-text__content {
    padding-left: 7vw;
}

.omas-image-text--modern .omas-image-text__content {
    padding-left: 6.8vw;
    padding-right: 7vw;
}

/* PRODUCT COLLECTIONS */
.omas-home-products {
    padding: 48px 34px 56px;
    background: #fff;
}

.omas-home-products + .omas-home-products {
    border-top: 1px solid #ddd;
}

.omas-home-products__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

.omas-home-products__head h2 {
    margin: 0;
    color: #303030;
    font-size: 31px;
    line-height: 1.2;
    font-weight: 400;
    letter-spacing: -.01em;
}

.omas-eyebrow {
    margin: 0 0 13px !important;
    color: #111;
    font-size: 11px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.omas-view-all {
    margin-bottom: 5px;
    color: #111;
    font-size: 15px;
    text-decoration: underline;
}

.omas-product-grid {
    display: grid;
    grid-template-columns: repeat(var(--omas-columns), minmax(0, 1fr));
    gap: 26px;
}

.omas-product-card {
    min-width: 0;
    margin: 0;
}

.omas-product-card__image {
    display: block;
    height: auto;
    aspect-ratio: 1 / 1.14;
    overflow: hidden;
    background: #f6f6f6;
}

.omas-product-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.omas-product-card__info {
    padding-top: 14px;
}

.omas-product-card h3 {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.47;
    font-weight: 400;
}

.omas-product-card h3 a {
    color: #343434;
    text-decoration: none;
}

.omas-product-card__price {
    color: #111;
    font-size: 13px;
    line-height: 1.4;
}

.omas-product-card__price .woocommerce-Price-amount {
    color: inherit;
}

/* Milord was a six-column collection on desktop */
.omas-home-products--milord {
    padding-top: 48px;
    padding-bottom: 55px;
}

.omas-home-products--milord .omas-product-card__image {
    aspect-ratio: 1 / 1.15;
}

/* Paragon was four-column */
.omas-home-products--paragon-collection {
    padding-top: 48px;
    padding-bottom: 55px;
}

.omas-home-products--paragon-collection .omas-product-card__image {
    aspect-ratio: 1 / 1.18;
}

/* HISTORY */
.omas-history-title {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 232px;
    padding: 45px 30px;
    border-top: 1px solid #ddd;
    border-bottom: none;
    text-align: center;
}

.omas-history-title h2 {
    margin: 0;
    color: #303030;
    font-size: 54px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -.02em;
}

.omas-history-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid #d8d8d8;
}

.omas-history-columns article {
    min-height: 365px;
    padding: 68px 44px 58px;
    border-right: 1px solid #d8d8d8;
}

.omas-history-columns article:last-child {
    border-right: 0;
}

.omas-history-columns h3 {
    margin-bottom: 22px;
    color: #333;
    font-size: 28px;
    line-height: 1.16;
    font-weight: 400;
    letter-spacing: -.01em;
}

.omas-history-columns p {
    margin: 0;
    color: #161616;
    font-size: 15px;
    line-height: 1.72;
}

.omas-history-closing {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 345px;
    padding: 60px 30px;
    text-align: center;
}

.omas-history-closing p {
    max-width: 770px;
    margin: 0;
    color: #121212;
    font-size: 17px;
    line-height: 1.72;
}

/* Only a safety fallback here. Dedicated mobile reconstruction comes later. */
@media (max-width: 980px) {
    .omas-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .omas-image-text,
    .omas-history-columns {
        grid-template-columns: 1fr;
    }

    .omas-image-text__media {
        min-height: 420px;
    }

    .omas-history-columns article {
        min-height: 0;
        border-right: 0;
        border-bottom: 1px solid #ddd;
    }
}

/* ===== IMAGE DISPLAY FIXES ===== */

/* History: show the complete source image instead of cropping it */
.omas-image-text--history .omas-image-text__media img {
    object-fit: contain;
}

/* Product cards: Shopify-like square media area */
.omas-product-card__image,
.omas-home-products--milord .omas-product-card__image,
.omas-home-products--paragon-collection .omas-product-card__image {
    aspect-ratio: 1 / 1;
}


/* ===== HERO — SHOPIFY REFERENCE ===== */

@media (min-width: 769px) {

    .omas-hero {
        min-height: 810px;
        align-items: center;
        background-position: center center;
        background-size: cover;
    }

    .omas-hero__overlay {
        background: rgba(0, 0, 0, .50);
    }

    .omas-hero__content {
        display: flex;
        flex-direction: column;
        width: min(1280px, calc(100% - 120px));
        margin: 0 auto;
        transform: translateY(45px);
    }

    /* In original Shopify hero the copy sits ABOVE the title */
    .omas-hero__copy {
        order: 1;
        max-width: 1240px;
        margin: 0 auto 30px;
        color: #fff;
        font-size: 13px;
        line-height: 1.85;
        font-weight: 500;
        letter-spacing: .16em;
        text-transform: uppercase;
    }

    .omas-hero h1 {
        order: 2;
        max-width: 1120px;
        margin: 0 auto;
        color: #fff;
        font-size: 38px;
        line-height: 1.32;
        font-weight: 500;
        letter-spacing: .12em;
        text-transform: uppercase;
    }

    .omas-hero h1 span {
        color: #ffdf00;
    }

}


/* ===== ANCORA GROUP HERO BADGE ===== */

.omas-hero__group {
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    padding: 14px 24px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .78);
    color: #fff;
    font-size: 17px;
    line-height: 1.2;
    font-weight: 400;
    letter-spacing: .04em;
    white-space: nowrap;
}

.omas-hero__group a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* ===== DESKTOP FIRST SCREEN HEIGHT ===== */

@media (min-width: 981px) {
    .omas-hero {
        /* 100vh fallback + dynamic viewport for modern browsers */
        min-height: calc(100vh - var(--omas-header-height) - 32px);
        height: calc(100vh - var(--omas-header-height) - 32px);

        min-height: calc(100dvh - var(--omas-header-height) - 32px);
        height: calc(100dvh - var(--omas-header-height) - 32px);
    }
}

/* Logged-in WordPress admin:
   keep the whole site first screen inside the visible browser viewport */
@media (min-width: 981px) {
    .admin-bar .omas-hero {
        min-height: calc(100vh - var(--omas-header-height) - 32px - 32px);
        height: calc(100vh - var(--omas-header-height) - 32px - 32px);

        min-height: calc(100dvh - var(--omas-header-height) - 32px - 32px);
        height: calc(100dvh - var(--omas-header-height) - 32px - 32px);
    }
}

/* ==========================================================
   RESPONSIVE HOMEPAGE PASS — tablet + mobile
   ========================================================== */
@media (max-width: 980px) {
    .omas-hero {
        min-height: 0;
        height: auto;
        padding: clamp(54px, 8vw, 76px) 0 28px;
        align-items: flex-start;
        background-position: center center;
    }

    .omas-hero__overlay { background: rgba(0,0,0,.56); }

    .omas-hero__content {
        display: flex;
        flex-direction: column;
        width: min(100% - 48px, 760px);
        margin: 0 auto;
        transform: none;
    }

    .omas-hero h1 {
        order: 1;
        max-width: 700px;
        margin: 0 auto 32px;
        color: #fff;
        font-size: clamp(28px, 5vw, 38px);
        line-height: 1.24;
        font-weight: 500;
        letter-spacing: .07em;
        text-transform: uppercase;
    }

    .omas-hero__copy {
        order: 2;
        max-width: 720px;
        margin: 0 auto;
        font-size: 13px;
        line-height: 1.75;
        letter-spacing: .08em;
    }

    .omas-hero__group {
        position: relative;
        left: auto;
        bottom: auto;
        transform: none;
        width: max-content;
        max-width: calc(100% - 48px);
        margin: 32px auto 0;
        padding: 11px 18px;
        white-space: normal;
        text-align: center;
        font-size: 15px;
    }

    .omas-image-text {
        min-height: 0;
    }

    .omas-image-text__content {
        min-height: 0;
        padding: 56px 7vw;
    }

    .omas-image-text__content h3 {
        font-size: clamp(30px, 5vw, 39px);
    }

    .omas-image-text__media,
    .omas-image-text__media img {
        min-height: 0;
    }

    .omas-image-text__media img {
        height: auto;
        aspect-ratio: 4 / 3;
        object-fit: cover;
    }

    .omas-image-text--history .omas-image-text__media img {
        object-fit: contain;

    }

    .omas-home-products { padding: 44px 24px 50px; }
    .omas-product-grid { gap: 28px 18px; }
    .omas-product-card__image,
    .omas-home-products--milord .omas-product-card__image,
    .omas-home-products--paragon-collection .omas-product-card__image { aspect-ratio: 1 / 1; }
    .omas-product-card__image img { object-fit: contain; }

    .omas-history-title { min-height: 180px; }
    .omas-history-title h2 { font-size: clamp(40px, 7vw, 54px); }
    .omas-history-columns article { padding: 52px 7vw; }
    .omas-history-closing { min-height: 0; padding: 64px 7vw; }
}

@media (max-width: 600px) {
    .omas-hero {
        padding: 40px 0 24px;
        background-position: 48% center;
    }

    .omas-hero__content { width: calc(100% - 36px); }

    .omas-hero h1 {
        margin-bottom: 28px;
        font-size: clamp(25px, 7.2vw, 32px);
        line-height: 1.28;
        letter-spacing: .045em;
    }

    .omas-hero__copy {
        font-size: 12px;
        line-height: 1.72;
        letter-spacing: .045em;
    }

    .omas-hero__group {
        max-width: calc(100% - 36px);
        margin-top: 26px;
        padding: 10px 16px;
        font-size: 14px;
        line-height: 1.4;
    }

    .omas-image-text__content,
    .omas-image-text--ownership .omas-image-text__content,
    .omas-image-text--history .omas-image-text__content,
    .omas-image-text--modern .omas-image-text__content {
        padding: 42px 22px;
    }

    .omas-image-text__content h3 {
        margin-bottom: 18px;
        font-size: 30px;
        line-height: 1.16;
    }

    .omas-image-text__content p,
    .omas-image-text__lead,
    .omas-image-text--ownership .omas-image-text__lead {
        font-size: 15px;
        line-height: 1.65;
    }

    .omas-image-text__media img { aspect-ratio: 1 / 1; }

    /* Preserve desktop alternating composition while making each story read naturally on mobile. */
    .omas-image-text--ownership .omas-image-text__content { order: 2; }
    .omas-image-text--ownership .omas-image-text__media { order: 1; }
    .omas-image-text--history .omas-image-text__content { order: 1; }
    .omas-image-text--history .omas-image-text__media { order: 2; }

    .omas-home-products,
    .omas-home-products--milord,
    .omas-home-products--paragon-collection {
        padding: 38px 16px 44px;
    }

    .omas-home-products__head {
        align-items: flex-end;
        gap: 14px;
        margin-bottom: 22px;
    }

    .omas-home-products__head h2 { font-size: 25px; }
    .omas-view-all { flex: 0 0 auto; font-size: 13px; }
    .omas-eyebrow { margin-bottom: 9px !important; font-size: 9px; }
    .omas-product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 26px 12px; }
    .omas-product-card__info { padding-top: 10px; }
    .omas-product-card h3 { font-size: 12px; line-height: 1.42; }
    .omas-product-card__price { font-size: 12px; }

    .omas-history-title { min-height: 130px; padding: 34px 20px; }
    .omas-history-title h2 { font-size: 36px; line-height: 1.08; }
    .omas-history-columns article { padding: 40px 22px; }
    .omas-history-columns h3 { margin-bottom: 16px; font-size: 25px; }
    .omas-history-columns p { font-size: 14px; line-height: 1.68; }
    .omas-history-closing { padding: 48px 22px; }
    .omas-history-closing p { font-size: 15px; line-height: 1.68; }
}
