/*
Theme Name: Insight57
Theme URI: https://insight57.com
Author: Insight57 LLC
Author URI: https://insight57.com
Description: Premium custom theme for Insight57 LLC, a fractional CFO, FP&A, financial modeling and strategic finance advisory firm. Includes home, services, about, contact (with built-in form handler), privacy policy, SMS terms, thank-you and 404 templates.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: insight57
*/

/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  --navy-50: #eef2f6;
  --navy-100: #d6dfe9;
  --navy-200: #aebed1;
  --navy-300: #7f95b0;
  --navy-400: #536f90;
  --navy-500: #345073;
  --navy-600: #22405e;
  --navy-700: #17324a;
  --navy-800: #102639;
  --navy-900: #0a1b2a;
  --navy-950: #06121e;

  --teal-50: #edf7f5;
  --teal-100: #d2ebe6;
  --teal-200: #a6d6cd;
  --teal-300: #6fbbae;
  --teal-400: #3a9e8e;
  --teal-500: #1c8474;
  --teal-600: #136b5e;
  --teal-700: #0f564c;
  --teal-800: #0c453e;
  --teal-900: #0a3833;

  --white: #ffffff;

  --font-serif: "Source Serif 4", Georgia, Cambria, "Times New Roman", serif;
  --font-sans: "Inter", "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 76rem;
  --radius-sm: 0.5rem;
  --radius: 0.875rem;
  --radius-lg: 1.125rem;
  --radius-full: 999px;

  --shadow-soft: 0 1px 3px rgba(10, 27, 42, 0.06);
  --shadow-card: 0 1px 2px rgba(10, 27, 42, 0.04), 0 8px 24px -12px rgba(10, 27, 42, 0.18);
  --shadow-card-hover: 0 2px 4px rgba(10, 27, 42, 0.05), 0 18px 40px -16px rgba(10, 27, 42, 0.28);

  --header-height: 4.5rem;
}

/* ==========================================================================
   Reset / base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1.5rem);
}

body {
  font-family: var(--font-sans);
  color: var(--navy-700);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga", "calt";
}

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

a {
  color: var(--teal-600);
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  color: var(--navy-900);
  line-height: 1.12;
  font-weight: 600;
  text-wrap: balance;
}

ul {
  list-style: none;
  padding: 0;
}

button {
  font: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--teal-500);
  border-radius: 0.25rem;
}

::selection {
  background: var(--teal-500);
  color: #fff;
}

.nums {
  font-variant-numeric: tabular-nums lining-nums;
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section {
  padding-block: 4rem;
}

.section--tint {
  background: rgba(238, 242, 246, 0.5);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--navy-900);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-600);
}
.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: rgba(28, 132, 116, 0.7);
}

.grid-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--navy-100) 1.4px, transparent 1.5px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(75% 65% at 75% 25%, #000, transparent);
  mask-image: radial-gradient(75% 65% at 75% 25%, #000, transparent);
  opacity: 0.7;
  pointer-events: none;
}

/* ==========================================================================
   Typography scale
   ========================================================================== */
.display {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.5rem);
  letter-spacing: -0.02em;
}
.lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--navy-600);
}

