/* ============================================================
   ProbeSchedule SA — site.css
   Single-file production stylesheet. No build step required.
   ============================================================ */

/* ---- Design tokens ---- */
:root {
  --c-primary:    #134E4A;
  --c-primary-2:  #0F3F3C;
  --c-primary-3:  #0B302E;
  --c-accent:     #C08A3E;
  --c-accent-2:   #A6722C;
  --c-bg:         #FAFAF7;
  --c-surface:    #FFFFFF;
  --c-text:       #1A1A1A;
  --c-muted:      #5C6463;
  --c-border:     #E6E5DF;

  --radius:    8px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,.06);
  --shadow-lg: 0 4px 12px rgba(19,78,74,.08), 0 16px 40px rgba(19,78,74,.10);

  --container: 1200px;
  --container-narrow: 880px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { color: var(--c-accent-2); text-decoration: underline; }
h1, h2, h3, h4 { letter-spacing: -.015em; line-height: 1.2; }

/* ---- Utilities ---- */
.container          { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow   { max-width: var(--container-narrow); margin: 0 auto; padding: 0 24px; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--c-primary); color: #fff; padding: 12px 16px;
  z-index: 1000; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,250,247,.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--c-border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; gap: 24px; max-width: var(--container);
  margin: 0 auto;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; letter-spacing: -.02em; font-size: 18px;
  color: var(--c-text);
}
.brand:hover { text-decoration: none; color: var(--c-primary); }
.brand-mark { width: 30px; height: 30px; color: var(--c-primary); flex: none; }
.brand-region {
  display: inline-block;
  background: var(--c-accent); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 2px 7px; border-radius: 4px;
  letter-spacing: .06em; vertical-align: middle;
  margin-left: 2px;
}

/* ---- Primary nav ---- */
.primary-nav { display: flex; align-items: center; }
.nav-list {
  display: flex; gap: 4px;
  list-style: none; margin: 0; padding: 0;
}
.nav-list a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: var(--radius);
  font-weight: 500; font-size: 15px;
  color: var(--c-text);
}
.nav-list a:hover {
  background: rgba(19,78,74,.07);
  text-decoration: none;
  color: var(--c-primary);
}
.nav-list a[aria-current="page"] {
  color: var(--c-primary);
  background: rgba(19,78,74,.09);
  font-weight: 600;
}
.nav-toggle {
  display: none;
  background: none; border: 0; padding: 10px;
  cursor: pointer; color: var(--c-text);
}
.hamburger,
.hamburger::before,
.hamburger::after {
  display: block; width: 22px; height: 2px;
  background: currentColor; border-radius: 1px;
  transition: transform .2s ease, opacity .2s ease;
}
.hamburger { position: relative; }
.hamburger::before, .hamburger::after { content: ""; position: absolute; left: 0; }
.hamburger::before { top: -7px; }
.hamburger::after  { top: 7px; }
.nav-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.nav-toggle[aria-expanded="true"] .hamburger::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hamburger::after  { transform: translateY(-7px) rotate(-45deg); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius);
  font-weight: 600; font-size: 15px;
  text-decoration: none; border: 0; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  font-family: inherit;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--c-primary); color: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 4px 12px rgba(19,78,74,.18);
}
.btn-primary:hover {
  background: var(--c-primary-2); color: #fff;
  box-shadow: 0 6px 20px rgba(19,78,74,.28);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent; color: var(--c-primary);
  border: 1px solid var(--c-border);
}
.btn-ghost:hover {
  background: var(--c-surface); color: var(--c-primary);
  border-color: var(--c-primary);
}
.btn-accent {
  background: var(--c-accent); color: #fff;
}
.btn-accent:hover { background: var(--c-accent-2); color: #fff; transform: translateY(-1px); }

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: 96px 0 80px;
  background:
    radial-gradient(circle at 80% 15%, rgba(192,138,62,.10), transparent 50%),
    radial-gradient(circle at 5% 90%, rgba(19,78,74,.08), transparent 50%),
    var(--c-bg);
  overflow: hidden;
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(19,78,74,.08);
  color: var(--c-primary);
  font-size: 13px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px;
  letter-spacing: .04em; text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 16px 0 20px;
  max-width: 18ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--c-primary);
  background: linear-gradient(120deg, transparent 0 8%, rgba(192,138,62,.18) 8% 92%, transparent 92% 100%);
  padding: 0 .15em;
}
.hero p.lede {
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.5;
  color: var(--c-muted);
  max-width: 60ch;
  margin: 0 0 32px;
}
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- Sections ---- */
.section { padding: 80px 0; }
.section-alt { background: var(--c-surface); }
.section-head {
  max-width: 60ch; margin: 0 auto 56px; text-align: center;
}
.section-eyebrow {
  display: inline-block;
  color: var(--c-accent-2);
  font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800; letter-spacing: -.02em;
  margin: 0 0 16px;
}
.section-head p {
  font-size: 18px; color: var(--c-muted); margin: 0;
}

