/*
Theme Name: MO Petroleum
Description: Custom Astra child theme for MO Petroleum Company.
Version: 1.1.0
Template: astra
Text Domain: mopetroleum
*/

.mo-site {
    --mo-navy: #081f37;
    --mo-deep: #06172a;
    --mo-ink: #142941;
    --mo-muted: #475b70;
    --mo-gold: #f4bf54;
    --mo-paper: #f2f5f8;
    --mo-line: #d9e2eb;
    --mo-header-height: 90px;
    --mo-admin-offset: 0px;
    background: #fff;
    color: var(--mo-ink);
    font: 1rem/1.65 "Segoe UI", system-ui, sans-serif;
}

.mo-site h1, .mo-site h2, .mo-site h3 {
    color: inherit;
    font-family: inherit;
    font-weight: 750;
    letter-spacing: -.045em;
    line-height: 1.1;
    margin: 0 0 .55em;
}

.mo-site h1 { font-size: clamp(2.55rem, 5.45vw, 5.2rem); }
.mo-site h2 { font-size: clamp(2rem, 3.4vw, 3.25rem); }
.mo-site h3 { font-size: 1.28rem; letter-spacing: -.025em; }
.mo-site p { margin: 0 0 1em; }
.mo-site p:last-child { margin-bottom: 0; }
.mo-site a { color: inherit; }
.mo-site a:focus-visible, .mo-site summary:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 4px;
}

.mo-wrap { width: min(1240px, calc(100% - 2 * clamp(1.2rem, 4.5vw, 4.5rem))); margin-inline: auto; }
.mo-top { background: var(--mo-deep); color: #e1eaf3; font-size: .875rem; }
.mo-top .mo-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem 1rem; padding-block: .45rem; }
.mo-sticky-header {
    position: sticky;
    top: var(--mo-admin-offset);
    z-index: 100;
    background: #fff;
    box-shadow: 0 1px 8px #06172a19;
}
.mo-header { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--mo-header-height); }
.mo-site main[id], .mo-site main section[id] {
    scroll-margin-top: calc(var(--mo-header-height) + var(--mo-admin-offset));
}

@media (prefers-reduced-motion: no-preference) {
    html:has(> body.mo-site) { scroll-behavior: smooth; }
}

@media (min-width: 783px) {
    .mo-site.admin-bar { --mo-admin-offset: 32px; }
}

@media (min-width: 601px) and (max-width: 782px) {
    .mo-site.admin-bar { --mo-admin-offset: 46px; }
}
.mo-brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; line-height: 1.2; }
.mo-brand img { width: 70px; height: auto; }
.mo-brand strong { display: block; font-size: 1.15rem; font-weight: 800; letter-spacing: .015em; text-transform: uppercase; }
.mo-brand small { display: block; margin-top: .2rem; font-size: .875rem; }
.mo-nav, .mo-footer nav { display: flex; flex-wrap: wrap; gap: .6rem clamp(.85rem, 2vw, 1.7rem); font-size: .92rem; font-weight: 650; }
.mo-nav a, .mo-footer nav a { text-decoration: none; }
.mo-nav a:hover, .mo-footer nav a:hover { text-decoration: underline; text-underline-offset: .3em; }
.mo-mobile { display: none; }
.mo-skip { position: absolute; top: 0; left: 1rem; transform: translateY(-200%); z-index: 100000; padding: .5rem 1rem; background: white; }
.mo-skip:focus { transform: none; }

