/* ==========================================================================
   Homepage — Executive redesign
   --------------------------------------------------------------------------
   Scoped to `.hx-home` (the wrapper emitted by the homepage renderer) so the
   rest of the site is unaffected. Uses the executive palette:
     Deep Navy  #0B2545 · Slate Blue #13315C · Amber Gold #F5B700
     White      #FFFFFF · Soft Cool Gray #F8FAFC
   Every multi-card grid stretches its items so rows stay symmetrical and no
   orphan card is left hanging.
   ========================================================================== */

.hx-home {
  --hx-navy: #0B2545;
  --hx-navy-deep: #071A33;
  --hx-slate: #13315C;
  --hx-gold: #F5B700;
  --hx-gold-bright: #FFC933;
  --hx-bg: #F8FAFC;
  --hx-ink: #334155;
  --hx-ink-strong: #0E1B2C;
  --hx-line: #E2E8F0;
  --hx-line-dark: rgba(255, 255, 255, 0.14);
  --hx-radius: 14px;
  --hx-radius-lg: 20px;
  --hx-shadow: 0 14px 40px rgba(11, 37, 69, 0.10);
  --hx-shadow-lg: 0 26px 64px rgba(11, 37, 69, 0.16);
  color: var(--hx-ink);
  font-family: var(--font-body);
}

.hx-home h1,
.hx-home h2,
.hx-home h3 {
  font-family: var(--font-display);
  color: var(--hx-ink-strong);
  letter-spacing: -0.01em;
}

.hx-home p {
  margin: 0 0 0.75rem;
  line-height: 1.65;
}

/* ── Shared primitives ─────────────────────────────────────────────────── */

.hx-home .hx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hx-home .hx-actions--center {
  justify-content: center;
}

/* Secondary "white outline" button that sits on navy backgrounds. */
.hx-home .hx-btn--outline {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: #fff;
}

.hx-home .hx-btn--outline:hover,
.hx-home .hx-btn--outline:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

.hx-home .hx-grid {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hx-home .hx-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hx-home .hx-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.hx-home .eyebrow--on-dark {
  color: var(--hx-gold);
}

/* ── Section 1 — Hero ──────────────────────────────────────────────────── */

.hx-hero {
  position: relative;
  background:
    radial-gradient(1200px 620px at 78% -12%, rgba(19, 49, 92, 0.85), transparent 62%),
    linear-gradient(150deg, var(--hx-navy) 0%, var(--hx-navy-deep) 100%);
  color: #fff;
  overflow: hidden;
  padding-block: clamp(3rem, 6vw, 5.5rem);
}

.hx-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(120% 120% at 80% 0%, #000 0%, transparent 68%);
  mask-image: radial-gradient(120% 120% at 80% 0%, #000 0%, transparent 68%);
  pointer-events: none;
}

.hx-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.hx-hero h1 {
  color: #fff;
  font-size: clamp(2.15rem, 1.55rem + 2.6vw, 3.35rem);
  line-height: 1.1;
  margin: 1rem 0 0;
}

.hx-hero__lead {
  color: rgba(238, 244, 251, 0.86);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  max-width: 56ch;
  margin-top: 1.15rem;
}

.hx-trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.5rem;
  margin: 1.75rem 0 0;
  padding: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(238, 244, 251, 0.92);
}

.hx-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hx-trust__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(245, 183, 0, 0.18);
  color: var(--hx-gold);
}

.hx-trust__icon svg {
  width: 14px;
  height: 14px;
}

.hx-hero__visual {
  max-width: 100%;
}

/* Full-bleed photographic backdrop — mirrors the Technical SEO Audits hero.
   `.hx-hero__bg` carries the image as an inline CSS background and
   `.hx-hero__bg-scrim` lays a navy gradient over it so the copy column and
   the snapshot card stay legible whatever the photo does behind them. */

.hx-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}

