/* ============================================================
   CGI Web Services - Professional variant
   Restrained, high-contrast, locally-hosted fonts.
   Palette verified against WCAG AA (see DESIGN.md).
   ============================================================ */

/* ---- Local fonts ---- */
@font-face {
  font-family: 'Source Serif 4';
  src: url('../fonts/source-serif-4-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('../fonts/source-serif-4-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('../fonts/source-serif-4-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---- Tokens ---- */
:root {
  --ink: #14212e;
  --body: #333f4d;
  --muted: #525f6e;
  --accent: #1d4e7e;
  --navy: #1b3a57;
  --navy-dark: #142c44;
  --bronze: #6d5518;
  --bg: #ffffff;
  --bg-alt: #f4f6f8;
  --border: #d8dee4;
  --footer-bg: #101d2b;
  --footer-text: #bfcbd6;
  --footer-muted: #9fb0bf;
  --success-bg: #e2efe6;
  --success-text: #1b5e20;
  --progress-bg: #f8edcf;
  --progress-text: #6b4e00;
  --tag-bg: #eceff2;
  --tag-text: #3c4a59;

  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius: 4px;
  --max-width: 1120px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: inline-block; vertical-align: middle; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--ink);
  line-height: 1.2;
  font-weight: 700;
}

a { color: var(--accent); }
a:hover { color: var(--navy-dark); }

ul, ol { padding-left: 1.25rem; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section[id], footer[id] { scroll-margin-top: 5.5rem; }

/* ---- Skip link ---- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
  color: #ffffff;
}

/* ---- Focus ---- */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  padding: 0.65rem 1.4rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary {
  background: var(--navy);
  color: #ffffff;
}
.btn-primary:hover {
  background: var(--navy-dark);
  color: #ffffff;
}
.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-secondary:hover {
  background: var(--navy);
  color: #ffffff;
}
.btn-sm { padding: 0.45rem 1rem; font-size: 0.9rem; }
.btn-lg { padding: 0.85rem 1.75rem; font-size: 1.05rem; }
.btn-full { width: 100%; text-align: center; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.site-header.scrolled {
  box-shadow: 0 1px 6px rgba(16, 29, 43, 0.12);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.logo-mark {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  color: #ffffff;
  background: var(--navy);
  padding: 0.3rem 0.55rem;
  border-radius: var(--radius);
  letter-spacing: 0.04em;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
}
.logo-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Navigation: checkbox pattern, functional without JavaScript.
   The checkbox only exists visually on small screens (see media query). */
.nav-checkbox {
  display: none;
}
.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.6rem;
  cursor: pointer;
  z-index: 55;
}
.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.hamburger { top: 50%; margin-top: -1px; }
.hamburger::before { content: ''; position: absolute; top: -7px; }
.hamburger::after { content: ''; position: absolute; top: 7px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.main-nav a {
  color: var(--body);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.main-nav a:hover { color: var(--navy); }
.main-nav a.btn { color: #ffffff; }
.main-nav a.btn:hover { color: #ffffff; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-checkbox {
    display: block;
    position: absolute;
    opacity: 0;
    width: 2.75rem;
    height: 2.75rem;
    right: 1.5rem;
    top: 0.9rem;
    margin: 0;
    cursor: pointer;
    z-index: 60;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.5rem 1.25rem;
  }
  .main-nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
  }
  .main-nav a.btn {
    border: none;
    margin-top: 0.85rem;
    text-align: center;
    padding: 0.75rem 1rem;
  }
  .nav-checkbox:checked ~ .main-nav { display: flex; }
  .nav-checkbox:checked ~ .nav-toggle .hamburger { background: transparent; }
  .nav-checkbox:checked ~ .nav-toggle .hamburger::before { transform: translateY(7px) rotate(45deg); }
  .nav-checkbox:checked ~ .nav-toggle .hamburger::after { transform: translateY(-7px) rotate(-45deg); }
}

/* ---- Hero ---- */
.hero {
  border-top: 4px solid var(--navy);
  background: var(--bg);
  padding: 4.5rem 0 3rem;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success-text);
}

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  margin-bottom: 1.25rem;
}
.title-accent {
  display: block;
  color: var(--accent);
  font-weight: 600;
}

.hero-lede {
  font-size: 1.15rem;
  color: var(--body);
  max-width: 34rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* Hero panel: static, no JS dependency */
.hero-panel {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.hero-panel-heading {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.hero-panel-list {
  list-style: none;
  padding: 0;
}
.hero-panel-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
}
.hero-panel-list li:last-child { border-bottom: none; }
.panel-name {
  font-weight: 600;
  color: var(--ink);
}
.panel-status {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius);
  white-space: nowrap;
}
.panel-status--live { background: var(--success-bg); color: var(--success-text); }
.panel-status--progress { background: var(--progress-bg); color: var(--progress-text); }
.hero-panel-foot {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Hero stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}
.stat-label {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---- Trust bar ---- */
.trust-bar {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}
.trust-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2.5rem;
}
.trust-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.trust-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
}
.trust-item {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}

/* ---- Sections ---- */
.section { padding: 5rem 0; }

.section-header { max-width: 44rem; margin-bottom: 3rem; }
.section-header--centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 0.75rem;
}
.section-header h2,
.approach-content h2,
.about-content h2,
.contact-content h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 0.9rem;
}
.section-header p,
.approach-content > p,
.contact-content > p {
  font-size: 1.05rem;
  color: var(--muted);
}

/* ---- Work ---- */
.work { background: var(--bg); }
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}
.work-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}
.work-card--featured { border-top: 3px solid var(--navy); }
.work-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius);
}
.tag-primary { background: var(--navy); color: #ffffff; }
.tag-secondary { background: var(--tag-bg); color: var(--tag-text); }
.tag-success { background: var(--success-bg); color: var(--success-text); }
.tag-progress { background: var(--progress-bg); color: var(--progress-text); }

.work-card-title {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}
.work-card-desc { margin-bottom: 1.1rem; }
.work-card-features {
  margin-bottom: 1.5rem;
  color: var(--body);
}
.work-card-features li { margin-bottom: 0.35rem; }
.work-card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
}
.work-card-link:hover { color: var(--navy-dark); text-decoration: underline; }
.work-card-link--disabled { color: var(--muted); }

