* {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
     :root {
  --bg-color: #fdf6ee;
  --text-color: #3e2f1c;
  --navbar-bg: rgba(230, 211, 179, 0.95);
  --card-bg: white;
  --btn-bg: #e6d3b3;
  --btn-hover-bg: #d2b58f;
  --shadow-color: rgba(0,0,0,0.1);
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
.logo {
  font-family: 'Allura', cursive;
  color: white;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}


.navbar.scrolled .logo {
  color: var(--text-color);
  text-shadow: none;
}

body.dark {
  --bg-color: #1c1c1c;
  --text-color: #f5f5f5;
  --navbar-bg: rgba(34, 34, 34, 0.95);
   --card-bg: #2a2a2a;
   --btn-bg: #444;
   --btn-hover-bg: #666;
   --shadow-color: rgba(255,255,255,0.1);
}
 * {
      margin: 0; padding: 0; box-sizing: border-box;
    }

    body {
      font-family: 'Open Sans', sans-serif;
      background-color: var(--bg-color);
      color: var(--text-color);
      line-height: 1.6;
      transition: background-color 0.3s, color 0.3s;
      min-height: 100vh;
      padding: 0;
      overflow-x: hidden;
    }
    h2 {
      font-family: 'Playfair Display', serif;
      font-size: 2.4rem;
      margin-bottom: 20px;
      text-align: center;
      color: var(--text-color);
    }

    /* Tabs */
    .tabs {
      display: flex;
      justify-content: center;
      gap: 20px;
      margin-bottom: 40px;
      flex-wrap: wrap;
    }
    .tabs button {
      background: var(--btn-bg);
      color: var(--text-color);
      border: none;
      padding: 10px 22px;
      font-weight: bold;
      font-size: 1.1rem;
      border-radius: 30px;
      cursor: pointer;
      box-shadow: 0 4px 10px var(--shadow-color);
      transition: background-color 0.3s, transform 0.2s;
    }
    .tabs button.active,
    .tabs button:hover {
      background: var(--btn-hover-bg);
      transform: scale(1.1);
      color: var(--text-color);
      box-shadow: 0 6px 20px var(--shadow-color);
    }
    header {
      background-color: #e6d3b3;
      padding: 20px 40px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    header h1 {
      font-family: 'Allura', cursive;
      font-size: 2.5rem;
      font-weight: normal;
      color: #3e2f1c;
    }
    
   .navbar {
  color: white; /* در حالت اولیه (شفاف) */
  position: fixed;
  top: 0;
  padding: 0 1rem;
  justify-content: space-between;
  width: 100%;
  background-color: transparent;
  transition: background-color 0.3s ease;
  z-index: 999;
}
nav a {
      margin-left: 20px;
      text-decoration: none;
      color: #3e2f1c;
      font-weight: bold;
    }
.navbar .nav-links a {
  color: white;
  transition: color 0.3s ease;
}

.navbar .toggle-btn {
  color: white;
  border-color: white;
}
.navbar.scrolled {
  background-color: var(--navbar-bg); /* بژ نیمه‌شفاف */
   padding: 10px 30px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* وقتی اسکرول شد و کلاس scrolled اضافه شد */
.navbar.scrolled .nav-links a,
.navbar.scrolled .toggle-btn {
  color: var(--text-color);
  border-color: var(--text-color);
}


/*------------toggle mode sun and moon---NEW------ */
   .mode-toggle {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  margin-left: 20px;
  transition: transform 0.3s ease;
}
/*--------=============-------*/


.mode-toggle:hover {
  transform: scale(1.2);
} 
 .toggle-btn {
      margin-left: 20px;
      padding: 6px 12px;
      border: 1px solid var(--text-color);
      background: none;
      color: var(--text-color);
      cursor: pointer;
      border-radius: 5px;
      font-size: 0.8rem;
    }
    .about {
      padding: 60px 40px;
      text-align: center;
    }

    .about h2 {
      font-family: 'Playfair Display', serif;
      font-size: 2.2rem;
      margin-bottom: 20px;
    }

    .about p {
      max-width: 700px;
      margin: 0 auto;
      font-size: 1rem;
    }
    .gallery {
    /*padding: 60px 40px;*/
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    }


.gallery-card {
  border: 1px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: white;
}


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

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

.gallery-card .info {
  padding: 15px;
  text-align: center;
}

.gallery-card .info h4 {
  margin-bottom: 8px;
  font-family: 'Playfair Display', serif;
  color: #3e2f1c;
  font-size: 1.1rem;
}

.gallery-card .info p {
  font-size: 0.9rem;
  color: #555;
}

    .gallery img {
      width: 100%;
      height: 200px;
      object-fit: cover;
      border-radius: 8px;
    }
  .menu-section {
      padding: 60px 40px;
      background-color: var(--bg-color);
      transition: background-color 0.3s ease;
    }

    .menu-section h2 {
      text-align: center;
      font-family: 'Playfair Display', serif;
      font-size: 2.5rem;
      margin-bottom: 40px;
    }

    .menu-tabs {
      text-align: center;
      margin-bottom: 30px;
    }

    .menu-tabs button {
      background-color: #e6d3b3;
      color: #3e2f1c;
      border: none;
      padding: 10px 18px;
      margin: 0 10px;
      border-radius: 25px;
      font-weight: bold;
      cursor: pointer;
      transition: background-color 0.3s ease, transform 0.2s ease;
    }

    .menu-tabs button:hover {
      background-color: #d2b58f;
      transform: translateY(-2px);
    }

    .menu-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 30px;
      max-width: 1000px;
      margin: 0 auto 60px;
    }
    .menu-card {
      background: var(--card-bg);
      border-radius: 15px;
      overflow: hidden;
      box-shadow: 0 6px 18px var(--shadow-color);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      cursor: default;
      opacity: 0;
      transform: translateY(20px);
      animation: fadeInUp 0.5s forwards;
    }

    .menu-card:hover {
      transform: translateY(-10px) scale(1.03);
      box-shadow: 0 12px 40px var(--shadow-color);
    }
    .menu-card img {
      width: 100%;
      height: 180px;
      object-fit: cover;
      border-bottom: 3px solid var(--btn-bg);
      border-radius: 15px 15px 0 0;
      transition: filter 0.3s ease;
    }
    body.dark .menu-card img:hover {
      filter: brightness(1.1);
    }

    .menu-info {
      padding: 15px 20px 25px;
      text-align: center;
    }
    .menu-info h3 {
      font-family: 'Playfair Display', serif;
      font-size: 1.4rem;
      margin-bottom: 6px;
      color: var(--text-color);
    }
    .menu-info p {
      font-size: 0.95rem;
      color: #666;
      margin-bottom: 10px;
      min-height: 48px;
    }


     body.dark .menu-info p {
      color: #bbb;
    }


    .menu-item {
      background: var(--card-bg);
      border-radius: 10px;
      padding: 20px;
      box-shadow: 0 4px 20px rgba(0,0,0,0.05);
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    }

    .menu-item:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    }

    .menu-item img {
      width: 100px;
      height: 100px;
      object-fit: cover;
      border-radius: 50%;
      margin-bottom: 15px;
    }

    .menu-item h4 {
      font-family: 'Playfair Display', serif;
      font-size: 1.2rem;
      margin-bottom: 8px;
    }

    .menu-item p {
      font-size: 0.9rem;
      color: #555;
    }

    .menu-item .price {
      margin-top: 10px;
      font-weight: bold;
      color: #7a5c3d;
    }

    .menu-item button {
      margin-top: 12px;
      padding: 6px 14px;
      background-color: #cfa96e;
      border: none;
      border-radius: 20px;
      color: white;
      font-weight: bold;
      cursor: pointer;
      transition: background-color 0.3s;
    }

    .menu-item button:hover {
      background-color: #a17846;
    }

    .menu-item.hidden {
      display: none;
    }

    .price-order {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .price {
      font-weight: 700;
      font-size: 1.1rem;
      color: var(--text-color);
    }
    .order-btn {
      background: var(--btn-bg);
      border: none;
      padding: 8px 16px;
      border-radius: 20px;
      font-weight: bold;
      cursor: pointer;
      color: var(--text-color);
      box-shadow: 0 4px 12px var(--shadow-color);
      transition: background-color 0.3s, transform 0.2s;
      position: relative;
      z-index: 1;
    }
    .order-btn:hover {
      background: var(--btn-hover-bg);
      transform: scale(1.05);
    }

     /* Order summary */
    .order-summary {
      position: fixed;
      bottom: 20px;
      right: 20px;
      background-color: #d3c09f;
      color: #3e2f1c;
      padding: 10px 16px;
      border: none;
      border-radius: 30px;
      box-shadow: 0 4px 10px rgba(0,0,0,0.2);
      font-weight: bold;
      cursor: pointer;
      user-select: none;
      transition: background-color 0.3s;
      z-index: 999;
    }
    .order-summary:hover {
      background: var(--btn-hover-bg);
    }
    /* Animations */
    @keyframes fadeInUp {
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
    /* Responsive */
    @media (max-width: 480px) {
      body {
        padding: 100px 10px 40px;
      }
      .menu-info p {
        min-height: auto;
      }
      .order-summary {
        right: 10px;
        padding: 10px 16px;
        font-size: 0.9rem;
      }
    
    }
   .footer {
  background-color: var(--navbar-bg);
  color: var(--text-color);
  padding: 40px 20px 20px;
  font-size: 0.95rem;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-column {
  flex: 1 1 200px;
  min-width: 200px;
}

.footer-column h4 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  font-weight: bold;
}

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

.footer-column li,
.footer-column p,
.footer-column a {
  margin-bottom: 8px;
  line-height: 1.5;
  color: var(--text-color);
  text-decoration: none;
}

.footer-column a:hover {
  color: #5a3f2d;
}

.social-icons a {
  margin-right: 10px;
  font-size: 1.3rem;
  color: var(--text-color);
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
  transform: scale(1.2);
  color: #5a3f2d;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(0,0,0,0.1);
  font-size: 0.85rem;
}

 .about-image {
  margin-top: 30px;
  max-width: 600px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.hero {
  background-image: url('images/hero.jpg');
  background-size: cover;
  background-position: center;
  height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  color: white;
 
  
  
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4); /* برای تیرگی ملایم رو عکس */
}

.hero-content {
  position: relative;
  z-index: 1;
}
.hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* =====Hero Btn========= */
.hero-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 30px;
  font-size: 1rem;
  color: white;
  border: 2px solid white;
  background: transparent;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(255,255,255,0.4);
}

.hero-btn:hover {
  background-color: rgba(255,255,255,0.1);
  box-shadow: 0 0 20px rgba(255,255,255,0.6);
}

/* =====Hero Btn========= */


.hero-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 5vw, 3rem);
  margin-bottom: 10px;
  color: white !important;
}

.hero-content p {
  font-size: 1.2rem;
  color: white !important;
}

    .hamburger {
      display: none;
      flex-direction: column;
      cursor: pointer;
      margin-left: 20px;
    }

    .hamburger span {
      height: 3px;
      width: 25px;
      display: block;
      background: var(--text-color);
      margin: 5px ;
      transition: all 0.3s ease;
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 1rem;

      
    }


 @media (max-width: 768px) {
  


      .hamburger {
        display: block;

      }
      .hamburger span {
    display: block;
    height: 3px;
    background: #000;
    margin: 5px 0;
    }

      .nav-links {
        position: absolute;
        top: 60px;
        right: 0;
        left: 0;
        width: 100%;
        margin-left: 0;
        align-items: center;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.8);
        color: white;
        background: var(--navbar-bg);
        flex-direction: column;
        padding: 15px;
        border-radius: 10px;
        display: none;
        padding: 1rem;
        z-index: 100;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
      }

      .nav-links a, .nav-links .toggle-btn {
        margin: 10px 0;
      }

      .nav-links.active {
        display: flex;
      }
  h1 {
  font-size: 1.5rem;
     }
  p {
  font-size: 1rem;
    }
  
  .navbar {
    padding-left: 0 !important;
    margin-left: 0 !important;
    
    color:#d6c8add3
   }
  
/*
  .hero {
    
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    padding-top: 0;
    margin-top: 0;
    height: auto;
  }
*/
  
    }
    .filter-buttons {
  text-align: center;
  margin-top: 50px;
  margin-bottom: 30px;
}

