/*
Theme Name: Deltraux
Theme URI: https://deltraux.com
Author: Deltraux
Description: Custom theme for Deltraux healthcare growth advisory.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: deltraux
*/

/* ================================================
   CSS CUSTOM PROPERTIES
================================================ */
:root {
  --bg-body:        #F7F8FA;
  --bg-primary:     #FFFFFF;
  --bg-secondary:   #F1F3F6;
  --text-heading:   #0F172A;
  --text-body:      #334155;
  --text-muted:     #475569;
  --accent-primary: #1E40AF;
  --accent-hover:   #1D4ED8;
  --accent-subtle:  #0EA5A4;
  --border-default: #E2E8F0;
  --border-light:   #EEF2F7;
  --footer-bg:      #0F172A;
  --footer-darker:  #0A1120;
  --footer-text:    #CBD5E1;
  --footer-muted:   #94A3B8;
  --shadow-sm:      0 1px 2px rgba(0,0,0,0.04);
  --font-serif:     'Playfair Display', Georgia, serif;
  --font-sans:      'Inter', system-ui, sans-serif;
  --space-xs:  8px;
  --space-sm:  16px;
  --space-md:  24px;
  --space-lg:  40px;
  --space-xl:  64px;
  --space-xxl: 96px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

::selection { background: #DBEAFE; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  color: var(--text-body);
  background: var(--bg-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

p { margin-bottom: 18px; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--text-heading);
  font-weight: 600;
}

h1 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.005em;
}

h2 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.25;
}

h3 {
  font-size: clamp(20px, 2.5vw, 26px);
  line-height: 1.3;
  font-weight: 500;
}

h4 {
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.35;
  font-weight: 500;
}

h5 {
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.4;
  font-weight: 500;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.container--narrow { max-width: 680px; }
.container--medium { max-width: 900px; }

.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15.5px;
  line-height: 1.4;
  letter-spacing: 0.03em;
  padding: 14px 28px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 200ms ease-out, border-color 200ms ease-out, color 200ms ease-out;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn--primary {
  background: var(--accent-primary);
  color: #FFFFFF;
  border-color: var(--accent-primary);
}

.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  text-decoration: none;
  color: #FFFFFF;
}

.btn--secondary {
  background: transparent;
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary);
}

.btn--secondary:hover {
  background: #EFF6FF;
  text-decoration: none;
}

.section { padding: var(--space-xxl) 0; }
.section--alt { background: var(--bg-secondary); }
.section--white { background: var(--bg-primary); }
.section--tight { padding: var(--space-xl) 0; }

.section-title { margin-bottom: var(--space-lg); }
.section-title h2 { margin-bottom: 16px; }

.section-title p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.75;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeInUp 0.4s ease-out forwards; }
.fade-in-delay-1 { animation-delay: 0.1s; opacity: 0; animation-fill-mode: forwards; }
.fade-in-delay-2 { animation-delay: 0.2s; opacity: 0; animation-fill-mode: forwards; }
.fade-in-delay-3 { animation-delay: 0.3s; opacity: 0; animation-fill-mode: forwards; }

@media (prefers-reduced-motion: reduce) {
  .fade-in, .fade-in-delay-1, .fade-in-delay-2, .fade-in-delay-3,
  .scroll-reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* Scroll-in sections (CSS view timeline — no JavaScript) */
@keyframes deltraux-scroll-reveal {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@supports (animation-timeline: view()) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(12px);
    animation: deltraux-scroll-reveal linear both;
    animation-timeline: view();
    animation-range: entry 5% cover 28%;
  }

  .pillars__grid .scroll-reveal:nth-child(2) { animation-range: entry 8% cover 30%; }
  .pillars__grid .scroll-reveal:nth-child(3) { animation-range: entry 11% cover 32%; }
  .framework__phases .scroll-reveal:nth-child(2) { animation-range: entry 8% cover 30%; }
  .framework__phases .scroll-reveal:nth-child(3) { animation-range: entry 11% cover 32%; }
  .qual-grid .scroll-reveal:nth-child(2) { animation-range: entry 8% cover 30%; }
  .qual-grid .scroll-reveal:nth-child(3) { animation-range: entry 11% cover 32%; }
}

@supports not (animation-timeline: view()) {
  .scroll-reveal {
    opacity: 1;
    transform: none;
  }
}

/* Mobile nav toggle (checkbox — no JS) */
.nav-toggle-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-default);
  box-shadow: var(--shadow-sm);
  height: 76px;
  display: flex;
  align-items: center;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: var(--space-md);
}

.site-logo {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 20px;
  color: var(--text-heading);
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}

