/* ============================================
   CANADIANS AGAINST EXTORTION
   Professional Site Stylesheet
   ============================================ */

/* CSS Variables */
:root {
  --primary: #1a365d;
  --primary-light: #2c5282;
  --secondary: #2b6cb0;
  --accent: #3182ce;
  --emergency: #c53030;
  --emergency-bg: #fff5f5;
  --warning: #dd6b20;
  --warning-bg: #fffaf0;
  --success: #276749;
  --success-bg: #f0fff4;
  --text: #1a202c;
  --text-light: #4a5568;
  --text-muted: #718096;
  --bg: #ffffff;
  --bg-light: #f7fafc;
  --bg-alt: #edf2f7;
  --border: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius: 8px;
  --radius-lg: 12px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  margin: 0;
  padding: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary);
  font-weight: 700;
  line-height: 1.3;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; border-bottom: 3px solid var(--accent); padding-bottom: 0.5rem; }
h3 { font-size: 1.5rem; color: var(--primary-light); }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1.25rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Header */
.site-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-title:hover {
  color: white;
  text-decoration: none;
}

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

/* Navigation */
.main-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.main-nav a {
  color: rgba(255,255,255,0.9);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.main-nav a:hover {
  background: rgba(255,255,255,0.15);
  color: white;
  text-decoration: none;
}

.main-nav a.emergency {
  background: var(--emergency);
  color: white;
}

.main-nav a.emergency:hover {
  background: #9b2c2c;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 4rem 1.5rem;
  text-align: center;
}

.hero h1 {
  color: white;
  font-size: 2.75rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.95;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: white;
  color: var(--primary);
}

.btn-primary:hover {
  background: var(--bg-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  color: var(--primary);
}

.btn-emergency {
  background: var(--emergency);
  color: white;
}

.btn-emergency:hover {
  background: #9b2c2c;
  transform: translateY(-2px);
  text-decoration: none;
  color: white;
}

.btn-outline {
  background: transparent;
  border: 2px solid white;
  color: white;
}

.btn-outline:hover {
  background: white;
  color: var(--primary);
  text-decoration: none;
}

/* Emergency Banner */
.emergency-banner {
  background: var(--emergency);
  color: white;
  padding: 1rem 1.5rem;
  text-align: center;
  font-weight: 600;
}

.emergency-banner a {
  color: white;
  text-decoration: underline;
}

/* Callout Boxes */
.callout {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  margin: 1.5rem 0;
  border-left: 4px solid;
}

.callout-emergency {
  background: var(--emergency-bg);
  border-color: var(--emergency);
}

.callout-emergency h3,
.callout-emergency h4 {
  color: var(--emergency);
  margin-top: 0;
}

.callout-warning {
  background: var(--warning-bg);
  border-color: var(--warning);
}

.callout-info {
  background: #ebf8ff;
  border-color: var(--accent);
}

.callout-success {
  background: var(--success-bg);
  border-color: var(--success);
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.2s;
}

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

.card h3 {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-icon {
  font-size: 1.5rem;
}

/* Quick Help Box */
.quick-help {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2rem 0;
}

.quick-help h2 {
  text-align: center;
  border: none;
  margin-top: 0;
}

.help-numbers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.help-number {
  background: white;
  padding: 1.25rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
}

.help-number .label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.help-number .number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.help-number.emergency .number {
  color: var(--emergency);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

th, td {
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--bg-alt);
  font-weight: 600;
  color: var(--primary);
}

tr:hover {
  background: var(--bg-light);
}

/* Lists */
ul, ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Steps */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.steps li {
  position: relative;
  padding-left: 3.5rem;
  margin-bottom: 1.5rem;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* Blockquotes */
blockquote {
  background: var(--bg-light);
  border-left: 4px solid var(--accent);
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}

blockquote p:last-child {
  margin-bottom: 0;
}

/* Footer */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.9);
  padding: 3rem 1.5rem 2rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-section h4 {
  color: white;
  margin-top: 0;
  margin-bottom: 1rem;
}

.footer-section a {
  color: rgba(255,255,255,0.8);
  display: block;
  padding: 0.25rem 0;
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
}

/* Language Selector */
.language-selector {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.language-selector a {
  padding: 0.5rem 1rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.language-selector a:hover {
  background: var(--accent);
  color: white;
  text-decoration: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  .main-nav {
    justify-content: center;
  }
  
  .hero {
    padding: 2.5rem 1rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
  
  table {
    font-size: 0.85rem;
  }
  
  th, td {
    padding: 0.5rem;
  }
}

/* Print Styles */
@media print {
  .site-header,
  .site-footer,
  .main-nav {
    display: none;
  }
  
  body {
    font-size: 12pt;
  }
  
  a {
    color: black;
    text-decoration: underline;
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-emergency { color: var(--emergency); }
.text-muted { color: var(--text-muted); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
