/* Hallmark 2.0.0 · modern-minimal · brand-locked to the Tailored Plumbing app theme (navy, blue, cyan, orange; Archivo and IBM Plex) */
/* Critique: full-bleed navy hero with one orange action, an editorial split for services and process, a single radius and rule system, register facts stated plainly, no invented proof. */
/* Hallmark · waive 26b · no input, select, textarea or aria-disabled anywhere in the markup · the site has no forms, so no control can be disabled */

@font-face {
  font-family: 'Archivo Display';
  src: url('../fonts/Archivo-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Sans Site';
  src: url('../fonts/IBMPlexSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Sans Site';
  src: url('../fonts/IBMPlexSans-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy-950: #040d18;
  --navy-900: #071527;
  --navy-800: #0b2039;
  --navy-700: #12304f;
  --blue-700: #1557ad;
  --blue-600: #1e6fd9;
  --cyan-400: #55bdf0;
  --cyan-300: #8ad4f7;
  --cyan-100: #d9eefb;
  --orange-500: #f5821f;
  --orange-400: #ff9a45;
  --silver-50: #f5f8fb;
  --silver-100: #e9eef4;
  --silver-200: #d9e2ec;
  --silver-300: #bcc9d8;
  --ink-900: #0b2039;
  --ink-700: #27405f;
  --ink-500: #55688a;
  --white: #ffffff;

  --surface: var(--white);
  --surface-tint: var(--silver-50);
  --surface-dark: var(--navy-900);
  --text: var(--ink-900);
  --text-muted: var(--ink-700);
  --text-on-dark: var(--silver-200);
  --heading-on-dark: var(--white);
  --rule: var(--silver-200);
  --rule-strong: var(--ink-900);
  --link: var(--blue-700);
  --accent-number: var(--blue-700);
  --focus: var(--blue-700);
  --action: var(--orange-500);
  --action-hover: var(--orange-400);
  --action-text: var(--navy-900);
  --header-bg: var(--navy-950);

  --font-display: 'Archivo Display', 'Arial Black', Arial, sans-serif;
  --font-body: 'IBM Plex Sans Site', 'Segoe UI', Arial, sans-serif;

  --radius: 4px;
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --column-gap: 40px;
  --section-pad: clamp(64px, 8vw, 112px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--link);
  text-underline-offset: 0.25em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

ul,
ol {
  padding: 0;
  margin: 0;
}

p {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
  color: var(--text);
  overflow-wrap: break-word;
  min-width: 0;
}

::selection {
  background: var(--cyan-100);
  color: var(--navy-900);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 8px 16px;
  background: var(--action);
  color: var(--action-text);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header-bg);
  border-bottom: 1px solid var(--navy-700);
  --link: var(--cyan-300);
  --focus: var(--cyan-400);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-block: 12px;
}

.brand img {
  width: auto;
  height: 72px;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
}

.nav-list a {
  display: inline-block;
  padding: 12px 16px;
  font-weight: 600;
  color: var(--heading-on-dark);
  text-decoration: none;
  border-radius: var(--radius);
  transition: background-color 160ms ease, color 160ms ease;
}

.nav-list a:hover {
  background: var(--navy-700);
}

.nav-list a[aria-current='page'] {
  color: var(--cyan-300);
  box-shadow: inset 0 -2px 0 var(--cyan-300);
}

.header-cta {
  flex-shrink: 0;
  min-height: 44px;
  padding: 12px 20px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--action);
  color: var(--action-text);
}

.btn--primary:hover {
  background: var(--action-hover);
}

.text-link {
  font-weight: 600;
  color: var(--link);
}

/* Hero: full-bleed split, the photograph runs to the edge of the viewport */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--surface-dark);
  color: var(--text-on-dark);
  --link: var(--cyan-300);
  --focus: var(--cyan-400);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(56px, 8vw, 112px) clamp(24px, 3vw, 48px) clamp(56px, 8vw, 112px) max(var(--gutter), calc(50vw - var(--container) / 2));
}

.hero h1 {
  max-width: 14ch;
  color: var(--heading-on-dark);
  font-size: clamp(2.5rem, 4.8vw, 4.25rem);
  line-height: 1.04;
}

.hero__lead {
  margin-top: 24px;
  max-width: 40ch;
  font-size: 1.25rem;
  color: var(--text-on-dark);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin-top: 36px;
}

.hero__media {
  position: relative;
  margin: 0;
  min-width: 0;
  min-height: 560px;
}

.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sections */

.section {
  padding-block: var(--section-pad);
  background: var(--surface);
}

.section--tint {
  background: var(--surface-tint);
}

.section--dark {
  background: var(--surface-dark);
  color: var(--text-on-dark);
  --text: var(--heading-on-dark);
  --text-muted: var(--text-on-dark);
  --link: var(--cyan-300);
  --focus: var(--cyan-400);
}

.section-head {
  display: grid;
  gap: 16px;
  max-width: 680px;
  margin-bottom: clamp(36px, 4vw, 56px);
}

.section-head h2,
.section--dark h2 {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  line-height: 1.12;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.125rem;
}

.section--dark .section-head p {
  color: var(--text-on-dark);
}

/* Split layout: heading column beside a list */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: var(--column-gap);
  align-items: start;
}

.split__head {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 120px;
  min-width: 0;
}

.split__head h2 {
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  line-height: 1.12;
}

.split__head p {
  color: var(--text-muted);
  font-size: 1.125rem;
}

.split__head .text-link {
  justify-self: start;
  margin-top: 8px;
}

/* Services list */

.service-list {
  list-style: none;
  border-top: 2px solid var(--rule-strong);
}

