/**
 * Layout Styles (Header, Hero, Main Container, Footer, Legal Layout)
 */

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Site Header */
.site-header {
  height: var(--header-height);
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Brand Logo */
.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  transition: opacity var(--transition-fast);
}

.brand-link:hover {
  opacity: 0.9;
}

.brand-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-inverse);
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

/* Header Navigation */
.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

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

.nav-link.active {
  color: var(--accent-primary);
}

.nav-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background-color: var(--bg-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  margin-left: 6px;
}

/* Mobile Menu Toggle */
.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.mobile-menu-btn:hover {
  background-color: var(--bg-subtle);
}

/* Hero Section */
.hero-section {
  padding-top: 40px;
  padding-bottom: 24px;
  text-align: center;
}

.hero-context {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-primary);
  background-color: var(--accent-light);
  border: 1px solid var(--accent-border);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.hero-title {
  font-size: 2.25rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  max-width: 680px;
  margin: 0 auto 12px;
}

.hero-description {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
}

/* Main Content Area */
.main-content {
  flex: 1;
  padding-bottom: 60px;
}

/* Trust & Privacy Strip */
.trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
  margin-bottom: 32px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.trust-item svg {
  color: var(--accent-primary);
  flex-shrink: 0;
}

/* Site Footer */
.site-footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding-top: 36px;
  padding-bottom: 36px;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-link {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8125rem;
  color: var(--text-subtle);
}

/* Legal Pages (Terms & Privacy) Layout */
.legal-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-top: 36px;
  margin-bottom: 48px;
  box-shadow: var(--shadow-sm);
}

.legal-header {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

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

.legal-content {
  color: var(--text-secondary);
  line-height: 1.7;
}

.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 28px;
  margin-bottom: 12px;
}

.legal-content p {
  margin-bottom: 16px;
}

.legal-content ul {
  margin-bottom: 16px;
  padding-left: 24px;
  list-style: disc;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-section {
    padding-top: 24px;
    padding-bottom: 16px;
  }

  .hero-title {
    font-size: 1.625rem;
  }

  .hero-description {
    font-size: 0.9375rem;
  }

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

  .header-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    padding: 16px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    box-shadow: var(--shadow-md);
  }

  .header-nav.is-open {
    display: flex;
  }

  .trust-strip {
    gap: 14px;
  }

  .trust-item {
    font-size: 0.8125rem;
  }

  .legal-card {
    padding: 24px 16px;
  }
}

/* ==========================================================================
   Content Sections Styling (Sections 2 to 15)
   ========================================================================== */

.content-section {
  padding: 64px 0;
  border-top: 1px solid var(--border-subtle);
}

.content-section.section-alt {
  background-color: rgba(248, 250, 252, 0.6);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 40px;
}

.section-badge {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-primary);
  background-color: var(--accent-light);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
  border: 1px solid var(--accent-border);
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin-bottom: 14px;
}

.section-lead {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Demo Comparison Slider in Section 2 */
.demo-slider-wrapper {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 32px;
}

.demo-slider-caption {
  padding: 14px 20px;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-subtle);
}

/* Multi-Column Layout Grids */
.cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

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

.cards-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

/* Information Cards */
.info-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.info-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-focus);
}

.card-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background-color: var(--accent-light);
  color: var(--accent-primary);
  border: 1px solid var(--accent-border);
}

.card-icon-wrap.icon-green {
  background-color: #dcfce7;
  color: #16a34a;
  border-color: #bbf7d0;
}

.card-icon-wrap.icon-amber {
  background-color: #fef3c7;
  color: #d97706;
  border-color: #fde68a;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}

.card-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Image + Text Split Layout */
.image-text-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.split-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.split-text p {
  font-size: 1rem;
}

.diagram-wrap {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.diagram-wrap img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}

.diagram-full {
  margin: 32px 0;
}

/* Technical Note Box */
.tech-callout {
  background-color: #f8fafc;
  border-left: 4px solid var(--accent-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 16px 20px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 24px;
}

/* Can & Cannot Do Comparison */
.can-cannot-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.can-column {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-lg);
  padding: 28px;
}

.cannot-column {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-lg);
  padding: 28px;
}

.column-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 1.1875rem;
  font-weight: 700;
}

.can-column .column-header {
  color: #166534;
}

.cannot-column .column-header {
  color: #991b1b;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.checklist-item svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.can-column .checklist-item svg {
  color: #16a34a;
}

.cannot-column .checklist-item svg {
  color: #dc2626;
}

/* FAQ Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--border-focus);
}

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

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

.faq-question svg {
  color: var(--accent-primary);
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.faq-item.is-open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 24px 20px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.faq-item.is-open .faq-answer {
  display: block;
}

/* Section 15 CTA Card */
.cta-card {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  border-radius: var(--radius-xl);
  padding: 56px 32px;
  text-align: center;
  color: #ffffff;
  box-shadow: var(--shadow-lg);
  margin-top: 16px;
}

.cta-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 14px;
  letter-spacing: -0.025em;
}

.cta-lead {
  font-size: 1.0625rem;
  color: #dbeafe;
  max-width: 580px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #ffffff;
  color: #1d4ed8;
  font-size: 1.0625rem;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
}

.btn-cta:hover {
  background-color: #f8fafc;
  color: #1e40af;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15);
}

/* Responsive Rules for Content Sections */
@media (max-width: 900px) {
  .image-text-split {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .can-cannot-container {
    grid-template-columns: 1fr;
  }

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

  .content-section {
    padding: 48px 0;
  }

  .cta-card {
    padding: 36px 20px;
  }

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

@media (max-width: 768px) {
  .hero-section {
    padding: 40px 0 24px;
    text-align: center;
  }

  .hero-title {
    font-size: 1.875rem;
  }

  .hero-desc {
    font-size: 1rem;
    margin-bottom: 24px;
  }

  /* Centered Trust Strip on Mobile */
  .trust-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 20px;
    margin-top: 18px;
    margin-bottom: 24px;
  }

  .trust-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.8125rem;
  }

  /* Centered card icons & layout on mobile */
  .cards-grid-2,
  .cards-grid-3,
  .cards-grid-4 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .info-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 20px;
  }

  .card-icon-wrap {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 14px;
  }

  .column-header {
    justify-content: center;
  }

  .section-badge {
    margin-left: auto;
    margin-right: auto;
  }

  .comparison-badge {
    top: 10px;
    font-size: 0.6875rem;
    padding: 4px 10px;
  }

  .badge-original {
    left: 10px;
  }

  .badge-cleaned {
    right: 10px;
  }

  /* Footer Centering on Mobile */
  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  .footer-brand {
    justify-content: center;
  }

  .footer-nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .trust-strip {
    gap: 10px 16px;
  }
  
  .btn-cta {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
  }
}

