/* Anderson Hernandes Consultoria - Executive B2B2B SEO Hub (WCAG AA 1080px) */
:root {
  --ah-bg: #F8FAFC;
  --ah-surface: #FFFFFF;
  --ah-surface-alt: #F3F4F8;
  --ah-border: #CBD5E1;
  --ah-border-subtle: #E2E8F0;
  --ah-heading: #0F172A;
  --ah-text: #1E293B;
  --ah-muted: #475569;
  --ah-primary: #581C87;
  --ah-primary-hover: #3B0764;
  --ah-primary-soft: #F3E8FF;
  --ah-accent: #BE123C;
  --ah-accent-hover: #9F1239;
  --ah-accent-soft: #FFE4E6;
  --ah-emerald: #047857;
  --ah-radius-lg: 20px;
  --ah-radius-md: 12px;
}

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

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

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--ah-bg);
  color: var(--ah-text);
  line-height: 1.74;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Inter', sans-serif;
  color: var(--ah-heading);
  line-height: 1.22;
  margin-top: 0;
  letter-spacing: -0.02em;
}

a {
  color: var(--ah-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

a:hover {
  color: var(--ah-primary-hover);
}

.ah-container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.ah-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ah-border-subtle);
}

.ah-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 16px;
}

.ah-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ah-heading);
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
}

.ah-brand-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ah-primary);
  background: var(--ah-primary-soft);
  padding: 4px 10px;
  border-radius: 999px;
}

.ah-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.ah-nav a {
  text-decoration: none;
  color: var(--ah-text);
  font-size: 0.9rem;
  font-weight: 600;
}

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

.ah-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none !important;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

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

.ah-btn-primary:hover {
  background: var(--ah-accent-hover);
  transform: translateY(-1px);
}

.ah-btn-purple {
  background: var(--ah-primary);
  color: #FFFFFF !important;
}

.ah-btn-purple:hover {
  background: var(--ah-primary-hover);
}

.ah-btn-secondary {
  background: #FFFFFF;
  color: var(--ah-heading) !important;
  border-color: var(--ah-border);
}

.ah-btn-secondary:hover {
  border-color: var(--ah-primary);
  background: var(--ah-surface-alt);
}

/* Breadcrumb */
.ah-breadcrumb {
  padding: 20px 0 8px;
  font-size: 0.85rem;
  color: var(--ah-muted);
}

.ah-breadcrumb a {
  color: var(--ah-muted);
  text-decoration: none;
}

.ah-breadcrumb a:hover {
  color: var(--ah-primary);
  text-decoration: underline;
}

/* Hero */
.ah-hero {
  padding: 28px 0 36px;
}

.ah-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.ah-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--ah-primary-soft);
  color: var(--ah-primary);
}

.ah-meta-info {
  font-size: 0.85rem;
  color: var(--ah-muted);
  font-weight: 600;
}

.ah-hero h1 {
  font-size: clamp(1.85rem, 3.5vw, 2.65rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.ah-subtitle {
  font-size: 1.12rem;
  color: var(--ah-muted);
  margin: 0;
  max-width: 920px;
}

/* Executive Summary */
.ah-exec-summary {
  background: var(--ah-surface);
  border: 1px solid var(--ah-border);
  border-left: 5px solid var(--ah-primary);
  border-radius: var(--ah-radius-md);
  padding: 24px 28px;
  margin-bottom: 36px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.ah-exec-summary h2 {
  font-size: 1.08rem;
  font-weight: 800;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ah-primary);
}

.ah-exec-summary ul {
  margin: 0;
  padding-left: 20px;
}

.ah-exec-summary li {
  margin-bottom: 8px;
}

/* Article Card */
.ah-article-card {
  background: var(--ah-surface);
  border: 1px solid var(--ah-border-subtle);
  border-radius: var(--ah-radius-lg);
  padding: 40px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.04);
  margin-bottom: 36px;
}

.ah-section {
  margin-bottom: 34px;
}

.ah-section:last-child {
  margin-bottom: 0;
}

.ah-section h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.ah-section p {
  margin: 0 0 16px;
  font-size: 1.03rem;
}

.ah-list {
  margin: 12px 0 16px;
  padding-left: 22px;
}

.ah-list li {
  margin-bottom: 10px;
}

/* Tables - Strictly Left-Aligned */
.ah-table-wrap {
  margin: 32px 0;
  overflow-x: auto;
  border: 1px solid var(--ah-border);
  border-radius: var(--ah-radius-md);
  background: var(--ah-surface);
}

.ah-table-caption {
  padding: 16px 20px;
  background: var(--ah-surface-alt);
  border-bottom: 1px solid var(--ah-border);
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--ah-heading);
  text-align: left;
}

