/* ============================================
   CDL COMPLIANCE ECOSYSTEM — SHARED STYLES
   Universal layout, typography, components
   ============================================ */

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1A1A1A;
  background: #FFFFFF;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; outline: none; }
input, textarea, select { font-family: inherit; }

/* --- Typography Scale --- */
h1, h2, h3, h4, h5, h6 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.text-muted { color: #6B7280; font-size: 0.95rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-center { text-align: center; }
.text-uppercase { text-transform: uppercase; letter-spacing: 0.08em; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* --- Universal CTA Button — Safety Orange #FF6F00 --- */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #FF6F00;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.btn-cta:hover {
  background: #E65100;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,111,0,0.35);
}
.btn-cta:active { transform: translateY(0); }

.btn-cta-lg {
  font-size: 1.15rem;
  padding: 1rem 2.5rem;
}

/* Secondary Button — outline, brand-primary */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  border: 2px solid;
  transition: all 0.2s ease;
  white-space: nowrap;
}

/* Outline light — for use on dark/primary backgrounds */
.btn-outline-light {
  border-color: rgba(255,255,255,0.7);
  color: #FFFFFF;
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.15);
  border-color: #FFFFFF;
  color: #FFFFFF;
}

/* Ghost / light button */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.15);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  border: 2px solid rgba(255,255,255,0.4);
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.25); }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container-wide { max-width: 1400px; }
.container-narrow { max-width: 800px; }

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

