/*
 * SEO, accessibility, and reusable content-page refinements.
 * Load this file after style.css so these corrective rules win the cascade.
 */

html {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
}

body,
button,
input,
select,
textarea {
  font-family: inherit;
}

/* Keep the sticky header's box size stable while its visual state changes. */
.site-header.scrolled {
  padding: 14px 0;
}

.site-header.scrolled .nav-shell {
  border-color: rgba(215, 225, 230, 0.96);
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 16px 38px rgba(10, 35, 61, 0.14),
    inset 0 1px #fff;
}

/* WCAG AA contrast fixes for text that previously fell below 4.5:1. */
.trust-grid,
.service-number,
.value-grid span,
.footer-bottom {
  color: #526779;
}

.eyebrow.dark {
  color: #1f7477;
}

/* Make keyboard location obvious on both light and dark surfaces. */
:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  box-shadow: 0 0 0 2px var(--navy-950);
}

.skip-link:focus-visible {
  outline-color: var(--navy-950);
  box-shadow: 0 0 0 2px #fff;
}

/* Reusable long-form section primitives. */
.content-intro {
  max-width: 760px;
  margin-bottom: 42px;
}

.content-intro h2 {
  margin-bottom: 18px;
}

.content-intro p:last-child,
.content-callout p:last-child,
.content-card p:last-child {
  margin-bottom: 0;
}

.content-card,
.content-callout {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(8, 35, 64, 0.07);
}

.content-card {
  padding: 30px;
}

.content-callout {
  padding: 30px 34px;
  border-left: 4px solid var(--gold);
}

.content-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 24px;
}

.content-links a,
.inline-service-link {
  color: var(--navy-900);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: #78aaa9;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.content-links a:hover,
.inline-service-link:hover {
  color: #145f67;
  text-decoration-color: currentColor;
}

/* Homepage and service-page solution decision blocks. */
.decision-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--cream), var(--blue-50));
  border-block: 1px solid #dbe8ec;
}

.decision-section::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -160px;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  background: rgba(79, 196, 189, 0.12);
  filter: blur(48px);
  pointer-events: none;
}

.decision-heading,
.decision-intro {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin-bottom: 42px;
}

.decision-heading h2,
.decision-intro h2 {
  margin-bottom: 18px;
}

.decision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  position: relative;
  z-index: 1;
}

.decision-card {
  min-height: 250px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  border: 1px solid #d4e2e7;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 36px rgba(8, 35, 64, 0.07);
}

.decision-card h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.decision-card p {
  margin-bottom: 18px;
  font-size: 0.9rem;
  line-height: 1.75;
}

.decision-card a {
  margin-top: auto;
  color: var(--navy-900);
  font-weight: 850;
}

.decision-card a:hover {
  color: #176f73;
}

