:root {
  --bg: #f8f6f3;
  --text: #2a1d16;
  --primary: #6d2c1a;
  --primary-dark: #4c1e12;
  --card: #ffffff;
  --muted: #6b5b53;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Cairo", sans-serif;
  background: var(--bg);
  color: var(--text);
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.topbar {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  background: rgba(28, 17, 12);
  backdrop-filter: blur(6px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo {
  margin: 0;
  color: #fff;
  font-size: 1.6rem;
}

.logoimg {
  width: 70px;
}

.logo-img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
nav {
  display: flex;
  gap: 1.2rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}

nav a:hover {
  opacity: 0.8;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.slide {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  height: auto;
  opacity: 0;
  transition: opacity 1s ease;
  display: block;
  
}

.slide.active {
  opacity: 1;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(41, 20, 13, 0.75), rgba(0, 0, 0, 0.38));
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
  
}

.hero-content .tag {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.hero-content h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.hero-content p {
  max-width: 700px;
  margin: 0.9rem auto 1.4rem;
  line-height: 1.9;
  font-size: 1.08rem;
}

.btn {
  display: inline-block;
  background: #fff;
  color: var(--primary-dark);
  padding: 0.72rem 1.35rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 800;
}

.products {
  padding: 1.8rem 0 2.4rem;
}

.section-head {
  text-align: center;
  margin-bottom: 1.6rem;
}

.section-head h3 {
  margin-bottom: 0.3rem;
  font-size: 2rem;
}

.section-head p {
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--card);
  border-radius: 16px;
  padding: 0.8rem 0.8rem 1.1rem;
  box-shadow: 0 10px 30px rgba(16, 10, 8, 0.08);
  border: 1px solid #f0eae6;
}

.card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.8rem;
}

.card h4 {
  margin: 0 0 0.4rem;
  color: var(--primary);
}

.card p {
  margin: 0;
  color: var(--muted);
}

.about {
  padding: 2rem 0 1rem;
}

.about-box {
  background: linear-gradient(135deg, #502114, #7d3119);
  color: #fff;
  border-radius: 18px;
  padding: 2rem;
  margin-top: 50px;
}

.about-box h3 {
  margin-top: 0;
}

.about-box p {
  margin-bottom: 0;
  line-height: 1.9;
}

.contact {
  padding: 2.6rem 0 3rem;
  text-align: center;
}

.contact-list {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-weight: 700;
  color: var(--primary-dark);
}

.footer {
  background: #1d120d;
  color: #e9dfda;
  text-align: center;
  padding: 1rem 0;
}

@media (max-width: 768px) {
  .logo {
    font-size: 1.4rem;
  }

  .logoimg {
    width: 60px;
  }

  .nav {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.8rem 0;
    min-height: auto;
  }

  nav {
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  nav a {
    font-size: 0.95rem;
    padding: 0.4rem 0.8rem;
  }

  .hero {
    min-height: 85vh;
  }

  .hero-content {
    padding-top: 120px;
    padding-bottom: 2rem;
  }

  .hero-content h2 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .btn {
    padding: 0.8rem 1.6rem;
    font-size: 1rem;
  }

  .section-head h3 {
    font-size: 1.7rem;
  }

  .grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.8rem;
  }

  .card img {
    height: 140px;
  }

  .card {
    padding: 0.6rem;
  }

  .about,
  .products,
  .contact {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .about-box {
    padding: 1.5rem;
    margin-top: 3rem;
  }

  .contact-list span {
    font-size: 0.95rem;
    min-width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .logo {
    font-size: 1.2rem;
  }

  .logoimg {
    width: 50px;
  }

  nav {
    gap: 0.6rem;
  }

  nav a {
    font-size: 0.9rem;
  }

  .hero-content {
    padding-top: 110px;
  }

  .hero-content h2 {
    font-size: 1.5rem;
  }

  .hero-content p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .section-head h3 {
    font-size: 1.5rem;
  }

  .grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.7rem;
  }

  .card img {
    height: 120px;
  }

  .card h4 {
    font-size: 0.95rem;
  }

  .about-box h3 {
    font-size: 1.4rem;
  }

  .contact h3 {
    font-size: 1.4rem;
  }

  .footer p {
    font-size: 0.9rem;
  }
}

.slide {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  left: 0;
  transform: none;
}

@media (min-width: 769px) {
  .slide {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    height: auto;
  }
}
