/* =========================================
   INSURANCE TOOLS - Design System
   Professional, trustworthy, secure aesthetic
   ========================================= */

:root {
  /* Brand Colors - Trust & Security */
  --accent-primary: #0d9488;     /* Teal - trust */
  --accent-secondary: #0f766e;   /* Dark teal */
  --accent-tertiary: #2563eb;    /* Blue - security */
  --accent-gold: #f59e0b;        /* Amber - highlights */

  /* Backgrounds */
  --bg-primary: #f0fdfa;         /* Light teal tint */
  --bg-secondary: #f8fafc;       /* Neutral gray */
  --bg-tertiary: #e0f2fe;        /* Light blue */
  --bg-card: #ffffff;

  /* Text */
  --text-primary: #134e4a;       /* Dark teal */
  --text-secondary: #475569;     /* Slate */
  --text-muted: #94a3b8;         /* Light slate */

  /* Borders */
  --border-primary: #99f6e4;
  --border-secondary: #5eead4;

  /* Status */
  --success: #16a34a;
  --warning: #f59e0b;
  --error: #dc2626;
  --info: #0284c7;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(13, 148, 136, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(13, 148, 136, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(13, 148, 136, 0.1);
}

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

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

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.main {
  flex: 1;
  padding: var(--space-xl) 0;
}

/* Header */
.header {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  padding: var(--space-md) 0;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
}

.logo-icon {
  font-size: 2rem;
}

.logo span {
  color: var(--accent-gold);
}

.nav {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.nav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

/* Tool Header */
.tool-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.tool-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.tool-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Cards */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-primary);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
}

.card-header {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--border-primary);
}

.card-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Tool Container */
.tool-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .tool-container {
    grid-template-columns: 1fr 1fr;
  }
}

/* Forms */
.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: 2px solid var(--border-primary);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: inherit;
  background: white;
  color: var(--text-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 2px solid var(--border-secondary);
}

.btn-lg {
  padding: var(--space-md) var(--space-xl);
  font-size: 1.1rem;
}

/* Results */
.result {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  color: white;
}

.result-title {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.result-value {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.result-item {
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
}

.result-item-label {
  font-size: 0.75rem;
  opacity: 0.9;
  margin-bottom: 0.25rem;
}

.result-item-value {
  font-size: 1.2rem;
  font-weight: 700;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-md);
}

th, td {
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--border-primary);
}

th {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-transform: uppercase;
}

.text-right {
  text-align: right;
}

/* Info Box */
.info-box {
  background: var(--bg-tertiary);
  border-left: 4px solid var(--accent-primary);
  padding: var(--space-md);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.info-box strong {
  color: var(--text-primary);
}

/* Warning Box */
.warning-box {
  background: #fef3c7;
  border-left: 4px solid var(--warning);
  padding: var(--space-md);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 0.9rem;
  color: #92400e;
}

/* Ad Placeholder - Hidden until traffic grows */
.ad-header {
  display: none; /* TODO: Remove this when ready for ads */
  background: var(--bg-secondary);
  border: 2px dashed var(--border-secondary);
  border-radius: var(--radius-md);
  padding: var(--space-xl) var(--space-md);
  text-align: center;
  margin-bottom: var(--space-xl);
}

.ad-header span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Footer */
.footer {
  background: var(--text-primary);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--space-xl) 0;
  margin-top: auto;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-copy {
  font-size: 0.85rem;
  opacity: 0.6;
}

/* Utility Classes */
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }

/* Legal Content */
.legal-content {
  line-height: 1.8;
}

.legal-content h2 {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

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

.legal-content p {
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
}

.legal-content ul {
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}

.legal-content li {
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
}

/* Homepage */
.hero {
  text-align: center;
  padding: var(--space-2xl) 0;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-xl);
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.hero h1 span {
  color: var(--accent-primary);
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.tool-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-primary);
  padding: var(--space-lg);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
  box-shadow: var(--shadow-sm);
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-lg);
}

.tool-card-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
}

.tool-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.tool-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  flex: 1;
}

.tool-card-arrow {
  margin-top: var(--space-md);
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Coverage Selector */
.coverage-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

@media (max-width: 600px) {
  .coverage-options {
    grid-template-columns: 1fr;
  }
}

.coverage-option {
  padding: var(--space-md);
  border: 2px solid var(--border-primary);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  background: white;
}

.coverage-option:hover {
  border-color: var(--accent-primary);
}

.coverage-option.selected {
  border-color: var(--accent-primary);
  background: var(--bg-tertiary);
}

.coverage-option .label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
}

.coverage-option .desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
  .tool-header h1 {
    font-size: 1.75rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .result-value {
    font-size: 2rem;
  }

  .nav {
    display: none;
  }
}

/* SEO Content Sections */
.content-section, .faq-section, .related-tools { margin-top: 3rem; padding: 2rem; background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--border-color); }
.content-section h2, .faq-section h2, .related-tools h2 { color: var(--primary); margin-bottom: 1.5rem; font-size: 1.5rem; }
.content-section h3 { color: var(--text); margin: 1.5rem 0 0.75rem; font-size: 1.1rem; }
.content-section p, .content-section ul { color: var(--text-muted); margin-bottom: 1rem; line-height: 1.7; }
.content-section ul { padding-left: 1.5rem; }
.content-section li { margin-bottom: 0.5rem; }
.content-section strong { color: var(--text); }
.faq-item { padding: 1.25rem 0; border-bottom: 1px solid var(--border-color); }
.faq-item:last-child { border-bottom: none; padding-bottom: 0; }
.faq-item h3 { color: var(--text); font-size: 1rem; margin-bottom: 0.5rem; }
.faq-item p { color: var(--text-muted); line-height: 1.6; }
.related-tools .tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin-top: 1rem; }
.related-tools .tool-card { background: var(--background); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 1.5rem; text-decoration: none; transition: all 0.2s ease; }
.related-tools .tool-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.related-tools .tool-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.related-tools .tool-card h3 { color: var(--text); font-size: 1rem; margin-bottom: 0.5rem; }
.related-tools .tool-card p { color: var(--text-muted); font-size: 0.875rem; line-height: 1.5; }

