/*
Theme Name: Cafe Minimal
Theme URI: https://example.com
Author: Arvin
Author URI: https://example.com
Description: قالب مینیمال و ساده وردپرس مخصوص کافه‌ها و کافی‌شاپ‌ها
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cafe-minimal
*/

:root{
  --ink: #111111;
  --paper: #f7f6f3;
  --white: #ffffff;
  --muted: #737373;
  --line: #dddad3;
  --line-dark: #2c2c2c;
  --gap: 28px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
  line-height: 1.9;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
button{ font-family: inherit; }

.container{
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.grayscale{ filter: grayscale(100%) contrast(1.05); }

/* ---------- Header ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header .inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}
.site-branding{ display: flex; align-items: center; gap: 12px; }
.site-branding .custom-logo-link{ display: flex; align-items: center; }
.site-branding img.custom-logo{
  max-height: 40px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.brand-mark{
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}
.site-title{
  font-size: 19px;
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
}
.site-description{
  font-size: 12px;
  color: var(--muted);
  margin: 2px 0 0;
}

.main-navigation ul{
  list-style: none;
  display: flex;
  gap: 34px;
  margin: 0;
  padding: 0;
}
.main-navigation a{
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  position: relative;
  padding-bottom: 3px;
}
.main-navigation a::after{
  content: "";
  position: absolute;
  right: 0; left: 0; bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s ease;
}
.main-navigation a:hover::after{ transform: scaleX(1); }

.header-cta{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--ink);
  padding: 10px 22px;
  font-size: 13.5px;
  font-weight: 700;
  transition: background .2s, color .2s;
}
.header-cta:hover{ background: var(--ink); color: var(--white); }

.menu-toggle{
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  width: 30px;
  height: 22px;
  position: relative;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after{
  content: "";
  display: block;
  position: absolute;
  right: 6px; left: 6px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.menu-toggle span{ top: 10px; }
.menu-toggle span::before{ top: -7px; }
.menu-toggle span::after{ top: 7px; }
body.nav-open .menu-toggle span{ background: transparent; }
body.nav-open .menu-toggle span::before{ top: 0; transform: rotate(45deg); background: var(--ink); }
body.nav-open .menu-toggle span::after{ top: 0; transform: rotate(-45deg); background: var(--ink); }

/* ---------- Hero (split) ---------- */
.hero-split{
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 560px;
}
.hero-text{
  background: var(--ink);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
}
.hero-text .kicker{
  font-size: 14px;
  color: #b8b8b8;
  margin-bottom: 18px;
}
.hero-text h1{
  font-size: 50px;
  line-height: 1.25;
  font-weight: 800;
  margin: 0 0 24px;
}
.hero-text p{
  color: #c7c7c7;
  font-size: 16.5px;
  max-width: 420px;
  margin: 0 0 32px;
}
.hero-actions{ display: flex; gap: 14px; }
.btn{
  display: inline-block;
  background: var(--white);
  color: var(--ink);
  padding: 14px 30px;
  font-weight: 700;
  font-size: 14.5px;
  border: 1px solid var(--white);
  transition: background .2s, color .2s;
}
.btn:hover{ background: transparent; color: var(--white); }
.btn.ghost{
  background: transparent;
  color: var(--white);
  border: 1px solid #5c5c5c;
}
.btn.ghost:hover{ border-color: var(--white); background: transparent; color: var(--white); }

.hero-image{ overflow: hidden; }
.hero-image img{ width: 100%; height: 100%; object-fit: cover; min-height: 320px; }

/* ---------- Sections ---------- */
.section{ padding: 96px 0; }
.section-head{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 52px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
}
.section-head h2{
  font-size: 30px;
  margin: 0;
  font-weight: 800;
}
.section-head .section-index{
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- About ---------- */
.about-grid{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.about-grid img{ width: 100%; height: 420px; object-fit: cover; }
.about-grid p{ color: var(--muted); font-size: 16px; max-width: 480px; }
.about-grid .lede{
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 18px;
  line-height: 1.6;
}

/* ---------- Menu: printed leader-dot list ---------- */
.menu-columns{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 70px;
}
.menu-item{
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.menu-item:last-child{ border-bottom: none; }
.menu-item .name-wrap{ flex-shrink: 0; }
.menu-item h3{
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  display: inline;
}
.menu-item .desc{
  display: block;
  color: var(--muted);
  font-size: 13.5px;
  margin-top: 4px;
}
.menu-item .leader{
  flex: 1;
  border-bottom: 1px dotted #b7b3aa;
  height: 1px;
  margin: 0 2px 6px;
}
.menu-item .price{
  flex-shrink: 0;
  font-weight: 700;
  font-size: 15px;
}

/* ---------- Gallery mosaic ---------- */
.gallery-mosaic{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 160px;
  gap: 4px;
}
.gallery-mosaic img{ width: 100%; height: 100%; object-fit: cover; }
.gallery-mosaic .tall{ grid-row: span 2; }

/* ---------- Testimonial ---------- */
.testimonial{
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.testimonial .mark{
  font-size: 60px;
  line-height: 1;
  color: var(--line);
  font-weight: 800;
  margin-bottom: 6px;
}
.testimonial p{
  font-size: 24px;
  line-height: 1.7;
  font-weight: 600;
  margin: 0 0 20px;
}
.testimonial strong{ color: var(--muted); font-weight: 500; font-size: 14px; }

/* ---------- Blog ---------- */
.post-list{
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 40px;
}
.post-card img{ width: 100%; aspect-ratio: 4/3; object-fit: cover; margin-bottom: 18px; }
.post-card h3{ font-size: 17px; margin: 0 0 8px; font-weight: 700; }
.post-card .excerpt{ color: var(--muted); font-size: 14px; }
.page-content{ font-size: 16px; color: var(--ink); max-width: 720px; }
.page-content img{ margin: 24px 0; }

/* ---------- Footer ---------- */
.site-footer{
  background: var(--ink);
  color: #d8d8d8;
  padding: 70px 0 26px;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 46px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand h4{ color: var(--white); font-size: 19px; margin: 0 0 12px; font-weight: 800; }
.footer-brand p{ color: #9a9a9a; font-size: 14px; max-width: 260px; }
.site-footer h4{ color: var(--white); margin: 0 0 16px; font-size: 14px; font-weight: 700; }
.site-footer .label{ color: #8a8a8a; font-size: 12px; margin-bottom: 4px; }
.site-footer .value{ color: #e5e5e5; font-size: 14.5px; margin-bottom: 16px; }
.site-footer a{ color: #b6b6b6; font-size: 14px; }
.site-footer a:hover{ color: var(--white); }
.footer-nav ul{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-bottom{
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: #7c7c7c;
}

/* ---------- Icons ---------- */
.icon{ width: 100%; height: 100%; }

/* ---------- Hero illustration (replaces photo) ---------- */
.hero-illustration{
  position: relative;
  background:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.09) 1px, transparent 1.5px) 0 0/22px 22px,
    #000;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}
.hero-illustration .icon{
  width: 44%;
  max-width: 220px;
  color: #fff;
  opacity: .92;
}

/* ---------- Stats ---------- */
.stats-row{
  display: flex;
  gap: 44px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.stat .value{ font-size: 30px; font-weight: 800; display: block; }
.stat .label{ font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ---------- Process ---------- */
.process-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.process-step{
  padding: 0 26px 0 0;
  border-inline-end: 1px solid var(--line);
  position: relative;
}
.process-step:last-child{ border-inline-end: none; padding-inline-end: 0; }
.process-step .step-no{
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 22px;
  display: block;
}
.process-step .icon{
  width: 34px;
  height: 34px;
  color: var(--ink);
  margin-bottom: 20px;
}
.process-step h3{ font-size: 16px; margin: 0 0 8px; font-weight: 700; }
.process-step p{ font-size: 13.5px; color: var(--muted); margin: 0; }

/* ---------- Interactive glass menu ---------- */
.menu-app{ position: relative; }

.menu-pills{
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 6px 2px 22px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.menu-pills::-webkit-scrollbar{ display: none; }
.menu-pill{
  flex-shrink: 0;
  padding: 11px 24px;
  border-radius: 999px;
  border: 1px solid rgba(17,17,17,0.12);
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s;
}
.menu-pill.is-active{
  background: rgba(17,17,17,0.92);
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(17,17,17,0.18);
}

.menu-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.menu-card{
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.07), transparent 55%),
    linear-gradient(200deg, #2a2a2a 0%, #0a0a0a 65%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s ease;
}
.menu-card:hover{ transform: translateY(-3px); }
.menu-card.is-hidden{ display: none; }
.menu-card .icon{
  width: 34%;
  color: rgba(255,255,255,0.5);
}
.menu-card .fav-btn{
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
}
.menu-card .fav-btn svg{ width: 16px; height: 16px; }
.menu-card .fav-btn.is-fav svg{ fill: #fff; }
.menu-card .add-btn{
  position: absolute;
  bottom: 12px;
  inset-inline-start: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.menu-card .add-btn:active{ transform: scale(.9); }
.menu-card .add-btn.has-qty{ background: #fff; color: #111; font-size: 13px; font-weight: 800; }
.menu-card .card-info{
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 30px 14px 14px;
  background: linear-gradient(0deg, rgba(0,0,0,0.75) 0%, transparent 100%);
  color: #fff;
}
.menu-card .card-info h3{ font-size: 14.5px; margin: 0 0 4px; font-weight: 700; }
.menu-card .card-info .price{ font-size: 12.5px; color: rgba(255,255,255,0.75); }

/* Floating cart pill, sticky within the menu section */
.cart-pill-wrap{
  position: sticky;
  bottom: 22px;
  display: flex;
  justify-content: flex-end;
  margin-top: 26px;
  pointer-events: none;
}
.cart-pill{
  pointer-events: auto;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  background: rgba(17,17,17,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 12px 28px rgba(0,0,0,0.25);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}
.cart-pill.is-visible{ display: inline-flex; }
.cart-pill .icon{ width: 18px; height: 18px; }
.cart-pill .count{
  background: #fff;
  color: #111;
  border-radius: 999px;
  min-width: 20px;
  height: 20px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* Bottom-sheet modal (item detail / cart summary) */
.sheet-overlay{
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.sheet-overlay.is-open{ opacity: 1; pointer-events: auto; }
.sheet{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 301;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.5);
  border-bottom: none;
  border-radius: 22px 22px 0 0;
  padding: 26px 24px 30px;
  max-width: 480px;
  margin: 0 auto;
  transform: translateY(100%);
  transition: transform .3s ease;
  box-shadow: 0 -20px 50px rgba(0,0,0,0.18);
}
.sheet-overlay.is-open .sheet{ transform: translateY(0); }
.sheet .sheet-handle{
  width: 40px; height: 4px;
  background: var(--line);
  border-radius: 999px;
  margin: 0 auto 20px;
}
.sheet-icon-wrap{
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 14px;
  background: linear-gradient(200deg, #2a2a2a 0%, #0a0a0a 65%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.sheet-icon-wrap .icon{ width: 28%; color: rgba(255,255,255,0.55); }
.sheet h3{ font-size: 19px; margin: 0 0 4px; }
.sheet .cat{ font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.sheet .desc{ font-size: 14.5px; color: var(--ink); margin-bottom: 22px; }
.sheet-footer{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.qty-stepper{
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 8px;
}
.qty-stepper button{
  width: 28px; height: 28px;
  border-radius: 50%;
  border: none;
  background: var(--ink);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}
.qty-stepper .qty-val{ min-width: 18px; text-align: center; font-weight: 700; }
.sheet-cta{
  flex: 1;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 15px 20px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
}
.sheet-close{
  position: absolute;
  top: 22px;
  inset-inline-end: 22px;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(17,17,17,0.08);
  font-size: 16px;
  cursor: pointer;
}
.summary-list{ list-style: none; padding: 0; margin: 0 0 20px; }
.summary-list li{
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.summary-empty{ color: var(--muted); font-size: 14px; text-align: center; padding: 20px 0; }

/* ---------- Moments (icon grid, replaces photo gallery) ---------- */
.moments-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.moment-tile{
  background: var(--paper);
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px;
  transition: background .2s, color .2s;
}
.moment-tile:hover{ background: var(--ink); color: var(--white); }
.moment-tile .icon{ width: 40px; height: 40px; }
.moment-tile span{ font-size: 13px; font-weight: 600; }

/* Hero entrance (single orchestrated moment) */
.hero-text > *{
  opacity: 0;
  transform: translateY(14px);
  animation: hero-in .7s ease forwards;
}
.hero-text .kicker{ animation-delay: .05s; }
.hero-text h1{ animation-delay: .15s; }
.hero-text p{ animation-delay: .25s; }
.hero-actions{ animation-delay: .35s; }
@keyframes hero-in{ to{ opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce){
  .hero-text > *{ animation: none; opacity: 1; transform: none; }
}

@media (max-width: 900px){
  .process-grid{ grid-template-columns: 1fr 1fr; row-gap: 34px; }
  .process-step{ border-inline-end: none; padding-inline-end: 0; }
  .moments-grid{ grid-template-columns: repeat(2,1fr); }
  .stats-row{ gap: 26px; flex-wrap: wrap; }
  .menu-grid{ grid-template-columns: repeat(2,1fr); }
  .hero-split{ grid-template-columns: 1fr; min-height: auto; }
  .hero-image{ order: -1; height: 320px; }
  .hero-text{ padding: 48px 26px; }
  .hero-text h1{ font-size: 36px; }
  .about-grid, .menu-columns{ grid-template-columns: 1fr; gap: 30px; }
  .about-grid img{ height: 280px; order: -1; }
  .gallery-mosaic{ grid-template-columns: repeat(2,1fr); }
  .post-list{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr 1fr; row-gap: 34px; }
}

@media (max-width: 780px){
  .main-navigation{
    position: fixed;
    inset: 0;
    top: 73px;
    background: var(--paper);
    transform: translateX(100%);
    transition: transform .3s ease;
    padding: 40px 30px;
  }
  body.nav-open .main-navigation{ transform: translateX(0); }
  .main-navigation ul{ flex-direction: column; gap: 26px; }
  .main-navigation a{ font-size: 22px; }
  .header-cta{ display: none; }
  .menu-toggle{ display: block; }
  .section{ padding: 64px 0; }
  .section-head{ flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-grid{ grid-template-columns: 1fr; }
  .footer-bottom{ flex-direction: column; gap: 8px; }
}
