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

:root {
  --color-primary: #e91e63;
  --color-primary-dark: #c2185b;
  --color-secondary: #7b1fa2;
  --color-text: #1a1a1a;
  --color-text-muted: #666;
  --color-bg: #fff;
  --color-bg-alt: #f8f9fa;
  --color-border: #e0e0e0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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

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

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

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 1rem;
}

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

.logo-icon {
  width: 32px;
  height: 32px;
}

.nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

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

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

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

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

/* Main content */
main {
  min-height: calc(100vh - 70px);
}

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

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 2.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-icon {
  width: 200px;
  height: 200px;
  color: var(--color-primary);
  animation: pulse 3s ease-in-out infinite;
}

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

/* Page hero */
.page-hero {
  padding: 4rem 0 2rem;
  background: var(--color-bg-alt);
  text-align: center;
}

.page-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.page-hero .lead {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  max-width: 700px;
  margin: 0 auto;
}

/* Buttons */
.cta-btn {
  display: inline-block;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
}

.cta-btn:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}

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

.cta-primary {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

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

.cta-floating {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 99;
  padding: 1rem 2rem;
  box-shadow: var(--shadow-lg);
  animation: float 3s ease-in-out infinite;
}

/* Submit button for contact form (non-affiliate) */
.submit-btn {
  display: inline-block;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
}

.submit-btn:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}

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

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Features section */
.features {
  padding: 5rem 0;
}

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

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

.feature-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: box-shadow 0.2s;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
}

