/* ============================================================
   KESHAV ENTERPRISES — Design System
   Palette: monsoon slate / concrete / water blue / logo orange
   Type: Bricolage Grotesque (display) · IBM Plex Sans (body)
         IBM Plex Mono (labels, spec data)
   ============================================================ */

:root {
  --slate: #17272f;        /* wet concrete, deep monsoon */
  --slate-soft: #24343d;
  --concrete: #eef0ee;     /* light concrete grey */
  --paper: #f7f8f6;
  --water: #1b6e8c;        /* structural blue */
  --water-deep: #124e63;
  --brand: #f37021;        /* logo orange — CTA + accents */
  --brand-deep: #d95c10;   /* hover / pressed state */
  --ink: #1c1c1c;          /* logo black */
  --ink-soft: #4d5a61;
  --line: #d5dad6;
  --white: #ffffff;

  --font-display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --max: 1120px;
  --radius: 6px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--water); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- utility type ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--water);
  display: block;
  margin-bottom: 12px;
}
.eyebrow.on-dark { color: var(--brand); }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; font-weight: 700; }

.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }

/* ---------- header ---------- */
.top-strip {
  background: var(--slate);
  color: #b8c4ca;
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 7px 0;
}
.top-strip .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.top-strip a { color: var(--brand); text-decoration: none; }

header.site {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { display: block; height: 48px; width: auto; }
.brand span {
  /* hidden: 7 nav items + logo + tagline exceed the 1120px wrap */
  display: none;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--water);
}
nav.main { display: flex; gap: 26px; align-items: center; }
nav.main a {
  text-decoration: none; color: var(--ink); font-size: 15px; font-weight: 500;
}
nav.main a:hover { color: var(--water); }
nav.main a.cta {
  background: var(--brand); color: var(--slate);
  padding: 10px 18px; border-radius: var(--radius); font-weight: 700;
}
nav.main a.cta:hover { background: var(--brand-deep); color: var(--white); }

