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

:root {
  --primary: #3B82F6;
  --primary-dark: #2563EB;
  --secondary: #10B981;
  --dark: #1F2937;
  --light: #F9FAFB;
  --gray: #6B7280;
  --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);
}

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

/* 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;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

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

.logo svg {
  width: 32px;
  height: 32px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--gray);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
  color: var(--dark);
}

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

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

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

/* Buttons */
.cta-btn {
  background: var(--secondary);
  color: white;
  border: none;
  padding: 16px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

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

.cta-floating {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  padding: 18px 36px;
  font-size: 1.1rem;
  border-radius: 50px;
  animation: pulse 2s infinite;
}

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

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

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

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

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

/* Features */
.features {
  background: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.feature-card {
  background: var(--light);
  padding: 40px;
  border-radius: 16px;
  text-align: center;
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-card svg {
  width: 64px;
  height: 64px;
  color: var(--primary);
  margin-bottom: 20px;
}

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

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

/* How It Works */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  counter-reset: step;
}

.step {
  text-align: center;
  position: relative;
}

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

.step h3 {
  margin-bottom: 10px;
}

.step p {
  color: var(--gray);
}

/* Blog */
.blog {
  background: white;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.blog-card {
  background: var(--light);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s;
}

.blog-card:hover {
  transform: translateY(-5px);
}

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

.blog-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

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

.blog-card .read-more {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

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

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

.faq-question svg {
  width: 24px;
  height: 24px;
  transition: transform 0.3s;
}

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

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

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

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

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

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

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

.footer-section h4 {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

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

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
}

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

.mt-4 {
  margin-top: 2rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

/* Content Section */
.content-section {
  padding: 80px 20px;
  max-width: 900px;
  margin: 0 auto;
}

/* Page Title */
.page-title {
  text-align: left;
  margin-bottom: 20px;
}

/* Content Text */
.content-text {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 30px;
}

/* Section Intro Paragraph */
.section-intro {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-top: 50px;
  margin-bottom: 30px;
}

/* Lists in article content */
.content-section article ul {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 30px;
  padding-left: 20px;
}

/* Section Heading */
.section-heading {
  font-size: 1.8rem;
  margin-bottom: 20px;
  margin-top: 50px;
}

/* Subtitle left aligned */
.section-subtitle-left {
  text-align: left;
  max-width: 700px;
  margin-bottom: 60px;
  font-size: 1.1rem;
  color: var(--gray);
}

/* Feature card horizontal layout */
.feature-horizontal {
  display: flex;
  gap: 30px;
  align-items: center;
  margin-bottom: 40px;
}

.feature-horizontal svg {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  color: var(--primary);
}

.feature-horizontal h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.feature-horizontal p {
  line-height: 1.8;
  color: var(--gray);
}

/* Step horizontal for How It Works */
.step-horizontal {
  display: flex;
  gap: 30px;
  margin-bottom: 60px;
  align-items: flex-start;
}

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

.step-horizontal .step-content h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.step-horizontal .step-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--gray);
}

/* Tip card for safety tips */
.tip-card {
  display: flex;
  gap: 20px;
  margin-bottom: 50px;
  padding: 30px;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.tip-card svg {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  color: var(--primary);
}

.tip-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.tip-card p {
  line-height: 1.8;
  color: var(--gray);
}

/* Blog article related posts */
.related-posts h2 {
  font-size: 1.5rem;
  margin-bottom: 30px;
}

.related-posts .features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.related-posts .feature-card {
  background: var(--light);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s;
  cursor: pointer;
}

.related-posts .feature-card:hover {
  transform: translateY(-5px);
}

.related-posts .feature-card h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

.related-posts .feature-card p {
  color: var(--gray);
  font-size: 0.95rem;
}

/* CTA section with data-href */
.cta-btn[data-href] {
  cursor: pointer;
}

/* Mobile */
@media (max-width: 768px) {
  .feature-horizontal {
    flex-direction: column;
    text-align: center;
  }
  
  .step-horizontal {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .tip-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow);
    gap: 16px;
  }

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

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

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

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

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

  .cta-floating {
    bottom: 20px;
    right: 20px;
    padding: 16px 28px;
    font-size: 1rem;
  }
}

/* Article Meta */
.article-meta {
  color: var(--gray);
  margin-bottom: 40px;
}

/* Info Box */
.info-box {
  background: var(--light);
  padding: 30px;
  border-radius: 12px;
  margin-top: 50px;
}

.info-box h3 {
  margin-bottom: 15px;
}

.info-box ul {
  line-height: 1.8;
  padding-left: 20px;
}

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

.cta-section h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.cta-section p {
  margin-bottom: 25px;
  opacity: 0.9;
}

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

/* Etiquette Items */
.etiquette-item {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  padding: 25px;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.etiquette-item svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.etiquette-item h3 {
  margin-bottom: 10px;
}

.etiquette-item p {
  color: var(--gray);
}

/* ===== Utility Classes ===== */

/* Spacing - Margin */
.mt-0 { margin-top: 0; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mt-50 { margin-top: 50px; }
.mt-60 { margin-top: 60px; }
.mt-80 { margin-top: 80px; }

.mb-0 { margin-bottom: 0; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
.mb-50 { margin-bottom: 50px; }
.mb-60 { margin-bottom: 60px; }

/* Spacing - Padding */
.py-80 { padding-top: 80px; padding-bottom: 80px; }
.p-30 { padding: 30px; }
.p-40 { padding: 40px; }

/* Font Size */
.fs-lg { font-size: 1.1rem; }
.fs-xl { font-size: 1.2rem; }
.fs-2xl { font-size: 1.5rem; }
.fs-3xl { font-size: 1.8rem; }
.fs-4xl { font-size: 2rem; }
.fs-5xl { font-size: 2.5rem; }

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

/* Background */
.bg-primary { background: var(--primary); }
.bg-dark { background: var(--dark); }
.bg-white { background: white; }

/* Border Radius */
.rounded-lg { border-radius: 12px; }
.rounded-xl { border-radius: 16px; }
.rounded-full { border-radius: 50%; }

/* Text Align */
.text-left { text-align: left; }

/* Text Decoration */
.text-none { text-decoration: none; }

/* Display */
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-20 { gap: 20px; }
.gap-30 { gap: 30px; }

/* Shadow */
.shadow { box-shadow: var(--shadow); }

/* Width & Auto */
.max-w-700 { max-width: 700px; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Opacity */
.opacity-90 { opacity: 0.9; }
.opacity-95 { opacity: 0.95; }

/* Line Height */
.leading-relax { line-height: 1.8; }

/* Link Styles */
.features-grid a {
  text-decoration: none;
  color: inherit;
}

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

/* ===== Component Classes ===== */

/* Subsection Heading */
.section-subheading {
  font-size: 1.5rem;
  margin-bottom: 20px;
  margin-top: 60px;
}

/* CTA Box */
.cta-box {
  text-align: center;
  margin-top: 2rem;
}
.cta-box h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}
.cta-box p {
  font-size: 1.1rem;
  color: var(--gray);
  margin-bottom: 30px;
}

/* CTA Section Variants */
.cta-section--lg { padding: 80px 0; }
.cta-section--dark { background: var(--dark); }
.cta-section--light {
  background: var(--light);
  color: var(--dark);
}
.cta-section--light .cta-btn {
  background: var(--primary);
  color: white;
}
.cta-section--light p {
  opacity: 1;
}

/* FAQ Container */
.faq-container {
  max-width: 800px;
  margin-top: 60px;
  margin-left: auto;
  margin-right: auto;
}

/* Success Stories */
.success-container {
  max-width: 900px;
  padding: 80px 20px;
  margin: 0 auto;
}
.story-card {
  background: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
}
.story-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}
.story-avatar {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.8rem;
  font-weight: 700;
}
.story-card h3 {
  font-size: 1.3rem;
  margin-bottom: 5px;
}
.story-header p {
  color: var(--gray);
  margin-bottom: 0;
}
.story-text {
  line-height: 1.8;
  font-size: 1.1rem;
}
