/* ===========================
   MANNAR CATERING - MAIN CSS
   =========================== */

/* Root Variables */
:root {
  --primary-color: #8B2635; /* Dark Red */
  --secondary-color: #D4AF37; /* Gold */
  --white: #FFFFFF;
  --black: #000000;
  --dark-bg: #1A1A1A;
  --light-gray: #F8F8F8;
  --text-dark: #333333;
  --text-light: #666666;
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

/* ===========================
   GLOBAL STYLES
   =========================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

button {
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-family: 'Poppins', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

h1 {
  font-size: 3.5rem;
  line-height: 1.2;
}

h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

h3 {
  font-size: 1.5rem;
}

p {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

/* ===========================
   CONTAINER & LAYOUT
   =========================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.col-6 {
  flex: 1;
  min-width: 300px;
}

.section {
  padding: 80px 0;
}

.section-bg-light {
  background-color: var(--light-gray);
}

.section-bg-dark {
  background-color: var(--dark-bg);
  color: var(--white);
}

/* ===========================
   HEADER & NAVIGATION
   =========================== */

header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

header.scrolled {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 20px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  font-family: 'Playfair Display', serif;
}

.logo span {
  color: var(--secondary-color);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  font-size: 1.5rem;
  color: var(--primary-color);
}

/* ===========================
   HERO SECTION
   =========================== */

.hero {
  height: 100vh;
  background: linear-gradient(rgba(139, 38, 53, 0.7), rgba(139, 38, 53, 0.7)), url('https://images.unsplash.com/photo-1546069901-ba9599a7e63c?w=1200&h=800&fit=crop') center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

.hero-content {
  z-index: 1;
  animation: fadeInUp 1s ease;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInDown 0.8s ease;
}

.tagline {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  font-style: italic;
  color: var(--secondary-color);
  animation: fadeInUp 1s ease 0.2s both;
}

.cta-button {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  padding: 15px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  display: inline-block;
  margin: 1rem;
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
  animation: fadeInUp 1s ease 0.4s both;
}

.cta-button:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(139, 38, 53, 0.4);
}

.cta-secondary {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.cta-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

/* ===========================
   ANIMATIONS
   =========================== */

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}

.fade-in.visible {
  animation: fadeInUp 0.6s ease forwards;
}

/* ===========================
   ABOUT SECTION
   =========================== */

.about-image {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
  transition: transform 0.3s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

.about-content h2 {
  text-align: left;
  margin-top: 0;
}

.about-content p {
  margin-bottom: 1.5rem;
}

/* ===========================
   SERVICES SECTION
   =========================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  border-top: 4px solid var(--secondary-color);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.service-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.service-card p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* ===========================
   MENU SECTION
   =========================== */

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.menu-item {
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  cursor: pointer;
}

.menu-item:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.menu-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.menu-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.menu-item:hover .menu-image img {
  transform: scale(1.1);
}

.menu-info {
  padding: 1.5rem;
}

.menu-info h3 {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.menu-info p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* ===========================
   WHY CHOOSE US SECTION
   =========================== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-box {
  background-color: transparent;
  padding: 2rem;
  text-align: center;
  position: relative;
}

.feature-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  z-index: 1;
}

.feature-icon {
  font-size: 2rem;
  position: relative;
  z-index: 2;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.feature-box h3 {
  margin-top: 2rem;
  color: var(--primary-color);
}

.feature-box p {
  margin-bottom: 0;
}

/* ===========================
   TESTIMONIALS SECTION
   =========================== */

.testimonials-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  border-left: 4px solid var(--secondary-color);
  transition: var(--transition);
}

.testimonial:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary-color);
}

.stars {
  color: var(--secondary-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

/* ===========================
   CONTACT SECTION
   =========================== */

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: flex-start;
}

.contact-form {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--primary-color);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--light-gray);
  border-radius: var(--border-radius);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  width: 100%;
  box-shadow: 0 5px 15px rgba(139, 38, 53, 0.3);
}

.submit-btn:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(139, 38, 53, 0.4);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-box {
  background-color: var(--light-gray);
  padding: 2rem;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--secondary-color);
}

.info-box h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-box p {
  margin-bottom: 0.5rem;
}

.info-box a {
  color: var(--primary-color);
  font-weight: 500;
}

.map-container {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
}

/* ===========================
   FOOTER
   =========================== */

footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.8rem;
}

.footer-section a {
  color: var(--white);
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--secondary-color);
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.2rem;
  transition: var(--transition);
}

.social-icon:hover {
  background-color: var(--white);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 2px solid rgba(212, 175, 55, 0.3);
  font-size: 0.9rem;
}

.footer-links {
  margin-bottom: 1rem;
}

.footer-links a {
  margin: 0 1.5rem;
  color: var(--secondary-color);
  font-weight: 500;
}

/* ===========================
   FORM VALIDATION
   =========================== */

.form-group.error input,
.form-group.error textarea {
  border-color: #e74c3c;
  box-shadow: 0 0 10px rgba(231, 76, 60, 0.2);
}

.error-message {
  color: #e74c3c;
  font-size: 0.85rem;
  margin-top: 0.3rem;
}

.success-message {
  background-color: #d4edda;
  color: #155724;
  padding: 1rem;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  display: none;
}

.success-message.show {
  display: block;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .section {
    padding: 50px 0;
  }

  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background-color: var(--white);
    padding: 1rem 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }

  nav.active ul {
    display: flex;
  }

  nav a {
    padding: 0.7rem 20px;
  }

  .menu-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .tagline {
    font-size: 1.2rem;
  }

  .cta-button {
    padding: 12px 30px;
    font-size: 1rem;
  }

  .row {
    gap: 1.5rem;
  }

  .col-6 {
    min-width: 100%;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .map-container iframe {
    height: 300px;
  }

  .hero::before {
    display: none;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }

  .section {
    padding: 40px 0;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .tagline {
    font-size: 1rem;
  }

  .cta-button {
    padding: 10px 20px;
    font-size: 0.9rem;
    margin: 0.5rem;
  }

  .services-grid,
  .menu-grid,
  .features-grid,
  .testimonials-container {
    grid-template-columns: 1fr;
  }

  .feature-box {
    padding: 1.5rem;
  }

  .footer-section h4 {
    font-size: 1rem;
  }

  .footer-links a {
    display: block;
    margin: 0.5rem 0;
  }
}

/* ===========================
   UTILITY CLASSES
   =========================== */

.text-center {
  text-align: center;
}

.text-white {
  color: var(--white);
}

.bg-primary {
  background-color: var(--primary-color);
}

.bg-secondary {
  background-color: var(--secondary-color);
}

.mb-1 {
  margin-bottom: 1rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mt-2 {
  margin-top: 2rem;
}

.mt-3 {
  margin-top: 3rem;
}

.py-2 {
  padding: 2rem 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