/* ---- Pillars (3-up cards) ---- */
.pillars {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.pillar {
  background: var(--c-surface);
  padding: 32px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  display: flex; flex-direction: column;
}
.pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(19,78,74,.4);
}
.pillar-icon {
  width: 48px; height: 48px;
  color: var(--c-primary);
  background: rgba(19,78,74,.08);
  border-radius: 12px;
  display: grid; place-items: center;
  margin-bottom: 20px;
}
.pillar h3 {
  font-size: 22px; font-weight: 700;
  margin: 0 0 12px;
}
.pillar p { color: var(--c-muted); margin: 0 0 20px; }
.pillar ul {
  list-style: none; padding: 0; margin: 0 0 24px;
  font-size: 15px; color: var(--c-text);
}
.pillar li {
  padding: 5px 0 5px 22px;
  position: relative;
}
.pillar li::before {
  content: ""; position: absolute;
  left: 0; top: 13px; width: 8px; height: 8px;
  background: var(--c-accent); border-radius: 2px; transform: rotate(45deg);
}
.pillar a.more {
  font-weight: 600; color: var(--c-primary);
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: auto;
}
.pillar a.more::after { content: "→"; transition: transform .18s ease; }
.pillar a.more:hover { text-decoration: none; }
.pillar a.more:hover::after { transform: translateX(3px); }

/* ---- Value props (3-up text) ---- */
.values {
  display: grid; gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.value h3 { font-size: 19px; margin: 0 0 8px; font-weight: 700; }
.value p { color: var(--c-muted); margin: 0; }
.value-num {
  display: inline-block;
  font-size: 36px; font-weight: 800; color: var(--c-accent);
  letter-spacing: -.02em; line-height: 1;
  margin-bottom: 12px;
}

/* ---- CTA band ---- */
.cta-band {
  background: var(--c-primary);
  color: #fff;
  padding: 72px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(192,138,62,.18), transparent 50%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 {
  color: #fff; font-size: clamp(24px, 3.4vw, 36px);
  margin: 0 0 12px; font-weight: 800;
  letter-spacing: -.02em;
}
.cta-band p {
  color: rgba(255,255,255,.85); font-size: 18px;
  max-width: 56ch; margin: 0 auto 28px;
}

/* ---- Page header (interior pages) ---- */
.page-header {
  padding: 64px 0 48px;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
}
.page-header h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800; margin: 12px 0 16px;
  max-width: 22ch;
}
.page-header p {
  font-size: 19px; color: var(--c-muted);
  max-width: 62ch; margin: 0;
}

/* ---- Prose / content blocks ---- */
.prose { max-width: 70ch; }
.prose h2 { font-size: 28px; margin: 48px 0 16px; }
.prose h3 { font-size: 22px; margin: 36px 0 12px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose strong { font-weight: 700; color: var(--c-text); }

/* ---- Feature lists (used on overview pages) ---- */
.feature-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.feature {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color .15s ease, transform .15s ease;
}
.feature:hover {
  border-color: rgba(19,78,74,.4);
  transform: translateY(-2px);
}
.feature h3 {
  font-size: 18px; font-weight: 700;
  margin: 0 0 8px;
}
.feature p { color: var(--c-muted); margin: 0 0 14px; font-size: 15px; }
.feature a {
  font-weight: 600; font-size: 14px;
  color: var(--c-primary);
}

/* ---- Contact form ---- */
.contact-grid {
  display: grid; gap: 48px;
  grid-template-columns: 1.4fr 1fr;
  align-items: start;
}
.field {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 16px;
}
.field label {
  font-weight: 600; font-size: 14px;
  color: var(--c-text);
}
.field input,
.field select,
.field textarea {
  font: inherit; font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-surface);
  color: var(--c-text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(19,78,74,.15);
}
.field textarea { min-height: 140px; resize: vertical; }
.contact-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.contact-card h3 {
  margin: 0 0 8px; font-size: 18px;
}
.contact-card p { color: var(--c-muted); margin: 0 0 16px; font-size: 15px; }
.contact-card a { font-weight: 600; }
.contact-card + .contact-card { margin-top: 16px; }

/* ---- Figures (framed images for screenshots & diagrams) ---- */
.figure-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}
.figure-grid--narrow { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.figure-grid--wide   { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); }
.figure {
  margin: 0;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex; flex-direction: column;
}
.figure:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  background: #fff;
}
.figure figcaption {
  font-size: 13px;
  color: var(--c-muted);
  text-align: center;
  padding: 14px 4px 4px;
  font-weight: 500;
  letter-spacing: .005em;
}

