/* ============================================================
   Caldermont Management — site layout.
   Builds on the Cross-Functional Product Process design system
   (ds/tokens/*.css + ds/brand.css). This file carries only the
   page-level layout for the single-scroll marketing site and the
   interior (legal) pages — the palette, type, and brand atoms come
   from the design system, unchanged.
   ============================================================ */

/* ---------- Top nav (glass, sticky) ---------- */
.topnav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.88);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.topnav__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 16px 32px; height: 64px;
}
.wordmark { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; font-size: 17px; color: var(--midnight-plum); letter-spacing: -0.01em; }
.wordmark:hover { text-decoration: none; }
.wordmark__mark { display: block; flex-shrink: 0; }
.wordmark__text span { color: var(--royal-violet); }
.brandlogo { display: inline-flex; align-items: center; }
.brandlogo:hover { text-decoration: none; }
.brandlogo img { height: 34px; width: auto; display: block; }
@media (max-width: 520px) { .brandlogo img { height: 28px; } }
.navlinks { display: flex; align-items: center; gap: 28px; }
.navlinks a { color: var(--ink); font-size: 14px; font-weight: 700; letter-spacing: 0.01em; }
.navlinks a:hover { color: var(--royal-violet); text-decoration: none; }
.navlinks .nav-cta { background: var(--royal-violet); color: #fff; padding: 9px 16px; border-radius: 4px; }
.navlinks .nav-cta:hover { background: #5a31ab; color: #fff; }
@media (max-width: 860px) { .navlinks a:not(.nav-cta) { display: none; } }

/* ---------- Hero ---------- */
.hero { background: var(--midnight-plum); color: #fff; overflow: hidden; position: relative; }
.hero__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 92px 32px 96px;
  position: relative; z-index: 2;
}
.hero__copy { max-width: 33rem; }
.hero h1 {
  font-size: clamp(40px, 5.4vw, 64px); line-height: 1.04; letter-spacing: -0.015em; margin: 20px 0 0;
}
.hero .tagline { font-size: clamp(20px, 2.3vw, 26px); color: #fff; font-weight: 700; line-height: 1.25; margin-top: 22px; max-width: 24ch; }
.hero .subline { font-size: 17px; color: var(--orchid-soft); margin-top: 20px; max-width: 48ch; line-height: 1.55; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
/* Hero image: fills the right half, full height, bleeding to the viewport edge. */
.hero__photo {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 52vw; max-width: 980px; z-index: 1;
}
.hero__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
/* Left scrim so the plum background fades into the image edge. */
.hero__photo::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, var(--midnight-plum) 0, rgba(43,27,77,0) 22%);
}
.hero__rule { position: absolute; left: 0; bottom: 0; height: 6px; width: 100%; z-index: 3;
  background: linear-gradient(90deg, var(--royal-violet) 0 50%, var(--orchid) 50% 100%); }
@media (max-width: 900px) {
  .hero__inner { padding: 60px 32px 40px; }
  .hero__copy { max-width: none; }
  .hero__photo {
    position: static; width: 100%; max-width: none;
  }
  .hero__photo img { height: auto; aspect-ratio: 16 / 9; }
  .hero__photo::before { display: none; }
}

/* ---------- Stat band ---------- */
.statband { background: var(--white); border-bottom: 1px solid var(--hairline); }
.statband__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 44px 32px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px;
}
@media (max-width: 760px) { .statband__inner { grid-template-columns: repeat(2, 1fr); gap: 28px; } }

/* ---------- Section headers ---------- */
.sec-head { max-width: 62ch; }
.sec-head h2 { font-size: clamp(28px, 3.4vw, 40px); color: var(--midnight-plum); letter-spacing: -0.01em; margin-top: 14px; }
.section--plum .sec-head h2 { color: #fff; }
.sec-head .accent-rule { margin-top: 20px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 46px; }
@media (max-width: 820px) { .grid-3 { grid-template-columns: 1fr; } }
.pillar h3 { font-size: 20px; color: var(--midnight-plum); margin: 14px 0 10px; }
.pillar p { color: var(--ink); font-size: 15px; line-height: 1.55; }

/* ---------- Services detail (roles) ---------- */
.roles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 40px; }
@media (max-width: 720px) { .roles { grid-template-columns: 1fr; } }
.role { background: var(--white); border: 1px solid var(--hairline); border-left: 4px solid var(--royal-violet); border-radius: 4px; padding: 22px 24px; }
.role h4 { font-size: 17px; color: var(--midnight-plum); margin: 0 0 6px; }
.role p { font-size: 14px; color: var(--slate); line-height: 1.5; margin: 0; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 0.8fr; gap: 56px; margin-top: 44px; align-items: start; }
@media (max-width: 880px) { .about__grid { grid-template-columns: 1fr; gap: 32px; } }
.about__body p { font-size: 16px; line-height: 1.65; color: var(--ink); margin-bottom: 18px; }
.about__body p:last-child { margin-bottom: 0; }
.factcard { background: var(--lavender-mist); border-top: 4px solid var(--royal-violet); border-radius: 4px; padding: 26px 28px; }
.factcard + .factcard { margin-top: 18px; }
.factcard .eyebrow { margin-bottom: 14px; }
.factrow { display: flex; gap: 12px; font-size: 14px; line-height: 1.4; padding: 9px 0; border-top: 1px solid var(--lavender-deep); }
.factrow:first-of-type { border-top: 0; padding-top: 0; }
.factrow b { color: var(--royal-violet); min-width: 92px; }

/* ---------- Connect / contact ---------- */
.connect { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--midnight-plum); color: #fff; padding: 54px 32px 40px; }
.site-footer__inner { max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: flex-end; }
.site-footer a { color: var(--orchid-soft); }
.site-footer a:hover { color: #fff; }
.site-footer .small { font-size: 13px; color: var(--orchid-soft); }
.footer-links { display: flex; gap: 24px; font-size: 14px; font-weight: 700; flex-wrap: wrap; }

/* ---------- Interior (legal) pages ---------- */
.page-band { background: var(--midnight-plum); color: #fff; padding: 60px 32px 52px; }
.page-band__inner { max-width: var(--maxw); margin: 0 auto; }
.page-band h1 { font-size: clamp(30px, 4vw, 46px); color: #fff; margin: 8px 0 0; letter-spacing: -0.01em; }
.page-body { max-width: 820px; margin: 0 auto; padding: 56px 32px 80px; }
.page-body h2 { font-size: 24px; color: var(--royal-violet); margin: 2em 0 0.6em; }
.page-body h3 { font-size: 18px; color: var(--midnight-plum); margin: 1.6em 0 0.5em; }
.page-body p, .page-body li { font-size: 16px; line-height: 1.7; color: var(--ink); }
.page-body a { color: var(--royal-violet); }
.page-body table { border-collapse: collapse; width: 100%; margin: 1.2em 0; font-size: 15px; }
.page-body th { background: var(--midnight-plum); color: #fff; text-align: left; padding: 10px 14px; }
.page-body td { padding: 9px 14px; border-bottom: 1px solid var(--hairline); }
.page-body tbody tr:nth-child(even) td { background: var(--lavender-mist); }
.page-body hr { border: 0; border-top: 1px solid var(--hairline); margin: 2.4em 0; }
.page-body blockquote { background: var(--lavender-mist); border-left: 4px solid var(--royal-violet); border-radius: 0 4px 4px 0; padding: 14px 18px; margin: 1.4em 0; }
.page-body code { font-family: var(--font-mono); background: var(--code-fill); padding: 0.1em 0.35em; border-radius: 3px; font-size: 0.92em; }