.site-logo:hover {
  text-decoration: none;
  color: var(--text-heading);
}

.site-logo span { color: var(--accent-primary); }

.site-logo__img {
  display: block;
  height: auto;
  max-height: 48px;
  width: auto;
  max-width: 220px;
}

.footer-logo .site-logo__img {
  max-height: 40px;
  max-width: 200px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.site-nav a {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--text-heading);
  text-decoration: none;
  transition: color 200ms ease-out;
}

.site-nav a:hover {
  color: var(--accent-primary);
  text-decoration: none;
}

.site-nav .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0.5em 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.35em;
}

.site-nav .sub-menu a {
  font-size: 14px;
  color: var(--text-body);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text-heading);
}

.nav-toggle svg { display: block; }

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: min(320px, 85vw);
  height: 100%;
  background: var(--bg-primary);
  border-left: 1px solid var(--border-default);
  z-index: 100;
  padding: 80px 32px 32px;
  transition: right 300ms cubic-bezier(0.4,0,0.2,1);
  flex-direction: column;
  gap: var(--space-sm);
}

.nav-toggle-input:checked + .site-header + .mobile-overlay {
  display: block;
}

.nav-toggle-input:checked + .site-header + .mobile-overlay + .mobile-nav {
  right: 0;
}

.mobile-nav__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  width: 100%;
}

.mobile-nav__menu .sub-menu {
  list-style: none;
  margin: 0.25em 0 0;
  padding: 0 0 0 1em;
  display: flex;
  flex-direction: column;
  gap: 0.35em;
}

.mobile-nav a {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  color: var(--text-heading);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  display: block;
  transition: color 200ms;
}

.mobile-nav a:hover { color: var(--accent-primary); }

.mobile-nav .btn {
  margin-top: var(--space-md);
  width: 100%;
  text-align: center;
}

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.2);
  z-index: 99;
  cursor: pointer;
}

.mobile-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-heading);
  padding: 4px;
}

.hero {
  background: var(--bg-primary);
  padding: 128px 0 96px;
  overflow: hidden;
}

/* About page hero — keep top spacing below sticky header (see about.css) */
.is-about-page #main-content > .deltraux-about > .hero {
  background: unset;
  overflow: visible;
}

/* Our Approach — align content width/padding with site container */
.is-approach-page #main-content > .deltraux-approach .container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .is-approach-page #main-content > .deltraux-approach .container {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 640px) {
  .is-approach-page #main-content > .deltraux-approach .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* Industries — align content width/padding with site container */
.is-industries-page #main-content > .deltraux-industries .container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .is-industries-page #main-content > .deltraux-industries .container {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 640px) {
  .is-industries-page #main-content > .deltraux-industries .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* Insights — align content width/padding with site container */
.is-insights-page #main-content > .deltraux-insights .container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .is-insights-page #main-content > .deltraux-insights .container {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 640px) {
  .is-insights-page #main-content > .deltraux-insights .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* Strategy — align content width/padding with site container */
.is-strategy-page #main-content > .deltraux-strategy .container,
.is-strategy-page #main-content > .deltraux-strategy .container--narrow {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
  box-sizing: border-box;
}

.is-strategy-page #main-content > .deltraux-strategy .container--narrow {
  max-width: 900px;
}

@media (max-width: 1024px) {
  .is-strategy-page #main-content > .deltraux-strategy .container,
  .is-strategy-page #main-content > .deltraux-strategy .container--narrow {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 640px) {
  .is-strategy-page #main-content > .deltraux-strategy .container,
  .is-strategy-page #main-content > .deltraux-strategy .container--narrow {
    padding-left: 20px;
    padding-right: 20px;
  }
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 64px;
  align-items: center;
}

.hero__content h1 {
  margin-bottom: 28px;
  max-width: 560px;
}

.hero__content p {
  font-size: 16.5px;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.hero__cta {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero__note {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}

.hero__visual {
  position: relative;
  width: 100%;
  max-width: 440px;
  justify-self: end;
}

.hero__grid--no-visual {
  grid-template-columns: 1fr;
}

.hero__figure {
  margin: 0;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--border-default);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  animation: fadeInUp 0.4s ease-out 0.15s both;
}

.hero__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pillars {
  background: var(--bg-secondary);
  padding: 56px 0;
  border-top: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
}

.pillars__heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-default);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  overflow: hidden;
}

.pillar-block {
  background: var(--bg-primary);
  padding: 36px 32px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: background 200ms ease-out;
}

.pillar-block:hover { background: #FAFBFF; }

.pillar-block__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-default);
  border-radius: 6px;
  transition: border-color 200ms, color 200ms;
  color: var(--text-heading);
}