.hx-hero__bg-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 26, 51, 0.97) 0%, rgba(7, 26, 51, 0.9) 46%, rgba(7, 26, 51, 0.58) 100%),
    linear-gradient(180deg, rgba(7, 26, 51, 0.6), rgba(7, 26, 51, 0.25));
  pointer-events: none;
}

/* The photo replaces the flat navy gradient and the faint dot texture. */
.hx-hero--bg {
  background: var(--hx-navy-deep);
}

.hx-hero--bg::after {
  display: none;
}

/* ── Snapshot mockup (hero + reporting) ────────────────────────────────── */

.hmx {
  margin: 0;
  background: #fff;
  border: 1px solid var(--hx-line);
  border-radius: var(--hx-radius-lg);
  box-shadow: var(--hx-shadow-lg);
  padding: 1.25rem 1.35rem 1.35rem;
  color: var(--hx-ink-strong);
}

.hmx__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.hmx__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--hx-navy);
}

.hmx__tag {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8A6300;
  background: #FFF4D1;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}

.hmx__kpis {
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.hmx__kpi {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.35rem 1rem;
}

.hmx__kpi-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--hx-ink);
}

.hmx__kpi-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--hx-navy);
  white-space: nowrap;
}

.hmx__kpi-value small {
  font-size: 0.7rem;
  font-weight: 600;
  color: #6B7A90;
  margin-left: 1px;
}

.hmx__kpi-value--text {
  font-size: 0.875rem;
  color: #0F7A50;
}

.hmx__kpi-bar {
  grid-column: 1 / -1;
  height: 6px;
  border-radius: 999px;
  background: #EDF1F7;
  overflow: hidden;
}

.hmx__kpi-bar > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--hx-slate), var(--hx-navy));
}

.hmx__kpi-bar--accent > span {
  background: linear-gradient(90deg, var(--hx-gold), var(--hx-gold-bright));
}

.hmx__kpi-bar--ok > span {
  background: linear-gradient(90deg, #34B37E, #0F9D63);
}

.hmx__chart {
  position: relative;
  height: 116px;
  border-radius: var(--hx-radius);
  background: linear-gradient(180deg, #F7FAFD, #FFFFFF);
  border: 1px solid var(--hx-line);
  padding: 0.75rem 0.75rem 1.4rem;
}

.hmx__chart-grid {
  position: absolute;
  inset: 0.75rem 0.75rem 1.6rem;
  background-image: linear-gradient(rgba(11, 37, 69, 0.07) 1px, transparent 1px);
  background-size: 100% 25%;
  border-radius: 6px;
}

.hmx__bars {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 0.4rem;
  height: 100%;
}

.hmx__bar {
  flex: 1 1 0;
  min-width: 0;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, var(--hx-slate), var(--hx-navy));
}

.hmx__bar--accent {
  background: linear-gradient(180deg, var(--hx-gold-bright), var(--hx-gold));
}

.hmx__chart-axis {
  position: absolute;
  left: 0.85rem;
  bottom: 0.4rem;
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8194A8;
}

/* ── Section 2 — Overview ──────────────────────────────────────────────── */

.hx-overview h2 {
  font-size: clamp(1.6rem, 1.15rem + 1.5vw, 2.25rem);
  line-height: 1.18;
  margin: 0.85rem 0 0.9rem;
}

.hx-checks {
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.hx-check {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.95rem;
}

.hx-check__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(245, 183, 0, 0.16);
  color: #8A6300;
  margin-top: 1px;
}

.hx-check__icon svg {
  width: 14px;
  height: 14px;
}

.hx-callout {
  position: relative;
  display: flex;
  gap: 1.25rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: 1.5rem 1.75rem;
  background: var(--hx-bg);
  border: 1px solid var(--hx-line);
  border-radius: var(--hx-radius-lg);
  overflow: hidden;
}

.hx-callout__bar {
  flex: 0 0 auto;
  width: 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--hx-gold), var(--hx-navy));
}

