/* Fabgen.ai — Shared styles */

:root {
  --navy: #0A1F44;
  --navy-deep: #06132B;
  --accent: #FF5E3A;
  --accent-hover: #E64A26;
  --text: #1A2332;
  --muted: #6B7280;
  --border: #E5E7EB;
  --bg-soft: #F7F8FA;
  --white: #FFFFFF;
  --success: #10B981;
  --shadow-sm: 0 1px 2px rgba(10,31,68,0.05);
  --shadow-md: 0 4px 12px rgba(10,31,68,0.08);
  --shadow-lg: 0 12px 32px rgba(10,31,68,0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 24px; }

/* HEADER */
header.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.logo span { color: var(--accent); }
.logo:hover { text-decoration: none; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  position: relative;
}
.nav-links a:not(.btn):hover { color: var(--accent); }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  min-width: 240px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s, visibility 0.15s, transform 0.15s;
}
.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}
.dropdown a:hover { background: var(--bg-soft); color: var(--accent); text-decoration: none; }

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  font-family: inherit;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--navy); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-deep); }
.btn-ghost { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.3); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); }
.btn-lg { padding: 14px 28px; font-size: 16px; }

/* SECTION SCAFFOLDING */
section { padding: 80px 0; }
section.tight { padding: 56px 0; }
section.dark { background: var(--navy); color: var(--white); }
section.dark h1, section.dark h2, section.dark h3 { color: var(--white); }
section.dark p { color: rgba(255,255,255,0.75); }
section.soft { background: var(--bg-soft); }

h1, h2, h3, h4 { color: var(--navy); letter-spacing: -0.02em; font-weight: 800; line-height: 1.15; }
h1 { font-size: clamp(36px, 5vw, 60px); margin-bottom: 20px; }
h2 { font-size: clamp(28px, 3.5vw, 44px); margin-bottom: 16px; }
h3 { font-size: 22px; margin-bottom: 10px; font-weight: 700; }
h4 { font-size: 17px; margin-bottom: 8px; font-weight: 700; }
p { font-size: 17px; color: var(--muted); line-height: 1.65; }
p.lead { font-size: 19px; color: var(--muted); }

.eyebrow {
  display: inline-block;
  background: rgba(255,94,58,0.1);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.eyebrow.dark { background: rgba(255,255,255,0.1); color: var(--white); }

.section-header { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-header.left { text-align: left; margin-left: 0; }

/* HERO */
.hero {
  padding: 88px 0 64px;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--white) 100%);
}
.hero.center { text-align: center; }
.hero-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-stat-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.hero-stat-label {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}
.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
  flex-wrap: wrap;
}
.cta-row.left { justify-content: flex-start; }

/* LOGO STRIP */
.logos {
  padding: 56px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
.logos-label {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 32px;
}
.logo-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  align-items: center;
  justify-items: center;
}
.logo-strip img {
  max-height: 48px;
  max-width: 150px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s;
}
.logo-strip img:hover { transform: translateY(-2px); }

/* Trustpilot-style review bar */
.trustpilot-bar {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.trustpilot-stars {
  display: inline-flex;
  gap: 2px;
}
.trustpilot-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  background: #00B67A;
  border-radius: 2px;
  color: white;
}
.trustpilot-logo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  color: var(--navy);
}
.trustpilot-logo::before {
  content: "★";
  color: #00B67A;
  font-size: 16px;
}

/* Review cards */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.review-stars {
  color: #00B67A;
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.review-card p { font-size: 15px; color: var(--text); line-height: 1.55; flex: 1; }
.review-author { margin-top: 14px; font-size: 13px; color: var(--muted); }
.review-author strong { color: var(--navy); display: block; font-weight: 700; font-size: 14px; }
@media (max-width: 760px) {
  .review-grid { grid-template-columns: 1fr; }
}

/* FEATURE GRID */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.feature-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
  text-decoration: none;
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255,94,58,0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 18px;
}
.feature-card h3 { font-size: 19px; color: var(--navy); margin-bottom: 10px; }
.feature-card p { font-size: 15px; color: var(--muted); line-height: 1.6; }
.feature-card .arrow {
  margin-top: 16px;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* INDUSTRY TILES */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.industry-tile {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.industry-tile:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  text-decoration: none;
}
.industry-tile h3 { font-size: 17px; margin: 0; color: var(--navy); }
.industry-tile .arrow { color: var(--accent); font-weight: 700; }

/* TWO COL */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

/* PROCESS STEPS */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  position: relative;
}
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,94,58,0.1);
  color: var(--accent);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.step h3 { font-size: 17px; color: var(--navy); }
.step p { font-size: 14px; color: var(--muted); }

/* CASE STUDY CARDS */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.case-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.case-thumb {
  aspect-ratio: 16 / 10;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 38px;
  position: relative;
}
.case-thumb .play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.case-body { padding: 22px; flex: 1; }
.case-vertical {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.case-body h3 { font-size: 18px; color: var(--navy); margin-bottom: 8px; }
.case-body p { font-size: 14px; color: var(--muted); line-height: 1.55; }
.case-stat {
  display: flex;
  gap: 16px;
  padding: 16px 22px;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  font-size: 13px;
}
.case-stat strong { color: var(--navy); font-weight: 700; }

/* STAT CALLOUTS */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 48px 0;
}
.stat {
  text-align: center;
  padding: 16px;
}
.stat-num {
  font-size: 44px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-label {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
  font-weight: 500;
}

/* BULLETS */
.checklist { list-style: none; padding: 0; }
.checklist li {
  padding: 10px 0 10px 32px;
  position: relative;
  font-size: 16px;
  color: var(--text);
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 10px;
  width: 22px;
  height: 22px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* TESTIMONIAL BLOCK */
.quote-block {
  background: var(--bg-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 28px 32px;
  margin: 24px 0;
}
.quote-block p { font-size: 18px; color: var(--text); font-style: italic; }
.quote-author { margin-top: 14px; font-size: 14px; color: var(--muted); font-weight: 500; }
.quote-author strong { color: var(--navy); font-weight: 700; }

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--accent);
  transition: transform 0.15s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin-top: 12px; font-size: 15px; color: var(--muted); }

/* FINAL CTA */
.final-cta { background: var(--navy); color: var(--white); padding: 96px 0; text-align: center; }
.final-cta h2 { color: var(--white); }
.final-cta p { color: rgba(255,255,255,0.75); max-width: 580px; margin: 0 auto 28px; }

/* FOOTER */
footer.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}
.footer-brand .logo { color: var(--white); }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 14px; margin-top: 16px; max-width: 280px; }
.footer-col h4 {
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  text-decoration: none;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}

/* FORM */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,94,58,0.15);
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .nav-links { gap: 16px; }
  .nav-links a:not(.btn) { display: none; }
  .feature-grid, .feature-grid.cols-4, .industry-grid, .case-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .logo-strip { grid-template-columns: repeat(3, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  section { padding: 56px 0; }
  .feature-grid, .feature-grid.cols-4, .industry-grid, .case-grid, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .logo-strip { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .form-card { padding: 28px 22px; }
  .stat-row { grid-template-columns: 1fr 1fr; gap: 16px; padding: 32px 0; }
}
