/* site.css - additions the multi-page static site needs on top of the
   handoff reference (fpm.css). Same tokens, no new colors. */

/* readability: Cubron Light ships a very tight space glyph; restore word rhythm
   and raise the type scale one step (client feedback). Token overrides live here
   so the handoff colors_and_type.css stays pristine. */
:root {
  --fs-body: 19px;
  --fs-body-lg: 22px;
  --fs-body-sm: 16px;
  --fs-caption: 14px;
}
body { word-spacing: 0.16em; }
.nav-links a { font-size: 16px; }
.stat-l { font-size: 14px; max-width: 26ch; }
.problem-item p, .cap-card p, .benefit p, .gov-list li p, .sec-item p,
.deploy-phase p, .stack-card p { font-size: 17px; }
.faq-a p { font-size: 17.5px; }
.tour-kvs li { font-size: 17px; }
.section-head p { font-size: 19px; }
.hero-body { line-height: 1.6; }
.footer-brand p { font-size: 14.5px; }
.footer-col h5 { font-size: 13px; }
.footer-col a { font-size: 15px; }
.footer-base { font-size: 13px; }

/* photo backgrounds + scrims (recipes from FPM Background Photos.html) */
.bg-photo { position: relative; background-size: cover; background-position: center; }
.bg-photo > * { position: relative; z-index: 1; }
.bg-photo::before { content: ""; position: absolute; inset: 0; z-index: 0; }
.bg-hero-city { background-image: url('/img/bg/hero-city.jpg'); }
.bg-hero-city::before { background: linear-gradient(90deg, rgba(20,21,26,.92) 0%, rgba(20,21,26,.72) 34%, rgba(20,21,26,.30) 70%, rgba(20,21,26,.42) 100%); }
.bg-problem { background-image: url('/img/bg/problem-terrain.jpg'); }
.bg-problem::before { background: linear-gradient(180deg, rgba(20,21,26,.78) 0%, rgba(20,21,26,.62) 45%, rgba(20,21,26,.88) 100%); }
.bg-coverage { background-image: url('/img/bg/coverage-facade.jpg'); }
.bg-coverage::before { background: linear-gradient(180deg, rgba(20,21,26,.78) 0%, rgba(20,21,26,.62) 45%, rgba(20,21,26,.88) 100%); }
.bg-cta { background-image: url('/img/bg/cta-concrete.jpg'); }
.bg-cta::before { background: linear-gradient(180deg, rgba(20,21,26,.82) 0%, rgba(20,21,26,.70) 50%, rgba(20,21,26,.90) 100%); }

/* nav: real links + mobile menu (checkbox pattern, no framework) */
.nav-menu { display: none; }
.nav-product img.fpm-mark { width: 28px; height: 28px; border-radius: 7px; display: block; }
.nav-product .product-name { white-space: nowrap; font-size: 17px; }
.nav-right .btn { white-space: nowrap; }
.nav { position: sticky; top: 0; z-index: 40; background: rgba(35,35,35,.6); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: background var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease); }
.nav-scrolled { background: rgba(15,15,15,.86); border-bottom-color: var(--hairline); }
.nav-toggle-box { display: none; }
.nav-burger { display: none; }
.lang-toggle a { color: var(--fg-3); text-decoration: none; }
.lang-toggle a.active { color: var(--fg-1); font-weight: var(--fw-semi); }
.lang-toggle .sep { color: var(--fg-3); margin: 0 6px; }

@media (max-width: 960px) {
  .nav-burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 4px; width: 42px; height: 42px; align-items: center; border: 1px solid var(--hairline-strong); border-radius: var(--r-md); cursor: pointer; }
  .nav-burger span { width: 17px; height: 2px; background: var(--fg-1); border-radius: 2px; transition: transform var(--dur-base) var(--ease), opacity var(--dur-base) var(--ease); }
  .nav-links, .nav .btn-primary { display: none; }
  .nav-toggle-box:checked ~ .nav-menu { display: flex; }
  .nav-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 4px; background: var(--wbs-black); border-bottom: 1px solid var(--hairline); padding: 16px 24px 24px; box-shadow: var(--shadow-raised); }
  .nav-menu a { padding: 12px 0; border-bottom: 1px solid var(--hairline); color: var(--fg-2); }
  .nav-menu a:last-child { border-bottom: 0; }
  .nav-toggle-box:checked ~ .nav-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle-box:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle-box:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

