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

:root {
  --primary: #3B82F6;
  --primary-dark: #2563EB;
  --secondary: #10B981;
  --dark: #1F2937;
  --light: #F9FAFB;
  --gray: #4B5563;
  --border: #E5E7EB;
  --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: 12px;
  --radius-sm: 8px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: var(--light);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:hover {
  text-decoration: underline;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: white;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}

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

.logo img {
  width: 40px;
  height: 40px;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  color: var(--gray);
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--dark);
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  background: white;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.mobile-nav.active {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 12px 20px;
  color: var(--gray);
  font-weight: 500;
}

.mobile-nav a:hover {
  background: var(--light);
  color: var(--primary);
}

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

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 40px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}

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

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

.btn-primary:active {
  transform: translateY(0);
}

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

.btn-secondary:hover {
  background: var(--light);
  text-decoration: none;
}

/* Sections */
section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  text-align: center;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto 48px;
  font-size: 1.125rem;
}

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

.feature-card {
  background: white;
  padding: 32px;
  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: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--gray);
  line-height: 1.7;
}

/* CTA Section */
.cta-section {
  background: var(--dark);
  color: white;
  text-align: center;
  padding: 80px 0;
}

.cta-section h2 {
  font-size: 2.25rem;
  margin-bottom: 16px;
}

.cta-section p {
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 32px;
}

/* Floating CTA */
.cta-floating {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  padding: 16px 28px;
  font-size: 1rem;
  box-shadow: var(--shadow-lg);
  animation: pulse 2s infinite;
}

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

/* Footer */
.footer {
  background: var(--dark);
  color: white;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 1.125rem;
  margin-bottom: 20px;
  color: white;
}

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

.footer-col ul li {
  margin-bottom: 12px;
}



.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 30px;
  text-align: center;
  color: #9CA3AF;
  font-size: 0.875rem;
}

/* FAQ Accordion */
.faq-item {
  background: white;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: white;
  border: none;
  text-align: left;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--dark);
}

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

.faq-question svg {
  width: 24px;
  height: 24px;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.faq-question.active svg {
  transform: rotate(180deg);
}

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

.faq-answer.active {
  max-height: 500px;
}

.faq-answer-content {
  padding: 0 24px 24px;
  color: var(--gray);
  line-height: 1.7;
}

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

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

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

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

.blog-card-img img {
  width: 64px;
  height: 64px;
  opacity: 0.9;
}

.blog-card-content {
  padding: 24px;
}

.blog-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  line-height: 1.4;
}

.blog-card p {
  color: var(--gray);
  margin-bottom: 20px;
  line-height: 1.6;
}

.blog-card-link {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Article Content */
.article-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.article-content h2 {
  font-size: 1.75rem;
  margin: 40px 0 20px;
  color: var(--dark);
}

.article-content h3 {
  font-size: 1.375rem;
  margin: 32px 0 16px;
  color: var(--dark);
}

.article-content p {
  margin-bottom: 20px;
  color: var(--gray);
}

.article-content ul, .article-content ol {
  margin-bottom: 20px;
  padding-left: 24px;
  color: var(--gray);
}

.article-content li {
  margin-bottom: 8px;
}

.article-content a {
  color: var(--primary);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gray);
  margin-bottom: 24px;
  font-weight: 500;
}

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

/* Form */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--dark);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

/* Responsive */
@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

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

  .hero p {
    font-size: 1rem;
  }

  section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .cta-floating {
    bottom: 16px;
    right: 16px;
    padding: 14px 24px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 60px 0 80px;
  }

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

  .btn {
    padding: 12px 24px;
    font-size: 0.9375rem;
  }
}

/* Custom utilities for fixed issues */
.content-container {
  max-width: 800px;
  margin: 0 auto;
}

.intro-lead {
  font-size: 1.125rem;
  color: var(--gray);
  margin-bottom: 32px;
  line-height: 1.8;
}

.intro-subtitle {
  font-size: 1.125rem;
  color: var(--gray);
  margin-bottom: 48px;
  line-height: 1.8;
  max-width: 600px;
}

.section-heading {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--dark);
  font-weight: 700;
}

