:root {
  --primary: #da0000;
  --secondary: #c6ff00;
  --text-dark: #222;
  --text-light: #f9f9f9;
  --bg-light: #fafafa;
  --card-bg: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}






body {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  direction: rtl;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--primary);
  /* padding: 1rem 2rem; */
  display: flex;
  justify-content: center;
  align-items: center;
}

header h1 {
  color: var(--text-light);
  font-size: 1.5rem;
  font-weight: bold;
}

nav a {
  color: var(--text-light);
  margin-right: 1.5rem;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--secondary);
}

.go-down {
  color: var(--primary);
  position: absolute;
  bottom: 150px;
  right: 50%;
  transform: translateX(50%);
  transition: var(--main-transition);
  z-index: 10;
}
 .go-down:hover {
  color: var(--secondary);
  transition: var(--main-transition);
  z-index: 10;
}
 .go-down:hover {
  color: var(--secondary);
}
 .go-down i {
  animation: bouncing 1.5s infinite;
}

@keyframes bouncing {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

@keyframes up-and-down {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}
.hero {
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("https://source.unsplash.com/1600x900/?restaurant,food") center/cover
      no-repeat;
  color: var(--text-light);
  text-align: center;
  padding: 0 1rem;
}

.hero-img {
  position: relative;
  z-index: 1000;
  width: 200px;
}

h3 .status {
  margin: 10px 0;
  font-size: 1rem;
  font-weight: bold;
  display: none;
}

.open {
  color: #0b6623;
}

.closed {
  color: #a80000;
}

nav {
  text-align: center;
}

.r-akklny {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 3rem;
}

.hero h2 {
  font-size: 2rem;
  max-width: 700px;
  z-index: 1;
}

section {
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: auto;
}

.order-form {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  max-width: 600px;
  margin: auto;
}

.order-form h2 {
  margin-bottom: 1.5rem;
  color: var(--primary);
  text-align: center;
  font-size: 1.3rem;
}

.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  background: transparent;
  outline: none;
  transition: border 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
}

.form-group label {
  position: absolute;
  right: 1rem;
  top: 0.8rem;
  background: var(--card-bg);
  padding: 0 0.25rem;
  color: #777;
  font-size: 0.85rem;
  pointer-events: none;
  transition: 0.3s;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: -0.6rem;
  right: 0.8rem;
  font-size: 0.75rem;
  color: var(--primary);
}

.dish-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.dish-row .form-group {
  flex: 1;
  min-width: 120px;
}

.dish-row button {
  background: #888;
  padding: 0.6rem 0.8rem;
  border: none;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
}

.dish-row button:hover {
  background: #444;
}

#time {
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: bold;
}

.radio-group {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 500;
}

.radio-group input {
  accent-color: var(--primary);
  transform: scale(1.2);
}

button {
  width: 100%;
  background: var(--primary);
  color: var(--text-light);
  border: none;
  padding: 1rem;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background: var(--secondary);
  color: var(--text-dark);
}

#addDish {
  margin-bottom: 1.5rem;
  background: var(--secondary);
  color: var(--primary);
}

/* عروض */
.offers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.offer-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s;
}

.offer-card:hover {
  transform: translateY(-5px);
}

.offer-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.offer-card h3 {
  margin: 0.5rem 0;
  color: var(--primary);
}

.offer-card p {
  padding: 0 1rem 1rem;
  font-size: 0.9rem;
}

/* سلايدر */
ul {
  padding: 0px;
  margin: 0px;
  list-style: none;
}

#gallery img {
  display: block;
  width: 100%;
  height: 100%;
}

.slide {
  display: flex;
}

.slide:hover {
  will-change: transform;
}

.slide li {
  flex-shrink: 0;
  width: 80vw;
  max-width: 800px;
  max-height: 433px;
  margin: 0 20px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  opacity: 0.8;
  transform: scale(0.8);
  transition: 0.4s;
}

.wrapper {
  overflow: hidden;
}

.slide li.active {
  opacity: 1;
  transform: scale(1);
}

