/* ============================================================
   Iranie Cuisine – Main Stylesheet
   Colors sourced from brand logo: green (#2d6a1f), gold (#f5c518),
   dark (#1a1a1a), warm white (#faf8f3)
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
  --green:        #2d6a1f;
  --green-dark:   #1e4a14;
  --green-light:  #3d8a2a;
  --gold:         #f5c518;
  --gold-dark:    #d4a800;
  --dark:         #1a1a1a;
  --dark-2:       #2a2a2a;
  --warm-white:   #faf8f3;
  --light-gray:   #f0ede6;
  --text-main:    #2c2c2c;
  --text-muted:   #666;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Open Sans', Arial, sans-serif;
  --radius:       12px;
  --shadow:       0 4px 24px rgba(0,0,0,0.12);
  --transition:   0.3s ease;
  --max-width:    1200px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--warm-white);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---- Container ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Typography ---- */
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
h4 { font-size: 1.1rem; }

/* ---- Buttons ---- */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--dark);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 50px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 16px rgba(245,197,24,0.35);
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,197,24,0.45);
}
.btn-secondary {
  display: inline-block;
  background: transparent;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 30px;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,0.7);
  transition: background var(--transition), border-color var(--transition);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}
.btn-order {
  display: inline-block;
  background: var(--gold);
  color: var(--dark);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 22px;
  border-radius: 50px;
  transition: background var(--transition);
}
.btn-order:hover { background: var(--gold-dark); }

/* ---- Section Helpers ---- */
.section-light  { background: var(--warm-white); padding: 80px 0; }
.section-dark   { background: var(--dark); color: #fff; padding: 80px 0; }
.section-accent { background: var(--green); color: #fff; padding: 80px 0; }

.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { max-width: 640px; margin: 0 auto; opacity: 0.85; font-size: 1.05rem; }

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(45,106,31,0.1);
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
}
.section-label.light {
  color: var(--gold);
  background: rgba(245,197,24,0.15);
}

/* ============================================================
   HEADER
   ============================================================ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 2px solid var(--green);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: box-shadow var(--transition);
}
#site-header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.15); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
  gap: 16px;
}

.logo-link { flex-shrink: 0; }
.logo-img { height: 80px; width: auto; object-fit: contain; }

#main-nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
}
#main-nav ul li a {
  color: var(--dark);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 14px;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}
#main-nav ul li a:hover { color: var(--green); background: rgba(45,106,31,0.08); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

#lang-toggle {
  background: var(--gold);
  color: var(--dark);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 50px;
  transition: background var(--transition);
  letter-spacing: 0.05em;
}
#lang-toggle:hover { background: var(--gold-dark); }

#nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
#nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.55) 60%, rgba(0,0,0,0.35) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 680px;
  padding-top: 100px;
  padding-bottom: 60px;
}
.hero-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(245,197,24,0.5);
  padding: 5px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
}
.hero-content h1 { color: #fff; margin-bottom: 20px; }
.hero-content p { font-size: 1.1rem; opacity: 0.88; margin-bottom: 36px; max-width: 520px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}
.about-text h2 { color: var(--green-dark); margin-bottom: 20px; }
.about-text p { color: var(--text-muted); margin-bottom: 16px; }
.about-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--light-gray);
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green-dark);
}
.badge-icon { font-size: 1.1rem; }

/* ============================================================
   MENU
   ============================================================ */
.menu-cta-wrap {
  text-align: center;
  margin-top: 8px;
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
  background: var(--dark-2);
}
.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

.gallery-caption {
  padding: 16px 18px 18px;
  background: #fff;
}
.gallery-caption strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--green-dark);
  margin-bottom: 6px;
}
.gallery-caption p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   GALLERY MODAL
   ============================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px 70px;
  gap: 16px;
}
.modal-overlay.active { display: flex; }

/* White card containing image + info */
.modal-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}

/* Image wrapper — fixed aspect ratio */
.modal-img-wrap {
  width: 100%;
  max-height: 60vh;
  overflow: hidden;
  background: #111;
  flex-shrink: 0;
}
.modal-img-wrap img {
  width: 100%;
  height: 100%;
  max-height: 60vh;
  object-fit: cover;
  display: block;
}

/* Info area below image */
.modal-info {
  padding: 20px 24px 24px;
  background: #fff;
}
.modal-caption {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 8px;
  text-align: left;
}
.modal-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  text-align: left;
}

/* Close button — top-right corner of the card */
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  background: rgba(0,0,0,0.55);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  z-index: 2010;
}
.modal-close:hover { background: rgba(255,255,255,0.25); }

.modal-arrow {
  flex-shrink: 0;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-size: 2.6rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  z-index: 2010;
  line-height: 1;
  border: 2px solid rgba(255,255,255,0.3);
  cursor: pointer;
}
.modal-arrow:hover { background: rgba(255,255,255,0.35); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.15);
}
.faq-item summary {
  padding: 18px 24px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  padding: 0 24px 18px;
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-info h2 { color: var(--green-dark); margin-bottom: 28px; }
.contact-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.contact-list strong { display: block; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); margin-bottom: 4px; }
.contact-list p, .contact-list a { color: var(--text-muted); font-size: 0.95rem; }
.contact-list a:hover { color: var(--green); }

