/* ================================================
   CHATRAND - Global Styles
   ================================================ */

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

:root {
  --primary: #3B82F6;
  --primary-dark: #2563EB;
  --primary-light: #60A5FA;
  --secondary: #10B981;
  --background: #F9FAFB;
  --surface: #FFFFFF;
  --text: #111827;
  --text-secondary: #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);
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1200px;
}

html {
  scroll-behavior: smooth;
}

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

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  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;
}

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

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(--surface);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

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

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

.logo-icon {
  width: 32px;
  height: 32px;
  stroke: var(--primary);
}

.logo-text {
  display: none;
}

@media (min-width: 640px) {
  .logo-text {
    display: inline;
  }
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
}

.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text);
}

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

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

@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.nav-list {
  display: none;
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  padding: 1rem;
  list-style: none;
  flex-direction: column;
  gap: 0.5rem;
}

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

@media (min-width: 768px) {
  .nav-list {
    display: flex;
    position: static;
    background: transparent;
    box-shadow: none;
    padding: 0;
    flex-direction: row;
    gap: 2rem;
  }
}

.nav-link {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: rgba(59, 130, 246, 0.1);
}

/* Hero Section */
.hero {
  padding: 4rem 0 6rem;
  background: linear-gradient(135deg, #EFF6FF 0%, #FFFFFF 100%);
}

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

@media (min-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--text);
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.hero-trust {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--secondary);
  margin-top: 1.5rem;
}

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

.hero-card {
  position: relative;
  width: 280px;
  height: 280px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  position: relative;
  z-index: 2;
}

.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid white;
}

.avatar-1 { transform: translateY(-10px); }
.avatar-2 { transform: translateY(10px); }
.avatar-3 { transform: translateY(-10px); }
.avatar-4 { transform: translateY(10px); }
.avatar-5 { transform: translateY(-10px); }

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background: var(--primary);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow);
}

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

/* Buttons */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background: var(--primary);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow);
}

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

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

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

.cta-floating {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  box-shadow: var(--shadow-lg);
  animation: pulse 2s infinite;
}

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

/* Sections */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2rem;
}

.content-section {
  padding: 5rem 0;
}

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

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

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

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

.feature-icon svg {
  width: 100%;
  height: 100%;
}

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

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* How It Works */
.how-it-works {
  background: var(--surface);
  padding: 5rem 0;
}

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

.step {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  text-align: center;
  padding: 1.5rem;
}

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

.step-arrow {
  font-size: 1.5rem;
  color: var(--primary);
  display: none;
}

@media (min-width: 768px) {
  .step-arrow {
    display: block;
  }
}

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

.step p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

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

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

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

.testimonial-stars {
  color: #F59E0B;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1rem;
  color: var(--text);
}

.testimonial-author {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
}

/* Safety Section */
.safety {
  padding: 5rem 0;
  background: linear-gradient(135deg, #ECFDF5 0%, #FFFFFF 100%);
}

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

.safety-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.safety-item svg {
  width: 24px;
  height: 24px;
  color: var(--secondary);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.safety-item h4 {
  margin-bottom: 0.25rem;
}

.safety-item p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin: 0;
}

/* Stats */
.stats {
  padding: 4rem 0;
  background: var(--primary);
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  opacity: 0.9;
}

/* FAQ */
.faq-preview {
  padding: 5rem 0;
  background: var(--surface);
}

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

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

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

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.2s;
}

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

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

/* CTA Section */
.cta-section {
  padding: 5rem 0;
}

.cta-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 4rem 2rem;
  border-radius: var(--radius);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

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

.cta-box p {
  margin-bottom: 2rem;
  opacity: 0.95;
}

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

.cta-box .cta-btn:hover {
  background: var(--background);
}

.final-cta {
  padding: 5rem 0;
  background: var(--background);
  text-align: center;
}

.final-cta h2 {
  margin-bottom: 1rem;
}

.final-cta p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-hero h1 {
  margin-bottom: 0.5rem;
}

/* Content Sections */
.content-section {
  padding: 4rem 0;
}

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

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

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

.main-content ul,
.main-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

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

.values-list,
.safety-features {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0;
}

.value-item {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.document-meta {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.875rem;
}

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

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

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

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

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
}

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

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

.contact-method span {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Forms */
.contact-form {
  background: var(--surface);
  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.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: border-color 0.2s;
}

.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(59, 130, 246, 0.1);
}

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

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

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

.blog-image {
  height: 180px;
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-image svg {
  width: 64px;
  height: 64px;
  color: var(--primary);
  opacity: 0.5;
}

.blog-content {
  padding: 1.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-content p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

.blog-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.blog-cta {
  font-weight: 600;
}

/* Article */
.article {
  padding-bottom: 4rem;
}

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

.article-category {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 0.375rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.article-header h1 {
  margin-bottom: 1rem;
}

.article-meta {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.article-content {
  max-width: 740px;
  margin: 0 auto;
}

.article-content h2 {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

.article-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.article-content blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-secondary);
}

.article-cta {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  padding: 2.5rem;
  border-radius: var(--radius);
  text-align: center;
  margin: 3rem 0;
}

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

.article-navigation {
  margin-bottom: 2rem;
}

.back-to-blog {
  font-weight: 600;
}

.related-articles h3 {
  margin-bottom: 1rem;
}

.related-articles ul {
  list-style: none;
  padding: 0;
}

.related-articles li {
  margin-bottom: 0.5rem;
}

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

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

.footer-brand .logo {
  color: white;
  margin-bottom: 1rem;
}

.footer-brand .logo-icon {
  stroke: white;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
}

.footer-links h4 {
  margin-bottom: 1rem;
  color: white;
}

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
}

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

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

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

/* No overflow */
html, body {
  overflow-x: hidden;
}

img, svg {
  max-width: 100%;
  height: auto;
}
