/*
 * Oushine visual refinement layer - v1.5.0.
 * Trust and Authority system: editorial typography, restrained brand red,
 * clearer proof signals and responsive, accessible interaction targets.
 */

:root {
  --ink: #0f172a;
  --ink-soft: #334155;
  --navy: #0f172a;
  --navy-2: #162033;
  --blue: #0369a1;
  --blue-dark: #075985;
  --teal: #0f766e;
  --brand-red: #cf1016;
  --brand-red-dark: #a90d12;
  --mist: #f1f5f9;
  --paper: #ffffff;
  --line: #e2e8f0;
  --muted: #64748b;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  --radius: 16px;
  --font: "Lato", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "EB Garamond", Georgia, "Times New Roman", serif;
}

html { scroll-padding-top: 122px; }
body { overflow-x: clip; }
a, button { touch-action: manipulation; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.025em; }
h3 { line-height: 1.16; }

.button {
  border-color: var(--brand-red);
  background: var(--brand-red);
  box-shadow: 0 12px 28px rgba(207, 16, 22, 0.18);
}
.button:hover { border-color: var(--brand-red-dark); background: var(--brand-red-dark); }
.button--light { border-color: var(--paper); background: var(--paper); box-shadow: none; }
.button--light:hover { border-color: var(--brand-red); background: var(--brand-red); }
.button--ghost { border-color: rgba(255, 255, 255, 0.48); background: transparent; box-shadow: none; }
.button--outline { color: var(--blue); border-color: var(--blue); background: transparent; box-shadow: none; }
.button--outline:hover { border-color: var(--blue); background: var(--blue); }

