:root {
  --espresso: #1a120b;
  --coffee: #3b2a20;
  --coffee-soft: #4a3428;
  --cream: #f5ede0;
  --cream-2: #ede0ce;
  --latte: #e7d6bf;
  --gold: #c79a5b;
  --gold-deep: #a97c3d;
  --sans: 'Jost', sans-serif;
  --serif: 'Cormorant Garamond', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--coffee);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.fa { font-family: 'Vazirmatn', sans-serif; }
body.fa .hero-brand, body.fa .footer-name, body.fa .brand span { font-family: 'Vazirmatn', sans-serif; letter-spacing: 0; }

html { scroll-behavior: smooth; }
img { display: block; }

/* ── Nav ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: all .4s ease;
  background: transparent;
}
.nav-solid {
  background: rgba(26,18,11,0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 30px rgba(0,0,0,0.25);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 18px 26px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  background: none; border: none; cursor: pointer;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1.7rem; font-weight: 600;
  letter-spacing: 0.35em;
}
.brand-cup { color: var(--gold); }
.nav-links { display: flex; gap: 30px; }
.nav-link {
  background: none; border: none; cursor: pointer;
  color: var(--cream); font-size: .82rem;
  letter-spacing: .12em; text-transform: uppercase;
  opacity: .85; position: relative; padding: 4px 0;
  transition: opacity .3s;
}
.nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px; background: var(--gold); transition: width .3s;
}
.nav-link:hover { opacity: 1; }
.nav-link:hover::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 16px; }
.lang-btn {
  border: 1px solid var(--gold); background: transparent;
  color: var(--gold); cursor: pointer;
  padding: 7px 16px; border-radius: 999px;
  font-size: .74rem; letter-spacing: .1em;
  transition: all .3s;
}
.lang-btn:hover { background: var(--gold); color: var(--espresso); }
.burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.burger span { width: 24px; height: 2px; background: var(--cream); transition: all .3s; display: block; }
.burger .x1 { transform: translateY(7px) rotate(45deg); }
.burger .x2 { opacity: 0; }
.burger .x3 { transform: translateY(-7px) rotate(-45deg); }
.drawer {
  display: none; flex-direction: column;
  background: rgba(26,18,11,0.97); backdrop-filter: blur(8px);
  max-height: 0; overflow: hidden; transition: max-height .4s ease;
}
.drawer-open { max-height: 400px; padding: 8px 0 18px; }
.drawer-link {
  background: none; border: none; cursor: pointer;
  color: var(--cream); text-align: inherit;
  padding: 14px 30px; font-size: .95rem; letter-spacing: .1em;
  text-transform: uppercase; border-bottom: 1px solid rgba(199,154,91,0.12);
}

/* ── Hero ── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  background-color: var(--coffee);
  animation: heroZoom 20s ease-out forwards;
}
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(26,18,11,0.4), rgba(26,18,11,0.82));
}
.hero-content { position: relative; text-align: center; padding: 0 24px; color: var(--cream); }
.hero-cup { color: var(--gold); margin: 0 auto 18px; }
.hero-brand {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(4rem, 16vw, 9rem); line-height: .9;
  letter-spacing: .18em; margin-left: .18em;
  text-shadow: 0 4px 40px rgba(0,0,0,0.5);
}
.hero-rule { width: 70px; height: 1px; background: var(--gold); margin: 22px auto; }
.hero-tagline {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.15rem, 3.5vw, 1.9rem);
  font-weight: 400; color: var(--cream-2); max-width: 620px; margin: 0 auto;
}
.hero-motto {
  margin-top: 26px; font-size: .85rem; letter-spacing: .4em;
  text-transform: uppercase; color: var(--gold);
}
body.fa .hero-motto { letter-spacing: .1em; font-size: 1rem; }
.btn-gold {
  margin-top: 36px; background: var(--gold); color: var(--espresso);
  border: none; cursor: pointer; padding: 15px 42px;
  border-radius: 999px; font-size: .82rem; letter-spacing: .14em;
  text-transform: uppercase; font-weight: 500;
  transition: all .35s; box-shadow: 0 10px 30px rgba(199,154,91,0.35);
}
.btn-gold:hover { background: var(--cream); transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,0.3); }
.btn-gold.full { width: 100%; margin-top: 8px; }
.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  background: none; border: none; cursor: pointer; color: var(--cream-2);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: .68rem; letter-spacing: .25em; text-transform: uppercase;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%,0);} 50% { transform: translate(-50%,8px);} }

/* Hero fade-in stagger */
.fade-1,.fade-2,.fade-3,.fade-4,.fade-5 { opacity: 0; animation: fadeUp .9s ease forwards; }
.fade-1 { animation-delay: .2s; } .fade-2 { animation-delay: .45s; }
.fade-3 { animation-delay: .7s; } .fade-4 { animation-delay: .95s; } .fade-5 { animation-delay: 1.2s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px);} to { opacity: 1; transform: none;} }