.ah-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.ah-table th,
.ah-table td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--ah-border-subtle);
  font-size: 0.95rem;
}

.ah-table th {
  background: #F8FAFC;
  color: var(--ah-heading);
  font-weight: 800;
  font-family: 'Montserrat', sans-serif;
}

.ah-table tr:last-child td {
  border-bottom: none;
}

/* Interactive Operational Maturity Diagnostic */
.ah-diag-panel {
  background: linear-gradient(180deg, #FFFFFF 0%, #FAF5FF 100%);
  border: 2px solid #D8B4FE;
  border-radius: var(--ah-radius-lg);
  padding: 32px;
  margin: 36px 0;
}

.ah-diag-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 28px;
  margin-top: 20px;
}

.ah-diag-box {
  background: var(--ah-surface);
  border: 1px solid var(--ah-border-subtle);
  border-radius: var(--ah-radius-md);
  padding: 24px;
}

.ah-diag-box h3 {
  font-size: 1.12rem;
  margin-bottom: 14px;
}

.ah-check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--ah-border-subtle);
  font-size: 0.92rem;
  cursor: pointer;
}

.ah-check-item:last-child {
  border-bottom: none;
}

.ah-check-item input[type="checkbox"] {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: var(--ah-primary);
  flex-shrink: 0;
}

.ah-range {
  width: 100%;
  accent-color: var(--ah-primary);
  cursor: pointer;
}

.ah-score-card {
  background: var(--ah-surface-alt);
  border: 1px solid var(--ah-border);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 16px;
}

.ah-score-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--ah-primary);
  line-height: 1.1;
}

.ah-progress-track {
  width: 100%;
  height: 10px;
  background: #E2E8F0;
  border-radius: 999px;
  overflow: hidden;
  margin: 10px 0;
}

.ah-progress-fill {
  height: 100%;
  background: var(--ah-primary);
  width: 17%;
  transition: width 0.25s ease;
}

.ah-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--ah-border-subtle);
  font-size: 0.9rem;
}

/* FAQ */
.ah-faq-list {
  display: grid;
  gap: 14px;
}

.ah-faq-item {
  background: var(--ah-surface);
  border: 1px solid var(--ah-border);
  border-radius: var(--ah-radius-md);
  padding: 18px 22px;
}

.ah-faq-item summary {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ah-heading);
  cursor: pointer;
}

.ah-faq-item p {
  margin: 12px 0 0;
  color: var(--ah-text);
  font-size: 0.96rem;
}

/* Executive Partner Banner - iAgentic (WCAG AA Dark Surface) */
.ah-iagentic-banner {
  background: linear-gradient(135deg, #130924 0%, #1E1B4B 56%, #0F172A 100%);
  border: 1px solid #818CF8;
  border-radius: var(--ah-radius-lg);
  padding: 34px 36px;
  margin: 36px 0;
  color: #FFFFFF;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
}

.ah-iagentic-seal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #312E81;
  border: 1px solid #A5B4FC;
  color: #FFFFFF;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.ah-iagentic-banner h2 {
  color: #FFFFFF;
  font-size: clamp(1.35rem, 2.4vw, 1.72rem);
  margin: 0 0 12px;
}

.ah-iagentic-banner p {
  color: #E2E8F0;
  font-size: 1rem;
  line-height: 1.68;
  margin: 0 0 18px;
  max-width: 900px;
}

.ah-iagentic-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0 0 22px;
}

.ah-iagentic-pillar {
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid rgba(165, 180, 252, 0.34);
  border-radius: 12px;
  padding: 14px 16px;
}

.ah-iagentic-pillar strong {
  display: block;
  color: #FFFFFF;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.94rem;
  margin-bottom: 4px;
}

.ah-iagentic-pillar span {
  display: block;
  color: #E2E8F0;
  font-size: 0.86rem;
  line-height: 1.5;
}

.ah-iagentic-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.ah-btn-iagentic-emerald {
  background: #34D399;
  color: #0F172A !important;
  border-color: #34D399;
}