.social-links { display: flex; gap: 10px; flex-wrap: wrap; }
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  transition: transform var(--transition), opacity var(--transition);
  color: #fff;
}
.social-btn:hover { transform: translateY(-3px); opacity: 0.85; }
.social-btn.facebook  { background: #1877f2; }
.social-btn.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-btn.twitter   { background: #000; }
.social-btn.tiktok    { background: #010101; border: 1px solid #333; }
.social-btn.youtube   { background: #ff0000; }

.contact-map iframe {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
}

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.8);
  padding-top: 60px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo { height: 70px; width: auto; margin-bottom: 12px; }
.footer-brand p { font-size: 0.9rem; color: rgba(255,255,255,0.6); line-height: 1.6; }

.footer-links h4, .footer-contact h4, .footer-social h4 {
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 8px; }
.footer-links ul li a { color: rgba(255,255,255,0.7); font-size: 0.9rem; transition: color var(--transition); }
.footer-links ul li a:hover { color: var(--gold); }

.footer-contact p { font-size: 0.9rem; color: rgba(255,255,255,0.7); margin-bottom: 6px; }
.footer-contact a { color: rgba(255,255,255,0.7); transition: color var(--transition); }
.footer-contact a:hover { color: var(--gold); }

.footer-social .social-links { margin-bottom: 20px; }

.btn-review {
  display: inline-block;
  background: var(--gold);
  color: var(--dark);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 18px;
  border-radius: 50px;
  transition: background var(--transition);
  white-space: nowrap;
}
.btn-review:hover { background: var(--gold-dark); }

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom a {
  color: rgba(255,255,255,0.55);
  text-decoration: underline;
  transition: color var(--transition);
}
.footer-bottom a:hover { color: var(--gold); }
.footer-powered {
  margin-top: 6px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.3);
}
.footer-powered a {
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
}
.footer-powered a:hover { color: var(--gold-dark); text-decoration: underline; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .about-grid { gap: 40px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  /* Hide the header lang-toggle on mobile — language switching is inside the mobile nav menu */
  #lang-toggle { display: none; }

  /* Mobile lang switcher inside nav */
  .mobile-lang-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin: 8px 24px 8px;
    padding: 6px 14px;
    background: var(--gold);
    color: var(--dark);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    width: auto;
    font-family: var(--font-body);
  }
  .mobile-lang-btn:hover { background: var(--gold-dark); }

  #main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid rgba(45,106,31,0.2);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    padding: 16px 0;
  }
  #main-nav.open { display: block; }
  #main-nav ul { flex-direction: column; padding: 0 24px; gap: 4px; }
  #main-nav ul li a { display: block; padding: 12px 16px; color: var(--dark); }
  #nav-toggle { display: flex; }

  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-image { order: -1; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

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

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

  .hero-cta { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero-cta a { width: 100%; max-width: 300px; text-align: center; }

  .hero-content { padding-top: 90px; padding-bottom: 48px; }
  .hero-content h1 { font-size: clamp(1.9rem, 8vw, 2.8rem); }
  .hero-content p { font-size: 1rem; margin-bottom: 28px; }
  .hero-tag { font-size: 0.72rem; letter-spacing: 0.12em; }

  /* Modal mobile overrides */
  .modal-overlay { padding: 12px 8px; gap: 8px; }
  .modal-arrow { width: 40px; height: 40px; font-size: 2rem; }
  .modal-close { width: 40px; height: 40px; font-size: 1.4rem; top: 8px; right: 8px; }
  .modal-img-wrap { max-height: 50vh; }
  .modal-img-wrap img { max-height: 50vh; }
  .modal-info { padding: 14px 16px 18px; }
  .modal-caption { font-size: 1.05rem; }
  .modal-desc { font-size: 0.88rem; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .about-badges { flex-direction: column; }
  .modal-img-wrap { max-height: 42vh; }
  .modal-img-wrap img { max-height: 42vh; }
  #hero { min-height: 100svh; }
  .hero-content { padding-top: 100px; padding-bottom: 40px; }
  .hero-content h1 { font-size: clamp(1.7rem, 7vw, 2.4rem); }
  .hero-content p { font-size: 0.95rem; max-width: 100%; }
}

/* ---- Footer review button spacing ---- */
.footer-review { margin-top: 16px; }

/* ---- Ensure modal image never shows broken icon ---- */
#modal-img:not([src]) { display: none; }
#modal-img[src=""] { display: none; }

/* Modal card scrollable on very small screens */
@media (max-height: 600px) {
  .modal-card { max-height: 95vh; overflow-y: auto; }
  .modal-img-wrap { max-height: 38vh; }
  .modal-img-wrap img { max-height: 38vh; }
}

/* mobile-lang-btn: hidden by default (desktop), shown inside media query below */

/* ---- Desktop: hide mobile-only elements ---- */
@media (min-width: 769px) {
  .mobile-lang-btn { display: none !important; }
  .about-grid { grid-template-columns: 1fr 1fr; }
}