/* ── Sections ── */
.section { max-width: 1200px; margin: 0 auto; padding: 110px 26px; }
.section-head { text-align: center; margin-bottom: 56px; }
.eyebrow {
  display: inline-block; color: var(--gold-deep);
  font-size: .8rem; letter-spacing: .3em; text-transform: uppercase; margin-bottom: 14px;
}
.section-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 3.6rem); color: var(--coffee);
  letter-spacing: .02em;
}
.section-title.light { color: var(--cream); }
.section-lead {
  font-family: var(--serif); font-style: italic;
  font-size: 1.25rem; color: var(--coffee-soft); margin-top: 12px;
}
.section-lead.light { color: var(--latte); }
body.fa .section-lead, body.fa .about-lead, body.fa .hero-tagline { font-style: normal; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s ease, transform .8s ease; }
.reveal-in { opacity: 1; transform: none; }

/* ── About ── */
.about { padding-top: 130px; }
.about-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; align-items: center; }
.about-img-wrap { position: relative; }
.about-img {
  width: 100%; height: 560px; object-fit: cover; border-radius: 6px;
  box-shadow: 0 30px 60px rgba(26,18,11,0.28);
}
.about-img-badge {
  position: absolute; bottom: -24px; inset-inline-start: -24px;
  background: var(--coffee); color: var(--gold);
  padding: 18px 24px; border-radius: 6px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
}
body.fa .about-img-badge { letter-spacing: 0; }
.about-lead {
  font-family: var(--serif); font-size: 1.35rem; line-height: 1.6;
  color: var(--coffee-soft); margin: 20px 0 40px;
}
body.fa .about-lead { line-height: 2; }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 34px; }
.pillar { display: flex; gap: 16px; }
.pillar-ic {
  flex-shrink: 0; color: var(--gold-deep);
  width: 52px; height: 52px; border: 1px solid var(--latte);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.pillar-t { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; margin-bottom: 4px; }
.pillar-d { font-size: .9rem; line-height: 1.6; color: var(--coffee-soft); opacity: .85; }
body.fa .pillar-d { line-height: 1.9; }

/* ── Menu (dark) ── */
.menu {
  max-width: none; background:
    linear-gradient(rgba(26,18,11,0.94), rgba(26,18,11,0.94)),
    url('/api/nanobanana/image/1024/1024?prompt=dark+moody+scattered+coffee+beans+texture+background+top+down');
  background-size: cover; background-attachment: fixed;
}
.menu > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.tabs { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 54px; }
.tab {
  background: transparent; border: 1px solid rgba(199,154,91,0.4);
  color: var(--latte); cursor: pointer; border-radius: 4px;
  padding: 14px 26px; transition: all .3s;
  display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 130px;
}
.tab-label { font-family: var(--serif); font-size: 1.3rem; }
.tab-sub { font-size: .7rem; letter-spacing: .2em; opacity: .6; text-transform: uppercase; }
.tab-on { background: var(--gold); border-color: var(--gold); color: var(--espresso); }
.tab-on .tab-sub { opacity: .8; }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.menu-card {
  display: flex; align-items: center; gap: 18px;
  background: rgba(245,237,224,0.04); border: 1px solid rgba(199,154,91,0.16);
  border-radius: 8px; padding: 16px; transition: all .35s;
}
.menu-card:hover { background: rgba(245,237,224,0.09); transform: translateY(-4px); border-color: rgba(199,154,91,0.4); }
.menu-thumb { flex-shrink: 0; width: 78px; height: 78px; border-radius: 6px; overflow: hidden; background: var(--coffee-soft); }
.menu-thumb img { width: 100%; height: 100%; object-fit: cover; }
.menu-info { flex: 1; min-width: 0; }
.menu-line { display: flex; align-items: baseline; gap: 8px; }
.menu-name { font-family: var(--serif); font-size: 1.4rem; color: var(--cream); font-weight: 500; }
.menu-dots { flex: 1; border-bottom: 1px dotted rgba(199,154,91,0.4); min-width: 12px; transform: translateY(-4px); }
.menu-price { color: var(--gold); font-size: 1rem; font-weight: 500; }
.menu-alt { display: block; margin-top: 3px; font-size: .82rem; color: var(--latte); opacity: .6; }

/* ── Gallery ── */
.gallery { background: var(--cream-2); max-width: none; }
.gallery > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px; gap: 16px;
}
.g-item { overflow: hidden; border-radius: 6px; }
.g-0 { grid-row: span 2; }
.g-3 { grid-column: span 2; }
.g-btn { position: relative; width: 100%; height: 100%; border: none; padding: 0; cursor: pointer; overflow: hidden; background: var(--coffee); }
.g-btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.g-btn:hover img { transform: scale(1.08); }
.g-cap {
  position: absolute; inset: 0; display: flex; align-items: flex-end;
  padding: 18px; color: var(--cream); font-family: var(--serif);
  font-size: 1.4rem; font-style: italic;
  background: linear-gradient(transparent 55%, rgba(26,18,11,0.75));
  opacity: 0; transition: opacity .4s;
}
body.fa .g-cap { font-style: normal; }
.g-btn:hover .g-cap { opacity: 1; }
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(26,18,11,0.94); display: flex;
  flex-direction: column; align-items: center; justify-content: center;
  padding: 30px; animation: fadeUp .3s ease;
}
.lightbox img { max-width: 90vw; max-height: 78vh; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lb-cap { color: var(--gold); font-family: var(--serif); font-size: 1.5rem; margin-top: 20px; font-style: italic; }
.lb-close { position: absolute; top: 24px; inset-inline-end: 30px; background: none; border: none; color: var(--cream); font-size: 2.6rem; cursor: pointer; line-height: 1; }

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.info-row {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--latte);
  color: var(--coffee-soft); font-size: 1.05rem;
}
.info-row svg { color: var(--gold-deep); flex-shrink: 0; }
.socials { display: flex; gap: 14px; margin-top: 28px; }
.social {
  text-decoration: none; color: var(--coffee);
  border: 1px solid var(--latte); padding: 9px 20px; border-radius: 999px;
  font-size: .78rem; letter-spacing: .1em; transition: all .3s;
}
.social:hover { background: var(--coffee); color: var(--cream); border-color: var(--coffee); }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.field {
  width: 100%; background: #fff; border: 1px solid var(--latte);
  border-radius: 6px; padding: 15px 18px; font-family: inherit;
  font-size: .95rem; color: var(--coffee); resize: vertical; transition: border .3s;
}
.field:focus { outline: none; border-color: var(--gold); }
.field::placeholder { color: #b3a48d; }
.toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
  background: var(--coffee); color: var(--gold);
  padding: 15px 26px; border-radius: 999px; z-index: 300;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
  animation: fadeUp .4s ease; font-size: .95rem;
}

