/*! Website designed by Ganges River Group, a DBA of Kokka & Company. https://kokkaco.com */
/* Marshall Electric & Construction mockup. Palette sampled from the client's flyer
   (assets/reference/business-spotlight-flyer.jpg), 2026-10-17. */
:root {
  --royal: #00306C;      /* logo, icon circles, service bar */
  --panel: #001E44;      /* "Business Spotlight" banner, call panel */
  --deep: #00183C;       /* footer bar; the scroll sequence ground */
  --white: #FFFFFF;
  --ground: #F6F7FA;     /* flyer page ground */
  --mist: #E4EAF0;       /* the faded house behind the flyer */
  --ink: #0F1E36;
  --muted: #55627A;
  --line: rgba(0, 48, 108, 0.14);
  --on-dark: #FFFFFF;
  --on-dark-muted: #B4C2D8;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 0;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: 'Archivo', system-ui, sans-serif; font-size: 17px; line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.label {
  font-stretch: 80%; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  font-size: 13px; color: var(--royal);
}
.on-dark .label, .label.light { color: var(--on-dark-muted); }
h1, h2, h3 { line-height: 1.05; margin: 0; }
.display {
  font-weight: 900; font-stretch: 105%; text-transform: uppercase; letter-spacing: -0.005em;
  font-size: clamp(36px, 5.2vw, 68px);
}
.h2 { font-weight: 900; font-stretch: 105%; text-transform: uppercase; font-size: clamp(28px, 3.6vw, 46px); }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 640px; }
.on-dark .lead { color: var(--on-dark-muted); }

.ribbon {
  background: var(--mist); color: var(--royal); text-align: center; font-size: 13px;
  padding: 6px var(--gutter); font-weight: 600;
}

/* Header */
header.site { position: sticky; top: 0; z-index: 30; background: var(--white); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; gap: 24px; height: 70px; }
.wordmark { text-decoration: none; line-height: 1; display: flex; flex-direction: column; color: var(--royal); }
.wordmark b { font-size: 23px; font-weight: 900; font-stretch: 112%; letter-spacing: 0.02em; }
.wordmark span {
  font-size: 10.5px; font-weight: 700; font-stretch: 80%; letter-spacing: 0.2em; margin-top: 5px;
  border-top: 2px solid var(--royal); padding-top: 4px;
}
nav.main { margin-left: auto; display: flex; gap: 26px; align-items: center; }
nav.main a { text-decoration: none; font-size: 15px; font-weight: 600; color: var(--muted); padding: 6px 0; border-bottom: 2px solid transparent; }
nav.main a:hover { color: var(--royal); }
nav.main a[aria-current="page"] { color: var(--royal); border-bottom-color: var(--royal); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 0; width: 44px; height: 44px; color: var(--royal); }
.menu-btn svg { width: 22px; height: 22px; }
@media (max-width: 920px) {
  .menu-btn { display: grid; place-items: center; }
  header.site .btn { display: none; }
  nav.main {
    display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--white); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px;
  }
  nav.main.open { display: flex; }
  nav.main a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  nav.main a[aria-current="page"] { border-bottom-color: var(--line); }
  nav.main .btn { display: inline-flex; margin-top: 16px; justify-content: center; }
}
@media (min-width: 921px) { nav.main .btn.in-menu { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700;
  padding: 13px 22px; border-radius: 0; font-size: 15px; white-space: nowrap; border: 0; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn svg { width: 16px; height: 16px; }
.btn-royal { background: var(--royal); color: var(--white); }
.btn-royal:hover { background: var(--panel); }
.btn-white { background: var(--white); color: var(--royal); }
.btn-white:hover { background: var(--mist); }
.btn-line:hover { background: rgba(0, 48, 108, .06); }
.on-dark .btn-line:hover { background: rgba(255, 255, 255, .1); }
.btn-line { border: 1.5px solid currentColor; color: var(--royal); background: transparent; }
.on-dark .btn-line { color: var(--white); border-color: rgba(255,255,255,.45); }
/* Keyboard focus: one clear ring, white on the dark panels. */
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--royal); outline-offset: 3px; }
.on-dark a:focus-visible, .on-dark button:focus-visible, footer a:focus-visible, .call-panel a:focus-visible { outline-color: var(--white); }
.row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Page hero (inner pages) */
.page-hero { background: var(--panel); color: var(--on-dark); padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 80px); position: relative; overflow: hidden; }
.page-hero .crumbs { font-size: 14px; color: var(--on-dark-muted); margin-bottom: 22px; }
.page-hero .crumbs a { color: var(--on-dark-muted); text-decoration: none; }
.page-hero .crumbs a:hover { color: var(--white); }
.page-hero .display { margin: 14px 0 20px; max-width: 16ch; }
.page-hero .icon-badge { position: absolute; right: var(--gutter); bottom: -40px; width: clamp(160px, 22vw, 300px); height: auto; opacity: .08; color: var(--white); }
.page-hero.has-image { display: grid; }
.hero-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero-split figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--deep); }
.hero-split figcaption { font-size: 12px; color: var(--on-dark-muted); padding: 8px 12px; }
@media (max-width: 860px) { .hero-split { grid-template-columns: 1fr; } }

