/* ---------------------------------------------------------------------------
   workmaite-home.css — stylesheet for the public homepage ONLY.

   Scoped to the homepage so it cannot leak into the other public surfaces:
   /schedule-a-call and /reschedule/{guid} still render through _PublicLayout
   and public-marketing.css (Bootstrap + FontAwesome), which this file neither
   loads nor overrides. The homepage uses _MarketingLayout.cshtml and this
   file, and nothing else.

   No Bootstrap, no FontAwesome, no gradients, no icon font. Buttons are 2px
   radius. Max content width 1240px, 24px side padding, 88-96px section
   padding. Every multi-column row collapses to one column at 900px / 640px.
--------------------------------------------------------------------------- */

:root {
    --navy: #0F1F3D;
    --navy-deep: #0A1630;
    --paper: #F4EFE6;
    --linen: #E9E1D2;
    --white: #FFFFFF;
    --brass: #B08D57;
    --brass-light: #D9B97E;
    --brass-dark: #7A5C2E;
    --ink: #14213D;
    --ink-soft: #3B4558;
    --muted-on-navy: #D6CEC0;
    --muted-on-navy-small: #C9BFAE;
    --rule: #DDD3C2;
    --rule-soft: #E6DDCD;
    --pass: #9FD0B2;

    --serif: "Playfair Display", Georgia, "Times New Roman", serif;
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --shell: 1240px;
    --gutter: 24px;
    --radius: 2px;
}

/* ---- reset / base ------------------------------------------------------ */

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

html { -webkit-text-size-adjust: 100%; }

body.wm-home {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.65;
    /* Guards the 375px acceptance check: nothing may push the document wider
       than the viewport, so a stray wide child clips rather than scrolling. */
    overflow-x: hidden;
}

/* Wrapped in :where() so these resets carry ZERO specificity. Written as
   `body.wm-home a` they score 0,1,1 and silently beat every single-class rule
   below (.wm-btn-outline-light, .wm-nav a and the header links), which painted the nav,
   the Sign in link and the secondary hero button in near-navy ink on navy. */
:where(body.wm-home) :where(img) { max-width: 100%; height: auto; display: block; }

:where(body.wm-home) :where(a) { color: inherit; }

.wm-shell {
    width: 100%;
    max-width: var(--shell);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

.wm-section { padding: 92px 0; }

.wm-eyebrow {
    display: block;
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: var(--brass-dark);
    margin: 0 0 18px;
}

.wm-eyebrow-on-navy { color: var(--brass-light); }

.wm-h2 {
    font-family: var(--serif);
    font-weight: 700;
    font-size: clamp(32px, 4.4vw, 48px);
    line-height: 1.14;
    letter-spacing: -0.01em;
    color: var(--navy);
    margin: 0 0 20px;
}

.wm-h2-on-navy { color: var(--white); }

.wm-h3 {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 24px;
    line-height: 1.25;
    color: var(--navy);
    margin: 0 0 12px;
}

.wm-mono {
    font-family: var(--mono);
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.02em;
}

.wm-lede { color: var(--ink-soft); font-size: 18px; margin: 0; }

/* ---- buttons ----------------------------------------------------------- */

.wm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 26px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.wm-btn-brass {
    background: var(--brass-light);
    color: var(--navy);
    border-color: var(--brass-light);
}
.wm-btn-brass:hover { background: #E4C894; border-color: #E4C894; }

.wm-btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(217, 185, 126, 0.55);
}
.wm-btn-outline-light:hover { border-color: var(--brass-light); color: var(--brass-light); }

.wm-btn-outline-dark {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}
.wm-btn-outline-dark:hover { background: var(--navy); color: var(--white); }

.wm-btn-sm { padding: 10px 18px; font-size: 14px; }

/* ---- header ------------------------------------------------------------ */

.wm-header { background: var(--navy); }

.wm-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 18px;
    padding-bottom: 18px;
    flex-wrap: wrap;
}

.wm-brand {
    display: flex;
    align-items: baseline;
    gap: 12px;
    text-decoration: none;
}