/* Standards band */
.standards {
  margin-top: 3rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--navy);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
}
.standards-heading {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 0.9rem;
}
.standards-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.5rem 2rem;
}
.standards-list li {
  padding-left: 1.4rem;
  position: relative;
  color: var(--body);
}
.standards-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--navy);
}

/* ---- Comparison ---- */
.comparison { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.comparison-table-wrapper {
  max-width: 60rem;
  margin: 0 auto;
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg);
  border: 1px solid var(--border);
}
.comparison-table th,
.comparison-table td {
  text-align: left;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.comparison-table thead th {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-alt);
}
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table tbody td:first-child {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.comparison-table .col-us,
.comparison-table .cell-us {
  background: #eef3f8;
}
.comparison-table thead .col-us { color: var(--navy); }
.comparison-table .cell-us { font-weight: 600; color: var(--ink); }

/* Small screens: each row becomes a stacked card, all columns visible */
@media (max-width: 640px) {
  .comparison-table,
  .comparison-table tbody,
  .comparison-table tr,
  .comparison-table td {
    display: block;
    width: 100%;
  }
  .comparison-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .comparison-table {
    background: transparent;
    border: none;
  }
  .comparison-table tr {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    overflow: hidden;
  }
  .comparison-table td {
    border-bottom: 1px solid var(--border);
    padding: 0.7rem 1rem;
  }
  .comparison-table td:last-child { border-bottom: none; }
  .comparison-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.15rem;
  }
  .comparison-table tbody td:first-child {
    white-space: normal;
    background: var(--bg-alt);
    font-size: 1.05rem;
  }
  .comparison-table tbody td:first-child::before { content: none; }
  .comparison-table .cell-us {
    border-left: 4px solid var(--navy);
    padding-left: calc(1rem - 4px);
  }
}

/* ---- Services ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}
.service-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  background: var(--bg);
}
.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--navy);
  display: inline-block;
}
.service-card p { margin-bottom: 1.25rem; }
.service-features li { margin-bottom: 0.4rem; }

/* ---- Approach ---- */
.approach { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.approach-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: start;
}
.steps {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
  counter-reset: step;
}
.steps li {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.steps li:last-child { border-bottom: none; }
.step-number {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--navy);
  line-height: 1.2;
  flex-shrink: 0;
  width: 2.2rem;
}
.step-body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}
.step-body p { color: var(--body); }