.eyebrow { color: var(--blue); }
.eyebrow::before { background: var(--brand-red); }
.eyebrow--light { color: rgba(255, 255, 255, 0.82); }
.eyebrow--light::before { background: #ff5960; }

.site-header__utility {
  color: rgba(255, 255, 255, 0.76);
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.045em;
}
.site-header__utility-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 34px;
  align-items: center;
  gap: 24px;
}
.site-header__utility-inner > span:first-child { display: flex; align-items: center; gap: 9px; }
.site-header__utility i {
  width: 7px;
  height: 7px;
  background: #31c7b5;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(49, 199, 181, 0.12);
}
.site-header__utility a { justify-self: end; transition: color 180ms ease; }
.site-header__utility a:hover { color: #ffffff; }
.site-header.is-scrolled .site-header__utility,
body:not(.home) .site-header__utility {
  color: var(--muted);
  border-color: var(--line);
  background: #f8fafc;
}
.site-header.is-scrolled .site-header__utility a:hover,
body:not(.home) .site-header__utility a:hover { color: var(--brand-red); }
.site-header__inner { min-height: 78px; }
.site-nav__list > li > a { min-height: 78px; }
.site-nav__list > li > a::after { background: var(--brand-red); }
.site-header__cta { border-color: var(--brand-red); background: var(--brand-red); }

.hero { min-height: 930px; }
.hero__overlay {
  background:
    linear-gradient(90deg, rgba(8, 18, 33, 0.98) 0%, rgba(8, 18, 33, 0.91) 35%, rgba(8, 18, 33, 0.38) 66%, rgba(8, 18, 33, 0.08) 100%),
    linear-gradient(180deg, rgba(8, 18, 33, 0.08), rgba(8, 18, 33, 0.24));
}
.hero__inner { padding-top: 192px; }
.hero__copy { width: min(730px, 66%); }
.hero h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(3.3rem, 5.4vw, 5.55rem);
  line-height: 0.98;
  text-wrap: balance;
}
.hero__lead { max-width: 700px; color: rgba(255, 255, 255, 0.8); font-size: 1.08rem; line-height: 1.75; }
.hero__signals { margin-top: 30px; }
.hero__signals i { background: #31c7b5; }
.hero__rail strong { color: #ff8a8f; }

.trust-bar { background: #ffffff; }
.trust-bar__inner { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.trust-bar article {
  display: grid;
  grid-template-columns: 42px 1fr;
  min-width: 0;
  align-items: center;
  gap: 15px;
  padding: 27px 24px;
  border-left: 1px solid var(--line);
}
.trust-bar article:last-child { border-right: 1px solid var(--line); }
.trust-bar svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--brand-red);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}
.trust-bar strong { display: block; margin-bottom: 4px; color: var(--ink); font-family: var(--font); font-size: 0.78rem; letter-spacing: 0; line-height: 1.3; }
.trust-bar span { display: block; padding: 0; color: var(--muted); border: 0; font-size: 0.69rem; font-weight: 400; letter-spacing: 0; line-height: 1.45; text-align: left; }

.section-heading h2,
.display-title { text-wrap: balance; }
.intro-grid__copy { border-left: 2px solid var(--brand-red); padding-left: clamp(24px, 4vw, 48px); }

.service-grid {
  gap: 16px;
  background: transparent;
  border: 0;
}
.service-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}
.service-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--brand-red);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card__number { color: var(--brand-red); }
.service-card__arrow { border-radius: 10px; }
.service-card__arrow svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.service-card:hover .service-card__arrow { color: #ffffff; background: var(--brand-red); }
.service-card > a { color: var(--blue); }

.process-line { gap: 22px; }
.process-step > span { background: var(--brand-red); }
.process-step h3 { font-size: 1.3rem; }

.included-grid__items > div,
.audience-grid > div { transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease; }
.included-grid__items > div:hover,
.audience-grid > div:hover { z-index: 1; background: #ffffff; box-shadow: var(--shadow); transform: translateY(-3px); }

.site-footer__cta h2 { font-family: var(--display); font-weight: 600; }
.site-footer__status span { background: #31c7b5; }

@media (max-width: 1120px) {
  .site-header__utility-inner { grid-template-columns: 1fr auto; }
  .site-header__utility-inner > span:nth-child(2) { display: none; }
  .hero__copy { width: 74%; }
  .trust-bar__inner { grid-template-columns: repeat(2, 1fr); }
  .trust-bar article:nth-child(3),
  .trust-bar article:nth-child(4) { border-top: 1px solid var(--line); }
  .trust-bar article:nth-child(3) { border-left: 1px solid var(--line); }
  .process-line { grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
  .process-line::before { display: none; }
  .process-step {
    min-height: 210px;
    padding: 28px 24px;
    border: 1px solid var(--line);
    border-radius: 14px;
    text-align: left;
  }
  .process-step > span { margin: 0 0 26px; border-color: #ffffff; }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 76px; }
  .site-header__utility { display: none; }
  .site-header__inner,
  .site-nav__list > li > a { min-height: 76px; }
  .nav-toggle { min-width: 44px; min-height: 44px; }
  .site-nav { top: 76px; height: calc(100dvh - 76px); }
  .hero { min-height: 840px; }
  .hero__inner { padding-top: 145px; }
  .hero__copy { width: 86%; }
  .hero h1 { font-size: clamp(3rem, 8vw, 4.4rem); }
  .process-line { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .hero { min-height: 900px; background-position: 64% center; }
  .hero__inner { padding: 126px 0 220px; align-items: flex-start; }
  .hero__copy { width: 100%; }
  .hero h1 { font-size: clamp(2.75rem, 13vw, 3.75rem); line-height: 0.98; }
  .hero__lead { font-size: 0.96rem; line-height: 1.7; }
  .hero__actions .button { width: 100%; }
  .hero__signals { display: grid; gap: 10px; }
  .trust-bar__inner { grid-template-columns: 1fr; }
  .trust-bar article,
  .trust-bar article:nth-child(3),
  .trust-bar article:nth-child(4),
  .trust-bar article:last-child { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .trust-bar article:first-child { border-top: 0; }
  .intro-grid__copy { padding-left: 24px; }
  .service-card { min-height: 280px; }
  .process-line { grid-template-columns: 1fr; }
  .process-step { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .service-card::before { transform: scaleX(1); }
}
