/* Avaliação Estratégica — Relatório Executivo Digital */

:root {
  --green-dark: #0d2818;
  --green-mid: #1a3d2e;
  --green-light: #2d5a45;
  --gold: #c9a227;
  --gold-light: #e8c547;
  --gold-muted: rgba(201, 162, 39, 0.15);
  --white: #ffffff;
  --gray-50: #f7f8fa;
  --gray-100: #eef1f5;
  --gray-200: #d8dee6;
  --gray-400: #8b95a5;
  --gray-600: #5a6478;
  --gray-800: #2a3142;
  --blue-dark: #0f2d5c;
  --shadow-sm: 0 2px 8px rgba(13, 40, 24, 0.06);
  --shadow-md: 0 8px 32px rgba(13, 40, 24, 0.1);
  --shadow-lg: 0 16px 48px rgba(13, 40, 24, 0.14);
  --radius: 12px;
  --radius-lg: 20px;
  --font-display: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --nav-height: 72px;
  --status-maintain: #2d8a4e;
  --status-review: #c9a227;
  --status-fix: #c0392b;
  --status-secondary: #6b7280;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 16px);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--gray-800);
  background: var(--gray-50);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--green-light);
  text-decoration: none;
}

/* ── Navigation ── */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(13, 40, 24, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 162, 39, 0.2);
  transition: box-shadow 0.3s ease;
}

.site-nav.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar { display: none; }

.nav-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.nav-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:active { transform: scale(0.98); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--green-dark);
  box-shadow: 0 2px 12px rgba(201, 162, 39, 0.35);
}

.btn-gold:hover {
  box-shadow: 0 4px 20px rgba(201, 162, 39, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
}

/* ── Hero ── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 48px) 24px 80px;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(201, 162, 39, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(45, 90, 69, 0.3) 0%, transparent 50%),
    linear-gradient(165deg, var(--green-dark) 0%, #0a1f14 40%, var(--green-mid) 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 80px,
      rgba(201, 162, 39, 0.03) 80px,
      rgba(201, 162, 39, 0.03) 81px
    );
  pointer-events: none;
}

.hero-accent {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.08) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 860px;
  text-align: center;
  animation: fadeUp 0.8s ease-out;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  margin-bottom: 24px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 100px;
  background: rgba(201, 162, 39, 0.08);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.hero h1 span {
  display: block;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  color: var(--gold-light);
  margin-top: 12px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: rgba(255, 255, 255, 0.72);
  max-width: 640px;
  margin: 24px auto 40px;
  line-height: 1.7;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-meta-item {
  text-align: center;
}

.hero-meta-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 4px;
}

.hero-meta-value {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--white);
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: pulse 2s ease-in-out infinite;
}

/* ── Sections ── */

.section {
  padding: 80px 24px;
}

.section-alt {
  background: var(--white);
}

.section-dark {
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.85);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 48px;
  max-width: 720px;
}

.section-label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-dark .section-label {
  color: var(--gold-light);
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--green-dark);
  margin-bottom: 16px;
}

.section-dark .section-header h2 {
  color: var(--white);
}

.section-header p {
  font-size: 1.0625rem;
  color: var(--gray-600);
  line-height: 1.75;
}

.section-dark .section-header p {
  color: rgba(255, 255, 255, 0.65);
}

/* ── Cards ── */

.card-grid {
  display: grid;
  gap: 20px;
}

.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--gold-muted);
  color: var(--gold);
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 8px;
}

.card p {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.65;
}

.card-highlight {
  border-left: 3px solid var(--gold);
}

.card-alert {
  border-left-color: #c0392b;
  background: linear-gradient(135deg, rgba(192, 57, 43, 0.06), #fff);
}

.card-icon-alert {
  background: rgba(192, 57, 43, 0.12);
  color: #c0392b;
}

.text-critical {
  color: #c0392b;
}

/* ── Finding blocks ── */

.finding {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: start;
  padding: 36px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  margin-bottom: 24px;
}

.finding-number {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--gold-muted);
  color: transparent;
  -webkit-text-stroke: 2px var(--gold);
  min-width: 80px;
}