.mo-hero {
    display: grid;
    align-items: center;
    min-height: clamp(520px, 46vw, 700px);
    padding-block: clamp(4rem, 9vw, 8rem);
    background: linear-gradient(90deg, #061a30 1%, #071c32ee 27%, #081d32a6 52%, #06172a16 100%), url("assets/terminal.webp") 62% center / cover;
    color: #fff;
    border-bottom: 3px solid var(--mo-gold);
}
.mo-hero h1 { max-width: 13ch; }
.mo-hero h1 span { color: var(--mo-gold); }
.mo-hero-copy { max-width: 51ch; color: #e4edf6; font-size: clamp(1.02rem, 1.6vw, 1.23rem); }
.mo-eyebrow { color: #775014; font-weight: 750; font-size: .875rem; letter-spacing: .11em; text-transform: uppercase; }
.mo-hero .mo-eyebrow, .mo-dark .mo-eyebrow { color: var(--mo-gold); }
.mo-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.mo-site .mo-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: .65rem 1.25rem;
    border: 1px solid var(--mo-gold);
    border-radius: .35rem;
    background: var(--mo-gold);
    color: var(--mo-deep);
    font-weight: 750;
    text-decoration: none;
}
.mo-site .mo-button:hover { background: #ffd782; border-color: #ffd782; }
.mo-site .mo-button-outline { border-color: #ffffff8c; background: transparent; color: #fff; }
.mo-site .mo-button-outline:hover { border-color: #fff; background: #ffffff26; }
.mo-site .mo-button:focus-visible { outline-color: var(--mo-ink); }
.mo-hero .mo-button:focus-visible, .mo-dark .mo-button:focus-visible { outline-color: #fff; }

.mo-facts { background: var(--mo-paper); border-bottom: 1px solid var(--mo-line); }
.mo-facts dl { display: grid; grid-template-columns: repeat(3, 1fr); margin-block: 0; padding-block: 1.35rem; }
.mo-facts dl > div { padding: .25rem clamp(.5rem, 2.5vw, 2rem); border-left: 1px solid var(--mo-line); }
.mo-facts dl > div:first-child { padding-left: 0; border: 0; }
.mo-facts dt { color: var(--mo-muted); font-size: .875rem; }
.mo-facts dd { margin: 0; font-size: clamp(1rem, 1.8vw, 1.3rem); font-weight: 750; line-height: 1.3; }

.mo-section { padding-block: clamp(3.4rem, 6.8vw, 6.5rem); }
.mo-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: clamp(1.75rem, 6vw, 6rem); }
.mo-section p { max-width: 68ch; }
.mo-section p:not(.mo-eyebrow) { color: var(--mo-muted); }
.mo-about-image { min-height: 310px; aspect-ratio: 1.58; border-radius: .65rem; background: var(--mo-paper) url("assets/fuel-nozzle.webp") center / cover; }
.mo-tint { background: var(--mo-paper); }
.mo-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.mo-card { overflow: hidden; border: 1px solid var(--mo-line); border-radius: .55rem; background: #fff; }
.mo-card-body { padding: 1.1rem; }
.mo-card-image { aspect-ratio: 1.65; background: var(--mo-navy) center / cover; }
.mo-diesel { background-image: url("assets/diesel.webp"); }
.mo-petrol { background-image: url("assets/petrol.webp"); }
.mo-urea { background-image: url("assets/urea.webp"); }
.mo-sulphur { background-image: url("assets/sulphur.webp"); }
.mo-petrochemicals { background-image: url("assets/petrochemicals.webp"); }

.mo-list { list-style: none; padding: 0; margin: 1.15rem 0 0; }
.mo-list li { position: relative; padding: .7rem 0 .7rem 1.2rem; border-bottom: 1px solid var(--mo-line); }
.mo-list li::before { content: ""; position: absolute; left: 0; top: 1.25rem; width: .43rem; height: .43rem; border-radius: 50%; background: #aa7417; }
.mo-panel { background: var(--mo-paper); border-left: 3px solid var(--mo-gold); border-radius: 0 .55rem .55rem 0; padding: clamp(1.25rem, 4vw, 2.6rem); }
.mo-panel p + h3 { margin-top: 1.5rem; }
.mo-dark { background: var(--mo-navy); color: white; }
.mo-section.mo-dark p:not(.mo-eyebrow) { color: #d9e5f0; }
.mo-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem 2rem; margin-top: 2rem; }
.mo-values > div { border-top: 1px solid #a3b7cb66; padding-top: 1rem; }
.mo-values h3 { color: var(--mo-gold); }

.mo-contact { display: grid; gap: .85rem; margin: 0; }
.mo-contact div { display: grid; grid-template-columns: minmax(7rem, 1fr) 2fr; gap: .65rem; }
.mo-contact dt { font-weight: 750; }
.mo-contact dd { margin: 0; overflow-wrap: anywhere; }
.mo-footer { background: var(--mo-deep); color: #e4edf6; border-top: 3px solid var(--mo-gold); padding-block: 2rem 1.1rem; }
.mo-footer-main { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.4rem; padding-bottom: 1.3rem; border-bottom: 1px solid #ffffff30; }
.mo-footer p { padding-top: .9rem; color: #c5d3e1; font-size: .875rem; }

@media (max-width: 1050px) {
    .mo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .mo-nav { display: none; }
    .mo-mobile { display: block; }
    .mo-mobile summary { cursor: pointer; padding: .56rem .7rem; border: 1px solid var(--mo-line); border-radius: .35rem; font-weight: 700; }
    .mo-mobile nav { position: absolute; top: 100%; right: 0; display: grid; z-index: 5; min-width: min(15rem, 100%); background: #fff; padding: .45rem; border-radius: .4rem; box-shadow: 0 10px 30px #06172a30; }
    .mo-mobile nav a { padding: .58rem .7rem; text-decoration: none; }
    .mo-mobile nav a:hover { background: var(--mo-paper); }
}

@media (max-width: 710px) {
    .mo-hero { min-height: 500px; background-position: 65% center; background-image: linear-gradient(90deg, #061a30f0, #081d32aa), url("assets/terminal.webp"); }
    .mo-split { grid-template-columns: 1fr; }
    .mo-about-image { min-height: 0; }
    .mo-grid, .mo-values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 430px) {
    .mo-brand img { width: 48px; }
    .mo-brand strong { font-size: .93rem; }
    .mo-brand small { font-size: .76rem; }
    .mo-top .mo-wrap { font-size: .8rem; }
    .mo-grid { grid-template-columns: 1fr; }
    .mo-values { gap: 1.25rem 1rem; }
    .mo-contact div { grid-template-columns: 1fr; gap: .1rem; }
}