.filter-buttons button {
  background-color: #e6d3b3;
  color: #3e2f1c;
  border: none;
  padding: 10px 18px;
  margin: 0 10px;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.filter-buttons button:hover {
  background-color: #d2b58f;
  transform: translateY(-2px);
}
.cart-icon {
  position: fixed;
  top: 90px;
  right: 30px;
  background: #e6d3b3;
  padding: 10px 16px;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: background-color 0.3s ease;
}

.cart-icon:hover {
  background: #d2b58f;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100%;
  background-color: var(--bg-color);
  color: var(--text-color);
  box-shadow: -4px 0 12px rgba(0,0,0,0.1);
  padding: 20px;
  transition: right 0.4s ease;
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-panel.active {
  right: 0;
}

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

.cart-header h3 {
  font-size: 1.4rem;
  font-family: 'Playfair Display', serif;
}

.cart-header button {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
}

#cart-items {
  list-style: none;
  padding: 20px 0;
  flex-grow: 1;
  overflow-y: auto;
}

#cart-items li {
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  border-bottom: 1px solid #ccc;
  padding-bottom: 5px;
}

.cart-total {
  border-top: 1px solid #ccc;
  padding-top: 10px;
  text-align: center;
}

.checkout-btn {
  margin-top: 10px;
  background-color: #3e2f1c;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
}

