/*
Theme Name: OMME
Theme URI: https://omme.tech/
Description: Bespoke child theme for Obsidian Minerals & Metals Exchange, built on GeneratePress.
Author: OMME
Template: generatepress
Version: 1.3.2
Text Domain: omme
*/

:root {
    --omme-navy: #07111f;
    --omme-navy-soft: #0d1b2a;
    --omme-gold: #c7a45a;
    --omme-gold-light: #dfc27d;
    --omme-white: #ffffff;
    --omme-off-white: #f5f2eb;
    --omme-text: #d9dde3;
    --omme-muted: #9ca5b2;
    --omme-content-width: 1480px;
    --omme-hero-image: url('https://www.omme.tech/wp-content/uploads/2026/09/OMME-hero-background-optimized.jpg');
}

*, *::before, *::after { box-sizing: border-box; }

html,
body {
    margin: 0;
    background: var(--omme-navy);
    color: var(--omme-white);
}

body { overflow-x: hidden; }

a { color: var(--omme-gold); }
a:hover,
a:focus { color: var(--omme-gold-light); }

img,
svg,
video { max-width: 100%; height: auto; }

.omme-full-width { width: 100%; max-width: none; }
.omme-container { width: min(calc(100% - 48px), var(--omme-content-width)); margin-inline: auto; }

/* ==========================================================================
   OMME cinematic homepage v1.3
   ========================================================================== */

/* Header becomes part of the hero composition on the homepage. */
.home .site-header {
    position: absolute;
    z-index: 20;
    inset: 0 0 auto 0;
    background: transparent;
}

.site-header,
.main-navigation { background: var(--omme-navy); }
.home .site-header,
.home .main-navigation { background: transparent; }

.site-header .inside-header {
    width: min(calc(100% - 80px), 1480px);
    max-width: none;
    margin-inline: auto;
    padding: 20px 0 14px;
    display: flex;
    align-items: flex-start;
    gap: 48px;
}

.site-logo { flex: 0 1 370px; }
.site-logo img { display: block; width: min(100%, 370px); height: auto; }

.main-navigation { flex: 1 1 auto; margin-top: -8px; }
.main-navigation .inside-navigation { max-width: none; padding: 0; justify-content: flex-end; }
.main-navigation .main-nav > ul {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(18px, 1.8vw, 34px);
}
.main-navigation .main-nav ul li a {
    padding: 8px 0;
    color: var(--omme-white);
    background: transparent;
    font-size: clamp(12px, 0.86vw, 14px);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    white-space: nowrap;
}
.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li:focus-within > a,
.main-navigation .main-nav ul li[class*="current-menu-"] > a {
    color: var(--omme-gold-light);
    background: transparent;
}

/* Remove GeneratePress' normal homepage content stage. */
.home #page { display: none; }
.site-footer { display: none !important; }

.omme-hero {
    position: relative;
    isolation: isolate;
    width: 100%;
    height: 100vh;
    min-height: 560px;
    max-height: 1080px;
    overflow: hidden;
    background-color: var(--omme-navy);
    background-image: var(--omme-hero-image);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    color: var(--omme-white);
}

/* Subtle cinematic darkening for legibility while preserving the artwork. */
.omme-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(3, 10, 20, .12), rgba(3, 10, 20, .12)),
        linear-gradient(90deg, rgba(3, 10, 20, .24) 0%, rgba(3, 10, 20, 0) 44%);
}

.omme-hero__content {
    position: absolute;
    z-index: 2;
    top: clamp(158px, 20vh, 215px);
    left: 50%;
    transform: translateX(-50%);
    width: min(calc(100% - 112px), 1480px);
}

.omme-hero__copy { width: min(610px, 43vw); }

.omme-hero__eyebrow,
.omme-hero__location p,
.omme-process strong,
.omme-process small,
.omme-hero__closing {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    text-transform: uppercase;
    letter-spacing: .30em;
}

.omme-hero__eyebrow {
    margin-bottom: 16px;
    font-size: clamp(12px, .93vw, 15px);
    line-height: 1.4;
    color: rgba(255,255,255,.86);
}

.omme-hero h1 {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(40px, 3.65vw, 59px);
    font-weight: 400;
    line-height: .98;
    letter-spacing: -.025em;
    color: var(--omme-white);
}
.omme-hero h1 span { color: var(--omme-gold); }

.omme-hero__intro {
    margin: 18px 0 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(15px, 1.22vw, 20px);
    font-weight: 300;
    line-height: 1.45;
    letter-spacing: .02em;
    color: rgba(255,255,255,.82);
}