/* Section color rhythm */
.bg-white { background: #FFFFFF; }
.bg-light { background: #F5F7FA; }
.bg-primary { color: #FFFFFF; }

/* Section labels */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
}
.section-title {
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 1.1rem;
  color: #6B7280;
  max-width: 640px;
}

/* Grid system */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { flex-direction: column; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* --- Cards --- */
.card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 2rem;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

.card-sm { padding: 1.25rem; }
.card-lg { padding: 2.5rem; }

/* --- Icon Boxes --- */
.icon-box {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* --- Trust Signals --- */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #2E7D32;
}
.trust-badge::before { content: "✓"; font-weight: 700; }

.badge-success {
  display: inline-block;
  background: #E8F5E9;
  color: #2E7D32;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-warning {
  background: #FFF3E0;
  color: #E65100;
}

/* --- Navigation (shared structure) --- */
.topbar {
  height: 36px;
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 500;
}
.topbar a { transition: opacity 0.2s; }
.topbar a:hover { opacity: 0.8; }

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #FFFFFF;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  height: 70px;
  display: flex;
  align-items: center;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }

.nav-logo { display: flex; align-items: center; gap: 0.5rem; font-weight: 800; font-size: 1.25rem; }
.nav-logo img { height: 42px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-links a {
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
  color: #1A1A1A;
}
.nav-links a:hover { background: #F5F7FA; }
.nav-links a.active { font-weight: 700; }

.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.nav-phone { font-weight: 600; font-size: 0.9rem; display: flex; align-items: center; gap: 0.4rem; }

/* Mobile nav */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: #1A1A1A;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #FFFFFF;
  z-index: 999;
  padding: 2rem 1.5rem;
  overflow-y: auto;
  flex-direction: column;
  gap: 0.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  display: block;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 500;
  border-radius: 8px;
  color: #1A1A1A;
  border-bottom: 1px solid #F5F7FA;
}
.mobile-menu a:hover { background: #F5F7FA; }
.mobile-menu .btn-cta { margin-top: 1rem; text-align: center; justify-content: center; width: 100%; }

/* --- Hero Sections --- */
.hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
  background: #F5F7FA;
}
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-content { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
}
.hero h1 { margin-bottom: 1.25rem; }
.hero-sub {
  font-size: 1.15rem;
  color: #333333;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-stats { display: flex; gap: 2rem; flex-wrap: wrap; }
.hero-stat strong { display: block; font-size: 1.75rem; font-weight: 800; line-height: 1; }
.hero-stat span { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: #6B7280; font-weight: 600; }
.hero-image { border-radius: 16px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.15); position: relative; }
.hero-image img { width: 100%; height: 420px; object-fit: cover; }

/* --- Trust Bar --- */
.trust-bar {
  padding: 20px 0;
  border-top: 1px solid #E5E7EB;
  border-bottom: 1px solid #E5E7EB;
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #6B7280;
}
.trust-item i { font-size: 1rem; }

/* --- Stats Row --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stat-item { padding: 2rem; }
.stat-number {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.4rem;
  display: block;
}
.stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6B7280;
  font-weight: 600;
}

/* --- Process Steps --- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 1.5rem);
  right: calc(12.5% + 1.5rem);
  height: 2px;
  background: #E5E7EB;
  z-index: 0;
}
.process-step { text-align: center; position: relative; z-index: 1; }
.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 auto 1rem;
  border: 3px solid #FFFFFF;
  box-shadow: 0 0 0 2px #E5E7EB;
}
.step-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.step-desc { font-size: 0.875rem; color: #6B7280; }

/* --- Testimonials --- */
.testimonial-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 1.75rem;
}
.testimonial-quote { font-size: 1rem; line-height: 1.7; margin-bottom: 1.25rem; font-style: italic; color: #333333; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: white;
  flex-shrink: 0;
}
.author-name { font-weight: 700; font-size: 0.95rem; }
.author-title { font-size: 0.8rem; color: #6B7280; }
.stars { color: #F2A900; font-size: 0.9rem; margin-bottom: 0.75rem; }

/* --- FAQ --- */
.faq-item {
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  transition: box-shadow 0.2s;
}
.faq-item.open { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: #1A1A1A;
  cursor: pointer;
  gap: 1rem;
}
.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  transition: transform 0.25s;
  font-weight: 700;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s ease;
  padding: 0 1.5rem;
  color: #333333;
  font-size: 0.95rem;
  line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 400px; padding: 0.75rem 1.5rem 1.5rem; }

/* --- Blog Cards --- */
.blog-card { border-radius: 12px; overflow: hidden; border: 1px solid #E5E7EB; background: #FFFFFF; transition: box-shadow 0.25s, transform 0.25s; }
.blog-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.1); transform: translateY(-3px); }
.blog-card-img { width: 100%; height: 200px; object-fit: cover; }
.blog-card-body { padding: 1.5rem; }
.blog-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}
.blog-card-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; line-height: 1.4; color: #1A1A1A; }
.blog-card-title:hover { text-decoration: underline; }
.blog-card-excerpt { font-size: 0.9rem; color: #6B7280; line-height: 1.6; margin-bottom: 1rem; }
.blog-meta { display: flex; align-items: center; gap: 0.75rem; font-size: 0.8rem; color: #9CA3AF; }

/* --- Contact Form --- */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.4rem; color: #1A1A1A; }
.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid #E5E7EB;
  border-radius: 8px;
  font-size: 1rem;
  color: #1A1A1A;
  background: #FFFFFF;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-control:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb), 0.12);
}
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.75rem center; padding-right: 2.5rem; }

/* --- CTA Banner --- */
.cta-banner {
  padding: 80px 0;
  text-align: center;
}
.cta-banner h2 { margin-bottom: 1rem; }
.cta-banner p { font-size: 1.1rem; margin-bottom: 2rem; opacity: 0.9; }
.cta-actions { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* --- Footer --- */
.site-footer {
  background: #111827;
  color: #D1D5DB;
  padding: 60px 0 30px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand .nav-logo { color: #FFFFFF; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; margin-bottom: 1.25rem; color: #9CA3AF; }
.footer-col h5 { color: #FFFFFF; font-weight: 700; margin-bottom: 1rem; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { font-size: 0.9rem; color: #9CA3AF; transition: color 0.2s; }
.footer-col ul li a:hover { color: #FFFFFF; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.9rem; color: #9CA3AF; margin-bottom: 0.6rem; }
.footer-contact-item i { color: #F2A900; margin-top: 0.15rem; flex-shrink: 0; }
.footer-divider { border: none; border-top: 1px solid #374151; margin-bottom: 1.5rem; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: 0.8rem; color: #6B7280; }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: #6B7280; transition: color 0.2s; }
.footer-legal a:hover { color: #9CA3AF; }

/* --- Scroll Animations --- */
.animate-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- 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; }
.w-full { width: 100%; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }

/* --- Responsive Breakpoints --- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-split { grid-template-columns: 1fr; }
  .hero-image { display: none; }
}
@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-auto { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .nav-links, .nav-phone { display: none; }
  .hamburger { display: flex; }
  .trust-bar-inner { gap: 1.5rem; }
  .hero-stats { gap: 1.25rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .cta-actions { flex-direction: column; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .container { padding: 0 1rem; }
  .stat-number { font-size: 2rem; }
}