.decision-index,
.decision-card > span:first-child {
  display: inline-flex;
  margin-bottom: 30px;
  color: #1f7477;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.decision-close,
.decision-note {
  margin-top: 18px;
  padding: 28px 32px;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  background: linear-gradient(135deg, var(--navy-950), #123f62);
  box-shadow: 0 18px 46px rgba(7, 25, 46, 0.15);
}

.decision-close p,
.decision-note p {
  margin: 0;
  color: #d4e1e8;
  line-height: 1.75;
}

.decision-close a,
.decision-note a {
  color: var(--gold-light);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Audits, planning prompts, and rebuild decision checklists. */
.checklist-section {
  background: var(--blue-50);
  border-block: 1px solid #dbe8ec;
}

.checklist-layout,
.checklist-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 62px;
  align-items: start;
}

.checklist-copy h2 {
  margin-bottom: 20px;
}

.checklist-copy > p {
  font-size: 1rem;
  line-height: 1.8;
}

.checklist-card {
  padding: 32px;
  border: 1px solid #cfdee4;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.checklist-card h3 {
  margin-bottom: 20px;
  font-size: 1.35rem;
}

.checklist,
.planning-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li,
.planning-list li {
  position: relative;
  padding: 14px 0 14px 34px;
  border-top: 1px solid var(--line);
  color: #455d70;
  line-height: 1.65;
}

.checklist li:first-child,
.planning-list li:first-child {
  border-top: 0;
}

.checklist li::before,
.planning-list li::before {
  content: "\2713";
  position: absolute;
  top: 14px;
  left: 0;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #ddf1ef;
  color: #176f73;
  font-size: 0.72rem;
  font-weight: 900;
}

.checklist-note {
  margin-top: 22px;
  padding: 20px 22px;
  border-left: 4px solid var(--gold);
  border-radius: 0 14px 14px 0;
  background: #fff7dd;
  color: #554d32;
  line-height: 1.7;
}

/* About-page identity and factual-proof layouts. */
.about-page,
.contact-page {
  padding-bottom: 40px;
}

.about-hero,
.contact-hero {
  padding: 10px 0 54px;
}

.about-hero-inner,
.contact-hero-inner {
  padding: 64px;
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: linear-gradient(135deg, var(--navy-950), #0f385b 68%, #15516a);
  box-shadow: 0 30px 75px rgba(7, 25, 46, 0.22);
}

.about-hero-inner::after,
.contact-hero-inner::after {
  content: "";
  position: absolute;
  right: -130px;
  bottom: -210px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(79, 196, 189, 0.14);
  filter: blur(54px);
  pointer-events: none;
}

.about-hero-copy,
.contact-hero-copy {
  max-width: 830px;
  position: relative;
  z-index: 1;
}

.about-hero h1,
.contact-hero h1 {
  margin-bottom: 22px;
  color: #fff;
  font-size: clamp(3rem, 5.3vw, 5.4rem);
}

.about-hero p,
.contact-hero p {
  max-width: 720px;
  margin-bottom: 0;
  color: #c8d7e0;
  font-size: 1.04rem;
  line-height: 1.75;
}

.about-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 54px;
  align-items: start;
}

.about-copy-block > h2,
.contact-copy-block > h2 {
  margin-bottom: 22px;
}

.about-copy-block > p,
.contact-copy-block > p {
  font-size: 1rem;
  line-height: 1.82;
}

.about-panel,
.contact-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.about-panel h2,
.about-panel h3,
.contact-card h2,
.contact-card h3 {
  margin-bottom: 18px;
}

.about-facts {
  margin: 0;
}

.about-facts > div {
  padding: 16px 0;
  display: grid;
  grid-template-columns: minmax(110px, 0.42fr) minmax(0, 0.58fr);
  gap: 18px;
  border-top: 1px solid var(--line);
}

.about-facts > div:first-child {
  border-top: 0;
}

.about-facts dt {
  color: #526779;
  font-size: 0.78rem;
  font-weight: 750;
}

.about-facts dd {
  margin: 0;
  color: var(--navy-900);
  font-size: 0.86rem;
  font-weight: 800;
  text-align: right;
}

.about-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.about-page .deliverable-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.about-proof,
.identity-note {
  padding: 28px;
  border: 1px solid #d5e2e6;
  border-radius: 20px;
  background: #fff;
}

.about-proof h3,
.identity-note h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.about-proof p,
.identity-note p {
  margin-bottom: 0;
  font-size: 0.88rem;
  line-height: 1.72;
}

/* Contact page: direct, form-free contact routes. */
.contact-options {
  display: grid;
  gap: 12px;
}

.contact-option {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid #d5e2e6;
  border-radius: 16px;
  background: var(--blue-50);
  transition:
    transform 0.18s,
    border-color 0.18s,
    box-shadow 0.18s;
}

.contact-option:hover {
  transform: translateY(-2px);
  border-color: #a9c9ce;
  box-shadow: 0 12px 28px rgba(8, 35, 64, 0.09);
}

.contact-option span {
  color: #526779;
  font-size: 0.78rem;
}

.contact-option strong {
  color: var(--navy-900);
  text-align: right;
}

.contact-note,
.authority-note {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 14px;
  background: #eef7f7;
  color: #455d70;
  font-size: 0.83rem;
  line-height: 1.7;
}

/* First-party work sample and owner identity. */
.work-section {
  background: linear-gradient(180deg, #f7f4ed, #edf6f8);
  border-block: 1px solid #dbe7e9;
}

.work-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 28px;
  background: linear-gradient(145deg, var(--navy-900), var(--navy-950));
  box-shadow: 0 28px 68px rgba(7, 25, 46, 0.2);
}

.work-preview {
  min-height: 100%;
  display: block;
  overflow: hidden;
  background: #dfeaec;
}

.work-preview img {
  width: 100%;
  height: 100%;
  min-height: 470px;
  display: block;
  object-fit: cover;
  object-position: top left;
  transition: transform 0.35s ease;
}

.work-preview:hover img {
  transform: scale(1.015);
}

.work-copy {
  padding: 46px;
  align-self: center;
}

.work-label {
  display: inline-flex;
  margin-bottom: 17px;
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.work-copy h3 {
  margin-bottom: 16px;
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.work-copy p,
.work-copy li {
  color: #c5d4de;
  line-height: 1.72;
}

.work-copy ul {
  margin: 22px 0 30px;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}

.work-copy li {
  position: relative;
  padding-left: 25px;
  font-size: 0.84rem;
}

.work-copy li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 900;
}

.owner-section {
  background: linear-gradient(180deg, var(--cream), #fff);
}

.about-owner-link {
  margin-top: 28px;
  display: inline-flex;
}

.owner-card {
  padding: 54px;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 54px;
  align-items: start;
  border: 1px solid #d3e0e4;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 58px rgba(8, 35, 64, 0.1);
}

.owner-identity {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 26px;
  background: linear-gradient(145deg, var(--navy-900), #15516a);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.24),
    0 20px 42px rgba(7, 25, 46, 0.18);
}

.owner-identity span {
  color: var(--gold-light);
  font-size: 3.25rem;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.owner-copy h2 {
  margin-bottom: 18px;
}

.owner-lead {
  color: #334e62;
  font-size: 1.02rem;
  line-height: 1.82;
}

.owner-copy > p:not(.owner-lead) {
  line-height: 1.8;
}

.owner-facts {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.owner-facts > div {
  padding: 18px;
  border: 1px solid #d8e4e7;
  border-radius: 15px;
  background: var(--blue-50);
}

.owner-facts span {
  display: block;
  margin-bottom: 7px;
  color: #526779;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.owner-facts strong,
.owner-facts address,
.owner-facts a {
  color: var(--navy-900);
  font-size: 0.83rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.55;
}

.contact-details address {
  margin: 3px 0 0;
  color: inherit;
  font: inherit;
}

.not-found-actions {
  justify-content: center;
}

@media (max-width: 900px) {
  .checklist-layout,
  .checklist-grid,
  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .about-proof-grid {
    grid-template-columns: 1fr;
  }

  .work-card {
    grid-template-columns: 1fr;
  }

  .work-preview img {
    min-height: 0;
    aspect-ratio: 8 / 5;
  }

  .owner-card {
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 34px;
  }

  .owner-facts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .site-header,
  .site-header.scrolled {
    padding: 8px 0;
  }
}

@media (max-width: 620px) {
  .decision-grid {
    grid-template-columns: 1fr;
  }

  .decision-card {
    min-height: 0;
    padding: 24px;
  }

  .decision-index,
  .decision-card > span:first-child {
    margin-bottom: 22px;
  }

  .decision-close,
  .decision-note,
  .checklist-card,
  .content-card,
  .content-callout,
  .about-panel,
  .contact-card {
    padding: 24px;
  }

  .about-hero,
  .contact-hero {
    padding-top: 2px;
    padding-bottom: 30px;
  }

  .about-hero-inner,
  .contact-hero-inner {
    padding: 42px 22px;
    border-radius: 24px;
  }

  .about-hero h1,
  .contact-hero h1 {
    font-size: clamp(2.55rem, 12vw, 3.6rem);
  }

  .about-facts > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .about-facts dd {
    text-align: left;
  }

  .contact-option {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .contact-option strong {
    text-align: left;
  }

  .work-copy,
  .owner-card {
    padding: 28px;
  }

  .owner-card {
    grid-template-columns: 1fr;
  }

  .owner-identity {
    width: 116px;
  }

  .owner-identity span {
    font-size: 2.35rem;
  }

  .about-page .deliverable-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .trust-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    overflow: visible;
    white-space: normal;
    text-align: center;
  }

  .trust-grid i {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-option {
    transition: none;
  }
}
