/* Garden Indian Restaurant - Main Stylesheet
   Author: [Your Name]
   Student ID: [Your ID]
*/

/* ======= Base Styles ======= */
:root {
  /* Color Palette - Updated for modern restaurant look */
  --primary: #d35400; /* Deep orange */
  --primary-light: #e67e22;
  --primary-dark: #a04000;
  --secondary: #2c3e50; /* Dark blue-gray */
  --secondary-light: #34495e;
  --secondary-dark: #1a252f;
  --accent: #27ae60; /* Emerald green */
  --accent-light: #2ecc71;
  --accent-dark: #219653;
  --text-dark: #2c3e50;
  --text-medium: #546E7A;
  --text-light: #90A4AE;
  --background: #ffffff;
  --background-alt: #f8f9fa;
  --success: #2ecc71;
  --warning: #f39c12;
  --error: #e74c3c;
  --neutral-100: #f5f5f5;
  --neutral-200: #eeeeee;
  --neutral-300: #e0e0e0;
  --neutral-400: #bdbdbd;
  --neutral-500: #9e9e9e;
  --neutral-600: #757575;
  --neutral-700: #616161;
  --neutral-800: #424242;
  --neutral-900: #212121;
  
  /* RGB Values for opacity variations */
  --primary-rgb: 211, 84, 0;
  --primary-light-rgb: 230, 126, 34;
  --primary-dark-rgb: 160, 64, 0;
  --secondary-rgb: 44, 62, 80;
  --secondary-light-rgb: 52, 73, 94;
  --secondary-dark-rgb: 26, 37, 47;
  --accent-rgb: 39, 174, 96;
  --neutral-100-rgb: 245, 245, 245;
  --neutral-200-rgb: 238, 238, 238;
  --neutral-300-rgb: 224, 224, 224;
  
  /* Typography */
  --font-heading: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Open Sans', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  
  /* Spacing (8px grid) */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: var(--space-md);
  font-weight: 700;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: var(--space-md);
}

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

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

ul, ol {
  margin-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

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

button, .btn {
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  border: none;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

input, select, textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--neutral-300);
  border-radius: var(--radius-md);
  width: 100%;
  background-color: white;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(211, 84, 0, 0.2);
}

label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 500;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Utility Classes */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  gap: 8px;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 4px 6px rgba(211, 84, 0, 0.2);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(211, 84, 0, 0.3);
}

.btn-secondary {
  background-color: var(--secondary);
  color: white;
  box-shadow: 0 4px 6px rgba(44, 62, 80, 0.2);
}

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(44, 62, 80, 0.3);
}

.btn-sm {
  font-size: 0.875rem;
  padding: 6px 12px;
}

.btn-lg {
  font-size: 1.125rem;
  padding: 12px 24px;
}

.text-center {
  text-align: center;
}

.img-responsive {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  transition: transform var(--transition-medium);
}

.required {
  color: var(--error);
}

/* ======= Layout Components ======= */

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: white;
  padding: 8px;
  z-index: 100;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* Header */
.header {
  background-color: white;
  box-shadow: var(--shadow-md);
  padding: var(--space-md) 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  font-size: 1.75rem;
  margin-bottom: 0;
  color: var(--primary);
  font-weight: 700;
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--space-md);
}

.nav-links a {
  color: var(--text-dark);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

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

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: var(--neutral-100);
  border: 2px solid var(--primary);
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 101;
  cursor: pointer;
  border-radius: var(--radius-sm);
  padding: var(--space-xs);
}

.mobile-menu-toggle .bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  margin: 6px 0;
  transition: var(--transition-medium);
}

.mobile-menu-toggle:hover {
  background-color: var(--neutral-200);
}

.mobile-menu-toggle:hover .bar {
  background-color: var(--primary-dark);
}

/* Welcome Section */
.welcome {
  padding: var(--space-xxl) 0;
  background-color: var(--background);
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: var(--space-xl);
  text-align: center;
  position: relative;
  padding-bottom: var(--space-md);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary);
}

