/* ========================================================================
   VANAPA LAND — Land Advisor page styles
   Brand chrome reuses style.css. Generated report uses clean light theme
   for print/PDF/Word legibility (per land-advisor skill spec).
   ======================================================================== */

/* ============ ACTIVE NAV LINK ============ */
.nav__link--active { color: var(--accent) !important; }
.nav__link--active::after {
  content: '';
  display: block; height: 1px;
  background: var(--accent);
  margin-top: 4px;
  transform: scaleX(1);
}

/* ============ HERO ============ */
.advisor-hero {
  position: relative;
  padding: 160px 40px 60px;
  text-align: center;
  z-index: 5;
}
.advisor-hero__content { max-width: 920px; margin: 0 auto 60px; }
.advisor-hero__label {
  font-size: 13px; letter-spacing: 6px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 24px; font-weight: 500;
}
.advisor-hero__title {
  font-size: clamp(56px, 9vw, 120px);
  font-weight: 700; line-height: 1.0;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 60%, var(--accent-hover) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 24px;
}
.advisor-hero__subtitle {
  font-size: clamp(15px, 1.4vw, 19px);
  color: var(--text-secondary);
  max-width: 720px; margin: 0 auto;
  line-height: 1.7;
}

/* ============ SELECTOR PANEL ============ */
.advisor-selector {
  max-width: 1100px; margin: 0 auto;
  background: rgba(212, 169, 78, 0.07);
  border: 1px solid rgba(212, 169, 78, 0.22);
  border-radius: 20px;
  padding: 36px 40px;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(60,45,30,0.10);
}
.advisor-selector__grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 20px;
  align-items: end;
}
.advisor-field { display: flex; flex-direction: column; }
.advisor-field--btn { align-self: stretch; }
.advisor-label {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}
.advisor-select {
  background: #FFFFFF;
  border: 1px solid rgba(212, 169, 78, 0.25);
  color: var(--text-primary);
  padding: 14px 18px;
  font-size: 15px;
  border-radius: var(--radius-input);
  font-family: var(--font-body);
  cursor: pointer;
  transition: all var(--ease);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23D4A94E' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.advisor-select:hover { border-color: var(--accent); background-color: #FBF6EE; }
.advisor-select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.advisor-select:disabled { opacity: 0.4; cursor: not-allowed; }
.advisor-select option { background: var(--bg-primary); color: var(--text-primary); }

.advisor-btn {
  background: var(--accent);
  color: #2A1F14;
  border: none;
  padding: 16px 32px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: all var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  min-height: 52px;
  white-space: nowrap;
}
.advisor-btn:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(212, 169, 78, 0.3);
}
.advisor-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.advisor-btn__arrow { font-size: 18px; transition: transform var(--ease); }
.advisor-btn:hover:not(:disabled) .advisor-btn__arrow { transform: translateX(4px); }

.advisor-selector__hint {
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-tertiary);
  text-align: center;
  letter-spacing: 0.5px;
}

/* ============ REPORT AREA ============ */
.report-area {
  position: relative;
  padding: 40px 24px 100px;
  z-index: 5;
}