.hx-callout__body h3 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
  color: var(--hx-navy);
}

.hx-callout__body p {
  margin: 0;
  max-width: 90ch;
  font-size: 0.95rem;
}

/* ── Section 3/4/8 — Card grids ────────────────────────────────────────── */

.hx-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  height: 100%;
  padding: 1.6rem 1.5rem;
  background: #fff;
  border: 1px solid var(--hx-line);
  border-radius: var(--hx-radius);
  box-shadow: 0 1px 2px rgba(11, 37, 69, 0.04);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.hx-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--hx-shadow);
  border-color: rgba(245, 183, 0, 0.55);
}

.hx-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(150deg, var(--hx-navy), var(--hx-slate));
  color: var(--hx-gold);
}

.hx-card__icon svg {
  width: 24px;
  height: 24px;
}

.hx-card__title {
  margin: 0.35rem 0 0;
  font-size: 1.0625rem;
  line-height: 1.3;
}

.hx-card__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--hx-ink);
}

/* ── Section 5 — Process ───────────────────────────────────────────────── */

.hx-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.hx-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
  padding: 1.5rem 1.35rem 1.4rem;
  background: #fff;
  border: 1px solid var(--hx-line);
  border-radius: var(--hx-radius);
  box-shadow: 0 1px 2px rgba(11, 37, 69, 0.04);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hx-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--hx-shadow);
}

.hx-step__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--hx-gold);
}

.hx-step__title {
  margin: 0.15rem 0 0;
  font-size: 1.0313rem;
  line-height: 1.3;
}

.hx-step__text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--hx-ink);
}

/* ── Section 6 — Reporting ─────────────────────────────────────────────── */

.hx-reporting h2 {
  font-size: clamp(1.6rem, 1.15rem + 1.5vw, 2.25rem);
  line-height: 1.18;
  margin: 0.85rem 0 0.9rem;
}

.hx-note {
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--hx-gold);
  background: var(--hx-bg);
  border-radius: 0 var(--hx-radius) var(--hx-radius) 0;
  font-size: 0.875rem;
  color: var(--hx-ink);
}

.hx-note--spaced {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

/* Accent underline reserved for the deliverables heading only */
.hx-home .hx-has-accent .section-header h2 {
  position: relative;
}

.hx-home .hx-has-accent .section-header h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--hx-gold);
  margin: var(--space-4, 1rem) 0 0;
  border-radius: var(--radius-full, 999px);
}

/* Left-aligned headings that open a block get top breathing room */
.hx-deliverables .hx-note--spaced {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

/* Section 8 — service footer copy */
.hx-terms {
  margin-top: 20px;
  padding-top: clamp(1.5rem, 2.5vw, 2rem);
  border-top: 1px solid var(--hx-line);
}

.hx-terms p {
  margin: 0;
  max-width: 78ch;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--hx-ink);
}

/* Reporting mockup card */
.hmr {
  margin: 0;
  background: #fff;
  border: 1px solid var(--hx-line);
  border-radius: var(--hx-radius-lg);
  box-shadow: var(--hx-shadow-lg);
  padding: 1.35rem 1.4rem 1.45rem;
}

.hmr__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.hmr__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--hx-navy);
}

.hmr__tag {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8A6300;
  background: #FFF4D1;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}

.hmr__chart {
  position: relative;
  padding-bottom: 1.6rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--hx-line);
}

.hmr__chart svg {
  display: block;
  width: 100%;
  height: 92px;
}

.hmr__line {
  fill: none;
  stroke: var(--hx-gold);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hmr__line--muted {
  stroke: var(--hx-slate);
  stroke-width: 2;
  opacity: 0.45;
}

.hmr__chart-legend {
  position: absolute;
  left: 0;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.6875rem;
  color: var(--hx-ink);
}

.hmr__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
  margin-left: 0.5rem;
}