.service-list li {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--column-gap);
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}

.service-list h3 {
  font-size: 1.3125rem;
  line-height: 1.2;
}

.service-list h3 a {
  color: var(--text);
  text-decoration: none;
}

.service-list h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.service-list p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Approach: numbered process list */

.steps {
  list-style: none;
  border-top: 2px solid var(--rule-strong);
}

.step {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}

.step__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  line-height: 1.1;
  color: var(--accent-number);
}

.step h3 {
  font-size: 1.25rem;
  line-height: 1.2;
}

.step p {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 1rem;
}

/* Company */

.company-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: var(--column-gap);
  align-items: start;
}

.company-copy {
  display: grid;
  gap: 20px;
}

.company-copy p {
  color: var(--text-on-dark);
}

.company-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 8px;
}

.register {
  margin: 0;
  border-top: 1px solid var(--navy-700);
}

.register > div {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 4px var(--column-gap);
  padding: 16px 0;
  border-bottom: 1px solid var(--navy-700);
}

.register dt {
  color: var(--silver-300);
  font-weight: 600;
}

.register dd {
  margin: 0;
  color: var(--heading-on-dark);
}

/* Page header (inner pages) */

.page-intro {
  padding-block: clamp(56px, 7vw, 96px) clamp(32px, 4vw, 48px);
  background: var(--surface-tint);
  border-bottom: 1px solid var(--rule);
}

.page-intro h1 {
  max-width: 18ch;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.04;
}

.page-intro p {
  margin-top: 20px;
  max-width: 62ch;
  font-size: 1.1875rem;
  color: var(--text-muted);
}

/* Service details */

.service-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--column-gap);
  align-items: center;
  padding-block: var(--section-pad);
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: 96px;
}

.service-detail:nth-child(even) .service-detail__media {
  order: 2;
}

.service-detail__media {
  margin: 0;
  min-width: 0;
}

.service-detail__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
}

.service-detail__copy {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.service-detail__copy h2 {
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  line-height: 1.12;
}

.service-detail__copy .lead {
  font-size: 1.1875rem;
  color: var(--text);
}

.service-detail__copy p {
  color: var(--text-muted);
}

.service-detail__copy h3 {
  margin-top: 8px;
  font-size: 1.25rem;
}

.checklist {
  display: grid;
  gap: 0;
  list-style: none;
}

.checklist li {
  padding: 12px 0 12px 28px;
  border-top: 1px solid var(--rule);
  position: relative;
  color: var(--text-muted);
}

.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 21px;
  width: 12px;
  height: 2px;
  background: var(--accent-number);
}

/* Projects */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.filter {
  min-height: 44px;
  padding: 8px 20px;
  font: inherit;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--silver-300);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.filter:hover {
  border-color: var(--ink-900);
}

.filter[aria-pressed='true'] {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--heading-on-dark);
}

.note {
  margin-bottom: 40px;
  padding: 16px 20px;
  background: var(--silver-100);
  color: var(--text-muted);
  font-size: 0.975rem;
}

.project-list {
  display: grid;
  gap: 0;
}

.project {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--column-gap);
  align-items: start;
  padding-block: 48px;
  border-top: 2px solid var(--rule-strong);
}

.project:nth-child(even) .project__media {
  order: 2;
}

.project__media {
  margin: 0;
  min-width: 0;
}

.project__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
}

.project__copy {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.project__category {
  font-weight: 600;
  color: var(--accent-number);
}

.project__copy h2 {
  font-size: clamp(1.75rem, 2.8vw, 2.25rem);
  line-height: 1.15;
}

.project__copy p {
  color: var(--text-muted);
}

.project__copy h3 {
  margin-top: 8px;
  font-size: 1.125rem;
}

/* Prose (privacy policy) */

.prose {
  max-width: 72ch;
  display: grid;
  gap: 16px;
}

.prose h2 {
  margin-top: 28px;
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
  line-height: 1.2;
}

.prose p,
.prose li {
  color: var(--text-muted);
}

.prose ul {
  display: grid;
  gap: 8px;
  padding-left: 24px;
  list-style: disc;
}

.prose .updated {
  color: var(--text);
  font-weight: 600;
}

/* Footer */

.site-footer {
  background: var(--surface-dark);
  color: var(--text-on-dark);
  --link: var(--cyan-300);
  --focus: var(--cyan-400);
  padding-block: 64px 32px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 0.8fr);
  column-gap: var(--column-gap);
  row-gap: 32px;
}

.footer-logo {
  width: auto;
  height: 64px;
}

.site-footer p {
  margin-top: 16px;
}

.site-footer strong {
  color: var(--heading-on-dark);
}

.footer-links {
  display: grid;
  gap: 12px;
  list-style: none;
  margin-top: 8px;
}

.site-footer__legal {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--navy-700);
  font-size: 0.9375rem;
  color: var(--silver-300);
}

/* Responsive */

@media (max-width: 860px) {
  .hero,
  .split,
  .company-grid,
  .service-detail,
  .project,
  .site-footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__copy {
    padding: 56px var(--gutter);
  }

  .hero__media {
    min-height: 360px;
  }

  .split__head {
    position: static;
  }

  .service-detail:nth-child(even) .service-detail__media,
  .project:nth-child(even) .project__media {
    order: 0;
  }
}

@media (max-width: 600px) {
  .service-list li,
  .step {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .step {
    gap: 4px;
  }

  .register > div {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__actions .btn {
    width: 100%;
  }

  .brand img {
    height: 56px;
  }

  .footer-logo {
    height: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .btn:active {
    transform: none;
  }
}