/* Empty state */
.report-empty {
  max-width: 600px; margin: 80px auto;
  text-align: center;
  color: var(--text-tertiary);
}
.report-empty__icon {
  width: 80px; height: 80px;
  margin: 0 auto 24px;
  color: var(--accent);
  opacity: 0.5;
}
.report-empty__title {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.report-empty__text {
  font-size: 16px; line-height: 1.7;
  color: var(--text-secondary);
}

/* Action bar */
.report-actions {
  max-width: 920px; margin: 0 auto 24px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
  padding: 0 12px;
}
.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid rgba(212,169,78,0.3);
  color: var(--text-primary);
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--ease);
  font-family: var(--font-body);
}
.action-btn svg { width: 18px; height: 18px; }
.action-btn:hover {
  background: var(--accent);
  color: #2A1F14;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(60,45,30,0.12);
}
.action-btn--word:hover { background: #2B579A; color: white; border-color: #2B579A; }
.action-btn--pdf:hover { background: #D9382C; color: white; border-color: #D9382C; }

/* ========================================================================
   REPORT CONTAINER — clean light theme (land-advisor skill spec)
   ======================================================================== */
.report-container {
  max-width: 920px;
  margin: 0 auto;
  background: #ffffff;
  color: #2c3e50;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Kanit', 'Sarabun', sans-serif;
  line-height: 1.6;
}
.report-container * { box-sizing: border-box; }
.report-container h1, .report-container h2, .report-container h3, .report-container h4 {
  font-family: inherit;
  color: #1a2733;
  letter-spacing: 0;
}

/* ----- 1. HEADER BANNER ----- */
.rpt-header {
  background: linear-gradient(135deg, #1a5276 0%, #2874a6 100%);
  color: white;
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
}
.rpt-header::after {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 70%);
  border-radius: 50%;
}
.rpt-header__brand {
  font-size: 12px; letter-spacing: 4px;
  opacity: 0.7;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.rpt-header__title {
  font-size: 34px; font-weight: 700;
  margin-bottom: 6px;
  color: white;
}
.rpt-header__subtitle {
  font-size: 17px; opacity: 0.85;
  margin-bottom: 24px;
}
.rpt-pills {
  display: flex; flex-wrap: wrap; gap: 10px;
  position: relative; z-index: 1;
}
.rpt-pill {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.rpt-pill__label { opacity: 0.7; margin-right: 6px; }
.rpt-pill__value { font-weight: 700; }

/* ----- 2. EXECUTIVE SUMMARY ----- */
.rpt-section { padding: 32px 36px; }
.rpt-section--alt { background: #f8f9fa; }
.rpt-section__title {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #1a5276;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.rpt-section__title::before {
  content: '';
  width: 24px; height: 2px;
  background: #1a5276;
}
.rpt-exec {
  background: white;
  border-left: 4px solid #27ae60;
  border-radius: 8px;
  padding: 26px 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.rpt-exec__badge {
  display: inline-block;
  background: #27ae60;
  color: white;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}
.rpt-exec__statement {
  font-size: 19px;
  font-weight: 600;
  color: #1a2733;
  line-height: 1.5;
  margin-bottom: 16px;
}
.rpt-exec__headline {
  font-size: 28px;
  font-weight: 800;
  color: #27ae60;
}

/* ----- 3. LAND PROFILE GRID ----- */
.rpt-profile {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.rpt-profile__card {
  background: white;
  border-radius: 8px;
  padding: 18px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border: 1px solid #ecf0f1;
}
.rpt-profile__label {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #7f8c8d;
  margin-bottom: 6px;
  font-weight: 600;
}
.rpt-profile__value {
  font-size: 16px;
  font-weight: 600;
  color: #1a2733;
}
.rpt-profile__note {
  font-size: 13px;
  color: #7f8c8d;
  margin-top: 4px;
}

/* ----- 4. OPTIONS CARDS ----- */
.rpt-options { display: flex; flex-direction: column; gap: 16px; }
.rpt-option {
  background: white;
  border-radius: 12px;
  padding: 24px 26px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  border: 1px solid #ecf0f1;
}
.rpt-option__header {
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}
.rpt-option__name {
  font-size: 20px;
  font-weight: 700;
  color: #1a2733;
}
.rpt-option__tag {
  display: inline-block;
  background: #ecf0f1;
  color: #34495e;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  margin-left: 10px;
  vertical-align: middle;
}
.rpt-option__badge {
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  white-space: nowrap;
  color: white;
}
.rpt-option__badge--top { background: #27ae60; }
.rpt-option__badge--alt { background: #f39c12; }
.rpt-option__badge--no  { background: #95a5a6; }

.rpt-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 16px 0 18px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
}
.rpt-metric { text-align: center; }
.rpt-metric__label {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #7f8c8d;
  margin-bottom: 4px;
}
.rpt-metric__value {
  font-size: 18px;
  font-weight: 800;
  color: #1a5276;
}

.rpt-option__desc {
  font-size: 14px;
  color: #34495e;
  line-height: 1.65;
  margin-bottom: 14px;
}
.rpt-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 14px;
}
.rpt-list { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.rpt-list li {
  padding: 4px 0 4px 22px;
  position: relative;
  color: #34495e;
  line-height: 1.5;
}
.rpt-list--pro li::before {
  content: '✓';
  position: absolute; left: 0; top: 4px;
  color: #27ae60;
  font-weight: 700;
}
.rpt-list--con li::before {
  content: '✕';
  position: absolute; left: 0; top: 4px;
  color: #e74c3c;
  font-weight: 700;
}
.rpt-risk-bar {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; color: #7f8c8d;
}
.rpt-risk-bar__label { text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.rpt-risk-bar__bar {
  flex: 1;
  height: 6px;
  background: #ecf0f1;
  border-radius: 100px;
  overflow: hidden;
  position: relative;
}
.rpt-risk-bar__fill {
  height: 100%;
  border-radius: 100px;
  transition: width 0.6s ease;
}
.rpt-risk-bar__level {
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
}
.risk-low .rpt-risk-bar__fill { width: 30%; background: #27ae60; }
.risk-low .rpt-risk-bar__level { color: #27ae60; }
.risk-med .rpt-risk-bar__fill { width: 60%; background: #f39c12; }
.risk-med .rpt-risk-bar__level { color: #f39c12; }
.risk-high .rpt-risk-bar__fill { width: 90%; background: #e74c3c; }
.risk-high .rpt-risk-bar__level { color: #e74c3c; }

/* ----- 5. FINANCIAL COMPARISON ----- */
.rpt-table-wrap { overflow-x: auto; }
.rpt-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  font-size: 14px;
}
.rpt-table th, .rpt-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #ecf0f1;
}
.rpt-table th {
  background: #1a5276;
  color: white;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.3px;
}
.rpt-table tbody tr:nth-child(even) td { background: #f8f9fa; }
.rpt-table td.best {
  background: #d5f5e3 !important;
  font-weight: 700;
  color: #1e8449;
}
.rpt-table td:first-child {
  font-weight: 600;
  color: #34495e;
}

/* ----- 6. TIMELINE ROADMAP ----- */
.rpt-timeline {
  position: relative;
  padding: 8px 0;
}
.rpt-timeline::before {
  content: '';
  position: absolute;
  left: 30px; top: 30px; bottom: 30px;
  width: 2px;
  background: linear-gradient(180deg, #27ae60, #2874a6, #8e44ad);
}
.rpt-phase {
  position: relative;
  padding: 12px 0 12px 70px;
  margin-bottom: 8px;
}
.rpt-phase__dot {
  position: absolute;
  left: 20px; top: 14px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: white;
  border: 3px solid #27ae60;
  z-index: 1;
}
.rpt-phase--med .rpt-phase__dot { border-color: #2874a6; }
.rpt-phase--long .rpt-phase__dot { border-color: #8e44ad; }
.rpt-phase__time {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  color: #27ae60;
  margin-bottom: 4px;
}
.rpt-phase--med .rpt-phase__time { color: #2874a6; }
.rpt-phase--long .rpt-phase__time { color: #8e44ad; }
.rpt-phase__title { font-size: 16px; font-weight: 700; color: #1a2733; margin-bottom: 4px; }
.rpt-phase__desc { font-size: 14px; color: #7f8c8d; line-height: 1.6; }

/* ----- 7. RISK GRID ----- */
.rpt-risk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin: 16px 0 20px;
  max-width: 480px;
}
.rpt-risk-cell {
  aspect-ratio: 1.6;
  border-radius: 6px;
  padding: 10px;
  font-size: 11px;
  color: white;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.3;
}
/* 3x3 matrix - rows: high impact top, low impact bottom; cols: low likely left, high likely right */
.rpt-risk-cell.l-l { background: #27ae60; }
.rpt-risk-cell.m-l { background: #2ecc71; }
.rpt-risk-cell.l-m { background: #2ecc71; }
.rpt-risk-cell.m-m { background: #f39c12; }
.rpt-risk-cell.h-l, .rpt-risk-cell.l-h { background: #f39c12; }
.rpt-risk-cell.h-m, .rpt-risk-cell.m-h { background: #e67e22; }
.rpt-risk-cell.h-h { background: #c0392b; }

.rpt-risk-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.rpt-risk-item {
  background: white;
  border-radius: 8px;
  padding: 14px 18px;
  border-left: 3px solid #e74c3c;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  font-size: 14px;
}
.rpt-risk-item--med { border-left-color: #f39c12; }
.rpt-risk-item--low { border-left-color: #27ae60; }
.rpt-risk-item__title { font-weight: 700; color: #1a2733; margin-bottom: 4px; }
.rpt-risk-item__mit { color: #7f8c8d; font-size: 13px; }
.rpt-risk-item__mit strong { color: #34495e; }

/* ----- 8. ACTION STEPS ----- */
.rpt-steps { display: flex; flex-direction: column; gap: 12px; }
.rpt-step {
  display: flex; gap: 16px;
  background: white;
  border-radius: 10px;
  padding: 16px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border: 1px solid #ecf0f1;
}
.rpt-step__num {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a5276, #2874a6);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 15px;
}
.rpt-step__body { flex: 1; }
.rpt-step__title { font-size: 15px; font-weight: 700; color: #1a2733; margin-bottom: 4px; }
.rpt-step__desc { font-size: 13px; color: #7f8c8d; line-height: 1.55; margin-bottom: 8px; }
.rpt-step__meta {
  display: flex; gap: 12px; flex-wrap: wrap;
  font-size: 11px;
  color: #95a5a6;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.rpt-step__meta strong { color: #1a5276; }

/* ----- 9. FOOTER ----- */
.rpt-footer {
  padding: 26px 36px;
  background: #ecf0f1;
  color: #7f8c8d;
  font-size: 12px;
  line-height: 1.6;
  border-top: 1px solid #d5dbdb;
}
.rpt-footer p { margin-bottom: 4px; }
.rpt-footer strong { color: #34495e; }

/* ============ ADVISOR FOOTER ============ */
.advisor-footer {
  position: relative;
  padding: 40px 24px;
  text-align: center;
  border-top: 1px solid rgba(212,169,78,0.1);
  z-index: 5;
}
.advisor-footer__container {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; flex-direction: column;
  gap: 16px; align-items: center;
}
.advisor-footer__text {
  font-size: 12px;
  color: var(--text-tertiary);
  max-width: 720px;
  line-height: 1.7;
}

/* ============ LANG TOGGLE (matches existing) ============ */
.nav__lang-toggle {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 100px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all var(--ease);
}
.nav__lang-toggle:hover { background: var(--accent); color: var(--bg-primary); }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .advisor-hero { padding: 120px 20px 40px; }
  .advisor-selector { padding: 24px 20px; }
  .advisor-selector__grid { grid-template-columns: 1fr; }
  .rpt-section { padding: 24px 20px; }
  .rpt-header { padding: 28px 22px; }
  .rpt-header__title { font-size: 26px; }
  .rpt-profile { grid-template-columns: 1fr; }
  .rpt-metrics { grid-template-columns: repeat(2, 1fr); }
  .rpt-pros-cons { grid-template-columns: 1fr; }
  .rpt-option__header { flex-direction: column; }
  .report-actions { justify-content: center; }
}

/* ============ PRINT ============ */
@media print {
  body { background: white !important; }
  body::after, .ribbon-bg, .nav, .advisor-hero, .advisor-footer, .report-actions, .report-empty { display: none !important; }
  .report-area { padding: 0 !important; }
  .report-container {
    box-shadow: none !important;
    border-radius: 0 !important;
    max-width: 100% !important;
  }
  .rpt-option, .rpt-profile__card, .rpt-exec, .rpt-step, .rpt-risk-item, .rpt-table {
    box-shadow: none !important;
    page-break-inside: avoid;
  }
  .rpt-section { page-break-inside: avoid; }
}