.finding-content h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 12px;
}

.finding-content p {
  color: var(--gray-600);
  margin-bottom: 12px;
}

.finding-list {
  list-style: none;
  margin-top: 12px;
}

.finding-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
  color: var(--gray-600);
  font-size: 0.9375rem;
}

.finding-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* ── Audit status ── */

.audit-group {
  margin-bottom: 36px;
}

.audit-group-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.audit-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 100px;
}

.audit-badge-critical {
  background: rgba(192, 57, 43, 0.1);
  color: #c0392b;
  border: 1px solid rgba(192, 57, 43, 0.25);
}

.audit-badge-warning {
  background: rgba(201, 162, 39, 0.12);
  color: #9a7b1a;
  border: 1px solid rgba(201, 162, 39, 0.3);
}

.audit-badge-secondary {
  background: rgba(107, 114, 128, 0.1);
  color: var(--gray-600);
  border: 1px solid rgba(107, 114, 128, 0.2);
}

.audit-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  border-left: 4px solid transparent;
}

.audit-card.critical {
  border-left-color: var(--status-fix);
  border-color: rgba(192, 57, 43, 0.35);
  background: linear-gradient(135deg, rgba(192, 57, 43, 0.08) 0%, rgba(255, 255, 255, 0.95) 100%);
  box-shadow: 0 0 0 1px rgba(192, 57, 43, 0.12), var(--shadow-md);
}

.audit-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.audit-card-head h4 {
  margin-bottom: 0;
}

.audit-card.warning { border-left-color: var(--status-review); }
.audit-card.secondary { border-left-color: var(--status-secondary); }

.audit-card.ok {
  border-left-color: var(--status-maintain);
  border-color: rgba(45, 138, 78, 0.2);
  background: linear-gradient(135deg, rgba(45, 138, 78, 0.06) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.broken-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: #c0392b;
  border-radius: 6px;
  animation: alertPulse 2.5s ease-in-out infinite;
}

.ok-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--status-maintain);
  border-radius: 6px;
}

.warning-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: var(--gold-light);
  border-radius: 6px;
}

.audit-error-box {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(192, 57, 43, 0.12);
  border: 1px dashed rgba(192, 57, 43, 0.45);
}

.audit-error-box strong {
  display: block;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c0392b;
  margin-bottom: 6px;
}

.audit-error-box code {
  display: block;
  font-family: "Consolas", monospace;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #922b21;
  word-break: break-all;
}

.audit-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--green-light);
}

.audit-link:hover { text-decoration: underline; }

/* ── Critical alerts panel ── */

.critical-panel {
  margin-top: 40px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(192, 57, 43, 0.12), rgba(192, 57, 43, 0.04));
  border: 2px solid rgba(192, 57, 43, 0.35);
  box-shadow: var(--shadow-md);
}

.critical-panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.critical-panel-header i {
  font-size: 1.5rem;
  color: #c0392b;
}

.critical-panel-header h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #922b21;
}

.critical-panel-header p {
  margin-left: auto;
  font-size: 0.8125rem;
  color: #c0392b;
  font-weight: 600;
}

.broken-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.broken-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  border: 2px solid rgba(192, 57, 43, 0.4);
  position: relative;
  overflow: hidden;
}

.broken-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #c0392b;
}

.broken-card h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-dark);
  margin: 8px 0 10px;
}

.broken-card p {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-bottom: 12px;
}

.broken-card .error-code {
  display: block;
  padding: 10px 12px;
  background: #fdecea;
  border-radius: 6px;
  font-family: "Consolas", monospace;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #c0392b;
  margin-bottom: 10px;
}

.broken-card .impact {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #c0392b;
}

.audit-card h4 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 12px;
}