.hmr__dot--navy { background: var(--hx-slate); }
.hmr__dot--gold { background: var(--hx-gold); }

.hmr__rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.hmr__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
}

.hmr__row-label {
  font-weight: 500;
  color: var(--hx-ink-strong);
}

.hmr__pill {
  flex: 0 0 auto;
  font-size: 0.6875rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
}

.hmr__pill--ok { color: #0F7A50; background: #E4F5EC; }
.hmr__pill--info { color: var(--hx-slate); background: #E8EEF7; }

/* ── Section 7 — FAQ ───────────────────────────────────────────────────── */

.hx-faq h2 {
  font-size: clamp(1.6rem, 1.15rem + 1.5vw, 2.25rem);
}

/* ── Section 8 — Related services ──────────────────────────────────────── */

.hx-service {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  height: 100%;
  padding: 1.5rem 1.4rem;
  background: #fff;
  border: 1px solid var(--hx-line);
  border-radius: var(--hx-radius);
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.hx-service:hover,
.hx-service:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--hx-shadow);
  border-color: rgba(245, 183, 0, 0.6);
}

.hx-service__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--hx-bg);
  border: 1px solid var(--hx-line);
  color: var(--hx-navy);
}

.hx-service__icon svg {
  width: 22px;
  height: 22px;
}

.hx-service__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--hx-ink-strong);
  line-height: 1.3;
}

.hx-service__text {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--hx-ink);
}

.hx-service__more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding-top: 0.4rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--hx-navy);
}

.hx-service:hover .hx-service__more {
  color: #8A6300;
}

.hx-service__more svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.hx-service:hover .hx-service__more svg {
  transform: translateX(3px);
}

/* ── Section 9 — Bottom CTA ────────────────────────────────────────────── */

.hx-cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3.5rem);
  border-radius: var(--hx-radius-lg);
  background:
    radial-gradient(900px 420px at 50% -30%, rgba(19, 49, 92, 0.9), transparent 60%),
    linear-gradient(160deg, var(--hx-navy) 0%, var(--hx-navy-deep) 100%);
  color: #fff;
  box-shadow: var(--hx-shadow-lg);
}

.hx-cta h2 {
  color: #fff;
  font-size: clamp(1.7rem, 1.2rem + 1.7vw, 2.45rem);
  line-height: 1.14;
  margin: 0.85rem auto 0.9rem;
  max-width: 22ch;
}

.hx-cta p {
  color: rgba(238, 244, 251, 0.86);
  max-width: 62ch;
  margin-inline: auto;
}

/* ── Responsive ────────────────────────────────────────────────────────── */

@media (max-width: 1280px) {
  .hx-home .hx-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  .hx-hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hx-hero__visual {
    max-width: 520px;
    margin-inline: auto;
    width: 100%;
  }

  .hx-home .hx-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .hx-home .hx-split--reverse .hx-split__visual {
    order: -1;
  }

  .hx-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .hx-home .hx-grid,
  .hx-home .hx-grid--3,
  .hx-home .hx-grid--4,
  .hx-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .hx-hero {
    padding-block: 2.75rem;
  }

  /* The copy column fills the width on phones, so switch the scrim from a
     left-to-right wash to a stronger top-down overlay. */
  .hx-hero__bg-scrim {
    background: linear-gradient(180deg, rgba(7, 26, 51, 0.94) 0%, rgba(7, 26, 51, 0.88) 60%, rgba(7, 26, 51, 0.82) 100%);
  }

  .hx-home .hx-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* Floating WhatsApp CTA styles live in site.css (the float is site-wide). */

@media (prefers-reduced-motion: reduce) {
  .hx-card,
  .hx-step,
  .hx-service,
  .hx-service__more svg {
    transition: none;
    animation: none;
  }

  .hx-card:hover,
  .hx-step:hover,
  .hx-service:hover {
    transform: none;
  }
}
