:root {
  /* Fourscene corporate palette (mark identity) — see _brand-spec.md §5.3 */
  --color-bg: #F4F7F8;         /* ground */
  --color-surface: #FFFFFF;
  --color-surface-2: #EAF0F2;
  --color-text: #1F2933;       /* ink */
  --color-muted: #52606D;      /* slate */
  --color-border: #DCE4E8;
  --color-primary: #007092;    /* Fourscene teal — the only logo colour usable as text */
  --color-primary-hover: #005672;
  --color-secondary: #005672;
  --color-accent: #4FCAF4;     /* Fourscene sky — accent/fill only, never text */
  --color-footer-bg: #083341;  /* deep teal footer ground */
  --color-footer-ink: #DCEAEF;
  --color-footer-faint: #7FA6B3;
  --color-footer-line: #1C4A59;
  --shadow-soft: 0 12px 34px rgba(8, 51, 65, 0.10);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --space-section: clamp(3rem, 6vw, 6rem);
  --font-serif: "Lora", "Liberation Serif", Georgia, serif;
  --font-sans: "Lato", "Liberation Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "DejaVu Sans Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
}

a { color: var(--color-primary); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--color-primary-hover); }

h1, h2, h3, h4, .display-heading {
  color: var(--color-text);
  font-family: var(--font-serif);
  letter-spacing: -0.015em;
  line-height: 1.1;
  font-weight: 600;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.08; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.15rem; }

.container { max-width: 1160px; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 247, 248, .92);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(12px);
}
.navbar { padding-block: .85rem; }
.navbar-brand {
  display: inline-flex;
  gap: .65rem;
  align-items: center;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -.02em;
}
.brand-logo { width: 34px; height: 34px; display: inline-block; }
.footer-brand .brand-logo { width: 32px; height: 32px; }
.brand-word { font-family: var(--font-sans); font-weight: 900; font-size: 1.3rem; letter-spacing: -.01em; color: var(--color-primary); }
.brand-word .s { color: var(--color-accent-green, #7BA84F); }
.footer-brand .brand-word { color: #fff; }
.nav-link {
  color: var(--color-muted);
  font-size: .95rem;
  font-weight: 700;
}
.nav-link.active, .nav-link:hover { color: var(--color-primary); }
/* CTA is a button, not a nav link — never inherit the muted link colour */
.navbar .btn-primary, .navbar .btn-primary:hover { color: #fff; }

.btn {
  border-radius: var(--radius-sm);
  padding: .76rem 1rem;
  font-weight: 650;
  letter-spacing: -.01em;
  transition: transform .16s ease, background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  --bs-btn-bg: var(--color-primary);
  --bs-btn-border-color: var(--color-primary);
  --bs-btn-hover-bg: var(--color-primary-hover);
  --bs-btn-hover-border-color: var(--color-primary-hover);
  --bs-btn-focus-shadow-rgb: 23, 63, 54;
}
.btn-outline-dark {
  --bs-btn-border-color: #b9b4a7;
  --bs-btn-color: var(--color-text);
  --bs-btn-hover-bg: var(--color-text);
  --bs-btn-hover-border-color: var(--color-text);
}
.btn-sm { padding: .55rem .78rem; }

.section { padding-block: var(--space-section); }
.section-tight { padding-block: clamp(2rem, 4vw, 4rem); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--color-primary);
  font-family: var(--font-mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-weight: 500;
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--color-accent); }
.lede {
  color: var(--color-muted);
  font-size: clamp(1.05rem, 1.45vw, 1.25rem);
  max-width: 680px;
}
.muted-copy { color: var(--color-muted); }

.hero { padding: clamp(4rem, 8vw, 7.5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.35rem, 2.5vw, 2rem);
  box-shadow: var(--shadow-soft);
}
.hero-visual {
  border: 1px solid var(--color-border);
  background: #F9FBFC;
  border-radius: var(--radius-lg);
  padding: 1rem;
}
.visual-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: .8rem;
  align-items: center;
  padding: .9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  margin-bottom: .75rem;
}
.visual-dot { width: 36px; height: 36px; border-radius: 50%; background: var(--color-surface-2); border: 1px solid var(--color-border); }
.visual-line { height: 10px; background: var(--color-surface-2); border-radius: 99px; margin-bottom: .4rem; }
.visual-line.short { width: 64%; margin-bottom: 0; }
.visual-tag { color: var(--color-primary); font-size: .75rem; font-weight: 700; }

.card-clean, .service-card, .intake-card, .admin-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: none;
}
.card-clean { padding: 1.25rem; height: 100%; }
.card-clean p, .service-card p { color: var(--color-muted); }
.card-clean:hover, .service-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 10px 24px rgba(36, 40, 38, .06);
}
.card-link { text-decoration: none; color: inherit; display: block; height: 100%; }
.card-index {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--color-surface-2);
  color: var(--color-primary);
  font-weight: 750;
  margin-bottom: .9rem;
}

