/* Reset and Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #0ea5e9;
  --text: #1e293b;
  --text-light: #64748b;
  --bg: #f8fafc;
  --white: #ffffff;
  --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: 0.75rem;
  --radius-sm: 0.5rem;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

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

a:hover { color: var(--primary-dark); }

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

/* Header */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.25rem;
}

.logo:hover { color: var(--primary); }

.logo-icon {
  width: 2rem;
  height: 2rem;
  color: var(--primary);
}

/* Navigation */
.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--text);
  font-weight: 500;
  transition: color 0.2s;
  padding: 0.5rem 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.2s;
}

.nav-link:hover { color: var(--primary); }
.nav-link:hover::after { width: 100%; }

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text);
}

.icon-bars { width: 1.5rem; height: 1.5rem; }

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

.cta-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow);
}

.cta-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.cta-secondary {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.cta-secondary:hover {
  background: var(--primary);
  color: var(--white);
}

.cta-floating {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-lg);
  z-index: 99;
  padding: 1rem 2rem;
  font-size: 1rem;
}

.cta-floating:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

.cta-large {
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
}

/* Hero Section */
.hero {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  color: var(--text-light);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Page Hero (inner pages) */
.page-hero {
  padding: 4rem 0;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  text-align: center;
}

.page-hero h1 {
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Sections */
section { padding: 4rem 0; }

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.25rem;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.feature-icon {
  width: 3rem;
  height: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Steps */
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.step {
  text-align: center;
  max-width: 200px;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.step-arrow {
  color: var(--text-light);
  width: 2rem;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.testimonial-content {
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.author-name { font-weight: 600; }
.author-location { font-size: 0.875rem; color: var(--text-light); }

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
}

.cta-box {
  text-align: center;
  padding: 3rem;
}

.cta-box h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-box p {
  max-width: 600px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

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

.cta-box .cta-primary:hover {
  background: #f0f0f0;
}

/* Content Blocks */
.content-block {
  margin-bottom: 3rem;
  max-width: 800px;
}

.content-block ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.content-block li {
  margin-bottom: 0.5rem;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}

.faq-question {
  cursor: pointer;
  padding: 1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding-bottom: 1.5rem;
  color: var(--text-light);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info { margin-bottom: 2rem; }

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 2rem;
  height: 2rem;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-form-container {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Policy/Terms Pages */
.policy-content,
.terms-content {
  max-width: 800px;
  margin: 0 auto;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.blog-image {
  height: 200px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-image svg {
  width: 4rem;
  height: 4rem;
  color: var(--white);
  opacity: 0.7;
}

.blog-content {
  padding: 1.5rem;
}

.blog-category {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.blog-content h2 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.blog-content h2 a {
  color: var(--text);
}

.blog-content h2 a:hover {
  color: var(--primary);
}

.blog-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 600;
}

/* Blog Post */
.blog-post { padding: 2rem 0 4rem; }

.post-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.post-meta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--text-light);
}

.post-category {
  background: var(--primary);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-lead {
  font-size: 1.25rem;
  color: var(--text-light);
  line-height: 1.7;
}

.post-content {
  max-width: 800px;
  margin: 0 auto;
}

.post-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.post-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.post-content ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.post-content li {
  margin-bottom: 0.5rem;
}

.post-content strong {
  color: var(--text);
}

.post-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.related-posts {
  margin-bottom: 2rem;
}

.related-posts ul {
  list-style: none;
  margin-left: 0;
}

.related-posts li {
  margin-bottom: 0.75rem;
}

.post-navigation {
  text-align: center;
}

/* Safety Content */
.safety-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.safety-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.safety-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.safety-card h3 {
  margin-bottom: 1rem;
}

.safety-card ul {
  margin-left: 0;
}

.safety-card li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.safety-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--primary);
  border-radius: 50%;
}

.alert-box {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  align-items: flex-start;
}

.alert-icon {
  width: 2rem;
  height: 2rem;
  color: #d97706;
  flex-shrink: 0;
}

/* Feature Detail */
.feature-detail-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  align-items: flex-start;
}

.feature-detail-icon {
  flex-shrink: 0;
  width: 4rem;
  height: 4rem;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-detail-icon svg {
  width: 2rem;
  height: 2rem;
  color: var(--white);
}

.feature-detail-content h3 {
  margin-bottom: 0.75rem;
}

/* Steps Detailed */
.steps-detailed {
  max-width: 800px;
  margin: 0 auto;
}

.step-detailed {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
}

.step-detailed-number {
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.step-detailed-content h3 {
  margin-bottom: 0.5rem;
}

/* Stories */
.stories-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
  font-size: 1.125rem;
  color: var(--text-light);
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.story-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.story-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.story-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.story-quote {
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 3px solid var(--primary);
}

/* Footer */
.footer {
  background: var(--text);
  color: var(--white);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 1rem;
  display: inline-flex;
}

.footer-brand .logo:hover { color: var(--white); opacity: 0.8; }

.footer-desc {
  color: #94a3b8;
  font-size: 0.875rem;
}

.footer-links h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.875rem;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #334155;
  color: #94a3b8;
  font-size: 0.875rem;
}

/* FAQ Accordion Styles */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: var(--white);
  border: none;
  padding: 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.faq-question:hover {
  background: var(--bg);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  transition: transform 0.2s;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1.25rem;
}

.faq-item.active .faq-answer {
  max-height: 1000px;
  padding: 0 1.25rem 1.25rem;
}

/* Blog Post Content Styles */
.post-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

.post-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--primary-dark);
}

.post-content ul,
.post-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.post-content li {
  margin-bottom: 0.5rem;
}

.post-content strong {
  font-weight: 600;
}

.post-content p {
  margin-bottom: 1rem;
}

/* Related Posts */
.related-posts {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.related-posts h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

/* Additional page styles */
.faq-preview {
  background: var(--bg);
  text-align: center;
}

.faq-preview h2 { margin-bottom: 1rem; }
.faq-preview p { margin-bottom: 2rem; color: var(--text-light); }

.contact-form {
  display: flex;
  flex-direction: column;
}

.cta-floating {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Mobile Menu */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  .nav-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
  }

  .nav-list.active {
    display: flex;
  }

  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
  
  .hero-stats {
    gap: 2rem;
  }
  
  .stat-number { font-size: 2rem; }
  
  .feature-detail-item {
    flex-direction: column;
    text-align: center;
  }
  
  .feature-detail-icon {
    margin: 0 auto;
  }
}

/* Print Styles */
@media print {
  .cta-floating,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* Utility Classes */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles for accessibility */
*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ===== Missing Classes Fixes ===== */

/* Content section wrappers */
.about-content,
.contact-content,
.faq-content,
.safety-content,
.stories-content,
.guide-content,
.features,
.features-detail,
.how-it-works,
.testimonials {
  padding: 4rem 0;
}

/* Values grid (About page) */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.value-item {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

/* Mini FAQ (How It Works page) */
.faq-mini {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 1.5rem 0;
}

.faq-mini-item {
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem;
}

.faq-mini-item:last-child {
  border-bottom: none;
}

.faq-mini-item h4 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.faq-mini-item p {
  margin-bottom: 0;
  color: var(--text-light);
  font-size: 0.875rem;
}

.faq-mini-item:hover {
  background: var(--bg);
}

/* Lead paragraph */
.lead {
  font-size: 1.25rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* Logo text */
.logo-text {
  font-weight: 700;
  font-size: 1.25rem;
  color: inherit;
}

/* Navigation container */
.nav {
  position: relative;
}

/* Story author (Success Stories) */
.story-author {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 1rem;
}

/* Additional spacing for FAQ page CTA */
.faq-content .text-center {
  margin-bottom: 2rem;
}
