/* font */

@font-face {
  font-family: "IRANYekanX";
  src: url("assets/fonts/IRANYekanX-Thin.ttf") format("truetype");
  font-weight: 100;
}

@font-face {
  font-family: "IRANYekanX";
  src: url("assets/fonts/IRANYekanX-Light.ttf") format("truetype");
  font-weight: 300;
}

@font-face {
  font-family: "IRANYekanX";
  src: url("assets/fonts/IRANYekanX-Medium.ttf") format("truetype");
  font-weight: 500;
}

@font-face {
  font-family: "IRANYekanX";
  src: url("assets/fonts/IRANYekanX-ExtraBold.ttf") format("truetype");
  font-weight: 800;
}

@font-face {
  font-family: "IRANYekanX";
  src: url("assets/fonts/IRANYekanX-Black.ttf") format("truetype");
  font-weight: 900;
}

:root {
  --primary-green: #003e2f;
  --light-green: #0f6a55;
  --accent-green: #1fa27a;
  --pale-green: #d7efe8;

  --white: #ffffff;
  --off-white: #f8faf7;
  --text-dark: #1a1a1a;
  --text-gray: #666666;
  --shadow-sm: 0 2px 8px rgba(45, 80, 22, 0.08);
  --shadow-md: 0 4px 16px rgba(45, 80, 22, 0.12);
  --shadow-lg: 0 8px 32px rgba(45, 80, 22, 0.16);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 16px;
}

/* ==================== Reset & Base Styles ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "IRANYekanX", sans-serif;
  background-color: var(--off-white);
  color: var(--text-dark);
  line-height: 1.8;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

/* ==================== Container ==================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==================== Header & Navigation ==================== */
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  font-size: 30px;
  font-weight: 700;
  color: var(--primary-green);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo::before {
  content: "🍃";
  font-size: 28px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 40px;
  align-items: center;
}

.nav-links a {
  color: var(--text-dark);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--accent-green);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary-green);
}

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

/* Mobile RestaurantMenus Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: var(--primary-green);
  border-radius: 2px;
  transition: var(--transition);
}

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

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

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

/* ==================== Hero Section ==================== */
.hero {
  background: linear-gradient(135deg, var(--pale-green) 0%, var(--white) 100%);
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(107, 157, 62, 0.1) 0%,
    transparent 70%
  );
  animation: rotate 30s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 64px;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 24px;
  line-height: 1.2;
}

.hero p {
  font-size: 24px;
  color: var(--text-gray);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  background: var(--primary-green);
  color: var(--white);
  padding: 16px 48px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 18px;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.cta-button:hover {
  background: var(--light-green);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ==================== Section Styles ==================== */
section {
  padding: 80px 0;
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 48px;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 16px;
}

.section-title p {
  font-size: 18px;
  color: var(--text-gray);
  max-width: 600px;
  margin: 0 auto;
}

/* ==================== Category Filter ==================== */
.category-filter {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 12px 32px;
  background: var(--white);
  border: 2px solid var(--pale-green);
  border-radius: 50px;
  color: var(--text-dark);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-size: 18px;
}

.filter-btn:hover {
  border-color: var(--accent-green);
  color: var(--primary-green);
}

.filter-btn.active {
  background: var(--primary-green);
  color: var(--white);
  border-color: var(--primary-green);
}

/* ==================== RestaurantMenus Grid ==================== */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

.menu-item {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  opacity: 1;
  transform: scale(1);
}

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

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

.menu-item-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: var(--transition);
}

.menu-item:hover .menu-item-image {
  transform: scale(1.05);
}

.menu-item-content {
  padding: 24px;
}

.menu-item-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 12px;
}

.menu-item h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-dark);
}

.menu-item-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-green);
  white-space: nowrap;
}

.menu-item p {
  color: var(--text-gray);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.menu-item-category {
  display: inline-block;
  padding: 6px 16px;
  background: var(--pale-green);
  color: var(--primary-green);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}

/* ==================== About Section ==================== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

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

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

.about-text h3 {
  font-size: 32px;
  color: var(--primary-green);
  margin-bottom: 24px;
  font-weight: 600;
}

.about-text p {
  font-size: 17px;
  color: var(--text-gray);
  margin-bottom: 20px;
  line-height: 1.8;
}

/* ==================== Contact Section ==================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.contact-card {
  background: var(--white);
  padding: 40px 32px;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.contact-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.contact-card h3 {
  font-size: 22px;
  color: var(--primary-green);
  margin-bottom: 12px;
  font-weight: 600;
}

.contact-card p {
  color: var(--text-gray);
  font-size: 16px;
  line-height: 1.6;
}

/* ==================== Footer ==================== */
footer {
  background: var(--primary-green);
  color: var(--white);
  padding: 60px 0 24px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 48px;
  margin-bottom: 40px;
}

.footer-section h3 {
  font-size: 20px;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  line-height: 1.8;
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--white);
  padding-right: 4px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.social-links {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

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

.social-links a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

/* ==================== Responsive Design ==================== */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    box-shadow: var(--shadow-lg);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

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

  .menu-toggle {
    display: flex;
  }

  .mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
  }

  .mobile-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero p {
    font-size: 18px;
  }

  .section-title h2 {
    font-size: 36px;
  }

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

  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 80px 0 60px;
  }

  .hero h1 {
    font-size: 32px;
  }

  section {
    padding: 60px 0;
  }

  .cta-button {
    padding: 14px 32px;
    font-size: 16px;
  }
}