.step-list { counter-reset: step; }
.step-item {
  counter-increment: step;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--color-border);
}
.step-item:last-child { border-bottom: 0; }
.step-item::before {
  content: counter(step);
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-weight: 750;
  color: var(--color-primary);
  background: var(--color-surface);
}

.logo-strip, .testimonial, .bio-box {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  padding: 1.1rem;
}
.logo-placeholder {
  height: 44px;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  color: var(--color-muted);
  font-size: .82rem;
}

.service-card { padding: 1.35rem; height: 100%; }
.meta-list { list-style: none; padding: 0; margin: 1rem 0; }
.meta-list li { padding: .35rem 0; color: var(--color-muted); border-bottom: 1px solid var(--color-border); }
.meta-list li:last-child { border-bottom: 0; }

.intake-shell { padding-block: clamp(2.5rem, 5vw, 5rem); }
.intake-card { padding: clamp(1.2rem, 2.5vw, 2rem); }
.progress-thin { height: 6px; background: var(--color-surface-2); border-radius: 99px; overflow: hidden; }
.progress-thin span { display:block; height:100%; width:20%; background: var(--color-primary); transition: width .2s ease; }
.form-step { display: none; }
.form-step.active { display: block; }
.form-label { font-weight: 650; color: var(--color-text); }
.form-control, .form-select, .form-check-input {
  border-color: #cfcabe;
  border-radius: var(--radius-sm);
}
.form-control:focus, .form-select:focus, .form-check-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 .18rem rgba(23, 63, 54, .14);
}
.choice-grid { display: grid; gap: .7rem; }
.choice-card {
  border: 1px solid var(--color-border);
  background: #F9FBFC;
  border-radius: var(--radius-sm);
  padding: .8rem .9rem;
}
.choice-card:hover { border-color: var(--color-primary); }
.required-note { color: #8a372f; font-size: .9rem; }

.summary-box {
  border: 1px solid var(--color-border);
  background: #F9FBFC;
  border-radius: var(--radius-md);
  padding: 1rem;
}
.summary-row { display: flex; gap: 1rem; justify-content: space-between; border-bottom: 1px solid var(--color-border); padding: .65rem 0; }
.summary-row:last-child { border-bottom: 0; }

.slot-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .65rem; }
.slot-option input { position: absolute; opacity: 0; }
.slot-option span {
  display: block;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: .72rem .8rem;
  text-align: center;
  background: var(--color-surface);
  cursor: pointer;
  font-weight: 650;
}
.slot-option input:checked + span { border-color: var(--color-primary); background: var(--color-primary-wash, #E4F0F4); color: var(--color-primary); }

.alert-soft { border: 1px solid var(--color-border); background: #F9FBFC; color: var(--color-text); }
.badge-soft { background: var(--color-surface-2); color: var(--color-primary); border: 1px solid var(--color-border); }
.table { --bs-table-bg: transparent; }
.table td, .table th { vertical-align: middle; }

.site-footer {
  padding: 3rem 0 1.75rem;
  background: var(--color-footer-bg);
  color: var(--color-footer-ink);
}
.site-footer p { color: var(--color-footer-faint); }
.site-footer a { display: block; color: var(--color-footer-ink); text-decoration: none; margin-bottom: .35rem; }
.site-footer a:hover { color: var(--color-accent); }
.footer-title { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--color-footer-faint); font-weight: 500; margin-bottom: .85rem; }
.footer-brand { color: #fff !important; }

.toast-lite {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 100;
  max-width: 320px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  padding: .8rem 1rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: .18s ease;
}
.toast-lite.show { opacity: 1; transform: translateY(0); }

@media (min-width: 768px) {
  .choice-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .slot-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
}

@media (max-width: 991.98px) {
  .navbar-collapse { padding-top: 1rem; }
  .hero { padding-top: 3rem; }
}

/* ============ Fourscene rebrand additions ============ */
:root { --color-accent-green: #7BA84F; } /* Fourscene moss/olive — the "scene" half of the wordmark */

/* About / founder bio */
.about-body { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start; }
.about-copy p { max-width: 42rem; }
.about-cred { background: var(--color-surface-2); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1.4rem 1.5rem; }
.about-cred h3 { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--color-primary); font-weight: 500; margin: 0 0 1rem; }
.about-cred ul { margin: 0; padding: 0; list-style: none; }
.about-cred li { position: relative; padding-left: 1.1rem; margin-bottom: .7rem; color: var(--color-muted); font-size: .92rem; line-height: 1.4; }
.about-cred li::before { content: ""; position: absolute; left: 0; top: .45em; width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); background: var(--color-primary); }
@media (min-width: 900px) { .about-body { grid-template-columns: 1.55fr .95fr; gap: 3rem; } }

/* Cal.com scheduling embed */
.cal-embed { width: 100%; min-height: 640px; overflow: auto; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
.cal-note { color: var(--color-muted); font-size: .9rem; }

/* keep primary buttons legible everywhere */
.btn-primary { color: #fff; }