/* ---- Honeypot (anti-spam, hidden from humans) ---- */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important; height: 1px !important;
  overflow: hidden !important;
}

/* ---- Obfuscated email (no-JS readable, harvester-resistant) ---- */
.email {
  font-family: 'Inter', system-ui, sans-serif;
}
.email .ec {
  font-style: italic;
  opacity: .65;
  font-size: .92em;
}
.email-large {
  font-size: 18px;
  font-weight: 600;
  margin: 12px 0 4px;
  word-break: break-word;
}
.email-resolved {
  font-weight: 600;
  word-break: break-word;
}

/* ---- Form-level messages ---- */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-size: 15px;
}
.alert-error {
  background: #fdecec;
  border: 1px solid #f3b5b5;
  color: #7a1d1d;
}
.alert-error ul { margin: 4px 0 0 18px; padding: 0; }

/* ---- Footer ---- */
.site-footer {
  background: var(--c-primary-3);
  color: rgba(255,255,255,.85);
  padding: 64px 0 0;
}
.footer-inner {
  display: grid; gap: 48px;
  grid-template-columns: 1fr 2fr;
  align-items: start;
  padding-bottom: 48px;
  max-width: var(--container); margin: 0 auto; padding-left: 24px; padding-right: 24px;
}
.brand-light { color: #fff !important; }
.brand-light .brand-mark { color: #fff; }
.brand-light:hover { color: #fff !important; }
.footer-brand p {
  color: rgba(255,255,255,.65);
  margin-top: 12px; max-width: 36ch; font-size: 15px;
}
.footer-cols {
  display: grid; gap: 32px;
  grid-template-columns: repeat(3, 1fr);
}
.footer-cols h3 {
  color: #fff; font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  margin: 0 0 14px;
}
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { margin: 8px 0; }
.footer-cols a {
  color: rgba(255,255,255,.7); font-size: 15px;
}
.footer-cols a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
}
.footer-bottom small { color: rgba(255,255,255,.5); font-size: 13px; }

/* ---- Responsive ---- */
@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .primary-nav { position: relative; }
  .nav-list {
    display: none;
    position: absolute; right: 0; top: calc(100% + 14px);
    flex-direction: column; gap: 0;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 8px;
    min-width: 200px;
  }
  .nav-list.open { display: flex; }
  .nav-list a { padding: 10px 14px; display: block; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-cols  { grid-template-columns: 1fr 1fr; }

  .hero { padding: 64px 0 48px; }
  .section { padding: 56px 0; }
  .page-header { padding: 48px 0 32px; }

  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .footer-cols { grid-template-columns: 1fr; }
}

/* ---- Print ---- */
@media print {
  .site-header, .site-footer, .nav-toggle, .cta-band { display: none; }
  body { background: #fff; }
}