/* page head for subpages */
.page-head { padding: 140px 0 56px; }
.page-head h1 { max-width: 20ch; }
.page-head .sub { color: var(--fg-2); font-size: var(--fs-body-lg); max-width: 56ch; margin-top: var(--sp-5); }

/* prose (legal + guide pages) */
.prose { max-width: 760px; }
.prose h2 { margin: var(--sp-7) 0 var(--sp-3); }
.prose h3 { margin: var(--sp-6) 0 var(--sp-3); }
.prose p, .prose li { color: var(--fg-2); margin-bottom: var(--sp-4); }
.prose a { color: var(--fg-accent); text-decoration: none; }
.prose a:hover { text-decoration: underline; }
.prose ul { padding-left: 20px; }
.section-light .prose p, .section-light .prose li { color: var(--fg-on-light-2); }
.section-light .prose h2, .section-light .prose h3 { color: var(--fg-on-light-1); }
.section-light .prose a { color: var(--fg-on-light-1); text-decoration: underline; }

/* lead form */
.lead-form { background: var(--surface-raised); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: var(--sp-6); box-shadow: var(--shadow-card); max-width: 620px; }
.lead-form label { display: block; font-weight: var(--fw-semi); font-size: var(--fs-body-sm); margin: var(--sp-4) 0 var(--sp-2); }
.lead-form input, .lead-form select, .lead-form textarea { width: 100%; box-sizing: border-box; background: var(--wbs-dark); color: var(--fg-1); border: 1px solid var(--hairline-strong); border-radius: var(--r-md); padding: 12px 14px; font: inherit; font-size: var(--fs-body-sm); transition: border-color var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease); }
.lead-form input:focus, .lead-form textarea:focus, .lead-form select:focus { outline: none; border-color: var(--wbs-lime); box-shadow: var(--shadow-lime-soft); }
.lead-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.lead-form .btn { width: 100%; justify-content: center; margin-top: var(--sp-5); }
.lead-form .form-note { color: var(--fg-3); font-size: var(--fs-caption); margin-top: var(--sp-3); }
.form-status { margin-top: var(--sp-4); padding: 12px 14px; border-radius: var(--r-md); font-size: var(--fs-body-sm); display: none; }
.form-status.ok { display: block; background: rgba(202,241,162,.12); border: 1px solid rgba(202,241,162,.4); color: var(--wbs-lime); }
.form-status.err { display: block; background: rgba(224,120,111,.10); border: 1px solid rgba(224,120,111,.4); color: #E0A49E; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
@media (max-width: 640px) { .lead-form .row2 { grid-template-columns: 1fr; } }

/* contact split */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8); align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-side h3 { margin-bottom: var(--sp-3); }
.contact-side p { color: var(--fg-2); }
.contact-side .block { margin-bottom: var(--sp-6); }

/* consent banner (GA4 consent mode) */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; margin: 0 auto; max-width: 540px; background: var(--surface-raised); border: 1px solid var(--hairline-strong); border-radius: var(--r-lg); padding: 18px 20px; box-shadow: var(--shadow-raised); }
.consent p { margin: 0 0 14px; font-size: 14px; line-height: 1.55; color: var(--fg-2); }
.consent a { color: var(--fg-1); text-decoration: underline; }
.consent-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* seo landing pages */
.landing-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); margin-top: var(--sp-7); }
@media (max-width: 860px) { .landing-cols { grid-template-columns: 1fr; } }
.landing-cols .face { background: var(--surface-raised); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: var(--sp-6); }
.landing-cols .face h3 { margin-bottom: var(--sp-3); }
.landing-cols .face p { color: var(--fg-2); }
.cmp-table { width: 100%; border-collapse: collapse; margin-top: var(--sp-6); font-size: var(--fs-body-sm); }
.cmp-table th, .cmp-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--hairline); color: var(--fg-2); }
.cmp-table th { font-weight: var(--fw-semi); color: var(--fg-1); }
.cmp-table td.y { color: var(--wbs-lime); }
.cmp-table td.n { color: var(--fg-3); }