.approach-aside {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 2rem;
}
.aside-heading {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 1.25rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}
.aside-facts { margin: 0; }
.aside-fact {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.aside-fact:last-child { border-bottom: none; }
.aside-fact dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--footer-text);
  margin-bottom: 0.15rem;
}
.aside-fact dd {
  margin: 0;
  color: #ffffff;
  font-size: 0.95rem;
}

/* ---- Pricing ---- */
.pricing-section { margin-bottom: 3.5rem; }
.pricing-section-header {
  text-align: center;
  margin-bottom: 2rem;
}
.pricing-section-header h3 {
  font-size: 1.3rem;
  margin-bottom: 0.35rem;
}
.pricing-section-header p { color: var(--muted); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  max-width: 62rem;
  margin: 0 auto;
}
.pricing-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  background: var(--bg);
}
.pricing-card--featured {
  border: 2px solid var(--navy);
}
.pricing-badge {
  position: absolute;
  top: -0.85rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bronze);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius);
  white-space: nowrap;
}
.pricing-card h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.pricing-from {
  margin-bottom: 1rem;
}
.pricing-from strong {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
}
.pricing-from span {
  color: var(--muted);
  font-size: 0.9rem;
  margin-left: 0.25rem;
}
.pricing-card > p:not(.pricing-from) {
  color: var(--body);
  margin-bottom: 1.25rem;
}
.pricing-features li { margin-bottom: 0.4rem; }
.pricing-footnote {
  max-width: 44rem;
  margin: 0 auto;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

/* ---- About ---- */
.about { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.about-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 3.5rem;
  align-items: start;
}
.about-content h2 { margin-bottom: 1rem; }
.about-content h3 {
  font-size: 1.15rem;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}
.about-content p { margin-bottom: 0.5rem; }

.about-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius);
  padding: 2rem;
}
.about-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}
.about-card > p { color: var(--muted); margin-bottom: 1.25rem; }
.about-contact {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}
.about-contact li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}
.about-contact li:last-child { border-bottom: none; }

/* ---- Contact ---- */
.contact-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem;
  background: var(--bg);
}
.contact-methods {
  list-style: none;
  padding: 0;
  margin-top: 1.75rem;
}
.contact-methods li { margin-bottom: 0.9rem; }
.contact-methods a,
.contact-methods span {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.contact-methods a { color: var(--accent); }
.contact-methods a:hover { text-decoration: underline; }

.contact-form .form-group { margin-bottom: 1.1rem; }
.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 0.3rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--ink);
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid var(--accent);
  outline-offset: 0;
  border-color: var(--accent);
}
.contact-form textarea { resize: vertical; }
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  min-height: 0;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--success-text);
}
.form-status.error { color: #8c1d18; }
.form-note {
  margin-top: 0.9rem;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 3.5rem 0 2.5rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.footer-logo {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: #ffffff;
  display: block;
  margin-bottom: 0.5rem;
}
.footer-brand p { font-size: 0.92rem; }
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-nav a {
  color: var(--footer-text);
  text-decoration: none;
  font-size: 0.95rem;
}
.footer-nav a:hover { color: #ffffff; text-decoration: underline; }
.footer-legal p {
  font-size: 0.85rem;
  color: var(--footer-muted);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero-inner,
  .approach-layout,
  .about-layout,
  .contact-card {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .contact-card { padding: 2rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 640px) {
  .hero { padding: 3rem 0 2.25rem; }
  .section { padding: 3.5rem 0; }
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .stat { display: flex; align-items: baseline; gap: 0.9rem; }
  .stat-number { font-size: 1.9rem; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .standards { padding: 1.5rem; }
  .pricing-card, .service-card, .about-card, .approach-aside { padding: 1.5rem; }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* The domain names in the trust strip jump to that project's card below. */
.work-card { scroll-margin-top: 96px; }
a.trust-item { color: inherit; text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 4px; }
a.trust-item:hover { text-decoration-thickness: 2px; }
a.trust-item:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 3px; }
