/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --brand-bg: #E6DAC3;
  --brand-dark: #292A20;
  --brand-red: #782B2D;
  --brand-text: #1A1A1A;
  --brand-light: #F4F0E6;
  --brand-blue: #234B7D;
  --max-container: 100%;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --font-yekan: 'Yekan Bakh', 'YekanBakh', sans-serif;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
@media (min-width: 768px) {
  html { zoom: 1.5; }
}

body {
  background: var(--brand-bg);
  color: var(--brand-text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ===== CONTAINER ===== */
.container {
  max-width: var(--max-container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 768px) {
  .container { padding: 0 2.5rem; }
}
@media (min-width: 1024px) {
  .container { padding: 0 3rem; }
}

/* ===== HEADER ===== */
header {
  position: relative;
  z-index: 50;
  background: transparent;
  padding: 1rem 0;
}
@media (min-width: 768px) { header { padding: 1.5rem 0; } }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }

.logo-link {
  display: inline-block;
  text-decoration: none;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}
.logo-link:hover { transform: scale(1.05); opacity: 0.85; }

.menu-btn {
  display: inline-block;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}
.menu-btn:hover { transform: scale(1.05); opacity: 0.85; }

.logo-figure {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
}
@media (min-width: 768px) { .logo-figure { gap: 1.2rem; } }

.logo-img {
  width: 2.2rem;
  height: auto;
}
@media (min-width: 768px) { .logo-img { width: 4.5rem; } }

.logo-text { display: flex; flex-direction: column; line-height: 0.95; gap: 0; }
.logo-main {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 22px;
  color: var(--brand-dark);
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo-sub {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: var(--brand-dark);
  text-transform: uppercase;
  margin-top: -1px;
  text-decoration: none;
  letter-spacing: -0.02em;
}
@media (min-width: 768px) { 
  .logo-main { font-size: 40px; }
  .logo-sub { font-size: 34px; }
}

.menu-img {
  width: 2.5rem;
  height: auto;
}
@media (min-width: 768px) { .menu-img { width: 7.2rem; } }

/* ===== HERO ===== */
.hero-section { width: 100%; margin-top: 0.75rem; }
@media (min-width: 768px) { .hero-section { margin-top: 1.5rem; } }
.hero-figure { overflow: hidden; margin: 0; }
.hero-img {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
  mix-blend-mode: multiply;
  display: block;
}
@media (min-width: 768px) { .hero-img { max-height: 450px; } }

/* ===== HEADLINE ===== */
.headline-section { width: 100%; padding: 2rem 0; }
@media (min-width: 768px) { .headline-section { padding: 4rem 0; } }
.headline-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
}
@media (min-width: 768px) { .headline-container { gap: 1.5rem; } }
.headline-main, .headline-sub {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--brand-red);
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.headline-emph { font-weight: 900; }
.headline-main { margin-bottom: 0.25rem; }
@media (min-width: 768px) {
  .headline-main, .headline-sub { font-size: 3rem; }
}
@media (min-width: 1024px) {
  .headline-main, .headline-sub { font-size: 3.6rem; }
}

/* ===== لوگوی کنار عنوان – کج‌تر ===== */
.chili-img {
  width: auto;
  height: 3.2rem;
  object-fit: contain;
  margin-bottom: 0.5rem;
  transform: rotate(-8deg); /* کج‌تر از قبل */
  animation: pulse-subtle 3s ease-in-out infinite;
}
@media (min-width: 768px) {
  .chili-img {
    height: 4rem;
    margin-bottom: 1.5rem;
  }
}
@keyframes pulse-subtle {
  0%, 100% { transform: scale(1) rotate(-8deg); }
  50% { transform: scale(1.04) rotate(-8deg); }
}

/* ===== ABOUT ===== */
.about-section { width: 100%; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .about-section { margin-bottom: 2.5rem; } }
.about-block {
  display: flex;
  flex-direction: column;
  background: var(--brand-dark);
  overflow: hidden;
}
@media (min-width: 1024px) { .about-block { flex-direction: row; } }
.about-text {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (min-width: 768px) { .about-text { padding: 4rem; } }
@media (min-width: 1024px) { .about-text { width: 50%; } }
.about-text h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--brand-light);
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  .about-text h2 { font-size: 1.8rem; margin-bottom: 1.5rem; }
}
.about-text p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.7rem;
  line-height: 1.75;
  color: rgba(244, 240, 230, 0.9);
  text-align: justify;
}
@media (min-width: 768px) { .about-text p { font-size: 0.8rem; } }

.about-image {
  width: 100%;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  overflow: hidden;
}
@media (min-width: 768px) { .about-image { padding: 3rem; min-height: 400px; } }
@media (min-width: 1024px) { .about-image { width: 50%; } }
.about-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: screen;
  opacity: 0.9;
  cursor: pointer;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.about-img:hover { transform: scale(1.08); }

/* ===== CONTACT ===== */
.contact-section { width: 100%; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .contact-section { margin-bottom: 2.5rem; } }
.contact-block {
  display: flex;
  flex-direction: column;
  background: var(--brand-red);
  overflow: hidden;
}
@media (min-width: 1024px) { .contact-block { flex-direction: row; } }
.contact-image {
  order: 2;
  width: 100%;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  overflow: hidden;
}
@media (min-width: 768px) { .contact-image { padding: 3rem; min-height: 400px; } }
@media (min-width: 1024px) { .contact-image { order: 1; width: 50%; } }
.contact-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: screen;
  opacity: 0.9;
  cursor: pointer;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.contact-img:hover { transform: scale(1.08); }
.contact-text {
  order: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--brand-light);
}
@media (min-width: 768px) { .contact-text { padding: 4rem; } }
@media (min-width: 1024px) { .contact-text { order: 2; width: 50%; } }
.contact-text h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--brand-light);
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  .contact-text h2 { font-size: 1.8rem; margin-bottom: 1.5rem; }
}
.contact-text p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.7rem;
  line-height: 1.75;
  color: rgba(244, 240, 230, 0.9);
  text-align: justify;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
  .contact-text p { font-size: 0.8rem; margin-bottom: 2rem; }
}

.contact-icons { display: flex; gap: 1rem; }
@media (min-width: 768px) { .contact-icons { gap: 1.25rem; } }
.icon-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--brand-bg);
  color: var(--brand-red);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  text-decoration: none;
}
.icon-btn:hover { transform: scale(1.1); }
@media (min-width: 768px) {
  .icon-btn { width: 2.4rem; height: 2.4rem; }
}

/* ===== GALLERY ===== */
.gallery-section {
  width: 100%;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
  .gallery-section { margin-bottom: 2rem; }
}
.gallery-grid {
  display: grid;
  gap: 8px;
  width: 100%;
}
@media (min-width: 768px) { .gallery-grid { gap: 12px; } }
.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #d1c5ae;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: block;
}
.gallery-item:hover img { transform: scale(1.1); }

@media (max-width: 1023px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 120px);
  }
  .g-bowl { grid-column: 1 / 2; grid-row: 1 / 2; }
  .g-wine { grid-column: 2 / 3; grid-row: 1 / 2; }
  .g-toast { grid-column: 3 / 4; grid-row: 1 / 3; }
  .g-steak { grid-column: 1 / 2; grid-row: 2 / 3; }
  .g-salmon { grid-column: 2 / 3; grid-row: 2 / 3; }
  .g-salad { grid-column: 1 / 2; grid-row: 3 / 4; }
  .g-dumplings { grid-column: 2 / 4; grid-row: 3 / 4; }
}
@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 220px);
  }
  .g-bowl { grid-column: 1 / 2; grid-row: 1 / 2; }
  .g-wine { grid-column: 2 / 3; grid-row: 1 / 2; }
  .g-dumplings { grid-column: 3 / 4; grid-row: 1 / 2; }
  .g-toast { grid-column: 4 / 5; grid-row: 1 / 3; }
  .g-steak { grid-column: 1 / 2; grid-row: 2 / 3; }
  .g-salmon { grid-column: 2 / 3; grid-row: 2 / 3; }
  .g-salad { grid-column: 3 / 4; grid-row: 2 / 3; }
}

