/* ========================================
   Bella Vista Italian Restaurant
   Modern, Clean CSS Stylesheet
   ======================================== */

/* CSS Variables for Easy Customization */
:root {
  --color-cream: #FDF8F3;
  --color-cream-dark: #F5EDE4;
  --color-red: #B8323F;
  --color-red-dark: #8B1E2F;
  --color-green: #2D5A47;
  --color-green-light: #4A7C64;
  --color-gold: #C9A962;
  --color-text: #2C2C2C;
  --color-text-light: #5A5A5A;
  --color-white: #FFFFFF;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-cream);
}

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

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

ul {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

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

.btn-primary:hover {
  background-color: var(--color-red-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
  background-color: var(--color-red);
  color: var(--color-white);
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  background-color: transparent;
  transition: var(--transition);
}

.navbar.scrolled {
  background-color: var(--color-white);
  box-shadow: var(--shadow-sm);
  padding: 0.75rem 0;
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-white);
  transition: var(--transition);
}

.navbar.scrolled .logo {
  color: var(--color-red);
}

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

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-white);
  position: relative;
}

.navbar.scrolled .nav-links a {
  color: var(--color-text);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-gold);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

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

.mobile-toggle span {
  width: 25px;
  height: 2px;
  background-color: var(--color-white);
  transition: var(--transition);
}

.navbar.scrolled .mobile-toggle span {
  background-color: var(--color-text);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  z-index: -2;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="%23ffffff10"/></svg>') repeat;
  background-size: 50px 50px;
  opacity: 0.5;
}

/* Image placeholder for hero */
.hero-image-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.6)),
              url('https://images.unsplash.com/photo-1514933651103-005eec06c04b?w=1920&q=80') center/cover no-repeat;
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  padding: 0 1.5rem;
}

.hero-subtitle {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--color-gold);
  margin-bottom: 1rem;
}

.hero h1 {
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-indicator span {
  display: block;
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--color-white);
  border-bottom: 2px solid var(--color-white);
  transform: rotate(45deg);
  opacity: 0.6;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  margin-bottom: 1rem;
  color: var(--color-text);
}

.section-header p {
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.section-divider span {
  width: 50px;
  height: 1px;
  background-color: var(--color-gold);
}

.section-divider i {
  color: var(--color-gold);
  font-size: 0.75rem;
}

/* Featured Dishes */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.dish-card {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.dish-image {
  height: 220px;
  background-color: var(--color-cream-dark);
  position: relative;
  overflow: hidden;
}

.dish-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.dish-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-cream-dark), var(--color-cream));
  color: var(--color-text-light);
  font-size: 3rem;
}

.dish-content {
  padding: 1.5rem;
}

.dish-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.dish-content p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.dish-price {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-red);
  font-weight: 600;
}

/* Info Section */
.info-section {
  background: var(--color-green);
  color: var(--color-white);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  text-align: center;
}

.info-item h3 {
  color: var(--color-gold);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.info-item p {
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.info-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0.8;
}

/* ========================================
   MENU PAGE
   ======================================== */
.page-hero {
  height: 50vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  position: relative;
}

.page-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.7)),
              url('https://images.unsplash.com/photo-1498579150354-977475b7ea0b?w=1920&q=80') center/cover no-repeat;
  z-index: -1;
}

.page-hero h1 {
  margin-bottom: 0.5rem;
}

.page-hero p {
  font-size: 1.25rem;
  opacity: 0.9;
}

/* Menu Categories */
.menu-nav {
  background: var(--color-white);
  padding: 1rem 0;
  position: sticky;
  top: 60px;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.menu-nav ul {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.menu-nav a {
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-cream);
  transition: var(--transition);
}

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

/* Menu Section */
.menu-category {
  padding: 4rem 0;
  border-bottom: 1px solid var(--color-cream-dark);
}

.menu-category:last-child {
  border-bottom: none;
}

.menu-category h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--color-text);
}

.menu-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--color-white);
  border-radius: 8px;
  transition: var(--transition);
}

.menu-item:hover {
  box-shadow: var(--shadow-sm);
}

.menu-item-info h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.menu-item-info p {
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.menu-item-price {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-red);
  font-weight: 600;
  white-space: nowrap;
  margin-left: 1rem;
}

/* ========================================
   ABOUT PAGE
   ======================================== */
.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.about-image-placeholder {
  width: 100%;
  height: 500px;
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.4)),
              url('https://images.unsplash.com/photo-1577219491135-ce391730fb2c?w=800&q=80') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.about-text h2 {
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

.about-text p {
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

/* Values Section */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.value-card {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.value-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.value-card h3 {
  margin-bottom: 1rem;
  color: var(--color-text);
}

.value-card p {
  color: var(--color-text-light);
  margin-bottom: 0;
}

/* ========================================
   CONTACT PAGE
   ======================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-form {
  background: var(--color-white);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.contact-form h3 {
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

.form-group {
  margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--color-cream-dark);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-red);
  box-shadow: 0 0 0 3px rgba(184, 50, 63, 0.1);
}

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

.contact-info h3 {
  margin-bottom: 2rem;
  color: var(--color-text);
}

.contact-details {
  margin-bottom: 2rem;
}

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

.contact-item-icon {
  font-size: 1.5rem;
  color: var(--color-red);
}

.contact-item h4 {
  margin-bottom: 0.25rem;
  font-family: var(--font-body);
  font-weight: 600;
}

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

/* Map Placeholder */
.map-container {
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-cream-dark);
}

.map-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  color: var(--color-text-light);
  background: linear-gradient(135deg, var(--color-cream-dark), var(--color-cream));
}

.map-placeholder span {
  font-size: 3rem;
}

/* Hours Table */
.hours-table {
  width: 100%;
  margin-top: 2rem;
}

.hours-table tr {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-cream-dark);
}

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

.hours-table td:first-child {
  font-weight: 500;
}

.hours-table td:last-child {
  color: var(--color-text-light);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--color-text);
  color: var(--color-white);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-brand p {
  opacity: 0.8;
  font-size: 0.95rem;
}

.footer h4 {
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--color-gold);
}

.footer-links a {
  display: block;
  margin-bottom: 0.75rem;
  opacity: 0.8;
  transition: var(--transition);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--color-gold);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--color-red);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  opacity: 0.7;
  font-size: 0.9rem;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-story {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--color-white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    color: var(--color-text);
    font-size: 1.25rem;
  }

  .mobile-toggle {
    display: flex;
    z-index: 1001;
  }

  .mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .section {
    padding: 4rem 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

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

  .about-image-placeholder,
  .about-image img {
    height: 350px;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }

  .menu-nav ul {
    gap: 0.5rem;
  }

  .menu-nav a {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .menu-item {
    flex-direction: column;
    gap: 1rem;
  }

  .menu-item-price {
    margin-left: 0;
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.bg-cream { background-color: var(--color-cream); }
.bg-white { background-color: var(--color-white); }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* Form Success Message */
.form-success {
  display: none;
  padding: 1rem;
  background: var(--color-green-light);
  color: white;
  border-radius: 8px;
  text-align: center;
  margin-top: 1rem;
}

.form-success.show {
  display: block;
}