.audit-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.audit-meta-item {
  font-size: 0.875rem;
}

.audit-meta-item strong {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 2px;
}

.audit-meta-item span {
  color: var(--gray-800);
}

.audit-meta-item code {
  font-family: "Consolas", monospace;
  font-size: 0.8125rem;
  background: var(--gray-100);
  padding: 2px 8px;
  border-radius: 4px;
  color: #c0392b;
}

.audit-card p {
  margin-top: 12px;
  font-size: 0.9375rem;
  color: var(--gray-600);
}

/* ── Gallery ── */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.gallery-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
  transition: transform 0.3s ease;
  position: relative;
}

.gallery-item--broken {
  border: 2px solid rgba(192, 57, 43, 0.55);
  box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.08), var(--shadow-md);
}

.gallery-item--warning {
  border: 2px solid rgba(201, 162, 39, 0.55);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.08), var(--shadow-md);
}

.gallery-item--ok {
  border: 2px solid rgba(45, 138, 78, 0.35);
}

.gallery-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 6px 12px;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 6px;
  color: #fff;
}

.gallery-badge--broken { background: #c0392b; }
.gallery-badge--warning { background: #9a7b1a; color: #fff; }
.gallery-badge--ok { background: var(--status-maintain); }

.gallery-item:hover {
  transform: translateY(-4px);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  background: var(--gray-100);
}

.gallery-item.tall img {
  aspect-ratio: 9 / 16;
  object-fit: contain;
  background: #f0f0f0;
}

.gallery-item.wide img {
  aspect-ratio: 16 / 9;
}

.gallery-caption {
  padding: 16px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--green-dark);
  border-top: 1px solid var(--gray-100);
}

.gallery-caption small {
  display: block;
  margin-top: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-600);
}

.gallery-caption a {
  color: var(--green-light);
  font-weight: 600;
}

.gallery-caption a:hover { text-decoration: underline; }

.gallery-placeholder {
  aspect-ratio: 16 / 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-50));
  padding: 32px;
  text-align: center;
}

.gallery-placeholder i {
  font-size: 2.5rem;
  color: var(--gray-400);
}

.gallery-placeholder p {
  font-size: 0.875rem;
  color: var(--gray-600);
  max-width: 280px;
}

/* ── Priority matrix ── */

.matrix-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
}

.matrix {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.9375rem;
}

.matrix thead {
  background: var(--green-dark);
}

.matrix th {
  padding: 16px 20px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
}

.matrix td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-800);
}

.matrix tbody tr:hover {
  background: var(--gray-50);
}

.matrix tbody tr.row-critical {
  background: rgba(192, 57, 43, 0.08);
}

.matrix tbody tr.row-critical:hover {
  background: rgba(192, 57, 43, 0.12);
}

.matrix tbody tr.row-critical td:first-child {
  font-weight: 700;
  color: #922b21;
}

.matrix tbody tr.row-warning {
  background: rgba(201, 162, 39, 0.06);
}

.matrix tbody tr:last-child td {
  border-bottom: none;
}

.status-pill {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 100px;
  letter-spacing: 0.02em;
}

.status-maintain {
  background: rgba(45, 138, 78, 0.12);
  color: var(--status-maintain);
}

.status-review {
  background: rgba(201, 162, 39, 0.15);
  color: #9a7b1a;
}

.status-fix {
  background: rgba(192, 57, 43, 0.1);
  color: var(--status-fix);
}

.status-secondary {
  background: rgba(107, 114, 128, 0.1);
  color: var(--status-secondary);
}

.importance-high { font-weight: 600; color: var(--green-dark); }
.importance-critical { font-weight: 700; color: #c0392b; }

/* ── Diagnosis layout ── */

.diagnosis-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: start;
}

.diagnosis-visual {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}

.phone-frame {
  background: var(--green-dark);
  border-radius: 28px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
}

.phone-frame img {
  border-radius: 18px;
}

/* ── Portal section ── */