.card {
  background: white;
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.info-box {
  background: var(--light);
  padding: 32px;
  border-radius: var(--radius);
}

.text-2xl { font-size: 1.5rem; }
.font-bold { font-weight: 700; }

.step-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 32px;
}

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

.cta-subtitle {
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.8;
}

/* Ensure white text in CTA sections */
.article-meta {
  color: var(--gray);
  margin-bottom: 32px;
  font-size: 0.875rem;
}

.callout {
  background: var(--light);
  padding: 24px;
  border-radius: var(--radius-sm);
}

.divider {
  margin-top: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.related-title {
  font-size: 1.25rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.text-xl { font-size: 1.25rem; }
.text-lg { font-size: 1.125rem; }

/* Content container text styles */
.content-container p {
  margin-bottom: 20px;
  color: var(--gray);
  line-height: 1.8;
}

.content-container ul,
.content-container ol {
  margin-bottom: 20px;
  padding-left: 24px;
  color: var(--gray);
}

.content-container li {
  margin-bottom: 12px;
}

/* Contact form styles */
.contact-form {
  background: white;
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}



/* Utility */
.text-center {
  text-align: center;
}

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

.mt-4 {
  margin-top: 24px;
}

.mb-4 {
  margin-bottom: 24px;
}

/* Form button should also be CTA */
.form-submit {
  width: 100%;
}

/* Footer link color consistency */
.footer-col ul a {
  color: var(--gray);
  transition: color 0.2s;
}

.footer-col ul a:hover {
  color: white;
}

/* Contact info cards consistency */
.contact-info-card {
  background: white;
  padding: 24px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.contact-info-card h3 {
  font-size: 1.125rem;
  margin-bottom: 12px;
  color: var(--dark);
}

.contact-info-card p {
  color: var(--gray);
  margin-bottom: 8px;
}

.contact-info-card p:last-child {
  margin-bottom: 0;
}

/* Section heading alignment helper */
.section-heading-left {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--dark);
  font-weight: 700;
  text-align: left;
}

/* Smooth scroll padding for fixed header */
section[id] {
  scroll-margin-top: 80px;
}

/* Testimonials */
.testimonial-quote {
  font-size: 1.125rem;
  margin-bottom: 16px;
  font-style: italic;
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 600;
}

.testimonial-location {
  color: var(--gray);
  font-size: 0.875rem;
}

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

/* Background light */
.bg-light {
  background: var(--light);
}

/* Full width button */
.btn-full {
  width: 100%;
}





/* Padding utilities */
.section-padding {
  padding: 80px 0;
}

.section-padding-lg {
  padding: 80px 0;
}

.section-padding-md {
  padding: 60px 0;
}



/* Text utilities */
.text-sm {
  font-size: 0.875rem;
}

.font-normal {
  font-weight: 400;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

/* Spacing utilities */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 24px; }
.mt-5 { margin-top: 32px; }
.mt-6 { margin-top: 40px; }
.mt-8 { margin-top: 48px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 24px; }
.mb-5 { margin-bottom: 32px; }
.mb-6 { margin-bottom: 40px; }
.mb-8 { margin-bottom: 48px; }

/* List utilities */
.list-style-none {
  list-style: none;
}

.pl-6 {
  padding-left: 24px;
}

/* Background */
.bg-white {
  background: white;
}

/* === Added missing classes === */

/* Color utilities */
.text-gray { color: var(--gray); }
.text-dark { color: var(--dark); }
.text-primary { color: var(--primary); }

/* Spacing utilities */
.mt-10 { margin-top: 64px; }
.mb-0 { margin-bottom: 0; }

/* Step styles for safety-tips */
.step-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.step-number-sm {
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Feature row layout (features.html) */
.feature-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 32px;
}
.feature-icon-circle {
  width: 56px;
  height: 56px;
  background: var(--light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}
.feature-icon-circle svg {
  width: 32px;
  height: 32px;
}

/* Feature highlight icon (how-it-works.html) */
.feature-highlight-icon {
  width: 48px;
  height: 48px;
  background: var(--light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  color: var(--primary);
}
.feature-highlight-icon svg {
  width: 24px;
  height: 24px;
}

/* Contact page grid */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

/* Contact email styling */
.contact-email {
  color: var(--primary);
  font-weight: 600;
}

/* Related links grid in blog pages */
.related-links-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