.pillar-block:hover .pillar-block__icon {
  border-color: #BFDBFE;
  color: var(--accent-primary);
}

.pillar-block__icon svg { width: 20px; height: 20px; }

.pillar-block__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 17px;
  color: var(--text-heading);
  margin-bottom: 8px;
  line-height: 1.35;
}

.pillar-block__desc {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 0;
}

.industry { background: var(--bg-primary); }

.industry__grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 80px;
  align-items: start;
}

.industry__content h2 { margin-bottom: 28px; }

.industry__content p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
}

.funnel-diagram {
  position: sticky;
  top: 96px;
}

.funnel-stage {
  display: flex;
  align-items: center;
  gap: 16px;
}

.funnel-stage__bar-wrap { flex: 1; }

.funnel-stage__bar {
  height: 44px;
  border-radius: 4px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-heading);
  position: relative;
  overflow: hidden;
}

.funnel-stage__bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-primary);
  opacity: 0.07;
}

.funnel-stage__bar--med::before { opacity: 0.05; }
.funnel-stage__bar--sm::before  { opacity: 0.03; }

.funnel-connector {
  height: 20px;
  margin-left: 16px;
  border-left: 1px dashed var(--border-default);
  position: relative;
}

.funnel-connector::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -4px;
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
  transform: rotate(45deg);
}

.funnel-stage__count {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 52px;
  text-align: right;
}

.funnel-note {
  margin-top: 20px;
  padding: 16px;
  background: var(--bg-secondary);
  border-left: 3px solid var(--accent-primary);
  border-radius: 0 4px 4px 0;
}

.funnel-note p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 0;
}

.problems { background: var(--bg-secondary); }

.problems__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.problem-block h2,
.solution-block h2 { margin-bottom: 28px; }

.problem-block p,
.solution-block p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 4px;
}

.bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.65;
}

.bullet-list li .bullet-icon {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--accent-primary);
  opacity: 0.7;
}

.bullet-list li .bullet-icon svg {
  width: 16px;
  height: 16px;
}

.framework { background: var(--bg-primary); }

.framework__intro {
  max-width: 680px;
  margin: 0 auto 64px;
  text-align: center;
}

.framework__intro h2 { margin-bottom: 20px; }

.framework__intro p {
  font-size: 16.5px;
  color: var(--text-muted);
  line-height: 1.8;
}

.framework__phases {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.phase-block {
  background: var(--bg-primary);
  border: 1px solid var(--border-default);
  border-left: 3px solid var(--accent-primary);
  border-radius: 0 6px 6px 0;
  padding: 36px 40px;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.4s ease-out both;
}

.phase-block:nth-child(1) { animation-delay: 0.05s; }
.phase-block:nth-child(2) { animation-delay: 0.15s; }
.phase-block:nth-child(3) { animation-delay: 0.25s; }

.phase-block__number {
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-serif);
  font-size: 100px;
  font-weight: 600;
  color: var(--text-heading);
  opacity: 0.03;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.phase-block__header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}

.phase-block__step {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-primary);
  display: block;
  margin-bottom: 6px;
}

.phase-block__icon {
  width: 48px;
  height: 48px;
  border: 1px solid #BFDBFE;
  background: #EFF6FF;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent-primary);
}

.phase-block__icon svg { width: 22px; height: 22px; }

.phase-block h3 {
  font-size: clamp(18px, 2vw, 22px);
  margin-bottom: 4px;
}

.phase-block__subtitle {
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
}

.phase-block__items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.phase-block__items li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

.phase-block__items li::before {
  content: '';
  flex-shrink: 0;
  margin-top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-primary);
  opacity: 0.6;
}

.mid-cta {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
  padding: var(--space-xxl) 0;
}

.mid-cta__inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.mid-cta__inner h2 { margin-bottom: 20px; }

.mid-cta__prose p {
  font-size: 16.5px;
  color: var(--text-muted);
  line-height: 1.8;
  margin: 0 0 16px;
}

.mid-cta__prose p:last-child {
  margin-bottom: 0;
}

.mid-cta__inner .btn {
  display: inline-block;
  margin-top: 32px;
}

.mid-cta__fine {
  font-size: 13px;
  color: var(--text-muted);
  margin: 16px 0 0;
  font-style: italic;
}

.qualification { background: var(--bg-primary); }

.qualification__intro {
  max-width: 580px;
  margin-bottom: 56px;
}

.qualification__intro h2 { margin-bottom: 16px; }

.qualification__intro p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
}