.section-heading {
  max-width: 42rem;
}
.section-heading--center {
  margin-inline: auto;
  text-align: center;
}
.section-heading__title {
  margin-top: 1rem;
  font-size: clamp(1.85rem, 3.6vw, 2.5rem);
  letter-spacing: -0.02em;
}
.section-heading__desc {
  margin-top: 1rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--navy-600);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  text-align: center;
}
.btn svg {
  width: 1rem;
  height: 1rem;
}
.btn--lg {
  padding: 0.8rem 1.5rem;
  font-size: 0.975rem;
}
.btn--block {
  width: 100%;
}
.btn--primary {
  background: var(--teal-600);
  color: #fff;
  box-shadow: var(--shadow-soft);
}
.btn--primary:hover {
  background: var(--teal-700);
  box-shadow: var(--shadow-card);
  color: #fff;
}
.btn--navy {
  background: var(--navy-900);
  color: #fff;
}
.btn--navy:hover {
  background: var(--navy-800);
  color: #fff;
}
.btn--secondary {
  background: #fff;
  color: var(--navy-800);
  border-color: var(--navy-200);
}
.btn--secondary:hover {
  border-color: var(--navy-300);
  background: var(--navy-50);
}
.btn--outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}
.btn--outline-light:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.btn--ghost {
  color: var(--navy-700);
  padding-inline: 0.25rem;
}
.btn--ghost:hover {
  color: var(--teal-600);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--navy-100);
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-height);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
}
.brand__logo-img {
  max-height: 2.5rem;
  width: auto;
}
.custom-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.custom-logo {
  max-height: 2.75rem;
  width: auto;
  height: auto;
}
.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-sm);
  background: var(--navy-900);
}
.brand__mark svg {
  width: 1.25rem;
  height: 1.25rem;
}
.brand__word {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--navy-900);
}
.brand__word b {
  color: var(--teal-500);
  font-weight: 700;
}

.primary-nav {
  display: none;
}
.primary-nav .menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.primary-nav a {
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy-700);
  transition: color 0.2s;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav a[aria-current="page"] {
  color: var(--teal-600);
}
.header-cta {
  display: none;
}
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: var(--navy-800);
}
.nav-toggle:hover {
  background: var(--navy-50);
}
.nav-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
}
.nav-toggle .icon-close {
  display: none;
}
.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}
.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--navy-100);
  background: #fff;
}
.mobile-menu.is-open {
  display: block;
}
.mobile-menu .container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-block: 1rem;
}
.mobile-menu .menu {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.mobile-menu .menu a {
  display: block;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy-800);
}
.mobile-menu .menu a:hover,
.mobile-menu .current-menu-item > a {
  background: var(--navy-50);
}
.mobile-menu .btn {
  width: 100%;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--navy-100);
}
.hero__inner {
  position: relative;
  display: grid;
  gap: 3rem;
  padding-block: 4rem;
  align-items: center;
}
.hero__title {
  margin-top: 1.25rem;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.hero__text {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--navy-600);
  max-width: 36rem;
}
.cta-row {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.hero__highlights {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}
.hero__highlights li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy-700);
}
.hero__highlights svg {
  width: 1rem;
  height: 1rem;
  color: var(--teal-500);
}
.visual-card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--navy-100);
  background: linear-gradient(to bottom, #fff, rgba(238, 242, 246, 0.4));
  box-shadow: var(--shadow-card);
  padding: 1rem;
}
.visual-svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ==========================================================================
   Cards / grids
   ========================================================================== */
.grid {
  display: grid;
  gap: 1.5rem;
}
.card {
  height: 100%;
  background: #fff;
  border: 1px solid var(--navy-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 1.75rem;
}
.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius);
  background: var(--teal-50);
  color: var(--teal-600);
  box-shadow: inset 0 0 0 1px var(--teal-100);
}
.icon-tile svg {
  width: 1.5rem;
  height: 1.5rem;
}
.card__title {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy-900);
}
.card__text {
  margin-top: 0.5rem;
  color: var(--navy-600);
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--navy-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.service-card:hover {
  transform: translateY(-2px);
  border-color: var(--teal-200);
  box-shadow: var(--shadow-card-hover);
}
.service-card__title {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy-900);
}
.service-card__text {
  margin-top: 0.5rem;
  flex: 1;
  color: var(--navy-600);
}
.service-card__more {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--teal-600);
}
.service-card__more svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s;
}
.service-card:hover .service-card__more svg {
  transform: translate(2px, -2px);
}

