/* ============================================
   SANDWICH WORKFLOW HUB - Main Stylesheet
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #ffffff;
  color: #1a1a2e;
  line-height: 1.75;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #1a5cba;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #0d3d8a;
  text-decoration: underline;
}

ul, ol {
  padding-left: 1.5rem;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: #0d1b4b;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p {
  margin-bottom: 1rem;
  color: #2d2d2d;
}

/* --- Layout Containers --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section--gray {
  background-color: #f5f7fb;
}

.section--blue {
  background-color: #1a5cba;
  color: #ffffff;
}

.section--blue h2,
.section--blue h3,
.section--blue p {
  color: #ffffff;
}

/* --- Topbar Disclaimer --- */
.topbar {
  background-color: #0d3d8a;
  color: #cfe0ff;
  font-size: 0.78rem;
  text-align: center;
  padding: 0.5rem 1.5rem;
  letter-spacing: 0.02em;
}

/* --- Navigation --- */
.site-header {
  background-color: #ffffff;
  border-bottom: 2px solid #e2e8f5;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(26, 92, 186, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.site-logo .logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #1a5cba, #2e7dd1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.site-logo .logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0d1b4b;
  line-height: 1.2;
}

.site-logo .logo-text span {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  color: #6b7aa1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #2d3a5e;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  background-color: #e8f0ff;
  color: #1a5cba;
  text-decoration: none;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.4rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #0d1b4b;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0d1b4b 0%, #1a5cba 60%, #2e7dd1 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 4rem 1.5rem;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #cfe0ff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  color: #ffffff;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 1.25rem;
}

.hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  max-width: 580px;
  margin: 0 auto 2rem;
}

.hero-cta {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn--primary {
  background-color: #ffffff;
  color: #1a5cba;
}

.btn--primary:hover {
  background-color: #e8f0ff;
  color: #0d3d8a;
  text-decoration: none;
}

.btn--outline {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid rgba(255,255,255,0.6);
}

.btn--outline:hover {
  background-color: rgba(255,255,255,0.1);
  color: #ffffff;
  text-decoration: none;
}

.btn--blue {
  background-color: #1a5cba;
  color: #ffffff;
}

.btn--blue:hover {
  background-color: #0d3d8a;
  color: #ffffff;
  text-decoration: none;
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1a5cba;
  margin-bottom: 0.6rem;
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  color: #5a6478;
  font-size: 1.05rem;
}

/* --- Card Grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.card-grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.card-grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* --- Cards --- */
.card {
  background: #ffffff;
  border: 1px solid #dce6f7;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(26, 92, 186, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(26, 92, 186, 0.13);
}

.card--blue {
  background: linear-gradient(135deg, #1a5cba, #2e7dd1);
  border: none;
  color: #ffffff;
}

.card--blue h3,
.card--blue p,
.card--blue .card-meta {
  color: #ffffff;
}

.card--blue .card-icon {
  background: rgba(255,255,255,0.2);
  color: #ffffff;
}

.card--light-blue {
  background: #e8f0ff;
  border: 1px solid #c5d8f8;
}

.card-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #e8f0ff, #c5d8f8);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

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

.card p {
  font-size: 0.95rem;
  color: #4a5568;
  margin-bottom: 0;
}

.card--blue p {
  color: rgba(255,255,255,0.88);
}

.card-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1a5cba;
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* --- Step Process --- */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.process-step {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding: 2rem 0;
  border-bottom: 1px solid #e2e8f5;
}

.process-step:last-child {
  border-bottom: none;
}

.step-number {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #1a5cba, #2e7dd1);
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-content h3 {
  margin-bottom: 0.6rem;
}

.step-content p {
  margin-bottom: 0;
  color: #4a5568;
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: 2.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.75rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #1a5cba, #2e7dd1);
}

.timeline-item {
  position: relative;
  padding: 0 0 2.5rem 2rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.75rem;
  top: 0.4rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #1a5cba;
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 2px #1a5cba;
}

.timeline-item h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.timeline-item p {
  color: #4a5568;
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* --- FAQ --- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: #ffffff;
  border: 1px solid #dce6f7;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(26, 92, 186, 0.05);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.4rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  color: #0d1b4b;
  gap: 1rem;
  transition: background 0.2s;
}

.faq-question:hover {
  background: #f0f5ff;
}

.faq-question .faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: #e8f0ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #1a5cba;
  transition: transform 0.3s, background 0.2s;
}

.faq-item.open .faq-question .faq-icon {
  transform: rotate(45deg);
  background: #1a5cba;
  color: #fff;
}

.faq-answer {
  display: none;
  padding: 0 1.75rem 1.5rem;
  font-size: 0.97rem;
  color: #4a5568;
  border-top: 1px solid #e8f0ff;
}

.faq-answer p {
  margin-top: 1rem;
  margin-bottom: 0;
  color: #4a5568;
}

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

/* --- Stat Cards --- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.stat-card {
  padding: 2rem 1.5rem;
  background: rgba(255,255,255,0.1);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.2);
}

.stat-card .stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-card .stat-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}

/* --- Info Box --- */
.info-box {
  background: #e8f0ff;
  border-left: 4px solid #1a5cba;
  border-radius: 0 12px 12px 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.info-box p {
  margin-bottom: 0;
  color: #0d1b4b;
  font-size: 0.95rem;
}

.info-box.warning {
  background: #fff7e6;
  border-left-color: #f59e0b;
}

.info-box.warning p {
  color: #92400e;
}

/* --- Two Column Layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.two-col--reverse {
  direction: rtl;
}

.two-col--reverse > * {
  direction: ltr;
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  background: linear-gradient(135deg, #0d1b4b 0%, #1a5cba 100%);
  padding: 5rem 1.5rem;
  text-align: center;
}

.page-hero h1 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.page-hero p {
  color: rgba(255,255,255,0.82);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.page-hero .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9ec5f8;
  margin-bottom: 0.75rem;
}

/* --- Breadcrumb --- */
.breadcrumb {
  background: #f5f7fb;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid #e2e8f5;
}

.breadcrumb nav {
  max-width: 1200px;
  margin: 0 auto;
  font-size: 0.85rem;
  color: #6b7aa1;
}

.breadcrumb a {
  color: #1a5cba;
}

.breadcrumb span {
  margin: 0 0.4rem;
}

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

.contact-info-card {
  background: #ffffff;
  border: 1px solid #dce6f7;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(26, 92, 186, 0.07);
}

.contact-info-card h3 {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e8f0ff;
}

.contact-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid #f0f4ff;
}

.contact-row:last-child {
  border-bottom: none;
}

.contact-row-icon {
  width: 42px;
  height: 42px;
  background: #e8f0ff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-row-text .label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7aa1;
  margin-bottom: 0.2rem;
}

.contact-row-text .value {
  font-size: 0.97rem;
  color: #1a1a2e;
  font-weight: 600;
  margin: 0;
}

/* --- Disclaimer Banner --- */
.disclaimer-banner {
  background: #fff7e6;
  border: 1px solid #fcd34d;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.disclaimer-banner .disclaimer-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.disclaimer-banner p {
  margin: 0;
  color: #92400e;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* --- Footer --- */
.site-footer {
  background: #0d1b4b;
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding: 0 1.5rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand .logo-text {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.25rem;
}

.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  margin-top: 0.75rem;
  line-height: 1.7;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  transition: color 0.2s;
  text-decoration: none;
}

.footer-col ul li a:hover {
  color: #ffffff;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  max-width: 1200px;
  margin: 0 auto;
}

/* --- Privacy Policy --- */
.prose {
  max-width: 820px;
  margin: 0 auto;
}

.prose h2 {
  margin: 2.5rem 0 1rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f5;
  font-size: 1.35rem;
}

.prose h2:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.prose p {
  margin-bottom: 1rem;
  color: #3a4562;
}

.prose ul {
  margin-bottom: 1rem;
  color: #3a4562;
}

.prose ul li {
  margin-bottom: 0.4rem;
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-white { color: #ffffff; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 1rem; }
.gap-badge {
  display: inline-block;
  background: #e8f0ff;
  color: #1a5cba;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e2e8f5;
    padding: 1rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    gap: 0.25rem;
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .site-header {
    position: relative;
  }

  .hero {
    min-height: 420px;
  }

  .hero-content {
    padding: 3rem 1.5rem;
  }

  .section {
    padding: 3.5rem 0;
  }

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

  .process-step {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .card-grid--4 {
    grid-template-columns: 1fr 1fr;
  }

  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* --- Print --- */
@media print {
  .site-header, .topbar, .site-footer { display: none; }
  .section { padding: 2rem 0; }
}