.wm-wordmark {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 25px;
    letter-spacing: -0.01em;
    color: var(--white);
    line-height: 1;
}
.wm-wordmark em { font-style: normal; color: var(--brass-light); }

.wm-brand-eyebrow {
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: var(--muted-on-navy-small);
    white-space: nowrap;
}

.wm-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.wm-nav a {
    color: var(--muted-on-navy);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
}
.wm-nav a:hover { color: var(--brass-light); }

.wm-header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

/* ---- hero -------------------------------------------------------------- */

.wm-hero {
    position: relative;
    background: var(--navy);
    padding-top: 88px;
    overflow: hidden;
}

/* 48px brass grid at ~7% opacity. Two repeating-linear-gradients, not an
   image — it has to survive at any viewport without a request. */
.wm-hero-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.07;
    background-image:
        repeating-linear-gradient(to right, var(--brass) 0 1px, transparent 1px 48px),
        repeating-linear-gradient(to bottom, var(--brass) 0 1px, transparent 1px 48px);
}

.wm-hero-inner { position: relative; }

.wm-hero-cols {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
    align-items: center;
    padding-bottom: 88px;
}

.wm-hero-h1 {
    font-family: var(--serif);
    font-weight: 700;
    font-size: clamp(40px, 6.4vw, 76px);
    line-height: 1.04;
    letter-spacing: -0.02em;
    color: var(--white);
    margin: 0 0 26px;
}
.wm-hero-h1 em { font-style: italic; color: var(--brass-light); }

.wm-hero-body {
    color: var(--muted-on-navy);
    font-size: 18px;
    line-height: 1.7;
    margin: 0 0 32px;
    max-width: 36em;
}

.wm-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* estimate sheet ---------------------------------------------------------- */

.wm-sheet-wrap { position: relative; padding-bottom: 54px; }

.wm-sheet {
    background: var(--white);
    transform: rotate(-2deg);
    box-shadow: 0 28px 60px rgba(0, 0, 0, .42), 0 4px 14px rgba(0, 0, 0, .28);
    padding: 18px 18px 20px;
}

.wm-sheet-strip {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--ink-soft);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--rule);
    margin-bottom: 16px;
}

.wm-sheet-figure { margin: 0; background: var(--paper); }
.wm-sheet-figure img { width: 100%; }

.wm-statcard {
    position: absolute;
    right: -6px;
    bottom: 0;
    width: min(290px, 86%);
    background: var(--paper);
    border-top: 3px solid var(--brass);
    box-shadow: 0 18px 38px rgba(0, 0, 0, .34);
    padding: 18px 20px 16px;
}

.wm-statcard .wm-eyebrow { margin-bottom: 12px; font-size: 11px; }

.wm-statrow {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    font-family: var(--mono);
    font-size: 12.5px;
    color: var(--ink);
    padding: 6px 0;
    border-top: 1px solid var(--rule-soft);
}
.wm-statrow:first-of-type { border-top: 0; }
.wm-statrow span:first-child { color: var(--ink-soft); }
.wm-statrow span:last-child { font-weight: 500; }

/* stats strip -------------------------------------------------------------- */

.wm-hero-strip {
    position: relative;
    border-top: 1px solid rgba(176, 141, 87, .55);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding: 30px 0 40px;
}

.wm-stat-value {
    display: block;
    font-family: var(--serif);
    font-weight: 700;
    font-size: 30px;
    line-height: 1.15;
    color: var(--brass-light);
}

.wm-stat-label {
    display: block;
    margin-top: 6px;
    font-size: 13.5px;
    color: var(--muted-on-navy-small);
    line-height: 1.5;
}

/* ---- partner band ------------------------------------------------------- */

.wm-partner {
    background: var(--linen);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: 34px 0;
    text-align: center;
}

.wm-partner .wm-eyebrow { margin-bottom: 10px; }

.wm-partner-name {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 22px;
    color: var(--navy);
    margin: 0 0 8px;
}

.wm-partner-body { margin: 0; color: var(--ink-soft); font-size: 16px; }

/* ---- samples ------------------------------------------------------------ */