.omme-hero__actions { display: flex; gap: 16px; margin-top: 24px; }
.omme-button {
    display: inline-flex;
    min-height: 56px;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 0 26px;
    border: 1px solid rgba(223,194,125,.7);
    border-radius: 12px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform .18s ease, background-color .18s ease, color .18s ease;
}
.omme-button:hover,
.omme-button:focus { transform: translateY(-1px); }
.omme-button--gold { min-width: 240px; background: linear-gradient(90deg, #c99f49, #e2c173); color: #111722; }
.omme-button--gold:hover,
.omme-button--gold:focus { color: #111722; }
.omme-button--outline { min-width: 240px; background: rgba(5,15,29,.22); color: var(--omme-white); }
.omme-button--outline:hover,
.omme-button--outline:focus { color: var(--omme-white); background: rgba(5,15,29,.45); }
.omme-button span { font-size: 18px; font-weight: 400; }

.omme-hero__location {
    position: absolute;
    top: -14px;
    right: 0;
    width: 210px;
    text-align: center;
}
.omme-hero__location p {
    font-size: clamp(13px, .92vw, 15px);
    line-height: 1.55;
    color: rgba(255,255,255,.88);
}
.omme-hero__location-rule {
    display: block;
    width: 1px;
    height: 28px;
    margin: 12px auto 14px;
    background: var(--omme-gold-light);
}

.omme-process {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 74px;
    transform: translateX(-50%);
    width: min(calc(100% - 48px), 1540px);
    display: grid;
    grid-template-columns: minmax(42px,1fr) auto 54px auto 54px auto 54px auto 54px auto minmax(42px,1fr);
    align-items: center;
    column-gap: clamp(8px, 1.2vw, 18px);
}
.omme-process__line { height: 2px; background: linear-gradient(90deg, transparent, var(--omme-gold)); }
.omme-process__line:last-child { background: linear-gradient(90deg, var(--omme-gold), transparent); }
.omme-process__arrow { color: rgba(255,255,255,.72); font-size: 31px; font-weight: 200; text-align: center; }
.omme-process__step { min-width: 178px; text-align: center; }
.omme-process__icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 9px;
    border: 1.5px solid rgba(255,255,255,.78);
    border-radius: 50%;
    color: rgba(255,255,255,.92);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 30px;
    line-height: 1;
}
.omme-process__icon--gem { font-size: 37px; }
.omme-process strong,
.omme-process small { display: block; }
.omme-process strong { font-size: 15px; font-weight: 500; line-height: 1.3; color: rgba(255,255,255,.92); }
.omme-process small { margin-top: 5px; font-size: 11.5px; font-weight: 400; line-height: 1.25; letter-spacing: .22em; color: rgba(255,255,255,.76); }

.omme-hero__closing {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 25px;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
    font-size: 14px;
    line-height: 1.3;
    color: rgba(255,255,255,.78);
}

@media (max-width: 1250px) {
    .site-header .inside-header { width: min(calc(100% - 48px), 1480px); gap: 30px; }
    .site-logo { flex-basis: 320px; }
    .site-logo img { width: min(100%, 320px); }
    .main-navigation .main-nav > ul { gap: 16px; }
    .main-navigation .main-nav ul li a { font-size: 11px; letter-spacing: .11em; }
    .omme-hero__content { width: calc(100% - 72px); }
    .omme-process { transform: translateX(-50%) scale(.90); transform-origin: center bottom; width: 108%; }
}

/* Keep the complete cinematic composition above the fold on shorter desktop viewports. */
@media (min-width: 901px) and (max-height: 720px) {
    .site-header .inside-header { padding-top: 16px; padding-bottom: 10px; }
    .site-logo { flex-basis: 340px; }
    .site-logo img { width: min(100%, 340px); }
    .main-navigation { margin-top: -6px; }

    .omme-hero__content { top: 143px; }
    .omme-hero__eyebrow { margin-bottom: 11px; }
    .omme-hero h1 { font-size: clamp(39px, 3.45vw, 52px); }
    .omme-hero__intro { margin-top: 13px; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.4; }
    .omme-hero__actions { margin-top: 20px; }
    .omme-button { min-height: 50px; }

    .omme-process { bottom: 43px; transform: translateX(-50%) scale(.72); transform-origin: center bottom; width: 128%; }
    .omme-hero__closing { bottom: 10px; font-size: 12px; }
}

/* Desktop remains canonical. This keeps the concept usable while mobile is designed later. */
@media (max-width: 900px) {
    .omme-hero { min-height: 820px; background-position: 58% center; }
    .omme-hero__content { top: 170px; width: calc(100% - 40px); }
    .omme-hero__copy { width: min(560px, 78vw); }
    .omme-hero__location { display: none; }
    .omme-process { display: none; }
    .omme-hero__closing { bottom: 24px; font-size: 10px; }
}