.feature-card svg {
  width: 48px;
  height: 48px;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

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

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

/* CTA section */
.cta-section {
  padding: 5rem 0;
  background: var(--color-bg-alt);
}

.mid-cta {
  padding: 4rem 0;
  background: linear-gradient(135deg, #fce4ec 0%, #f3e5f5 100%);
}

.mid-cta .cta-box {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.cta-box {
  background: var(--color-primary);
  color: white;
  padding: 4rem;
  border-radius: var(--radius);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-box h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-box p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

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

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

.cta-box--accent {
  background: var(--color-secondary);
}

.cta-box--accent .cta-btn {
  color: var(--color-secondary);
}

/* How it works */
.how-it-works {
  padding: 5rem 0;
}

.how-it-works h2 {
  text-align: center;
  font-size: 2.25rem;
  margin-bottom: 3rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
}

.step {
  text-align: center;
}

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

.step h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

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

/* Testimonials */
.testimonials {
  padding: 5rem 0;
  background: var(--color-bg-alt);
}

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

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

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

.testimonial-card p {
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.testimonial-author {
  color: var(--color-text-muted);
  font-weight: 500;
}

/* FAQ preview */
.faq-preview {
  padding: 5rem 0;
}

.faq-preview h2 {
  text-align: center;
  font-size: 2.25rem;
  margin-bottom: 2rem;
}

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

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 1.5rem 0;
}

.faq-item h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.faq-item p {
  color: var(--color-text-muted);
}

.text-center {
  text-align: center;
  margin-top: 2rem;
}

.link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

.link:hover {
  text-decoration: underline;
}

/* Content pages */
.content-block {
  margin-bottom: 3rem;
}

.content-block h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.content-block p {
  margin-bottom: 1rem;
  line-height: 1.8;
  color: var(--color-text-muted);
}

.checklist {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.checklist-item svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.cta-block {
  background: var(--color-bg-alt);
  padding: 3rem;
  border-radius: var(--radius);
  text-align: center;
  margin-top: 3rem;
}

.styled-list {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.styled-list li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

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

.contact-info h2,
.contact-form-wrapper h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

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

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

.contact-method svg {
  width: 32px;
  height: 32px;
  color: var(--color-primary);
}

.contact-method h4 {
  margin-bottom: 0.25rem;
}

.contact-method p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 500;
}

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

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

.cta-full {
  width: 100%;
}

/* Policy pages */
.policy-content .content-block {
  max-width: 800px;
}

/* Blog */
.blog-list {
  padding: 4rem 0;
}

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

.blog-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.blog-card-icon {
  width: 48px;
  height: 48px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.blog-card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
}

/* Learn More section */
.learn-more {
  padding: 4rem 0;
  background: var(--color-bg-alt);
}

.learn-more h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.link-card {
  background: var(--color-bg);
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  text-decoration: none;
  color: var(--color-text);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.link-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.link-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.375rem;
  color: var(--color-primary);
}

.link-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.blog-card h2 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.blog-card h2 a {
  color: var(--color-text);
  text-decoration: none;
}

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

.blog-card p {
  color: var(--color-text-muted);
  flex-grow: 1;
  margin-bottom: 1rem;
}

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

.read-more:hover {
  text-decoration: underline;
}

/* Article page */
.article {
  padding: 4rem 0;
}

.article-header {
  max-width: 700px;
  margin-bottom: 3rem;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.article-meta svg {
  width: 16px;
  height: 16px;
}

.article-header h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}

.article-content {
  max-width: 700px;
}

.article-content .lead {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.article-content h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.article-content p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
  color: var(--color-text-muted);
}

.article-content .text-center {
  margin-bottom: 2rem;
}

.article-cta {
  background: var(--color-bg-alt);
  padding: 2.5rem;
  border-radius: var(--radius);
  text-align: center;
  margin-top: 3rem;
}

.article-cta h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.article-cta p {
  margin-bottom: 1.5rem;
}

.article-footer {
  max-width: 700px;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.article-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
}

.related-articles {
  padding: 4rem 0;
  background: var(--color-bg-alt);
}

.related-articles h2 {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.related-card {
  background: var(--color-bg);
  padding: 1.5rem;
  border-radius: var(--radius-sm);
}

.related-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.related-card h3 a {
  color: var(--color-text);
  text-decoration: none;
}

.related-card h3 a:hover {
  color: var(--color-primary);
}

.related-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Steps large (How It Works) */
.steps-large {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.step-large {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  align-items: start;
}

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

.step-large-content h2 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.step-large-content p {
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* Features detail */
.features-detail {
  padding: 5rem 0;
}

.feature-detail-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
  align-items: start;
}

.feature-icon-large {
  width: 100px;
  height: 100px;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon-large svg {
  width: 48px;
  height: 48px;
  color: var(--color-primary);
}

.feature-detail-content h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.feature-detail-content p {
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* Stories */
.stories-content {
  padding: 5rem 0;
}

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

.story-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
}

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

.story-card blockquote p {
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.story-author {
  color: var(--color-text-muted);
}

.story-author strong {
  display: block;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

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

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.footer-logo {
  width: 28px;
  height: 28px;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

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

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

.footer-bottom {
  padding-top: 1.5rem;
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}

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

  .nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
  }

  .nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav ul {
    flex-direction: column;
    gap: 1rem;
  }

  .hero .container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-content h1 {
    font-size: 2.25rem;
  }

  .contact-grid,
  .feature-detail-item,
  .step-large {
    grid-template-columns: 1fr;
  }

  .step-large-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

   .cta-floating {
     bottom: 1rem;
     right: 1rem;
     padding: 0.875rem 1.5rem;
     font-size: 0.9rem;
   }
 }

/* Lead paragraph */
.lead {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

/* Section padding for content pages */
.about-content,
.contact-content,
.policy-content,
.faq-content,
.tips-content,
.steps-content,
.features-preview,
.final-cta,
.guidelines-content {
  padding: 5rem 0;
}

/* Tips grid and cards (Safety Tips page) */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.tip-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: box-shadow 0.2s;
}

.tip-card:hover {
  box-shadow: var(--shadow-md);
}

.tip-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.tip-card p {
  color: var(--color-text-muted);
}

.tip-icon {
  width: 48px;
  height: 48px;
  color: var(--color-primary);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* FAQ accordion styles */
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-text);
  text-align: left;
}

.faq-question svg {
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-question[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

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

.faq-answer p {
  padding-top: 0.5rem;
}