.checkout-btn:hover {
  background-color: #5a4128;
}
/* ========== Reservation Section ========== */

.reservation-section {
  background-color: var(--bg-color);
  color: var(--text-color);
  padding: 60px 20px;
  text-align: center;
  transition: background-color 0.3s, color 0.3s;
}



.reservation-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--text-color);
  transition: color 0.3s;
}

.reservation-section form {
  max-width: 700px;
  margin: 0 auto;
  display: grid;
   grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.reservation-section input,
.reservation-section textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  background-color: white;
  color: #333;
  transition: background-color 0.3s, color 0.3s;
}

body.dark .reservation-section input,
body.dark .reservation-section textarea {
  background-color: #2a2a2a;
  color: #f5f5f5;
  border: 1px solid #555;
}
.reservation-section textarea {
  grid-column: 1 / -1;
}
.reservation-section button {
  background-color: #3e2f1c;
  color: white;
  border: none;
  cursor: pointer;
  padding: 10px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  grid-column: 1 / -1;
  justify-self: center;
  width: 150px;
}

.reservation-section button:hover {
  background-color: #5a3f2d;
}

.section-divider {
  margin: 60px auto;
  border: none;
  border-top: 1px solid #cbbda0;
  width: 60%;
}
.about-section {
  padding: 80px 40px;
  background-color: #fffaf3;
  text-align: center;
}