.wm-samples { background: var(--paper); }

.wm-samples-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: end;
    margin-bottom: 52px;
}

.wm-samples-head .wm-h2 { margin-bottom: 0; }

.wm-samples-intro { text-align: right; color: var(--ink-soft); margin: 0; }

.wm-sample-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.wm-sample {
    background: var(--white);
    border: 1px solid var(--rule);
    display: flex;
    flex-direction: column;
}

.wm-sample-plate {
    background: var(--linen);
    padding: 34px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--rule);
}

.wm-sample-plate img {
    max-width: 300px;
    width: 100%;
    box-shadow:
        0 1px 2px rgba(20, 33, 61, .22),
        0 10px 20px rgba(20, 33, 61, .18),
        0 22px 44px rgba(20, 33, 61, .14);
}

.wm-sample-body { padding: 24px; }
.wm-sample-body .wm-eyebrow { margin-bottom: 10px; font-size: 11px; }
.wm-sample-body .wm-h3 { font-size: 21px; }
.wm-sample-body p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

.wm-sample-cta {
    background: var(--navy);
    border-color: var(--navy);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.wm-sample-cta .wm-h3 { color: var(--white); }
.wm-sample-cta p { color: var(--muted-on-navy); font-size: 15.5px; margin: 0 0 24px; }
.wm-sample-cta .wm-btn { align-self: flex-start; }

/* ---- what comes back ---------------------------------------------------- */

.wm-inside { background: var(--white); }

.wm-inside-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.wm-inside-body { color: var(--ink-soft); margin: 0 0 32px; }

.wm-numbered { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); }

.wm-numbered li {
    display: flex;
    gap: 18px;
    align-items: baseline;
    padding: 17px 0;
    border-bottom: 1px solid var(--rule-soft);
}

.wm-numbered b {
    font-family: var(--mono);
    font-weight: 500;
    font-size: 13px;
    color: var(--brass-dark);
    flex: 0 0 auto;
}

.wm-numbered span { color: var(--ink); font-size: 16px; }

.wm-audit { background: var(--navy); padding: 38px 34px; }

.wm-audit-head {
    display: flex;
    align-items: baseline;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.wm-audit-head h3 {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 25px;
    color: var(--white);
    margin: 0;
}

.wm-audit-kicker {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--brass-light);
}

.wm-audit p { color: var(--muted-on-navy); font-size: 15.5px; margin: 0 0 24px; }

.wm-gates { list-style: none; margin: 0; padding: 0; }

.wm-gates li {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 11px 0;
    border-top: 1px solid rgba(214, 206, 192, .18);
    font-family: var(--mono);
    font-size: 13px;
    color: var(--muted-on-navy);
}
.wm-gates li:first-child { border-top: 0; }
.wm-gates b { color: var(--brass-light); font-weight: 500; flex: 0 0 auto; }
.wm-gates span { flex: 1 1 auto; }
.wm-gates i { font-style: normal; color: var(--pass); font-weight: 500; letter-spacing: 1px; }

/* ---- services ----------------------------------------------------------- */

.wm-services { background: var(--paper); }

/* 2px gaps rendered as rule-coloured background showing between tiles. */
.wm-service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    background: var(--rule);
    border: 1px solid var(--rule);
}

.wm-service { background: var(--paper); padding: 32px 26px; }

.wm-service-ref {
    display: block;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.4px;
    color: var(--brass-dark);
    margin-bottom: 16px;
}

.wm-service .wm-h3 { font-size: 21px; }
.wm-service p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

/* ---- process ------------------------------------------------------------ */

.wm-process { background: var(--linen); }

.wm-process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.wm-step { border-top: 3px solid var(--navy); padding-top: 22px; }

.wm-step-num {
    display: block;
    font-family: var(--serif);
    font-weight: 700;
    font-size: 54px;
    line-height: 1;
    color: var(--brass);
    margin-bottom: 14px;
}

.wm-step .wm-h3 { font-size: 20px; }
.wm-step p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

/* ---- faq ---------------------------------------------------------------- */