.ah-btn-iagentic-emerald:hover {
  background: #6EE7B7;
  color: #0F172A !important;
}

.ah-btn-iagentic-light {
  background: #FFFFFF;
  color: #0F172A !important;
  border-color: #FFFFFF;
}

.ah-btn-iagentic-light:hover {
  background: #F1F5F9;
  color: #0F172A !important;
}

.ah-btn-iagentic-dark {
  background: #1E293B;
  color: #FFFFFF !important;
  border-color: #64748B;
}

.ah-btn-iagentic-dark:hover {
  background: #334155;
  color: #FFFFFF !important;
}

/* Ecosystem Partners Grid (WCAG AA Light Cards) */
.ah-ecosystem-section {
  margin: 36px 0;
  padding-top: 28px;
  border-top: 1px solid var(--ah-border-subtle);
}

.ah-ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.ah-ecosystem-card {
  background: #FFFFFF;
  border: 1px solid var(--ah-border);
  border-radius: var(--ah-radius-md);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.ah-ecosystem-card-featured {
  grid-column: 1 / -1;
  background: linear-gradient(180deg, #FAF5FF 0%, #FFFFFF 100%);
  border: 2px solid #581C87;
  box-shadow: 0 8px 24px rgba(88, 28, 135, 0.08);
}

.ah-ecosystem-tag {
  display: inline-block;
  background: #581C87;
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.ah-ecosystem-tag-std {
  display: inline-block;
  background: #F3E8FF;
  color: #581C87;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.ah-ecosystem-card h3 {
  color: #0F172A;
  font-size: 1.12rem;
  margin: 0 0 8px;
}

.ah-ecosystem-card p {
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.ah-ecosystem-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.ah-ecosystem-cta {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  color: #581C87;
  text-decoration: none;
}

.ah-ecosystem-cta:hover {
  color: #3B0764;
  text-decoration: underline;
}

/* CTA Banner */
.ah-cta-banner {
  background: #1E1B4B;
  color: #F8FAFC;
  border-radius: var(--ah-radius-lg);
  padding: 36px;
  margin: 40px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.ah-cta-banner h2 {
  color: #FFFFFF;
  font-size: 1.55rem;
  margin-bottom: 8px;
}

.ah-cta-banner p {
  margin: 0;
  color: #E2E8F0;
  max-width: 620px;
}

.ah-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Prev / Next */
.ah-prev-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 36px 0 56px;
}

.ah-nav-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 24px;
  background: var(--ah-surface);
  border: 1px solid var(--ah-border);
  border-radius: var(--ah-radius-md);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.ah-nav-card:hover {
  border-color: var(--ah-primary);
  transform: translateY(-2px);
}

.ah-nav-card-right {
  text-align: right;
}

.ah-nav-dir {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ah-primary);
  margin-bottom: 6px;
}

.ah-nav-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ah-heading);
}

/* Hub Grid */
.ah-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 32px 0 60px;
}

.ah-hub-card {
  background: var(--ah-surface);
  border: 1px solid var(--ah-border);
  border-radius: var(--ah-radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ah-hub-card:hover {
  transform: translateY(-3px);
  border-color: var(--ah-primary);
}

.ah-hub-card h2 {
  font-size: 1.25rem;
  margin: 12px 0 10px;
}

.ah-hub-card h2 a {
  text-decoration: none;
  color: var(--ah-heading);
}

.ah-hub-card h2 a:hover {
  color: var(--ah-primary);
}

.ah-hub-card p {
  font-size: 0.95rem;
  color: var(--ah-muted);
  margin: 0 0 20px;
}

/* Footer */
.ah-footer {
  background: #FFFFFF;
  border-top: 1px solid var(--ah-border);
  padding: 40px 0;
  font-size: 0.88rem;
  color: var(--ah-muted);
}

.ah-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

@media (max-width: 860px) {
  .ah-diag-grid,
  .ah-prev-next,
  .ah-hub-grid,
  .ah-iagentic-pillars,
  .ah-ecosystem-grid {
    grid-template-columns: 1fr;
  }
  .ah-iagentic-banner {
    padding: 26px 22px;
  }
  .ah-nav-card-right {
    text-align: left;
  }
  .ah-article-card {
    padding: 24px 20px;
  }
}