.portal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.opportunity-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.opportunity-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.opportunity-list li i {
  color: var(--gold-light);
  font-size: 0.875rem;
}

/* ── Proposal comparison ── */

.proposal-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.proposal-visual img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-height: 640px;
  margin: 0 auto;
  object-fit: contain;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}

.compare-box {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}

.compare-box.current {
  background: rgba(192, 57, 43, 0.04);
  border-color: rgba(192, 57, 43, 0.15);
}

.compare-box.proposed {
  background: rgba(45, 138, 78, 0.06);
  border-color: rgba(45, 138, 78, 0.2);
}

.compare-box h4 {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.compare-box.current h4 { color: #c0392b; }
.compare-box.proposed h4 { color: var(--status-maintain); }

.compare-box ul {
  list-style: none;
}

.compare-box li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  font-size: 0.9375rem;
  color: var(--gray-600);
}

.compare-box.current li::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: #c0392b;
  font-weight: 700;
}

.compare-box.proposed li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--status-maintain);
  font-weight: 700;
}

/* ── Timeline ── */

.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), var(--green-light));
}

.timeline-item {
  position: relative;
  padding-bottom: 36px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -32px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--gold);
}

.timeline-phase {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 12px;
}

.timeline-list {
  list-style: none;
}

.timeline-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
  font-size: 0.9375rem;
  color: var(--gray-600);
}

.timeline-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--green-light);
}

/* ── KPI cards ── */

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.kpi-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: transform 0.3s ease;
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.kpi-card i {
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 12px;
}

.kpi-card h4 {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--green-dark);
  line-height: 1.4;
}

/* ── Conclusion ── */

.conclusion-box {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  border-radius: var(--radius-lg);
  padding: 48px;
  color: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(201, 162, 39, 0.2);
}

.conclusion-box p {
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.conclusion-box p:last-child {
  margin-bottom: 0;
  font-weight: 500;
  color: var(--gold-light);
}

.note-box {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 32px;
  border-left: 4px solid var(--blue-dark);
}

.note-box p {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 12px;
}

.note-box p:last-child { margin-bottom: 0; }

/* ── Footer ── */

.site-footer {
  background: var(--green-dark);
  padding: 32px 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.8125rem;
  border-top: 1px solid rgba(201, 162, 39, 0.15);
}

/* ── Back to top ── */

.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--green-dark);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--gold-light);
}

/* ── Animations ── */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

@keyframes alertPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(192, 57, 43, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(192, 57, 43, 0); }
}

/* ── Print ── */

@media print {
  .site-nav,
  .back-to-top,
  .hero-scroll,
  .nav-actions,
  .btn-gold { display: none !important; }

  body {
    background: white;
    font-size: 11pt;
  }

  .hero {
    min-height: auto;
    padding: 24px;
    page-break-after: always;
  }

  .section {
    padding: 24px 0;
    page-break-inside: avoid;
  }

  .card, .finding, .audit-card, .gallery-item {
    box-shadow: none;
    border: 1px solid #ddd;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ── Responsive ── */

@media (max-width: 1024px) {
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .diagnosis-layout { grid-template-columns: 1fr; }
  .diagnosis-visual { position: static; max-width: 320px; margin: 0 auto; }
  .proposal-layout { grid-template-columns: 1fr; }
  .portal-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .broken-grid { grid-template-columns: 1fr; }
  .critical-panel-header { flex-wrap: wrap; }
  .critical-panel-header p { margin-left: 0; width: 100%; }
  .card-grid-2,
  .card-grid-3,
  .card-grid-4 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .finding { grid-template-columns: 1fr; gap: 12px; }
  .finding-number { font-size: 2.5rem; }
  .compare-grid { grid-template-columns: 1fr; }
  .opportunity-list { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .hero-meta { gap: 20px; }
  .conclusion-box { padding: 28px; }
}

@media (max-width: 480px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .nav-brand { font-size: 0.65rem; }
}