/* mobile hamburger (zero-JS: native details/summary) */
details.menu { display: none; }
details.menu summary {
  list-style: none; cursor: pointer;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--radius);
}
details.menu summary::-webkit-details-marker { display: none; }
.bars { position: relative; width: 20px; height: 2px; background: var(--ink); }
.bars::before, .bars::after {
  content: ""; position: absolute; left: 0;
  width: 20px; height: 2px; background: var(--ink);
}
.bars::before { top: -6px; }
.bars::after { top: 6px; }
details.menu[open] .bars { background: transparent; }
details.menu[open] .bars::before { top: 0; transform: rotate(45deg); }
details.menu[open] .bars::after { top: 0; transform: rotate(-45deg); }
details.menu nav {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white); border-bottom: 1px solid var(--line);
  box-shadow: 0 14px 24px rgb(0 0 0 / 0.08);
  display: grid; padding: 4px 24px 20px;
}
details.menu nav a {
  text-decoration: none; color: var(--ink); font-size: 16px; font-weight: 500;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
details.menu nav a.cta {
  margin-top: 16px; border-bottom: none; text-align: center;
  background: var(--brand); color: var(--slate);
  padding: 13px 18px; border-radius: var(--radius); font-weight: 700;
}

/* the full 7-item nav only fits above ~1080px; hamburger below that */
@media (max-width: 1080px) {
  nav.main { display: none; }
  details.menu { display: block; }
}

/* ---------- hero ---------- */
.hero {
  background:
    linear-gradient(180deg, var(--slate) 0%, var(--slate-soft) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero .wrap {
  display: grid; grid-template-columns: 1.4fr 0.9fr; gap: 48px;
  padding-top: 84px; padding-bottom: 84px; align-items: center;
}
.hero h1 { color: var(--white); }
.hero .lede { color: #c4ced3; margin-top: 18px; }
.hero .actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

/* water-bead texture line along hero bottom */
.hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 8px;
  background: repeating-linear-gradient(
    90deg, var(--brand) 0 28px, transparent 28px 40px);
  opacity: 0.9;
}

.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: 14px 26px; border-radius: var(--radius); font-size: 16px;
  border: 2px solid transparent;
}
.btn.primary { background: var(--brand); color: var(--slate); }
.btn.primary:hover { background: var(--brand-deep); color: var(--white); }
.btn.ghost { border-color: #5c6d76; color: var(--white); }
.btn.ghost:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- notary stamp seal (signature element) ---------- */
.seal {
  width: 190px; height: 190px; border-radius: 50%;
  border: 3px double var(--brand);
  display: grid; place-items: center; text-align: center;
  transform: rotate(-8deg);
  font-family: var(--font-mono); color: var(--brand);
  position: relative;
  margin: 0 auto;
}
.seal::before {
  content: ""; position: absolute; inset: 10px;
  border: 1px solid var(--brand); border-radius: 50%; opacity: 0.6;
}
.seal .yrs { font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; line-height: 1; }
.seal small { font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; display: block; max-width: 130px; }
.seal.on-light { border-color: var(--water); color: var(--water); }
.seal.on-light::before { border-color: var(--water); }

/* ---------- stat strip ---------- */
.stats {
  background: var(--white); border-bottom: 1px solid var(--line);
}
.stats .wrap {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding-top: 26px; padding-bottom: 26px; gap: 18px;
}
.stat { border-left: 3px solid var(--brand); padding-left: 14px; }
.stat b { font-family: var(--font-display); font-size: 1.5rem; display: block; color: var(--slate); }
.stat span { font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- sections ---------- */
section.block { padding: 72px 0; }
section.block.tint { background: var(--concrete); }
section.block.dark { background: var(--slate); color: var(--white); }
section.block.dark h2 { color: var(--white); }
section.block.dark p { color: #c4ced3; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* benefit / service cards */
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
}
.card .num {
  font-family: var(--font-mono); font-size: 12px; color: var(--water);
  letter-spacing: 0.1em; display: block; margin-bottom: 10px;
}
.card h3 { margin-bottom: 8px; color: var(--slate); }
.card p { font-size: 15.5px; color: var(--ink-soft); }
.card a.more {
  font-family: var(--font-mono); font-size: 13px; text-decoration: none;
  display: inline-block; margin-top: 14px;
}
.card a.more:hover { text-decoration: underline; }
section.block.dark .card { background: var(--slate-soft); border-color: #33454f; }
section.block.dark .card h3 { color: var(--white); }
section.block.dark .card p { color: #b8c4ca; }

/* spec table (site-report aesthetic) */
table.spec {
  width: 100%; border-collapse: collapse; font-size: 15.5px;
  background: var(--white); border: 1px solid var(--line);
}
table.spec th, table.spec td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
table.spec th {
  font-family: var(--font-mono); font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--ink-soft); width: 38%;
  background: var(--concrete);
}

/* process steps */
ol.process { list-style: none; counter-reset: step; display: grid; gap: 16px; }
ol.process li {
  counter-increment: step;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 20px 20px 66px; position: relative;
}
ol.process li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 18px; top: 20px;
  font-family: var(--font-mono); font-weight: 700; color: var(--brand-deep);
  font-size: 15px;
}
ol.process li b { display: block; font-family: var(--font-display); color: var(--slate); margin-bottom: 4px; }
ol.process li p { font-size: 15px; color: var(--ink-soft); }

/* FAQ */
details.faq {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 12px;
}
details.faq summary {
  cursor: pointer; padding: 18px 20px; font-weight: 600; font-size: 16px;
  list-style: none; position: relative; padding-right: 48px;
}
details.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 14px;
  font-family: var(--font-mono); font-size: 20px; color: var(--water);
}
details.faq[open] summary::after { content: "–"; }
details.faq .a { padding: 0 20px 18px; color: var(--ink-soft); font-size: 15.5px; }

/* audience band */
.audience { border-top: 4px solid var(--brand); }

/* CTA band */
.cta-band { background: var(--water-deep); color: var(--white); }
.cta-band .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; padding-top: 54px; padding-bottom: 54px; flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); max-width: 24ch; }
.cta-band p { color: #bcd7e2; }

/* footer */
footer.site {
  background: var(--slate); color: #9fb0b8; font-size: 14.5px;
  padding: 56px 0 90px;
}
footer.site h3 { color: var(--white); font-size: 1rem; margin-bottom: 12px; }
footer.site .footer-logo { display: block; width: 180px; height: auto; margin-bottom: 14px; }
footer.site .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
footer.site a { color: #cfd9de; text-decoration: none; }
footer.site a:hover { color: var(--brand); }
footer.site ul { list-style: none; display: grid; gap: 8px; }
.footnote {
  font-family: var(--font-mono); font-size: 12px; margin-top: 14px; color: #6f8089;
}

/* sticky mobile call bar */
.callbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  display: none; grid-template-columns: 1fr 1fr;
}
.callbar a {
  text-align: center; padding: 15px 10px; font-weight: 700;
  text-decoration: none; font-size: 15.5px;
}
.callbar a.call { background: var(--brand); color: var(--slate); }
.callbar a.wa { background: #1f8f4d; color: var(--white); }

/* breadcrumbs */
.crumbs {
  font-family: var(--font-mono); font-size: 12.5px; padding: 16px 0;
  color: var(--ink-soft);
}
.crumbs a { text-decoration: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 64px; }
  .hero .seal { margin-top: 8px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  footer.site .wrap { grid-template-columns: 1fr 1fr; }
  .brand img { height: 42px; }
  .callbar { display: grid; }
  body { padding-bottom: 0; }
}

/* ---------- lead form ---------- */
form.lead {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: grid; gap: 18px;
}
form.lead .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
form.lead label {
  font-family: var(--font-mono); font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--ink-soft); display: grid; gap: 7px;
}
form.lead input, form.lead select, form.lead textarea {
  font-family: var(--font-body); font-size: 16px; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); width: 100%;
}
form.lead input:focus, form.lead select:focus, form.lead textarea:focus {
  outline: 3px solid var(--brand); outline-offset: 0; border-color: var(--brand);
}
form.lead button {
  font-family: var(--font-body); font-size: 16px; font-weight: 700;
  background: var(--brand); color: var(--slate); border: none; cursor: pointer;
  padding: 15px 26px; border-radius: var(--radius);
}
form.lead button:hover { background: var(--brand-deep); color: var(--white); }
form.lead .hp { position: absolute; left: -9999px; }
@media (max-width: 700px) {
  form.lead .row { grid-template-columns: 1fr; }
}

/* ---------- client logo strip ---------- */
.clients { background: var(--white); border-bottom: 1px solid var(--line); padding: 34px 0; }
.clients .label {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-soft); text-align: center; margin-bottom: 22px;
}
.clients .logos {
  display: flex; align-items: center; justify-content: center;
  gap: 48px; flex-wrap: wrap;
}
.clients img {
  height: 52px; width: auto; object-fit: contain;
  filter: grayscale(1); opacity: 0.65;
  transition: filter 0.2s ease, opacity 0.2s ease;
}
.clients img:hover { filter: grayscale(0); opacity: 1; }
@media (max-width: 700px) {
  .clients .logos { gap: 28px; }
  .clients img { height: 40px; }
}


