/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
  --ink: #282B2E;
  --blue: #0D47BD;
  --blue-dark: #0A3894;
  --lime: #A6BF39;
  --lime-dark: #5B7016;
  --lime-tint: #F1F5E1;
  --text: #1F2933;
  --muted: #52606D;
  --bg: #FFFFFF;
  --bg-alt: #F5F7FA;
  --border: #E4E7EB;
  --field-border: #7B8794;
  --on-dark: #D0D3D6;

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

  --radius: 8px;
  --container: 1200px;
  --gutter: 20px;
  --header-height: 68px;
  --section-space: clamp(56px, 8vw, 96px);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

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

h1, h2, h3 {
  margin: 0 0 0.5em;
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  overflow-wrap: break-word;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

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

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.hero :focus-visible,
.site-footer :focus-visible { outline-color: #fff; }

section[id], article[id] { scroll-margin-top: calc(var(--header-height) + 12px); }

.visually-hidden {
  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;
  top: -60px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
}
.skip-link:focus { top: 12px; color: #fff; }

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

.section { padding-block: var(--section-space); }
.section--alt { background: var(--bg-alt); }

/* Separator between consecutive sections: hairline with a 64px teal center. */
.section + .section { position: relative; }
.section + .section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--border) calc(50% - 32px), var(--lime) calc(50% - 32px) calc(50% + 32px), var(--border) calc(50% + 32px));
}
.section__header { max-width: 44rem; margin-bottom: 40px; }
.section__intro { font-size: 1.0625rem; color: var(--muted); }

.eyebrow {
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime-dark);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: 500 1rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); color: #fff; }
.btn--ghost { background: transparent; border-color: #7A7F85; color: #fff; }
.btn--ghost:hover { border-color: #fff; color: #fff; }
.btn--sm { padding: 8px 14px; font-size: 0.9375rem; }

/* ==========================================================================
   Header and navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  min-height: var(--header-height);
}

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__logo { display: block; width: auto; height: 48px; }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a:not(.btn) { font-size: 0.9375rem; font-weight: 500; color: var(--muted); text-decoration: none; }
.site-nav a:not(.btn):hover { color: var(--ink); }

.nav-toggle { display: none; }

@media (max-width: 899px) {
  html:not(.js) .site-header { position: static; }
  .site-nav { flex-basis: 100%; padding-bottom: 16px; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a:not(.btn) { display: block; padding: 12px 0; border-top: 1px solid var(--border); }
  .site-nav .btn { width: 100%; margin-top: 12px; }

  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--ink);
    cursor: pointer;
  }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
}

@media (max-width: 400px) {
  .site-header__inner { column-gap: 12px; }
  .brand__logo { height: 40px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding-block: clamp(64px, 10vw, 120px);
  background-color: var(--ink);
  background-image:
    linear-gradient(90deg, rgba(40, 43, 46, 0.95) 0%, rgba(40, 43, 46, 0.85) 55%, rgba(40, 43, 46, 0.6) 100%),
    url("../assets/images/hero-network-1920.webp");
  background-size: cover;
  background-position: center;
  color: var(--on-dark);
}
@media (max-width: 767px) {
  .hero {
    background-image:
      linear-gradient(rgba(40, 43, 46, 0.9), rgba(40, 43, 46, 0.9)),
      url("../assets/images/hero-network-800.webp");
  }
}
.hero h1 { max-width: 18ch; color: #fff; }
.hero .eyebrow { color: var(--lime); }
.hero__lead { max-width: 40rem; margin-bottom: 2rem; font-size: clamp(1.0625rem, 2vw, 1.25rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding-block: 64px 32px;
  background: var(--ink);
  color: var(--on-dark);
}
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px 32px; }
@media (min-width: 600px) {
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .site-footer__grid { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); }
}
.footer-tagline { max-width: 22rem; margin: 16px 0 0; font-size: 0.9375rem; }
.footer-heading {
  margin: 0 0 16px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}
.footer-nav ul,
.footer-contact { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 0.9375rem; }
.footer-nav a { color: var(--on-dark); text-decoration: none; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-contact .placeholder-tag { margin: 0 6px 0 0; }
.site-footer__legal {
  overflow: hidden;
  margin: 48px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.875rem;
}

/* ==========================================================================
   Cards, services, steps
   ========================================================================== */
.card-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }

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

/* Tiles in a row share title / description / bullet rows, so the bullet lists line up.
   row-gap: 0 keeps the grid's large between-tile gap out of the inside of each tile. */
.card-grid--services > .service {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  row-gap: 0;
  align-content: start;
}

.card {
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  transition: border-color 0.15s;
}
.card:hover { border-color: #C3CAD3; }
.card p { color: var(--muted); }

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: var(--lime-tint);
  color: var(--lime-dark);
}

.checklist { margin: 0; padding: 0; list-style: none; }
.checklist li { position: relative; margin-bottom: 8px; padding-left: 28px; }
.checklist li::before {
  content: "";
  position: absolute;
  top: 0.45em;
  left: 4px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--lime);
  border-bottom: 2px solid var(--lime);
  transform: rotate(-45deg);
}

.steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 600px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.step__number { font-family: var(--font-heading); font-size: 2rem; font-weight: 600; }

/* ==========================================================================
   Outlined tiles with a notch (services, steps, values)
   ========================================================================== */
.tile {
  --tile-accent: var(--blue);
  --notch-bg: var(--bg);
  position: relative;
  padding: 40px 24px 24px;
  border: 2px solid var(--tile-accent);
  border-radius: var(--radius);
  background: transparent;
}
.section--alt .tile { --notch-bg: var(--bg-alt); }
.section--dark .tile { --tile-accent: var(--lime); --notch-bg: var(--ink); }
.tile p { color: var(--muted); }
.tile p:last-child { margin-bottom: 0; }

/* The notch sits on the top edge; its background masks the border behind it. */
.tile__notch {
  position: absolute;
  top: 0;
  left: 18px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  line-height: 1;
  color: var(--tile-accent);
  background: var(--notch-bg);
  transform: translateY(-50%);
}
.tile__notch svg { width: 36px; height: 36px; }

/* Grids of tiles need taller row gaps so each notch clears the tile above. */
.card-grid:has(> .tile),
.steps,
.values { row-gap: 44px; }
.card-grid:has(> .tile),
.steps,
.values { padding-top: 18px; }

/* Dotted pattern behind a section heading */
.section__header--dotted { position: relative; isolation: isolate; }
.section__header--dotted::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -28px;
  left: 56px;
  width: 190px;
  height: 190px;
  background-image: radial-gradient(var(--lime) 1.5px, transparent 1.7px);
  background-size: 18px 18px;
  opacity: 0.35;
}

/* Heading on the left, tiles on the right (wide screens) */
.split-section { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px 48px; }
@media (min-width: 1100px) {
  .split-section { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: start; }
  .split-section--3 { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); }
  .split-section .section__header { margin-bottom: 0; }
}

