/* ==========================================================================
   CA Strategia - Corporate Advisory & Strategic Intelligence Portal
   Clean Human Stylesheet | Established Consulting Platform Design
   ========================================================================== */

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Merriweather', Georgia, 'Times New Roman', serif;
  --color-primary-900: #0f172a;
  --color-primary-800: #1e293b;
  --color-primary-700: #334155;
  --color-brand-blue: #1d4ed8;
  --color-brand-teal: #0d9488;
  --color-brand-amber: #b45309;
  --color-surface: #ffffff;
  --color-surface-subtle: #f8fafc;
  --color-border: #e2e8f0;
}

body {
  font-family: var(--font-sans);
  color: #1e293b;
  background-color: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Institutional Typography */
h1, h2, h3, .font-display {
  letter-spacing: -0.02em;
}

.font-serif-title {
  font-family: var(--font-serif);
}

/* Hero & Header Styling */
.portal-topbar {
  background: #0f172a;
  color: #94a3b8;
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.portal-navbar {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.nav-link {
  position: relative;
  font-weight: 500;
  color: #475569;
  transition: color 0.2s ease;
  padding: 0.5rem 0.25rem;
}

.nav-link:hover, .nav-link.active {
  color: #0f172a;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #1d4ed8;
  border-radius: 2px;
}

/* Hero Section */
.hero-gradient {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #1e3a8a 100%);
  position: relative;
  overflow: hidden;
}

.hero-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(29, 78, 216, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

/* Established Trust Grid & Cards */
.pillar-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -10px rgba(15, 23, 42, 0.08);
  border-color: #cbd5e1;
}

/* Interactive Calculator Component */
.calc-container {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid #cbd5e1;
  border-radius: 1rem;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05);
}

.calc-range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #cbd5e1;
  outline: none;
}

.calc-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1d4ed8;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(29, 78, 216, 0.4);
  transition: transform 0.1s ease;
}

.calc-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.calc-score-gauge {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 8px solid #e2e8f0;
  border-top-color: #1d4ed8;
  border-right-color: #0d9488;
}

/* Interactive Tabs */
.method-tab-btn {
  padding: 0.75rem 1.25rem;
  border-bottom: 2px solid transparent;
  color: #64748b;
  font-weight: 600;
  transition: all 0.2s ease;
}

.method-tab-btn:hover {
  color: #0f172a;
}

.method-tab-btn.active {
  color: #1d4ed8;
  border-bottom-color: #1d4ed8;
}

/* Interactive Filter Buttons */
.filter-tag {
  padding: 0.4rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 9999px;
  border: 1px solid #cbd5e1;
  background-color: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-tag:hover {
  border-color: #94a3b8;
  background-color: #f1f5f9;
}

.filter-tag.active {
  background-color: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

/* Accordion FAQs */
.faq-header {
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease;
}

.faq-header:hover {
  background-color: #f8fafc;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-header.open .faq-icon {
  transform: rotate(180deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-content.open {
  max-height: 500px;
}

/* Breadcrumb Styling */
.portal-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 1.5rem;
}

.portal-breadcrumb a {
  color: #475569;
  text-decoration: none;
}

.portal-breadcrumb a:hover {
  color: #1d4ed8;
}

/* EEAT & Editorial Disclaimers */
.editorial-notice-bar {
  background-color: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.8125rem;
  color: #475569;
  padding: 0.5rem 1rem;
  text-align: center;
}

.disclaimer-card {
  background-color: #f8fafc;
  border-left: 4px solid #3b82f6;
  padding: 1.25rem;
  border-radius: 0 0.5rem 0.5rem 0;
}

/* Table Styling for Policies & Cookies */
.portal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.875rem;
}

.portal-table th {
  background-color: #f1f5f9;
  color: #0f172a;
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid #cbd5e1;
  font-weight: 600;
}

.portal-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
}

.portal-table tr:hover td {
  background-color: #f8fafc;
}

/* Toast Notification Modal */
.portal-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  transform: translateY(120%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.portal-toast.show {
  transform: translateY(0);
}

/* Footer Styling */
.portal-footer {
  background-color: #0b1120;
  color: #94a3b8;
  font-size: 0.875rem;
  border-top: 1px solid #1e293b;
}

.portal-footer h4 {
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.portal-footer a {
  color: #94a3b8;
  transition: color 0.2s ease;
  text-decoration: none;
}

.portal-footer a:hover {
  color: #ffffff;
}

.badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: rgba(13, 148, 136, 0.1);
  color: #0d9488;
  border: 1px solid rgba(13, 148, 136, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}