.section-head-row {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Process */
.step-card {
  height: 100%;
  background: #fff;
  border: 1px solid var(--navy-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem;
}
.step-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.step-card__num {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--teal-600);
}
.step-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  background: var(--navy-50);
  color: var(--navy-700);
}
.step-card__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}
.step-card__title {
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy-900);
}
.step-card__text {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--navy-600);
}

/* Audiences */
.audience {
  height: 100%;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid var(--navy-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1rem;
}
.audience svg {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.1rem;
  color: var(--teal-500);
  flex-shrink: 0;
}
.audience span {
  font-weight: 500;
  color: var(--navy-800);
}

/* Leadership callout */
.callout {
  background: #fff;
  border: 1px solid var(--navy-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 2rem;
}

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--navy-900);
  padding: 3.5rem 1.5rem;
}
.cta__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.cta__inner {
  position: relative;
  max-width: 42rem;
}
.cta__eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-300);
}
.cta__title {
  margin-top: 0.75rem;
  color: #fff;
  font-size: clamp(1.85rem, 3.6vw, 2.5rem);
  letter-spacing: -0.02em;
}
.cta__text {
  margin-top: 1rem;
  color: var(--navy-100);
  font-size: 1.125rem;
  line-height: 1.7;
}

/* ==========================================================================
   Services detail page
   ========================================================================== */
.services-layout {
  display: grid;
  gap: 3rem;
}
.service-nav {
  display: none;
}
.service-nav__label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy-500);
}
.service-nav ul {
  margin-top: 1rem;
  border-left: 1px solid var(--navy-100);
}
.service-nav a {
  display: block;
  margin-left: -1px;
  border-left: 2px solid transparent;
  padding: 0.4rem 0 0.4rem 1rem;
  font-size: 0.9rem;
  color: var(--navy-600);
  transition: color 0.2s, border-color 0.2s;
}
.service-nav a:hover {
  color: var(--teal-700);
  border-left-color: var(--teal-400);
}
.service-detail + .service-detail {
  margin-top: 4rem;
  border-top: 1px solid var(--navy-100);
  padding-top: 2.5rem;
}
.service-detail {
  scroll-margin-top: 7rem;
}
.service-detail__head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.service-detail__num {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--teal-600);
}
.service-detail__title {
  margin-top: 0.25rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy-900);
}
.service-detail__intro {
  margin-top: 1.25rem;
  max-width: 42rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--navy-600);
}
.checklist {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.75rem 2rem;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--navy-700);
}
.checklist .check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  border-radius: var(--radius-full);
  background: var(--teal-50);
  color: var(--teal-600);
  flex-shrink: 0;
}
.checklist .check svg {
  width: 0.85rem;
  height: 0.85rem;
}
.service-note {
  margin-top: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  border: 1px solid var(--navy-100);
  background: rgba(238, 242, 246, 0.7);
  border-radius: var(--radius);
  padding: 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--navy-600);
}
.service-note svg {
  width: 1rem;
  height: 1rem;
  margin-top: 0.15rem;
  color: var(--navy-400);
  flex-shrink: 0;
}

/* ==========================================================================
   About
   ========================================================================== */
.legal-hero,
.page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--navy-100);
  background: rgba(238, 242, 246, 0.6);
}
.page-hero__inner {
  position: relative;
  padding-block: 4rem;
}
.values-grid {
  margin-top: 3rem;
  display: grid;
  gap: 1.5rem;
}
.leadership {
  margin-top: 3rem;
  display: grid;
  gap: 3rem;
  align-items: start;
}
.ceo-id {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.ceo-monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius);
  background: var(--navy-900);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
}
.ceo-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy-900);
}
.ceo-role {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--teal-600);
}
.ceo-bio {
  margin-top: 1.75rem;
  display: grid;
  gap: 1.25rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--navy-600);
}
.tags {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tags li {
  border: 1px solid var(--navy-200);
  background: #fff;
  border-radius: var(--radius-full);
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy-700);
}
.ceo-photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--navy-100);
  box-shadow: var(--shadow-card);
  background: #fff;
  padding: 0.75rem;
}
.ceo-photo-frame img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
}
.ceo-photo-caption {
  margin-top: 0.85rem;
  padding-inline: 0.25rem 0.5rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}
