/*
 * SAFFRON & SPICE CATERING - STYLESHEET
 * ======================================
 * 
 * Color Scheme:
 * - Saffron (primary): #d88b00
 * - Teal (secondary): #0b7d7d
 * - Neutral backgrounds and text
 */

:root {
  --saffron: #d88b00;
  --teal: #0b7d7d;
  --saffron-light: #f4e8d8;
  --teal-light: #e8f4f4;
  --text-dark: #2d2d2d;
  --text-medium: #666;
  --text-light: #999;
  --border-color: #e0e0e0;
  --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --card-shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-dark);
  background: #ffffff;
}

/* Geometric Tile Pattern */
.geometric-divider {
  height: 4px;
  background: 
    repeating-linear-gradient(
      45deg,
      var(--saffron) 0px,
      var(--saffron) 10px,
      var(--teal) 10px,
      var(--teal) 20px
    );
  opacity: 0.3;
}

/* Header & Navigation */
header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

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

.brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--saffron);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-icon {
  color: var(--teal);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--saffron);
  outline: none;
}

.nav-links a:focus-visible {
  outline: 2px solid var(--saffron);
  outline-offset: 4px;
  border-radius: 2px;
}

.cart-link {
  background: var(--saffron);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}

.cart-link:hover,
.cart-link:focus {
  background: var(--teal);
  color: white;
  transform: translateY(-1px);
}

.cart-count {
  background: white;
  color: var(--saffron);
  padding: 0.125rem 0.5rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 700;
  margin-left: 0.5rem;
}

/* Main Container */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  min-height: calc(100vh - 300px);
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--saffron-light) 0%, var(--teal-light) 100%);
  border-radius: 12px;
  margin-bottom: 3rem;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-medium);
  max-width: 700px;
  margin: 0 auto 2rem;
}

/* Badges */
.badges {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.badge {
  background: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  color: var(--text-dark);
  box-shadow: var(--card-shadow);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.badge-icon {
  color: var(--saffron);
  font-size: 1.25rem;
}

/* Guest Count Control */
.guest-control {
  max-width: 400px;
  margin: 2rem auto;
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
}

.guest-control label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.guest-control input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1.125rem;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.guest-control input:focus {
  outline: none;
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(216, 139, 0, 0.1);
}

.guest-control .help-text {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

/* Grid Layouts */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

/* Cards */
.card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--card-shadow);
}

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

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.card-content {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.card-description {
  color: var(--text-medium);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tag {
  background: var(--saffron-light);
  color: var(--saffron);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.price {
  font-weight: 700;
  color: var(--teal);
  font-size: 1.125rem;
}

.price-detail {
  font-size: 0.75rem;
  color: var(--text-light);
  display: block;
  margin-top: 0.25rem;
}

/* Buttons */
button, .button {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

button:focus-visible, .button:focus-visible {
  outline: 2px solid var(--saffron);
  outline-offset: 2px;
}

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

.btn-primary:hover,
.btn-primary:focus {
  background: #c57d00;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--teal);
  color: white;
}

.btn-outline {
  background: white;
  color: var(--saffron);
  border: 2px solid var(--saffron);
}

.btn-outline:hover,
.btn-outline:focus {
  background: var(--saffron);
  color: white;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-danger {
  background: #dc3545;
  color: white;
}

.btn-danger:hover,
.btn-danger:focus {
  background: #c82333;
}

/* Menu Page */
.menu-header {
  text-align: center;
  margin-bottom: 3rem;
}

.menu-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.menu-header .subtitle {
  color: var(--text-medium);
  font-size: 1.125rem;
}

.menu-section {
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--saffron);
  display: inline-block;
}

/* Cart Page */
.cart-empty {
  text-align: center;
  padding: 4rem 2rem;
}

.cart-empty h2 {
  font-size: 2rem;
  color: var(--text-medium);
  margin-bottom: 1rem;
}

.cart-table {
  width: 100%;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  margin-bottom: 2rem;
}

.cart-table table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table th {
  background: var(--saffron-light);
  color: var(--text-dark);
  font-weight: 600;
  text-align: left;
  padding: 1rem;
  border-bottom: 2px solid var(--border-color);
}

.cart-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.cart-table tr:last-child td {
  border-bottom: none;
}

.cart-total {
  background: var(--teal-light);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-total h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
}

.cart-total .total-amount {
  font-size: 2rem;
  font-weight: 700;
  color: var(--teal);
}

/* Event Details Form */
.event-form {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  margin-bottom: 2rem;
}

.event-form h3 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea {
  padding: 0.75rem;
  font-size: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(216, 139, 0, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.form-actions button {
  flex: 1;
  min-width: 200px;
}

/* Story Section */
.story {
  background: white;
  padding: 3rem 2rem;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  margin-bottom: 3rem;
}

.story h2 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
  text-align: center;
}

.story p {
  color: var(--text-medium);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  text-align: center;
}

/* Cuisine Cards (Home) */
.cuisine-card {
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s;
  text-decoration: none;
  display: block;
}

.cuisine-card:hover {
  border-color: var(--saffron);
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
}

.cuisine-card h3 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.cuisine-card p {
  color: var(--text-medium);
  margin-bottom: 1.5rem;
}

.cuisine-card .arrow {
  color: var(--saffron);
  font-size: 1.5rem;
}

/* Footer */
footer {
  background: var(--text-dark);
  color: white;
  padding: 3rem 2rem 1.5rem;
  margin-top: 4rem;
}

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

.footer-section h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--saffron);
}

.footer-section p,
.footer-section a {
  color: #ccc;
  text-decoration: none;
  line-height: 1.8;
}

.footer-section a:hover,
.footer-section a:focus {
  color: var(--saffron);
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #999;
  font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    text-align: center;
  }

  .nav-links {
    justify-content: center;
  }

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

  .hero p {
    font-size: 1rem;
  }

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

  .menu-header h1 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .cart-table {
    overflow-x: auto;
  }

  .form-actions button {
    width: 100%;
  }

  .cart-total {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

/* Loading & Transitions */
.fade-in {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus visible for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--saffron);
  outline-offset: 2px;
}