.about-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #3e2f1c;
}

.about-section p {
  max-width: 700px;
  margin: 20px auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #5a4b3b;
}

.about-section img {
  margin-top: 30px;
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}



#backToTop {
  position: fixed;
  bottom: 40px;
  right: 30px;
  display: none;
  background-color: #3e2f1c;
  color: white;
  border: none;
  padding: 12px 16px;
  font-size: 18px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: opacity 0.3s ease;
}

#backToTop:hover {
  background-color: #5a3f2d;
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }
  .gallery {
    grid-template-columns: 1fr 1fr;
  }
  .reservation-section {
  padding: 40px 20px;
  background-color: #f5f3f0;
  text-align: center;
}

.reservation-section form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 20px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.reservation-section form input,
.reservation-section form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.reservation-section button {
  padding: 12px;
  background-color: #3e2f1c;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.reservation-section button:hover {
  background-color: #5c4024;
}

#reservation-msg {
  display: none;
  color: #3e2f1c;
  margin-top: 20px;
  font-weight: bold;
}
}
@media (max-width: 600px) {
  .container {
    padding: 0 20px;
  }
}

@media (min-width: 900px) {
  .gallery {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
img {
  max-width: 100%;
  height: auto;
}

.contact-section {
  padding: 60px 20px;
  background-color: #fffaf3;
  color: #333;
  text-align: center;
}

.contact-section h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
}

.contact-info p {
  margin: 5px 0;
  font-size: 1rem;
}

.contact-form,
.complaint-form {
  margin: 30px auto;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.complaint-form input,
.contact-form textarea,
.complaint-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.contact-form button,
.complaint-form button {
  background-color: #a0522d;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover,
.complaint-form button:hover {
  background-color: #7b3e1d;
}

.map iframe {
  border-radius: 12px;
  margin-top: 20px;
}