/*
Theme Name: MzBOQ Intelligence
Author: MzDigital
Description: Public site and estimating workspace theme.
Version: 0.2.0
Requires at least: 6.5
Requires PHP: 8.2
Text Domain: mzboq-theme
*/

:root {
    --ink: #142820;
    --text: #23382e;
    --muted: #496054;
    --accent: #d7fb70;
    --paper: #f6f8f1;
    --line: #d9e2d7;
    --white: #fff;
    --gutter: clamp(20px, 4.7vw, 80px);
    --content-width: 1440px;
    color-scheme: light;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--text);
    font: 1rem/1.58 "Segoe UI", system-ui, sans-serif;
}
a { color: #225c40; text-underline-offset: .22em; }
a:hover { color: var(--ink); }
:where(a, button, input, select, textarea, summary):focus-visible {
    outline: 3px solid #29764f;
    outline-offset: 4px;
}
h1, h2, h3 { color: var(--ink); line-height: 1.12; letter-spacing: -.04em; }
h1 { font-size: clamp(2.5rem, 5.5vw, 5.2rem); margin: .25em 0 .38em; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.6rem); margin: .55em 0; }
h3 { font-size: 1.2rem; margin: .45em 0; }
[hidden] { display: none !important; }

.mz-site-header {
    position: relative;
    z-index: 5;
    background: #fbfcf8;
    border-bottom: 1px solid #e7ede4;
}
.mz-header-inner,
.mz-footer-grid,
.mz-footer-banner {
    margin-inline: auto;
    max-width: var(--content-width);
}
.mz-header-inner {
    min-height: 84px;
    padding-inline: var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.mz-brand, .custom-logo-link {
    display: inline-flex;
    text-decoration: none;
    align-items: center;
    flex-shrink: 0;
}
.mz-brand img, .custom-logo {
    display: block;
    max-width: 200px;
    height: auto;
    max-height: 59px;
    object-fit: contain;
}
.mz-header-nav ul, .mz-site-footer ul {
    padding: 0;
    margin: 0;
    list-style: none;
}
.mz-header-nav ul { display: flex; gap: clamp(1.05rem, 2.3vw, 2.3rem); align-items: center; }
.mz-header-nav a { text-decoration: none; color: var(--ink); font-weight: 680; font-size: .95rem; }
.mz-header-nav a:not(.mz-header-action):hover,
.mz-header-nav a:not(.mz-header-action)[aria-current="page"] { text-decoration: underline; }
.mz-site-header .mz-header-action {
    background: var(--ink);
    color: var(--white);
    padding: .66rem 1.1rem .72rem;
    display: inline-flex;
    border-radius: 6px;
}
.mz-site-header .mz-header-action:hover { background: #2a4d3c; color: var(--white); }
.mz-nav-mobile { display: none; }
.mz-skip {
    position: absolute;
    top: 0;
    left: 1rem;
    transform: translateY(-160%);
    background: white;
    padding: .55rem 1rem;
    z-index: 100000;
}
.mz-skip:focus { transform: none; }

.mz-main {
    padding-inline: var(--gutter);
    margin-inline: auto;
    max-width: var(--content-width);
    min-height: 62vh;
}
.mz-main.mz-landing-main { padding-inline: 0; max-width: none; }
.mz-article { padding-block: 2.5rem; }
.mz-article img { max-width: 100%; height: auto; }
.mz-public-band > h1 { max-width: 16ch; }
.mz-main .mz-panel { border-color: var(--line); }
.mz-workspace .mz-work-nav button[aria-pressed="true"] { background: #eaf2d7; }
.mz-workspace .mz-work-nav { border-color: var(--line); }

.mz-land-width {
    width: calc(100% - 2 * var(--gutter));
    max-width: calc(var(--content-width) - 2 * var(--gutter));
    margin-inline: auto;
}
.mz-land-hero { background: #152b22; color: #e6efe3; }
.mz-land-hero-inner {
    margin-inline: auto;
    max-width: var(--content-width);
    display: grid;
    grid-template-columns: 1fr 1.04fr;
    align-items: stretch;
    min-height: 568px;
}
.mz-land-copy {
    padding: clamp(3rem, 5.7vw, 5.75rem) clamp(1.8rem, 4.7vw, 5rem) clamp(3rem, 5.7vw, 5.75rem) var(--gutter);
    align-self: center;
}
.mz-land-eyebrow {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin: 0;
    color: #3a5f4a;
    font-size: .82rem;
    font-weight: 760;
    text-transform: uppercase;
    letter-spacing: .065em;
}
.mz-land-eyebrow span {
    display: inline-block;
    flex: 0 0 .58rem;
    width: .58rem;
    height: .58rem;
    border-radius: 2px;
    background: #578466;
}
.mz-land-hero .mz-land-eyebrow { color: #d8e9d9; }
.mz-land-hero .mz-land-eyebrow span { background: var(--accent); }
.mz-land-copy h1 {
    margin: .24em 0 .3em;
    max-width: 12ch;
    color: #fcfff8;
    font-size: clamp(3.3rem, 5.9vw, 5.85rem);
    font-weight: 765;
    line-height: .99;
    letter-spacing: -.072em;
}
.mz-land-copy h1 em {
    color: var(--accent);
    font-style: normal;
}
.mz-land-copy > p:not(.mz-land-eyebrow) {
    margin: 0;
    max-width: 36ch;
    color: #dbe8db;
    font-size: clamp(1.025rem, 1.4vw, 1.26rem);
}
.mz-land-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .65rem;
    margin-top: 1.65rem;
}
.mz-land-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: .72rem 1.1rem;
    border: 1px solid transparent;
    border-radius: 6px;
    font-weight: 750;
    font-size: .96rem;
    text-decoration: none;
    cursor: pointer;
}
.mz-land-button-primary { background: var(--accent); color: #17291d; }
.mz-land-button-primary:hover { background: #e8ff9d; color: #17291d; }
.mz-land-button-ghost { background: transparent; border-color: #7e9c86; color: #f7fff3; }
.mz-land-button-ghost:hover { background: #2b4537; color: #fff; }
.mz-land-hero a:focus-visible { outline-color: var(--accent); }
.mz-land-button-dark { background: var(--ink); color: #fff; }
.mz-land-button-dark:hover { background: #30573f; color: #fff; }

.mz-land-visual {
    position: relative;
    isolation: isolate;
    min-width: 0;
    min-height: 300px;
    background: linear-gradient(145deg, #60786c, #29483a 58%, #152b22);
    border-left: 1px solid #294537;
}
.mz-land-visual picture { position: absolute; inset: 0; }
.mz-land-visual picture img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 69% 52%;
}
.mz-land-visual::after {
    content: "";
    position: absolute;
    inset: 52% 0 0;
    z-index: 0;
    background: linear-gradient(transparent, #10261e40);
    pointer-events: none;
}

.mz-land-process { padding-block: clamp(2.7rem, 5.5vw, 5.15rem) 0; }
.mz-land-process h2,
.mz-land-sectors h2 {
    margin-block: .27em .5em;
    font-size: clamp(2rem, 3.4vw, 3.4rem);
    letter-spacing: -.062em;
    line-height: 1.02;
}
.mz-land-process ol {
    padding: 0;
    margin: 1.8rem 0 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    list-style: none;
    background: #fbfdf8;
    border: 1px solid var(--line);
    border-radius: 12px;
}
.mz-land-process li { padding: clamp(1.2rem, 2.6vw, 2rem); }
.mz-land-process li + li { border-left: 1px solid var(--line); }
.mz-land-process h3,
.mz-land-sector h3 { margin: .5rem 0 .4rem; font-size: clamp(1.23rem, 1.75vw, 1.6rem); }
.mz-land-process li p,
.mz-land-sector p { margin: 0; color: var(--muted); }
.mz-land-sectors {
    display: grid;
    grid-template-columns: .8fr 1.35fr;
    gap: clamp(1.5rem, 4vw, 4.8rem);
    padding-block: clamp(2.6rem, 5.4vw, 5.2rem);
}
.mz-land-sector-intro > p:last-child { color: var(--muted); max-width: 36ch; }
.mz-land-sector-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.mz-land-sector {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(1.2rem, 2.25vw, 1.8rem);
    background: #e8efe5;
    border-top: 3px solid #659073;
    border-radius: 8px;
}
.mz-land-sector-code {
    color: #356045;
    font-weight: 800;
    font-size: .85rem;
    letter-spacing: .075em;
}
.mz-land-sector a { display: inline-block; margin-top: auto; padding-top: .9rem; font-weight: 730; }
.mz-land-calculator {
    margin-bottom: clamp(2.5rem, 5vw, 5rem);
    padding: clamp(1.4rem, 3.1vw, 2.75rem);
    border-radius: 10px;
    background: #eaf6ba;
    color: #274633;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.15rem;
}
.mz-land-calculator h2 { margin: 0 0 .25em; }
.mz-land-calculator p { margin: 0; }
.mz-land-calculator .mz-land-button { flex-shrink: 0; }

.mz-site-footer {
    background: #142820;
    color: #cfdfd1;
    border-top: 1px solid #2f4a3b;
    padding: clamp(2.2rem, 4.8vw, 4.2rem) var(--gutter) 0;
}
.mz-footer-grid {
    max-width: calc(var(--content-width) - 2 * var(--gutter));
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: clamp(1.3rem, 3.65vw, 3.2rem);
    padding-bottom: clamp(1.8rem, 4vw, 3.4rem);
}
.mz-footer-brand p { margin: .4rem 0 0; max-width: 31ch; }
.mz-footer-grid h3 { color: #f3f9ed; font-size: 1rem; margin: .45rem 0 .7rem; }
.mz-site-footer a { color: #d4e5d7; }
.mz-site-footer a:hover { color: var(--accent); }
.mz-site-footer a:focus-visible { outline-color: var(--accent); }
.mz-footer-grid li a {
    display: inline-block;
    padding: .16rem 0;
    font-size: .93rem;
    text-decoration: none;
}
.mz-footer-grid li a:hover { text-decoration: underline; }
.mz-footer-banner {
    max-width: calc(var(--content-width) - 2 * var(--gutter));
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .65rem;
    border-top: 1px solid #3a5647;
    padding: 1.05rem 0;
    color: #cfdfd1;
    font-size: .9rem;
}

@media (max-width: 880px) {
    .mz-header-inner { min-height: 74px; gap: 1rem; }
    .mz-header-nav { display: none; }
    .mz-nav-mobile { display: block; }
    .mz-nav-mobile summary {
        display: flex;
        align-items: center;
        gap: .55rem;
        min-height: 44px;
        padding-inline: .55rem;
        cursor: pointer;
        list-style: none;
        font-weight: 750;
    }
    .mz-nav-mobile summary::-webkit-details-marker { display: none; }
    .mz-menu-icon {
        width: 17px;
        height: 13px;
        border-block: 2px solid var(--ink);
        display: inline-flex;
        align-items: center;
    }
    .mz-menu-icon::before { content: ""; width: 100%; border-top: 2px solid var(--ink); }
    .mz-nav-mobile ul {
        position: absolute;
        z-index: 6;
        right: var(--gutter);
        top: calc(100% - 3px);
        display: grid;
        gap: .3rem;
        width: min(260px, calc(100vw - 2 * var(--gutter)));
        border-radius: 9px;
        border: 1px solid var(--line);
        background: var(--white);
        box-shadow: 0 12px 30px #14282021;
        padding: .65rem;
        margin: 0;
        list-style: none;
    }
    .mz-nav-mobile li a {
        display: block;
        min-height: 44px;
        padding: .53rem .6rem;
        color: var(--ink);
        font-weight: 670;
        text-decoration: none;
    }
    .mz-nav-mobile li a:hover,
    .mz-nav-mobile li a[aria-current="page"]:not(.mz-header-action) { background: #f1f5ec; }
    .mz-land-hero-inner { min-height: auto; }
    .mz-land-copy h1 { font-size: clamp(3rem, 6.3vw, 4.25rem); }
    .mz-land-sectors { grid-template-columns: 1fr; }
    .mz-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 630px) {
    .mz-brand img, .custom-logo { max-width: 164px; }
    .mz-land-hero-inner { grid-template-columns: 1fr; }
    .mz-land-copy { padding: 2.45rem var(--gutter) 2.4rem; }
    .mz-land-copy h1 { max-width: 13ch; font-size: clamp(2.9rem, 9.5vw, 4.6rem); }
    .mz-land-visual { min-height: clamp(240px, 73vw, 355px); border-left: 0; }
    .mz-land-process ol { grid-template-columns: 1fr; }
    .mz-land-process li + li { border-left: 0; border-top: 1px solid var(--line); }
    .mz-land-sector-cards { grid-template-columns: 1fr; }
    .mz-land-calculator { align-items: flex-start; flex-direction: column; }
    .mz-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 340px) {
    .mz-footer-grid { grid-template-columns: 1fr; }
}