/* ===== FOOTER ===== */
footer { width: 100%; padding: 2rem 0 3rem; }
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 768px) {
  .footer-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1.5rem;
  }
}

.social-icons {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-text);
  opacity: 0.65;
  transition: opacity 0.3s ease, color 0.3s ease;
}
.social-icon:hover { opacity: 1; color: var(--brand-red); }

.footer-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
@media (min-width: 768px) {
  .footer-left { align-items: flex-start; text-align: left; }
}
.footer-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.6rem;
  color: var(--brand-text);
  margin-bottom: 0.75rem;
}
@media (min-width: 768px) { .footer-text { font-size: 0.7rem; } }
.hide-mobile { display: none; }
@media (min-width: 768px) { .hide-mobile { display: inline; } }

.footer-form {
  display: flex;
  width: 100%;
  max-width: 320px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.footer-form input {
  flex-grow: 1;
  padding: 0.625rem 1rem;
  font-size: 0.75rem;
  border: none;
  outline: none;
  color: var(--brand-text);
  background: #fff;
  font-family: var(--font-heading);
}
@media (min-width: 768px) { .footer-form input { font-size: 0.875rem; } }
.footer-form button {
  background: var(--brand-red);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.625rem 1.25rem;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
  white-space: nowrap;
}
@media (min-width: 768px) { .footer-form button { font-size: 0.875rem; } }
.footer-form button:hover { background: #5f2224; }

.form-message {
  display: none;
  font-size: 0.75rem;
  margin-top: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 4px;
  font-family: var(--font-heading);
}
.form-message.success {
  display: block;
  color: #155724;
  background: #d4edda;
  border: 1px solid #c3e6cb;
}
.form-message.error {
  display: block;
  color: #721c24;
  background: #f8d7da;
  border: 1px solid #f5c6cb;
}

.footer-address {
  font-style: normal;
  font-size: 0.5rem;
  opacity: 0.7;
  line-height: 1.625;
  font-family: var(--font-heading);
  color: var(--brand-text);
  margin-top: 1rem;
}
@media (min-width: 768px) { .footer-address { font-size: 0.6rem; } }
.footer-address a {
  color: inherit;
  text-decoration: none;
  font-weight: inherit;
}
.footer-address a:hover { color: var(--brand-red); text-decoration: underline; }

.footer-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
@media (min-width: 768px) {
  .footer-center { justify-self: center; }
}
.footer-logo-center {
  width: auto;
  height: 4.5rem;
  object-fit: contain;
}
@media (min-width: 768px) { .footer-logo-center { height: 6rem; } }

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 100%;
}
@media (min-width: 768px) {
  .footer-right { justify-self: end; }
}

.powered-by {
  font-family: var(--font-yekan);
  font-weight: 800;
  color: var(--brand-red);
  font-size: 0.56rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.35;
  margin: 0 0 0.15rem;
  text-align: center;
}
@media (min-width: 768px) {
  .powered-by { font-size: 0.64rem; }
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-bg);
  border-radius: 14px;
  padding: 0.5rem 1rem;
}
@media (min-width: 768px) {
  .logo-badge { border-radius: 18px; padding: 0.625rem 1.25rem; }
}
.footer-logo-cal {
  display: block;
  width: auto;
  max-width: 100%;
  height: 1.8rem;
  object-fit: contain;
}
@media (min-width: 768px) {
  .footer-logo-cal { height: 2.2rem; }
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  transform: scale(0.92) translateY(30px);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
  opacity: 0;
}
.lightbox.open img { transform: scale(1) translateY(0); opacity: 1; }
.close-btn {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 2.8rem;
  color: #fff;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.close-btn:hover { background: var(--brand-red); transform: rotate(90deg) scale(1.1); }
@media (max-width: 768px) {
  .close-btn { top: 20px; right: 20px; width: 48px; height: 48px; font-size: 2rem; }
}