.welcome-content {
  display: flex;
  gap: var(--space-xl);
  align-items: center;
}

.welcome-text {
  flex: 1;
}

.welcome-image {
  flex: 1;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.feature {
  text-align: center;
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  background-color: var(--neutral-100);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: var(--space-md);
  display: inline-block;
}

.feature h3 {
  margin-bottom: var(--space-sm);
}

/* Featured Dishes */
.featured-dishes {
  padding: var(--space-xxl) 0;
  background-color: var(--secondary);
  color: white;
  position: relative;
}

.dishes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.dish-card {
  background-color: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  color: var(--text-dark);
}

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

.dish-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.dish-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

.dish-card:hover .dish-image img {
  transform: scale(1.05);
}

.dish-content {
  padding: var(--space-md);
}

.dish-content h3 {
  margin-bottom: var(--space-xs);
}

.dish-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-sm);
}

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

.view-menu {
  text-align: center;
  margin-top: var(--space-xl);
}

/* Hours & Location */
.hours-location {
  padding: var(--space-xxl) 0;
  background-color: var(--background-alt);
}

.hours-location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

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

.hours-table th,
.hours-table td {
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--neutral-300);
  text-align: left;
}

.hours-table th {
  font-weight: 600;
  color: var(--text-medium);
}

.map-container {
  margin-top: var(--space-md);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.map-placeholder {
  background-color: var(--neutral-200);
  height: 250px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.map-placeholder iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer */
.footer {
  background-color: var(--secondary-dark);
  color: white;
  padding: var(--space-xl) 0;
  margin-top: auto;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-lg);
}

.footer-info p {
  margin-bottom: var(--space-sm);
  opacity: 0.8;
}

.footer a {
  color: var(--neutral-300);
  transition: color var(--transition-fast);
}

.footer a:hover {
  color: white;
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

/* Responsive */
@media (max-width: 992px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .welcome-content {
    flex-direction: column;
  }
  
  .welcome-image {
    margin-top: var(--space-lg);
  }
  
  .dishes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 80%;
    max-width: 300px;
    background-color: white;
    flex-direction: column;
    padding: 80px var(--space-lg) var(--space-lg);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right var(--transition-medium);
    z-index: 100;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links li {
    width: 100%;
  }
  
  .hours-location-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links ul {
    columns: 1;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

@media (max-width: 576px) {
  .dishes-grid {
    grid-template-columns: 1fr;
  }
  
  .dish-card {
    max-width: 350px;
    margin: 0 auto;
  }
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 12px 20px;
  background-color: var(--primary);
  color: white;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  max-width: 300px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-success {
  background-color: var(--success);
}

.toast-error {
  background-color: var(--error);
}

.toast-info {
  background-color: var(--secondary);
}

/* Add watermark to imported images as a CSS fallback */
img[src*="images/imported/"] {
    position: relative;
}

img[src*="images/imported/"]::after {
    content: "EXAMPLE";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    font-size: 2.5rem;
    font-weight: bold;
    color: rgba(255, 0, 0, 0.7);
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    z-index: 1000;
    letter-spacing: 2px;
}

/* Prevent watermarks from appearing in the header */
.header img[src*="images/imported/"]::after {
    display: none;
}

/* Form validation styles */
input.error, 
select.error, 
textarea.error {
  border-color: var(--error) !important;
  box-shadow: 0 0 0 1px var(--error) !important;
}

.error-message {
  color: var(--error);
  font-size: 0.85rem;
  margin-top: 4px;
  display: block;
}

/* Form Button Styles */
.btn-primary {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative; /* Ensure proper positioning */
    z-index: 10; /* Ensure buttons appear above other elements */
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Error styling for form fields */
.error {
    border-color: var(--error) !important;
    box-shadow: 0 0 0 1px var(--error) !important;
}

/* Make form actions more prominent */
.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    gap: 10px;
}

/* Ensure form elements have good visibility */
form textarea, form input, form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

/* Makes submit buttons stand out */
button[type="submit"] {
    background-color: var(--primary);
    color: white;
    font-weight: bold;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}