@media (min-width: 768px) {
  .card-grid--values { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Navy section */
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--dark h2,
.section--dark h3 { color: #fff; }
.section--dark .eyebrow { color: var(--lime); }
.section--dark .section__intro,
.section--dark .tile p { color: var(--on-dark); }
.section--dark :focus-visible { outline-color: #fff; }
.section--dark::before,
.section--dark + .section::before { display: none; }

/* ==========================================================================
   Case studies, testimonials, about
   ========================================================================== */
.placeholder-tag {
  display: inline-block;
  margin: 0 0 12px;
  padding: 2px 8px;
  border: 1px dashed #B08900;
  border-radius: 4px;
  background: #FFF8E1;
  color: #6B5300;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

@media (min-width: 900px) {
  .card-grid--cases { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .card-grid--quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.case-study__meta {
  margin-bottom: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.card .case-study__meta { color: var(--lime-dark); }
.case-study__body { margin: 16px 0 0; }
.case-study__body dt { font-size: 0.9375rem; font-weight: 600; color: var(--ink); }
.case-study__body dd { margin: 0 0 12px; color: var(--muted); }

.quote { display: flex; flex-direction: column; margin: 0; }
.quote blockquote {
  margin: 0 0 20px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--ink);
}
.quote blockquote p { margin: 0; color: inherit; }
.quote figcaption { display: flex; flex-direction: column; margin-top: auto; font-size: 0.9375rem; }
.quote__name { font-weight: 600; color: var(--text); }
.quote__role { color: var(--muted); }

.about__image,
.contact__image {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--bg-alt);
}

/* About: photo edge to edge beside a charcoal panel, as one rounded block. */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
}
@media (min-width: 900px) {
  .about { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.about .about__image { height: 100%; object-fit: cover; border-radius: 0; }
@media (min-width: 900px) {
  .about .about__image { aspect-ratio: auto; min-height: 340px; }
}
.about__panel {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 5vw, 56px);
  color: var(--on-dark);
}
.about__panel .eyebrow { color: var(--lime); }
.about__panel h2 { color: #fff; }
.about__panel p { font-size: 1.0625rem; }
.about__panel p:last-child { margin-bottom: 0; }
/* Faint lime dots in the top corner, like the dotted headings elsewhere. */
.about__panel::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -20px;
  right: -20px;
  width: 170px;
  height: 170px;
  background-image: radial-gradient(var(--lime) 1.5px, transparent 1.7px);
  background-size: 18px 18px;
  opacity: 0.3;
}
/* Short lime bar under the text. */
.about__panel::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 24px;
  border-radius: 2px;
  background: var(--lime);
}
.values { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px 20px; margin: 64px 0 0; padding: 0; list-style: none; }
@media (min-width: 768px) {
  .values { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.values h3 { margin-bottom: 0.25em; font-size: 1.125rem; }

/* ==========================================================================
   Contact and forms
   ========================================================================== */
.contact { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
@media (min-width: 900px) {
  .contact { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start; }
}
.contact .section__header { margin-bottom: 24px; }

.contact-details { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.contact__image { margin-top: 32px; }
@media (max-width: 899px) {
  .contact__image { display: none; }
}

.contact-details__label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
@media (min-width: 600px) {
  .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.form-label { display: block; margin-bottom: 6px; font-weight: 500; color: var(--text); }
.form-hint { font-size: 0.875rem; font-weight: 400; color: var(--muted); }
.form-control {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}
.form-control:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
textarea.form-control { min-height: 140px; resize: vertical; }
.contact-form .btn { justify-self: start; }
.form-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.form-fieldset legend { padding: 0; }
.form-label--sub { font-size: 0.875rem; font-weight: 400; color: var(--muted); }

.thank-you { display: flex; align-items: center; min-height: 60vh; }
.thank-you__inner { max-width: 40rem; text-align: center; }
.thank-you .icon-badge { margin-inline: auto; }
.thank-you p { font-size: 1.0625rem; color: var(--muted); }

/* ==========================================================================
   Motion: scroll reveal, tile lift, headline accent
   ========================================================================== */
.reveal-ready .reveal:not(.is-visible) { opacity: 0; }
.reveal-ready .reveal.is-visible {
  animation: reveal-up 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0ms) backwards;
}
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(16px); }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .tile, .case-study, .quote {
    transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.25s, border-color 0.25s;
  }
  .tile:hover, .case-study:hover, .quote:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(40, 43, 46, 0.12);
  }
  .case-study:hover, .quote:hover { border-color: #C3CAD3; }
}

.accent-underline {
  padding-bottom: 2px;
  background: linear-gradient(var(--lime), var(--lime)) no-repeat 0 100% / 100% 3px;
  animation: underline-draw 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.4s backwards;
}
@keyframes underline-draw {
  from { background-size: 0% 3px; }
}

@media print {
  .reveal { opacity: 1 !important; transform: none !important; animation: none !important; }
}

/* ==========================================================================
   Motion preferences
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