.qual-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.qual-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-default);
  border-radius: 6px;
  padding: 28px;
  transition: border-color 200ms ease-out, box-shadow 200ms ease-out;
}

.qual-card:hover {
  border-color: #BFDBFE;
  box-shadow: 0 2px 8px rgba(30,64,175,0.06);
}

.qual-card__icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-default);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  margin-bottom: 20px;
  transition: border-color 200ms, color 200ms;
}

.qual-card:hover .qual-card__icon {
  border-color: #BFDBFE;
  color: var(--accent-primary);
}

.qual-card__icon svg { width: 18px; height: 18px; }

.qual-card h4 {
  font-size: 17px;
  margin-bottom: 10px;
  line-height: 1.35;
}

.qual-card p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 0;
}

.authority {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-default);
}

.authority__grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 80px;
  align-items: start;
}

.authority__sidebar h2 { margin-bottom: 20px; }

.authority__sidebar p {
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.8;
}

.authority__items {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.authority-item {
  padding: 32px 0;
  border-bottom: 1px solid var(--border-default);
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.authority-item:first-child { padding-top: 0; }

.authority-item__num {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 600;
  color: var(--text-heading);
  opacity: 0.06;
  line-height: 1;
  flex-shrink: 0;
  width: 52px;
  pointer-events: none;
  user-select: none;
}

.authority-item h4 {
  font-size: 17px;
  margin-bottom: 10px;
  line-height: 1.35;
}

.authority-item p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 0;
}

.authority__outcome {
  margin-top: 56px;
  background: var(--bg-primary);
  border: 1px solid var(--border-default);
  border-left: 3px solid var(--accent-primary);
  border-radius: 0 6px 6px 0;
  padding: 32px 36px;
}

.authority__outcome h4 {
  font-size: 18px;
  margin-bottom: 16px;
}

.authority__outcome p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 0;
}

.final-cta {
  background: var(--footer-bg);
  padding: var(--space-xxl) 0;
}

.final-cta__inner {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.final-cta__inner h2 {
  color: #F1F5F9;
  margin-bottom: 20px;
  font-size: clamp(22px, 3vw, 32px);
}

.final-cta__prose p {
  color: #94A3B8;
  font-size: 16px;
  line-height: 1.8;
  margin: 0 0 16px;
}

.final-cta__prose p:last-child {
  margin-bottom: 0;
}

.final-cta__inner .btn--primary {
  display: inline-block;
  margin-top: 36px;
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}

.final-cta__inner .btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.final-cta__fine {
  font-size: 13px;
  color: #475569;
  margin: 20px 0 0;
  font-style: italic;
}

.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid #1E293B;
  padding: 72px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer__brand .footer-logo {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 18px;
  color: #FFFFFF;
  text-decoration: none;
  letter-spacing: -0.01em;
  display: inline-block;
  margin-bottom: 16px;
}

.footer__brand .footer-logo span { color: #3B82F6; }

.footer__brand p {
  font-size: 14px;
  color: var(--footer-text);
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 0;
}

.footer__col-title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 20px;
}

.footer__nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__nav a {
  font-size: 14px;
  color: var(--footer-text);
  text-decoration: none;
  transition: color 200ms;
}

.footer__nav a:hover {
  color: #FFFFFF;
  text-decoration: none;
}

.footer__bar {
  background: var(--footer-darker);
  border-top: 1px solid #1E293B;
  padding: 20px 0;
}

.footer__bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer__bar p {
  font-size: 13px;
  color: var(--footer-muted);
  margin-bottom: 0;
  line-height: 1.5;
}

.header-cta {
  padding: 11px 22px;
  font-size: 14px;
}

.hero__note--spaced { margin-top: 16px; }
.u-mt-20 { margin-top: 20px; }

@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual {
    display: block;
    max-width: 400px;
    justify-self: start;
  }
  .industry__grid { grid-template-columns: 1fr; gap: 48px; }
  .funnel-diagram { position: static; }
  .authority__grid { grid-template-columns: 1fr; gap: 48px; }
  .qual-grid { grid-template-columns: repeat(2, 1fr); }
  .problems__grid { grid-template-columns: 1fr; gap: 40px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  html { font-size: 15px; }
  .section { padding: 64px 0; }
  .hero { padding: 80px 0 64px; }
  .container { padding: 0 20px; }
  .site-nav, .header-cta { display: none; }
  .nav-toggle { display: block; }
  .mobile-nav { display: flex; }
  .pillars__grid { grid-template-columns: 1fr; }
  .qual-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bar-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .mid-cta, .final-cta { padding: 64px 0; }
}

@media (max-width: 480px) {
  .hero__cta { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .phase-block { animation: none; }
}