.wm-faq { background: var(--paper); }

.wm-faq-inner { max-width: 880px; margin: 0 auto; }

.wm-faq-list { border-top: 1px solid var(--rule); margin-top: 36px; }

.wm-faq-item { border-bottom: 1px solid var(--rule); }

.wm-faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 20px;
    padding: 22px 0;
    font-family: var(--serif);
    font-weight: 600;
    font-size: 21px;
    color: var(--navy);
}
.wm-faq-item summary::-webkit-details-marker { display: none; }

.wm-faq-item summary::after {
    content: "+";
    font-family: var(--mono);
    font-size: 20px;
    color: var(--brass-dark);
    flex: 0 0 auto;
    line-height: 1;
}
.wm-faq-item[open] summary::after { content: "\2013"; }

.wm-faq-item p { margin: 0 0 24px; color: var(--ink-soft); max-width: 70ch; }

/* ---- closing cta -------------------------------------------------------- */

.wm-close { background: var(--navy); text-align: center; }
.wm-close .wm-h2 { color: var(--white); }
.wm-close .wm-h2 em { font-style: italic; color: var(--brass-light); }
.wm-close p { color: var(--muted-on-navy); font-size: 18px; margin: 0 0 32px; }

.wm-close-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---- footer ------------------------------------------------------------- */

.wm-footer { background: var(--navy-deep); padding: 46px 0; }

.wm-footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px 32px;
}

.wm-footer p { margin: 0; color: var(--muted-on-navy-small); font-size: 14.5px; }
.wm-footer p b { color: var(--white); font-weight: 600; }

.wm-footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.wm-footer-links a { color: var(--muted-on-navy-small); font-size: 14.5px; text-decoration: none; }
.wm-footer-links a:hover { color: var(--brass-light); text-decoration: underline; }

/* ---- responsive --------------------------------------------------------- */

@media (max-width: 1100px) {
    .wm-service-grid { grid-template-columns: repeat(2, 1fr); }
    .wm-process-grid { grid-template-columns: repeat(2, 1fr); }
    .wm-sample-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .wm-section { padding: 68px 0; }
    .wm-hero { padding-top: 64px; }
    .wm-hero-cols { grid-template-columns: 1fr; gap: 56px; padding-bottom: 64px; }
    .wm-inside-cols { grid-template-columns: 1fr; gap: 44px; }
    .wm-samples-head { grid-template-columns: 1fr; gap: 20px; align-items: start; }
    .wm-samples-intro { text-align: left; }
    .wm-hero-strip { grid-template-columns: repeat(2, 1fr); gap: 26px; }
    .wm-nav { gap: 20px; }
}

@media (max-width: 640px) {
    body.wm-home { font-size: 16px; }
    .wm-section { padding: 56px 0; }
    .wm-header-inner { gap: 14px; }
    .wm-header-actions { gap: 10px; }
    .wm-header .wm-btn-sm { padding: 10px 14px; font-size: 13.5px; }
    .wm-nav { display: none; }
    .wm-sample-grid { grid-template-columns: 1fr; }
    .wm-service-grid { grid-template-columns: 1fr; }
    .wm-process-grid { grid-template-columns: 1fr; gap: 28px; }
    .wm-hero-strip { grid-template-columns: 1fr; gap: 22px; }
    .wm-sheet { transform: none; }
    .wm-sheet-wrap { padding-bottom: 0; }
    .wm-statcard { position: static; width: 100%; margin-top: 18px; right: auto; bottom: auto; }
    /* Full-width buttons are for the IN-PAGE calls to action, where a button is
       the only thing on its row. The header is not one of them: .wm-header-inner
       wraps, so a full-width rule there stacks Sign in and Send drawings into two
       competing bars above the fold. The header's two buttons stay auto-width and
       sit side by side, with the solid brass primary still reading as dominant
       against the outline secondary. */
    .wm-btn { width: 100%; }
    .wm-header .wm-btn { width: auto; }
    .wm-sample-cta .wm-btn { align-self: stretch; }
    .wm-faq-item summary { font-size: 19px; }
}