.ceo-photo-caption .name {
  font-weight: 600;
  color: var(--navy-900);
}
.ceo-photo-caption .role {
  font-size: 0.85rem;
  color: var(--teal-600);
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-layout {
  display: grid;
  gap: 2.5rem;
}
.contact-detail-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--navy-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 1.25rem;
}
.contact-detail-card .icon-tile {
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
}
.contact-detail-card dt {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy-500);
}
.contact-detail-card dd {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy-900);
  word-break: break-word;
}
.contact-detail-card dd a {
  color: var(--navy-900);
}
.contact-detail-card dd a:hover {
  color: var(--teal-700);
}
.contact-buttons {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.reassure {
  margin-top: 2rem;
  display: grid;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--navy-600);
}
.reassure li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}
.reassure svg {
  width: 1rem;
  height: 1rem;
  margin-top: 0.2rem;
  color: var(--teal-500);
  flex-shrink: 0;
}
.form-card {
  background: #fff;
  border: 1px solid var(--navy-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  scroll-margin-top: 7rem;
}

/* Forms */
.form {
  display: grid;
  gap: 1.25rem;
}
.form-row {
  display: grid;
  gap: 1.25rem;
}
.field label,
.fieldset legend {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy-800);
}
.req {
  color: #dc2626;
}
.opt {
  color: var(--navy-400);
  font-weight: 400;
}
.input,
.select,
.textarea {
  margin-top: 0.4rem;
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--navy-200);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--navy-900);
  font: inherit;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input::placeholder,
.textarea::placeholder {
  color: var(--navy-400);
}
.form-hint {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: var(--navy-500);
}
.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(28, 132, 116, 0.18);
}
.textarea {
  resize: vertical;
  min-height: 8rem;
}
.field--error .input,
.field--error .select,
.field--error .textarea {
  border-color: #f87171;
}
.field-error {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: #dc2626;
}
.radio-row {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.radio-row label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
  color: var(--navy-800);
  cursor: pointer;
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border: 1px solid var(--navy-100);
  background: rgba(238, 242, 246, 0.5);
  border-radius: var(--radius-sm);
  padding: 1rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--navy-700);
  cursor: pointer;
}
.consent input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}
.consent a {
  color: var(--teal-600);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.consent a:hover {
  color: var(--teal-700);
}
.honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 0;
  height: 0;
  overflow: hidden;
}
.form-note {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--navy-400);
}
.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid;
  padding: 1rem;
  font-size: 0.875rem;
}
.alert svg {
  width: 1rem;
  height: 1rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}
.alert--error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}
.alert--notice {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}
.alert-errors {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.25rem;
}
.alert-errors li {
  list-style: disc;
}
.alert-errors a {
  color: inherit;
  text-decoration: underline;
}

/* ==========================================================================
   Legal / prose
   ========================================================================== */
.prose {
  max-width: 48rem;
  color: var(--navy-700);
}
.prose h2 {
  margin-top: 2.5rem;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--navy-900);
}
.prose h2:first-child {
  margin-top: 0;
}
.prose p {
  margin-top: 1rem;
  line-height: 1.75;
}
.prose ul {
  margin-top: 1rem;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.5rem;
}
.prose li {
  list-style: disc;
  line-height: 1.7;
}
.prose li::marker {
  color: var(--teal-500);
}
.prose a {
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.prose strong {
  color: var(--navy-900);
  font-weight: 600;
}
.legal-date {
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy-500);
}

/* ==========================================================================
   Centered / utility pages (thank-you, 404)
   ========================================================================== */