/* Sections */
section.block { padding: clamp(64px, 9vw, 120px) 0; }
section.tint { background: var(--mist); }
section.white { background: var(--white); }
section.dark { background: var(--deep); color: var(--on-dark); }
.head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.head .h2 { margin-top: 10px; max-width: 16ch; }
.head p { max-width: 440px; color: var(--muted); margin: 0; }
.on-dark .head p, section.dark .head p { color: var(--on-dark-muted); }

/* Icon circle, as on the flyer */
.ico { width: 52px; height: 52px; border-radius: 0; background: var(--royal); color: var(--white); display: grid; place-items: center; flex: none; }
.ico svg { width: 24px; height: 24px; }

/* Cards */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { font-size: 20px; font-weight: 800; margin: 20px 0 8px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
a.card { text-decoration: none; display: flex; flex-direction: column; transition: border-color .15s ease; }
a.card:hover { border-color: var(--royal); }
a.card .more { margin-top: auto; padding-top: 22px; color: var(--royal); font-weight: 700; font-size: 15px; }
.card.feature { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
.card.feature h3 { margin: 4px 0 6px; }

/* Lists */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; }
.checks li { padding-left: 24px; }
.checks li::before {
  content: ''; position: absolute; left: 0; top: .62em; width: 9px; height: 9px; border-radius: 0;
  background: var(--royal);
}
.on-dark .checks li::before, section.dark .checks li::before { background-color: var(--royal); }

/* Process steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.steps li { list-style: none; counter-increment: step; background: var(--white); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-weight: 900; font-stretch: 110%; font-size: 30px; color: var(--royal); margin-bottom: 12px; }
.steps h3 { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }
.steps { padding: 0; margin: 0; }
@media (max-width: 1080px) { .steps { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .steps { grid-template-columns: 1fr; } }

/* Split content */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.split.top { align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--deep); position: relative; }
.figure .tag { position: absolute; left: 12px; bottom: 12px; background: rgba(0,24,60,.7); color: #fff; font-size: 12px; padding: 4px 10px; border-radius: 0; }

/* Photo slots: the client's own photos only */
.slot {
  border-radius: var(--radius); border: 2px dashed rgba(0,48,108,.35); min-height: 240px;
  display: grid; place-items: center; text-align: center; padding: 24px; color: var(--royal);
  background: rgba(0, 48, 108, .04);
}
.slot b { display: block; font-size: 17px; margin-bottom: 6px; }
.slot small { color: var(--muted); font-size: 14px; display: block; }

/* Markets bar, as on the flyer */
.markets-bar { background: var(--royal); color: var(--white); border-radius: 0; display: flex; justify-content: center; flex-wrap: wrap; padding: 14px 24px; gap: 8px 0; }
.markets-bar span { font-stretch: 85%; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; padding: 0 18px; border-right: 1px solid rgba(255,255,255,.35); }
.markets-bar span:last-child { border-right: 0; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::after { content: '+'; color: var(--royal); font-size: 24px; line-height: 1; }
details[open] summary::after { content: '−'; }
details p { color: var(--muted); margin: 12px 0 0; }

/* Draft note inside the mockup */
.draft { display: inline-block; font-size: 12px; font-weight: 600; color: var(--royal); background: var(--mist); border-radius: 0; padding: 3px 10px; margin-top: 14px; }
.on-dark .draft { background: rgba(255,255,255,.12); color: var(--on-dark-muted); }

/* Call panel, as on the flyer */
.call-panel { background: var(--panel); color: var(--white); border-radius: 0; padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.call-panel .phone-ring { width: 76px; height: 76px; border-radius: 0; border: 2px solid rgba(255,255,255,.6); display: grid; place-items: center; }
.call-panel .phone-ring svg { width: 34px; height: 34px; }
.call-panel .small { font-stretch: 85%; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 14px; color: var(--on-dark-muted); }
.call-panel .num { font-weight: 900; font-stretch: 110%; font-size: clamp(34px, 5vw, 60px); text-decoration: none; line-height: 1.05; display: block; }
@media (max-width: 760px) { .call-panel { grid-template-columns: 1fr; text-align: left; } }

/* Footer */
footer { background: var(--deep); color: var(--on-dark-muted); padding: 60px 0 36px; font-size: 15px; }
footer .grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
footer h4 { color: var(--white); margin: 0 0 12px; font-size: 15px; }
footer a { text-decoration: none; display: block; padding: 3px 0; }
footer a:hover { color: var(--white); }
footer .wordmark { color: var(--white); }
footer .wordmark span { border-top-color: var(--white); }
footer .legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }
footer .legal a { display: inline; }
@media (max-width: 860px) { footer .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { footer .grid { grid-template-columns: 1fr; } }

/* The logo in the header and footer */
.wordmark img { height: 40px; width: auto; display: block; }
footer .wordmark img, footer img[alt^="Marshall"] { height: 40px; width: auto; }

/* Design credit: the GRG single line lockup, one colour, drawn as a mask in the footer ink. */
/* Units never break inside; the logo stays on one line with "a DBA of Kokka & Company" and
   only breaks again before "Kokka & Company". The logo drops 4px so its lettering sits on the text baseline. */
.grg-credit { margin: 0; }
.grg-credit__unit { white-space: nowrap; }
.grg-credit__by { display: inline-block; max-width: 100%; }
.grg-credit__logo { display: inline-block !important; vertical-align: -4px; padding: 0 !important; color: inherit; text-decoration: none; transition: opacity .2s ease; }
.grg-credit__logo > span { display: block; width: 200px; aspect-ratio: 3187.57 / 313.8; background-color: currentColor;
  -webkit-mask: url("logo/grg-lockup-line.svg") center / contain no-repeat; mask: url("logo/grg-lockup-line.svg") center / contain no-repeat; }
.grg-credit__logo:hover, .grg-credit__logo:focus-visible { opacity: .75; }
.grg-credit__logo:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }
/* Phones: two lines. The text shrinks to fit "a DBA of Kokka & Company" beside the 200px logo
   (13.3em is that phrase's width in Archivo here), never above its own size, never below 9px. */
@media (max-width: 40rem) {
  .grg-credit { container-type: inline-size; flex: 1 1 100%; }
  .grg-credit > span { font-size: clamp(9px, (100cqi - 206px) / 13.3, 1em); }
}
@media (forced-colors: active) { .grg-credit__logo > span { background-color: LinkText; forced-color-adjust: none; } }

/* Phones: a call bar fixed to the bottom of the screen, the flyer's one call to action.
   The body gets the bar's height as bottom padding so it never covers the footer. */
.callbar { display: none; }
@media (max-width: 640px) {
  .callbar {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    min-height: 52px; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
    background: var(--royal); color: var(--white); text-decoration: none;
    font-weight: 800; font-size: 16px; border-top: 1px solid rgba(255,255,255,.2);
  }
  .callbar svg { width: 18px; height: 18px; flex: none; }
  .callbar:hover { background: var(--panel); }
  .callbar:focus-visible { outline: 2px solid var(--white); outline-offset: -6px; }
  body { padding-bottom: calc(52px + env(safe-area-inset-bottom)); }
}
