/* ========================================
   Sandwich Delivery Website - Urban Sketch Theme
   Colors: White background, Black lines, Red accents
   ======================================== */

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

:root {
  --primary-black: #1a1a1a;
  --primary-red: #c41e3a;
  --accent-red: #e63946;
  --light-gray: #f8f8f8;
  --medium-gray: #e0e0e0;
  --text-gray: #555555;
  --white: #ffffff;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.7;
  color: var(--primary-black);
  background-color: var(--white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  color: var(--primary-black);
  position: relative;
  display: inline-block;
}

h1::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--primary-red);
}

h2 {
  font-size: 2rem;
  color: var(--primary-black);
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary-red);
}

h3 {
  font-size: 1.5rem;
  color: var(--primary-black);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

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

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

a:hover {
  color: var(--accent-red);
}

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

.section {
  padding: 80px 0;
}

.section-light {
  background-color: var(--light-gray);
}

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

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-black);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo svg {
  width: 40px;
  height: 40px;
}

.logo span {
  color: var(--primary-red);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav ul li a {
  color: var(--primary-black);
  font-weight: 500;
  padding: 8px 0;
  position: relative;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-red);
  transition: var(--transition);
}

nav ul li a:hover::after,
nav ul li a.active::after {
  width: 100%;
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  background-color: var(--primary-black);
  transition: var(--transition);
}

/* Hero Section */
.hero {
  background-color: var(--light-gray);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(196, 30, 58, 0.05) 100%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

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

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

/* Sketch-style decorative elements */
.sketch-border {
  border: 2px solid var(--primary-black);
  border-radius: 8px;
  position: relative;
}

.sketch-border::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  right: -4px;
  bottom: -4px;
  border: 2px solid var(--primary-red);
  border-radius: 8px;
  z-index: -1;
}

/* Cards & Content Boxes */
.card {
  background-color: var(--white);
  border: 2px solid var(--primary-black);
  border-radius: 8px;
  padding: 30px;
  position: relative;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 8px 8px 0 rgba(196, 30, 58, 0.2);
}

.card-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  color: var(--primary-red);
}

.card h3 {
  margin-top: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Steps / Workflow */
.steps {
  counter-reset: step-counter;
}

.step {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
  padding: 30px;
  background-color: var(--white);
  border: 2px solid var(--primary-black);
  border-radius: 8px;
  position: relative;
}

.step::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  top: -15px;
  left: 30px;
  width: 40px;
  height: 40px;
  background-color: var(--primary-red);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.step-content h3 {
  margin-top: 0;
}

/* Info Box */
.info-box {
  background-color: var(--light-gray);
  border-left: 4px solid var(--primary-red);
  padding: 20px 25px;
  margin: 20px 0;
}

.info-box.warning {
  border-left-color: var(--accent-red);
  background-color: #fff5f5;
}

/* FAQ Section */
.faq-item {
  border: 2px solid var(--primary-black);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.faq-question {
  padding: 20px 25px;
  background-color: var(--white);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  transition: var(--transition);
}

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

.faq-question svg {
  width: 20px;
  height: 20px;
  transition: var(--transition);
}

.faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: var(--light-gray);
}

.faq-answer.active {
  padding: 20px 25px;
  max-height: 500px;
}

/* Tables */
.table-wrapper {
  overflow-x: auto;
  margin: 20px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--white);
}

th, td {
  padding: 15px;
  text-align: left;
  border: 1px solid var(--medium-gray);
}

th {
  background-color: var(--primary-black);
  color: var(--white);
  font-weight: 600;
}

tr:nth-child(even) {
  background-color: var(--light-gray);
}

/* Lists */
ul, ol {
  margin: 1rem 0;
  padding-left: 2rem;
}

li {
  margin-bottom: 0.5rem;
  color: var(--text-gray);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border: 2px solid var(--primary-black);
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary-red);
  color: var(--white);
  border-color: var(--primary-red);
}

.btn-primary:hover {
  background-color: var(--accent-red);
  border-color: var(--accent-red);
  color: var(--white);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-black);
}

.btn-outline:hover {
  background-color: var(--primary-black);
  color: var(--white);
}

/* Contact Info */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 25px;
  background-color: var(--white);
  border: 2px solid var(--primary-black);
  border-radius: 8px;
}

.contact-item svg {
  width: 40px;
  height: 40px;
  color: var(--primary-red);
  flex-shrink: 0;
}

.contact-item h3 {
  margin-top: 0;
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.contact-item p {
  margin: 0;
}

/* Footer */
footer {
  background-color: var(--primary-black);
  color: var(--white);
  padding: 60px 0 30px;
  margin-top: 60px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

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

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: #cccccc;
}

.footer-section ul li a:hover {
  color: var(--white);
}

.footer-section p {
  color: #cccccc;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #333;
}

.footer-bottom p {
  color: #888;
  font-size: 0.9rem;
}

/* Disclaimer Banner */
.disclaimer {
  background-color: #fff5f5;
  border: 2px solid var(--primary-red);
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}

.disclaimer h4 {
  color: var(--primary-red);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Page Header */
.page-header {
  background-color: var(--light-gray);
  padding: 60px 0;
  text-align: center;
}

.page-header h1 {
  margin-bottom: 15px;
}

.page-header p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
  padding: 15px 0;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--text-gray);
}

.breadcrumb span {
  color: var(--primary-black);
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-text h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    flex-direction: column;
    padding: 20px;
    gap: 0;
    box-shadow: var(--shadow);
  }
  
  nav ul.active {
    display: flex;
  }
  
  nav ul li {
    border-bottom: 1px solid var(--medium-gray);
  }
  
  nav ul li a {
    display: block;
    padding: 15px 0;
  }
  
  .section {
    padding: 50px 0;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .hero-text h1 {
    font-size: 2rem;
  }
  
  .step {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  .card {
    padding: 20px;
  }
  
  .btn {
    padding: 10px 20px;
    width: 100%;
  }
  
  .contact-item {
    flex-direction: column;
    text-align: center;
  }
}

/* Print Styles */
@media print {
  header, footer, .btn {
    display: none;
  }
  
  body {
    font-size: 12pt;
  }
  
  .section {
    padding: 20px 0;
  }
}