/* ===========================================
   Sandwich Delivery Workflow - Main Stylesheet
   Mobile-First, Workflow Diagram Design
   =========================================== */

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

:root {
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-primary-light: #3b82f6;
  --color-text: #1f2937;
  --color-text-light: #6b7280;
  --color-background: #ffffff;
  --color-border: #e5e7eb;
  --color-section-alt: #f9fafb;
  --arrow-color: #2563eb;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --transition: all 0.3s ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-background);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
}

h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--color-text-light);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header & Navigation */
.header {
  background-color: var(--color-background);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header .container {
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

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

.logo-icon {
  width: 32px;
  height: 32px;
  background-color: var(--color-primary);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nav a {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--color-text-light);
  border-radius: 6px;
  transition: var(--transition);
}

.nav a:hover {
  background-color: var(--color-section-alt);
  color: var(--color-primary);
  text-decoration: none;
}

.nav a.active {
  background-color: var(--color-primary);
  color: white;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

/* Main Content */
main {
  flex: 1;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--color-section-alt) 0%, var(--color-background) 100%);
  padding: 3rem 1rem;
  text-align: center;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Workflow Diagram Styles */
.workflow-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 1rem;
  background-color: var(--color-background);
}

.workflow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 300px;
}

.step-icon {
  width: 80px;
  height: 80px;
  background-color: var(--color-section-alt);
  border: 3px solid var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 2rem;
}

.step-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

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

.workflow-arrow {
  width: 40px;
  height: 40px;
  color: var(--arrow-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.workflow-arrow svg {
  transform: rotate(90deg);
}

/* Horizontal Workflow (Desktop) */
.workflow-horizontal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* Process Blocks */
.process-block {
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.process-block:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-light);
}

.process-block h3 {
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.process-number {
  width: 32px;
  height: 32px;
  background-color: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: bold;
  flex-shrink: 0;
}

/* Content Sections */
.content-section {
  padding: 3rem 1rem;
}

.content-section:nth-child(even) {
  background-color: var(--color-section-alt);
}

.content-section h2 {
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--color-primary);
  display: inline-block;
}

/* Info Cards */
.info-card {
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}

.info-card h3 {
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

/* FAQ Section */
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  background-color: var(--color-section-alt);
  padding: 1rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

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

.faq-answer {
  padding: 1.5rem;
  background-color: var(--color-background);
  border-top: 1px solid var(--color-border);
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* Contact Form & Info */
.contact-grid {
  display: grid;
  gap: 2rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

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

.contact-details h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.contact-details p {
  margin: 0;
  font-size: 0.875rem;
}

/* Disclaimer Box */
.disclaimer {
  background-color: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  font-size: 0.875rem;
}

.disclaimer-title {
  font-weight: 600;
  color: #92400e;
  margin-bottom: 0.5rem;
}

.disclaimer p {
  color: #78350f;
  margin: 0;
}

/* Footer */
.footer {
  background-color: var(--color-text);
  color: white;
  padding: 2rem 1rem;
  margin-top: auto;
}

.footer .container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-section h4 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: #9ca3af;
  font-size: 0.875rem;
}

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

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 1.5rem;
  margin-top: 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: #9ca3af;
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  padding: 3rem 1rem;
  text-align: center;
}

.page-header h1 {
  color: white;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 1rem;
  background-color: var(--color-section-alt);
  font-size: 0.875rem;
}

.breadcrumbs a {
  color: var(--color-text-light);
}

.breadcrumbs span {
  color: var(--color-text-light);
  margin: 0 0.5rem;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

/* Responsive Design - Tablet */
@media (min-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .header .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo {
    margin-bottom: 0;
  }
  
  .nav {
    gap: 0.25rem;
  }
  
  .hero {
    padding: 4rem 2rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .workflow-horizontal {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .workflow-arrow svg {
    transform: rotate(0deg);
  }
  
  .content-section {
    padding: 4rem 2rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer .container {
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  
  .footer-section {
    min-width: 200px;
  }
}

/* Responsive Design - Desktop */
@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
  
  h1 {
    font-size: 3rem;
  }
  
  .hero {
    padding: 5rem 2rem;
  }
  
  .hero h1 {
    font-size: 3rem;
  }
  
  .workflow-step {
    max-width: 250px;
  }
  
  .content-section {
    padding: 5rem 2rem;
  }
  
  .process-block {
    padding: 2rem;
  }
}

/* Workflow Flowchart Styles */
.flowchart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 2rem 0;
}

.flowchart-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.flowchart-node {
  background-color: var(--color-background);
  border: 2px solid var(--color-primary);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  text-align: center;
  min-width: 200px;
  max-width: 300px;
  box-shadow: var(--shadow-sm);
}

.flowchart-node.highlight {
  background-color: var(--color-primary);
  color: white;
  border-color: var(--color-primary-dark);
}

.flowchart-node.highlight h4 {
  color: white;
}

.flowchart-node h4 {
  margin: 0;
  font-size: 1rem;
}

.flowchart-connector {
  width: 3px;
  height: 30px;
  background-color: var(--arrow-color);
}

.flowchart-arrow-down {
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 15px solid var(--arrow-color);
}

/* Step List */
.step-list {
  counter-reset: step-counter;
  list-style: none;
}

.step-list li {
  counter-increment: step-counter;
  position: relative;
  padding-left: 3.5rem;
  margin-bottom: 1.5rem;
}

.step-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Integration Diagram */
.integration-diagram {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 2rem 0;
}

.integration-node {
  background-color: var(--color-section-alt);
  border: 2px solid var(--color-border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.integration-node.central {
  background-color: var(--color-primary);
  color: white;
  border-color: var(--color-primary-dark);
}

.integration-node.central h4 {
  color: white;
}

.integration-node h4 {
  margin: 0 0 0.5rem;
  color: var(--color-text);
}

.integration-node p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-light);
}

.integration-node.central p {
  color: rgba(255, 255, 255, 0.9);
}

@media (min-width: 768px) {
  .integration-diagram {
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
  }
  
  .integration-node.central {
    transform: scale(1.1);
  }
}

/* Privacy Policy & Legal */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  margin-top: 2rem;
}

.legal-content ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
  color: var(--color-text-light);
}

/* About Page Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background-color: var(--color-section-alt);
  border-radius: 12px;
}

.stat-number {
  font-size: 2rem;
  font-weight: bold;
  color: var(--color-primary);
  display: block;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Arrow Animation */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.workflow-arrow {
  animation: pulse 2s infinite;
}

/* Print Styles */
@media print {
  .header, .footer, .nav {
    display: none;
  }
  
  body {
    font-size: 12pt;
  }
  
  .content-section {
    page-break-inside: avoid;
  }
}