[data-control="slide"] {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

[data-control="slide"] li a {
  display: block;
  width: 12px;
  height: 12px;
  background: #fb5;
  border-radius: 50%;
  overflow: hidden;
  text-indent: -999px;
  margin: 5px;
}

[data-control="slide"] li.active a,
[data-control="slide"] li a:hover {
  background: #e54;
}

.arrow-nav {
  display: flex;
  justify-content: space-around;
  margin: 20px 0;
}

/* Old button style, add text to the button html.
.btn-change-pic {
  background-color: #fb5;
  color: black;
  padding: 10px 22px;
  text-decoration: none;
  font-size: 14px;
}

.btn-change-pic:hover {
  background: #e54;
  color: white;
} 
*/

/* New button style. */
.arrow-nav button {
  cursor: pointer;
  border: none;
  border-radius: 4px;
  color: white;
  width: 40px;
  height: 40px;
  background: var(--primary) url(../imgs/arrow.svg) center center no-repeat;
}

.arrow-nav button.prev {
  transform: rotate(180deg);
}

/* ----------------- */

.custom-controls {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.custom-controls li {
  opacity: 0.8;
  transform: scale(0.8);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin: 2px;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.5);
  transition: 0.3s;
  cursor: pointer;
}

.custom-controls li.active {
  opacity: 1;
  transform: scale(1);
}

/* معلومات */
.info {
  text-align: center;
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.info h2 {
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Slideshow container */
.slideshow {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100vh;
  max-width: 1200px;
  /* 🔥 control max width */
  width: 100%;
  z-index: 0;
}

.slideshow img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 100%;
}

/* Each image timing */
.slideshow img:nth-child(1) {
  animation-delay: 0s;
}




/* Hero text */
.hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  text-align: center;
  color: white;
  background: rgba(0, 0, 0, 0.4);
  /* overlay for readability */
}

.hero h2 {
  font-size: 2.5rem;
}

.or {
  text-align: center;
  font-weight: bold;
  padding-top: 30px;
  margin-top: 10px 0;
  margin-bottom: 5px 0;
  color: var(--primary);
}

.call-button {
  width: 100%;
  background: var(--primary);
  color: var(--text-light);
  border: none;
  padding: 1rem;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.call-button {
  text-decoration: none;
  display: inline-block;
  text-align: center;
}


.styled-hr{
      border: 0;
      height: 6px;
      margin: 1.5rem auto;
      max-width: 90%;
      border-radius: 6px;
      background: linear-gradient(90deg, transparent 0%, rgba(220,38,38,0.95) 30%, rgba(255,99,99,0.85) 70%, transparent 100%);
      box-shadow: 0 4px 12px rgba(220,38,38,0.12);
    }

    /* darker fallback for small screens */
    @media (max-width: 480px){
      .styled-hr{ height:4px; max-width:95%; }
    }

    /* respect user's color scheme */
    @media (prefers-color-scheme: dark){
      .styled-hr{
        background: linear-gradient(90deg, transparent, rgba(0,123,255,0.7), transparent);
        box-shadow: 0 4px 12px rgba(0,0,0,0.6);
      }
    }



    .site-footer {
          padding: 1.25rem;
          margin-top: 2rem;
          border-top: 1px solid rgba(0,0,0,0.06);
          background: linear-gradient(180deg, rgba(0,0,0,0.02), transparent);
          border-radius: 8px;
          font-family: inherit;
          color: var(--text, #333);
        }

        .footer-inner {
          display: flex;
          align-items: center;
          justify-content: space-between;
          gap: 1rem;
          max-width: 1100px;
          margin: 0 auto;
          flex-wrap: wrap;
        }

        .footer-brand img {
          width: 48px;
          height: 48px;
          border-radius: 8px;
          object-fit: cover;
          box-shadow: 0 6px 18px rgba(0,0,0,0.06);
          display: block;
        }

        .footer-text {
          flex: 1 1 auto;
          text-align: center;
          min-width: 200px;
        }

        .footer-text .home-link a {
          color: var(--primary, #007bff);
          text-decoration: none;
          font-weight: 700;
          display: inline-block;
          margin-bottom: 0.25rem;
        }

        .footer-text .home-link a:hover {
          opacity: 0.9;
        }

        .footer-text p {
          margin: 0;
          font-size: 0.95rem;
          color: var(--text-muted, #666);
        }

        .footer-meta {
          text-align: center;
          min-width: 120px;
        }

        .footer-meta .contact {
          margin: 0;
          font-size: 0.95rem;
          color: var(--text-muted, #666);
          font-weight: 600;
        }

        @media (max-width: 600px) {
          .footer-inner {
            flex-direction: column;
            align-items: center;
          }
          .footer-text { order: 2; }
          .footer-meta { order: 3; }
          .footer-brand { order: 1; }
        }