/* footer: fpm.css owns the on-light colors; only spacing + brand lockup here */
.footer-col a { padding: 2px 0; }
.footer-brand .fpm-lockup { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--wbs-dark); font-weight: 600; font-size: 16px; }
.footer-brand .fpm-lockup img { width: 30px; height: 30px; border-radius: 8px; display: block; }

/* small screens: type + section padding */
@media (max-width: 640px) {
  :root { --section-py-desk: 64px; }
  .hero-fullbleed-h1 { font-size: clamp(38px, 10vw, 56px); }
  .stats-grid { grid-template-columns: 1fr 1fr; row-gap: var(--sp-6); }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* product-UI mocks: small labels legibility */
.mock-chrome { word-spacing: 0.22em; }
.deal-metric .k { font-size: 13px; }
.risk-row .lbl, .risk-row .val { font-size: 13.5px; }
.review-row { font-size: 13.5px; }
.review-row span, .deal-card-mock .tag-row .pill { font-size: 13px; }
.hero-meta { word-spacing: 0.22em; }
.hero-meta span { font-size: 14px; }
.deal-sub { font-size: 14px; }
.d365-app, .d365-crumb { letter-spacing: 0.02em; font-size: 12.5px; }

/* ---------- scroll effects (house motion rules: one curve, no bounce) ---------- */
#scrollbar { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--wbs-lime); z-index: 60; transition: none; }

/* parallax layer: image moves, scrim + content stay */
.bg-photo { overflow: hidden; }
.bg-photo .bg-layer { position: absolute; inset: -14% 0; background-size: cover; background-position: center; z-index: 0; will-change: transform; }
.bg-photo::before { z-index: 1; }
.bg-photo > * { z-index: 2; }
.bg-photo > .bg-layer { z-index: 0; }
.bg-hero-city { background-image: none; }
.bg-hero-city .bg-layer { background-image: url('/img/bg/hero-city.jpg'); }
.bg-problem { background-image: none; }
.bg-problem .bg-layer { background-image: url('/img/bg/problem-terrain.jpg'); }
.bg-coverage { background-image: none; }
.bg-coverage .bg-layer { background-image: url('/img/bg/coverage-facade.jpg'); }
.bg-cta { background-image: none; }
.bg-cta .bg-layer { background-image: url('/img/bg/cta-concrete.jpg'); }

/* reveal-on-scroll: only when JS enables .anim on <html>, so no-JS stays visible */
.anim .rv { opacity: 0; transform: translateY(16px); transition: opacity 480ms var(--ease), transform 480ms var(--ease); }
.anim .rv.rv-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .anim .rv { opacity: 1; transform: none; }
  #scrollbar { display: none; }
}

/* ---------- readability round 3: raise the floor on every small size ----------
   The handoff styleguide is dense (10-14px). Marketing site needs glasses-free
   reading. Nothing below ~13px anywhere; primary copy 17-19px. Plus contrast:
   secondary text up from 72% to 80% white. */
:root {
  --fg-2: rgba(255, 255, 255, 0.80);
  --fg-3: rgba(255, 255, 255, 0.62);
  --fs-eyebrow: 14.5px;
}
.hero-body { color: rgba(255,255,255,0.88); }
.hero-meta span { font-size: 16px; }
.btn-sm { font-size: 14.5px; }
.tour-tab { font-size: 16.5px; }
.tour-tab .tn { font-size: 13px; }
.tour-copy > p { font-size: 18px; }
.cap-bullets li { font-size: 15.5px; }
.lc-v-copy p { font-size: 17px; }
.lc-v-meta span { font-size: 13.5px; }
.country-cell .name { font-size: 16px; }
.country-cell .count { font-size: 13px; }
.gov-node .label { font-size: 16px; }
.gov-node .detail { font-size: 14px; }
.gov-node .role { font-size: 12.5px; }
.stat-l { font-size: 15px; }
.faq-q { font-size: 18.5px; }
.faq-a p { font-size: 18px; }
.sec-item h5 { font-size: 16px; }
.sec-item p { font-size: 17px; }
.stack-card h4 { font-size: 16.5px; }
.stack-card p { font-size: 17px; }
.stack-card .role-tag { font-size: 12px; }
.deploy-phase ul { font-size: 15.5px; }
.benefit p, .problem-item p, .gov-list li p { font-size: 17px; }
.problem-item h4, .benefit h4 { font-size: 19px; }
.gov-list li h4 { font-size: 17px; }
.footer-col a { font-size: 16px; }
.footer-col h5 { font-size: 13.5px; }
.footer-brand p { font-size: 15.5px; }
.footer-base { font-size: 13.5px; }