.centered {
  max-width: 42rem;
  margin-inline: auto;
  text-align: center;
}
.big-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius);
  background: var(--teal-50);
  color: var(--teal-600);
  box-shadow: inset 0 0 0 1px var(--teal-100);
}
.big-icon svg {
  width: 2rem;
  height: 2rem;
}
.error-code {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-600);
}
.center-actions {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--navy-950);
  color: var(--navy-100);
}
.footer-grid {
  padding-block: 3.5rem;
  display: grid;
  gap: 2.5rem;
}
.footer-about p {
  margin-top: 1rem;
  max-width: 24rem;
  color: var(--navy-200);
  line-height: 1.7;
}
.footer-ceo {
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
}
.footer-contact {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.75rem;
  font-size: 0.9rem;
}
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}
.footer-contact a {
  color: var(--navy-100);
}
.footer-contact a:hover {
  color: var(--teal-300);
}
.footer-contact svg {
  width: 1rem;
  height: 1rem;
  margin-top: 0.15rem;
  color: var(--teal-400);
  flex-shrink: 0;
}
.footer-contact .loc {
  color: var(--navy-300);
}
.footer-col h2 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}
.footer-col ul {
  margin-top: 1rem;
  display: grid;
  gap: 0.75rem;
  font-size: 0.9rem;
}
.footer-col a {
  color: var(--navy-200);
}
.footer-col a:hover {
  color: var(--teal-300);
}
.footer-brand-word {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}
.footer-brand-word b {
  color: var(--teal-300);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--navy-300);
}

/* ==========================================================================
   Reveal animation
   ========================================================================== */
/* Content is visible by default; the hidden/animated state is opt-in and only
   applied once JavaScript adds the `js` class to <html>. This guarantees that
   no-JS visitors, crawlers, and pre-hydration paints always see the content. */
.reveal {
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* Safety net: if the main script fails to initialise, show everything. */
.reveal-show .reveal {
  opacity: 1 !important;
  transform: none !important;
}
@keyframes insight-draw {
  to {
    stroke-dashoffset: 0;
  }
}
.animate-draw {
  stroke-dasharray: var(--draw-len, 1400);
  stroke-dashoffset: var(--draw-len, 1400);
  animation: insight-draw 2s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 640px) {
  .container {
    padding-inline: 1.5rem;
  }
  .section {
    padding-block: 5rem;
  }
  .cta-row {
    flex-direction: row;
    align-items: center;
  }
  .center-actions {
    flex-direction: row;
  }
  .contact-buttons {
    flex-direction: row;
  }
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid--sm-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .checklist {
    grid-template-columns: repeat(2, 1fr);
  }
  .cta {
    padding: 4rem 3rem;
  }
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 768px) {
  .primary-nav {
    display: block;
  }
  .header-cta {
    display: inline-flex;
  }
  .nav-toggle {
    display: none;
  }
  .mobile-menu {
    display: none !important;
  }
  .section-head-row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .section {
    padding-block: 7rem;
  }
  .hero__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    padding-block: 7rem;
  }
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .who-grid {
    grid-template-columns: 4fr 8fr;
    gap: 4rem;
  }
  .callout-grid {
    display: grid;
    grid-template-columns: 8fr 4fr;
    gap: 3rem;
    align-items: center;
  }
  .callout-grid .callout-cta {
    text-align: right;
  }
  .services-layout {
    grid-template-columns: 3fr 9fr;
  }
  .service-nav {
    display: block;
    position: sticky;
    top: 7rem;
    align-self: start;
  }
  .leadership {
    grid-template-columns: 7fr 5fr;
    gap: 4rem;
  }
  .contact-layout {
    grid-template-columns: 5fr 7fr;
    gap: 3rem;
  }
  .footer-grid {
    grid-template-columns: 5fr 4fr 3fr;
    padding-block: 4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal,
  .js .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none;
  }
  .animate-draw {
    stroke-dashoffset: 0;
    animation: none;
  }
  * {
    transition-duration: 0.001ms !important;
  }
}
