/* ═══════════════════════════════════════════════════════════════════
   GLOBAL FISHERS INVESTMENT — SHARED PAGES STYLES
   Comprehensive styling for all public pages, legal suite, and error pages
   ═══════════════════════════════════════════════════════════════════ */

/* Page Hero */
.page-hero {
  position: relative;
  padding: calc(var(--nav-height) + var(--space-12)) 0 var(--space-12);
  background: radial-gradient(circle at 50% 0%, rgba(26, 107, 74, 0.28), transparent 75%), var(--surface-dark-1);
  border-bottom: 1px solid rgba(46, 170, 111, 0.15);
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(rgba(201, 168, 76, 0.05) 1px, transparent 1px),
    radial-gradient(rgba(46, 170, 111, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: 0 0, 16px 16px;
  pointer-events: none;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-subtle);
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.breadcrumb a {
  color: var(--color-mint);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--color-gold-light);
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-white);
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

.page-hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  max-width: 720px;
}

/* Sections General */
.page-section {
  padding: var(--space-16) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Investment Solutions Page */
.calculator-box {
  background: linear-gradient(135deg, var(--surface-dark-2), var(--surface-dark-3));
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  margin: var(--space-10) 0;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 900px) {
  .calc-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.calc-group label {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-2);
  font-weight: 500;
}

.calc-val-display {
  font-family: var(--font-mono);
  color: var(--color-gold);
  font-weight: 700;
}

.calc-slider {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  outline: none;
  accent-color: var(--color-emerald-light);
  cursor: pointer;
}

.calc-select, .calc-input-text {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: rgba(7, 15, 12, 0.6);
  border: 1px solid rgba(46, 170, 111, 0.25);
  border-radius: var(--radius-lg);
  color: var(--color-white);
  font-family: inherit;
  font-size: var(--text-base);
}

.calc-results {
  background: var(--surface-dark-1);
  border: 1px solid rgba(46, 170, 111, 0.2);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.calc-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.calc-result-item:last-child {
  border-bottom: none;
}

.calc-result-label {
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.calc-result-value {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-white);
}

.calc-result-highlight {
  color: var(--color-mint);
  font-size: var(--text-xl);
}

/* Comparison Table */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--surface-dark-2);
  margin-top: var(--space-8);
}

.tier-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 780px;
}

.tier-table th, .tier-table td {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tier-table th {
  background: var(--surface-dark-3);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-subtle);
  font-weight: 600;
}

.tier-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.tier-table .tier-name {
  font-weight: 600;
  color: var(--color-white);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* Insights Articles */
.insights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-top: var(--space-8);
}

@media (min-width: 768px) {
  .insights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .insights-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.insight-card {
  background: var(--surface-dark-2);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.insight-card:hover {
  transform: translateY(-5px);
  border-color: rgba(46, 170, 111, 0.4);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}

.insight-banner {
  height: 190px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-forest), var(--color-forest-dark));
}

.insight-banner-badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  background: rgba(7, 15, 12, 0.85);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-mint);
  border: 1px solid rgba(46, 170, 111, 0.3);
}

.insight-body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.insight-meta {
  font-size: var(--text-xs);
  color: var(--color-muted);
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.insight-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-white);
  line-height: 1.35;
  margin-bottom: var(--space-3);
}

.insight-excerpt {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
  margin-bottom: var(--space-5);
  flex: 1;
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
}

@media (min-width: 992px) {
  .contact-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

.contact-form-card {
  background: var(--surface-dark-2);
  border: 1px solid rgba(46, 170, 111, 0.2);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.offices-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 600px) {
  .offices-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.office-card {
  background: var(--surface-dark-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
}

.office-city {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-white);
  margin-bottom: var(--space-1);
}

.office-address {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.6;
}

/* Legal Suite Styles */
.legal-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  margin-top: var(--space-10);
}

@media (min-width: 992px) {
  .legal-layout {
    grid-template-columns: 280px 1fr;
  }
}

.legal-nav {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-6));
  background: var(--surface-dark-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.legal-nav-link {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-muted);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.legal-nav-link:hover, .legal-nav-link.active {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.05);
}

.legal-nav-link.active {
  color: var(--color-mint);
  font-weight: 600;
}

.legal-content {
  background: var(--surface-dark-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-white);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  font-size: var(--text-lg);
  color: var(--color-gold-light);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}

.legal-content p, .legal-content li {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  margin-bottom: var(--space-4);
}

.legal-content ul, .legal-content ol {
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}

/* FAQ Accordion Styling */
.faq-search-box {
  max-width: 600px;
  margin: 0 auto var(--space-10);
  position: relative;
}

.faq-search-input {
  width: 100%;
  padding: var(--space-4) var(--space-5) var(--space-4) 48px;
  background: var(--surface-dark-2);
  border: 1px solid rgba(46, 170, 111, 0.25);
  border-radius: var(--radius-full);
  color: var(--color-white);
  font-size: var(--text-base);
  outline: none;
  transition: border-color var(--transition-fast);
}

.faq-search-input:focus {
  border-color: var(--color-emerald-light);
  box-shadow: 0 0 0 3px rgba(46, 170, 111, 0.15);
}

.faq-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-muted);
}

.faq-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
  margin-bottom: var(--space-8);
}

.faq-chip {
  background: var(--surface-dark-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.faq-chip:hover, .faq-chip.active {
  background: var(--color-emerald);
  color: var(--color-white);
  border-color: var(--color-emerald-light);
}

.faq-item {
  background: var(--surface-dark-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-3);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item.open {
  border-color: rgba(46, 170, 111, 0.35);
}

.faq-question-btn {
  width: 100%;
  padding: var(--space-5) var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
}

.faq-icon-arrow {
  transition: transform 0.25s ease;
  color: var(--color-gold);
}

.faq-item.open .faq-icon-arrow {
  transform: rotate(180deg);
}

.faq-answer-panel {
  padding: 0 var(--space-6) var(--space-5);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  display: none;
}

.faq-item.open .faq-answer-panel {
  display: block;
}

/* Error Pages */
.error-page-wrapper {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-12) var(--space-4);
}

.error-code {
  font-family: var(--font-mono);
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-gold), var(--color-emerald-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: var(--space-4);
}