/* product-UI mocks: dense but legible */
.deal-metric .k { font-size: 14px; }
.deal-metric .v { font-size: 19px; }
.deal-metric .v small { font-size: 13px; }
.deal-sub { font-size: 15.5px; }
.risk-row .lbl, .risk-row .val { font-size: 15px; }
.review-row, .review-row span { font-size: 15px; }
.deal-card-mock .tag-row .pill { font-size: 14px; }
.d365-app, .d365-crumb { font-size: 14px; }
.ui-section-title h5 { font-size: 15px; }
.ui-section-title .meta { font-size: 13px; }
.ingest-field .k { font-size: 13px; }
.ingest-field .v { font-size: 15.5px; }
.ingest-upload p { font-size: 15.5px; }
.ingest-upload small { font-size: 13px; }
.ingest-extracting { font-size: 14px; }
.regmap-head h5 { font-size: 15px; }
.regmap-chips .chip { font-size: 13px; }
.regmap-legend { font-size: 13px; }
.regmap-list-item { font-size: 14.5px; }
.regmap-list-item .ctry, .regmap-list-item .count { font-size: 13px; }
.review-fact { font-size: 14.5px; }
.review-fact .src { font-size: 12px; }
.review-section h6 { font-size: 13px; }
.review-panel .review-header .left { font-size: 15px; }
.audit-table { font-size: 14px; }
.audit-table td.ts, .audit-table td.who { font-size: 13px; }
.audit-badge { font-size: 12px; }
.proposal-row { font-size: 15px; }
.proposal-doc .doc-sub { font-size: 14px; }
.proposal-doc .doc-hd h5 { font-size: 15px; }
.proposal-doc .doc-hd .version { font-size: 12.5px; }

/* ---------- blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
@media (max-width: 960px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card { display: flex; flex-direction: column; gap: 10px; background: var(--surface-raised); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: var(--sp-6); text-decoration: none; color: var(--fg-1); box-shadow: var(--shadow-card); transition: transform var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease); }
.blog-card:hover { transform: var(--hover-lift); border-color: var(--hairline-strong); }
.blog-card h3 { font-size: 21px; letter-spacing: -0.01em; line-height: 1.25; }
.blog-card p { color: var(--fg-2); font-size: 16px; }
.blog-tag { font-size: 13px; font-weight: var(--fw-semi); color: var(--fg-accent); }
.blog-meta { display: flex; gap: 14px; color: var(--fg-3); font-size: 14px; margin-top: auto; }
.article-head h1 { max-width: 26ch; }
.article-head .blog-meta { margin-top: var(--sp-5); }
.article-prose { font-size: 19px; line-height: 1.7; }
.article-prose h2 { font-size: 26px; }
.article-prose code { background: var(--surface-raised); border: 1px solid var(--hairline); border-radius: 6px; padding: 3px 10px; font-size: 16.5px; display: inline-block; margin: 4px 0; }
.article-prose ul { margin-bottom: var(--sp-4); }
.blog-more { max-width: 760px; margin-top: var(--sp-8); border-top: 1px solid var(--hairline); padding-top: var(--sp-6); }
.blog-more h4 { margin-bottom: var(--sp-4); }
.blog-more .blog-grid { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .blog-more .blog-grid { grid-template-columns: 1fr; } }