/* ── Footer ── */
.footer { background: var(--espresso); color: var(--cream); }
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 56px 26px 30px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 30px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; color: var(--gold); }
.footer-name { font-family: var(--serif); font-size: 2rem; letter-spacing: .3em; color: var(--cream); }
.footer-motto { font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); opacity: .8; }
body.fa .footer-motto { letter-spacing: .05em; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav button {
  background: none; border: none; color: var(--latte); cursor: pointer;
  font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; opacity: .8; transition: opacity .3s;
}
.footer-nav button:hover { opacity: 1; color: var(--gold); }
.footer-bar {
  border-top: 1px solid rgba(199,154,91,0.15);
  padding: 22px 26px; max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: .78rem; color: rgba(245,237,224,0.6);
}
.footer-bar a { color: var(--gold); text-decoration: none; }
.footer-bar a:hover { text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .drawer { display: flex; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .about-img { height: 420px; }
  .about-img-badge { inset-inline-start: 50%; transform: translateX(-50%); bottom: -22px; }
  body[dir="rtl"] .about-img-badge { transform: translateX(50%); }
  .pillars { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .g-3 { grid-column: span 2; }
  .g-0 { grid-row: span 1; }
}
@media (max-width: 560px) {
  .section { padding: 80px 20px; }
  .nav-inner { padding: 14px 18px; }
  .brand { font-size: 1.4rem; letter-spacing: .25em; }
  .pillars { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .g-3 { grid-column: span 1; }
  .footer-inner { flex-direction: column; text-align: center; }
  .menu-name { font-size: 1.2rem; }
}