/* ---------- client logo carousel (CSS-only, no JS) ---------- */
.clients .marquee { overflow: hidden; position: relative; }
.clients .track {
  display: flex; align-items: center; gap: 64px;
  width: max-content;
  animation: logos-scroll 28s linear infinite;
}
.clients .track:hover { animation-play-state: paused; }
@keyframes logos-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .clients .track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .clients .track > span[aria-hidden] { display: none; }
}

/* ---------- quote page ---------- */
.btn.ghost-dark { border: 2px solid var(--water); color: var(--water); }
.btn.ghost-dark:hover { border-color: var(--brand); color: var(--brand-deep); }


/* ---------- CSS-only lightbox (certificate full view) ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(20, 28, 33, 0.92);
  display: none; place-items: center; padding: 24px;
}
.lightbox:target { display: grid; }
.lightbox img {
  max-width: min(1200px, 96vw); max-height: 90vh;
  width: auto; height: auto;
  border-radius: var(--radius); background: var(--white);
}
.lightbox .close {
  position: absolute; top: 18px; right: 24px;
  font-family: var(--font-mono); font-size: 15px; font-weight: 700;
  color: var(--white); text-decoration: none;
  border: 2px solid rgba(255,255,255,0.5); border-radius: var(--radius);
  padding: 8px 16px;
}
.lightbox .close:hover { border-color: var(--brand); color: var(--brand); }
.lightbox .backdrop { position: absolute; inset: 0; }
a.zoomable { display: block; cursor: zoom-in; }

/* ---------- footer bottom bar ---------- */
.footer-bottom {
  border-top: 1px solid #33454f; margin-top: 44px; padding-top: 22px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 13.5px; color: #8fa0a8;
}
.footer-bottom a { color: #cfd9de; }
.footer-bottom a:hover { color: var(--brand); }


/* ---------- comparison tables (3 columns) ---------- */
table.spec.compare th:first-child { width: 30%; }
table.spec.compare td { width: 35%; }
table.spec.compare thead th,
table.spec.compare tr:first-child td {
  font-family: var(--font-display); color: var(--slate);
  background: var(--concrete);
}

/* tables inside dark sections */
section.block.dark table.spec {
  background: var(--slate-soft);
  border-color: #3a4c57;
  color: #dfe7ea;
}
section.block.dark table.spec th,
section.block.dark table.spec td {
  border-bottom-color: #3a4c57;
}
section.block.dark table.spec th {
  background: #1d2c34;
  color: #9fb0b8;
}
section.block.dark table.spec tr:first-child td {
  background: #1d2c34;
  color: var(--white);
  font-family: var(--font-display);
}
section.block.dark table.spec td { color: #dfe7ea; }
/* highlight the "ours" column */
section.block.dark table.spec td:last-child { color: var(--brand); }
section.block.dark table.spec tr:first-child td:last-child { color: var(--brand); }

/* horizontal scroll wrapper so wide tables never break layout */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll table.spec { min-width: 520px; }

/* ---------- responsive table behaviour ---------- */
@media (max-width: 700px) {
  table.spec { font-size: 14.5px; }
  table.spec th, table.spec td { padding: 10px 12px; }
  table.spec.compare th:first-child { width: 28%; }
}
