/* ============================================
   Sandwich Delivery Timing - Main Stylesheet
   Timeline UI Concept with Purple Accents
   ============================================ */

/* CSS Variables */
:root {
  --primary-purple: #7c3aed;
  --primary-purple-dark: #5b21b6;
  --primary-purple-light: #a78bfa;
  --background-light: #fafafa;
  --background-white: #ffffff;
  --text-dark: #1f2937;
  --text-medium: #4b5563;
  --text-light: #6b7280;
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
}

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

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--background-light);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
}

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

h1 { font-size: 2.5rem; margin-bottom: 1.5rem; }
h2 { font-size: 2rem; margin-bottom: 1.25rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.75rem; }

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

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

a:hover { color: var(--primary-purple-dark); }

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

/* ============================================
   Header & Navigation
   ============================================ */
header {
  background: var(--background-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-purple), var(--primary-purple-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
}

/* Navigation */
nav ul {
  display: flex;
  list-style: none;
  gap: 0.5rem;
}

nav a {
  padding: 0.5rem 1rem;
  color: var(--text-medium);
  font-weight: 500;
  border-radius: 8px;
  transition: var(--transition);
}

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

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  border-radius: 3px;
  transition: var(--transition);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-purple-dark) 100%);
  color: white;
  padding: 4rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: white;
}

.hero p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.hero-visual {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-icon-box {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-icon-box svg {
  width: 48px;
  height: 48px;
}

.hero-icon-box span {
  font-size: 1.1rem;
  font-weight: 500;
}

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

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

.page-header p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
}

/* ============================================
   Main Content Sections
   ============================================ */
main {
  padding: 3rem 1.5rem;
}

.content-section {
  background: var(--background-white);
  border-radius: 16px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
}

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

/* ============================================
   Timeline Components
   ============================================ */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary-purple-light), var(--primary-purple));
  border-radius: 2px;
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: calc(50% + 30px);
  position: relative;
  margin-bottom: 2rem;
}

.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 30px);
}

.timeline-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: var(--primary-purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  z-index: 1;
}

.timeline-content {
  background: var(--background-light);
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 400px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary-purple);
}

.timeline-content h3 {
  color: var(--primary-purple);
  margin-bottom: 0.5rem;
}

.timeline-content p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Horizontal Timeline */
.horizontal-timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  padding: 2rem 0;
  overflow-x: auto;
}

.horizontal-timeline::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-purple-light);
  transform: translateY(-50%);
  z-index: 0;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 150px;
  text-align: center;
}

.timeline-step-marker {
  width: 60px;
  height: 60px;
  background: var(--primary-purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  margin-bottom: 1rem;
  border: 4px solid var(--background-white);
}

.timeline-step h4 {
  margin-bottom: 0.5rem;
}

.timeline-step p {
  font-size: 0.875rem;
  max-width: 150px;
}

/* ============================================
   Info Cards
   ============================================ */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.info-card {
  background: var(--background-light);
  border-radius: 12px;
  padding: 1.5rem;
  border-left: 4px solid var(--primary-purple);
  transition: var(--transition);
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.info-card-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-purple), var(--primary-purple-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.info-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.info-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ============================================
   FAQ Accordion
   ============================================ */
.faq-list {
  margin-top: 2rem;
}

.faq-item {
  background: var(--background-light);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover {
  background: rgba(124, 58, 237, 0.05);
}

.faq-question svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

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

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 0 1.5rem 1.25rem;
  max-height: 500px;
}

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

/* ============================================
   Contact Form & Info
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-purple), var(--primary-purple-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.contact-details h4 {
  margin-bottom: 0.25rem;
}

.contact-details p {
  margin-bottom: 0;
  color: var(--text-medium);
}

/* ============================================
   Disclaimer Box
   ============================================ */
.disclaimer-box {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(124, 58, 237, 0.05));
  border: 1px solid var(--primary-purple-light);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 2rem;
}

.disclaimer-box h4 {
  color: var(--primary-purple);
  margin-bottom: 0.5rem;
}

.disclaimer-box p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ============================================
   Footer
   ============================================ */
footer {
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 1.5rem 1.5rem;
  margin-top: 3rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

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

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--primary-purple-light);
}

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

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 992px) {
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item,
  .timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-left: 60px;
    padding-right: 0;
  }
  
  .timeline-marker {
    left: 20px;
  }
  
  .timeline-content {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-wrap: wrap;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  nav {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  
  nav.active {
    max-height: 500px;
  }
  
  nav ul {
    flex-direction: column;
    padding: 1rem 0;
  }
  
  nav a {
    display: block;
    padding: 0.75rem 1rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  
  .content-section {
    padding: 1.5rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .horizontal-timeline {
    flex-direction: column;
    gap: 2rem;
  }
  
  .horizontal-timeline::before {
    top: 0;
    bottom: 0;
    left: 30px;
    width: 4px;
    height: auto;
    transform: none;
  }
  
  .timeline-step {
    flex-direction: row;
    text-align: left;
    gap: 1rem;
  }
  
  .timeline-step-marker {
    margin-bottom: 0;
    flex-shrink: 0;
  }
}

@media (max-width: 480px) {
  .hero-visual {
    flex-direction: column;
  }
  
  .hero-icon-box {
    width: 100%;
    justify-content: center;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center { text-align: center; }
.text-purple { color: var(--primary-purple); }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }