/*
Theme Name: 10Cafe
Theme URI: https://10cafe.ir/
Author: 10Cafe
Author URI: https://10cafe.ir/
Description: Minimal, bright WordPress theme for 10Cafe with custom cafe menu and homepage sections.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: 10cafe
*/

:root{
  --bg:#ffffff;
  --fg:#111827;
  --muted:#6b7280;
  --line:#e5e7eb;
  --card:#ffffff;
  --shadow: 0 18px 60px rgba(17,24,39,.10);
  --radius: 18px;
  --max: 1100px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--bg);
  color:var(--fg);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  direction: rtl;
  line-height:1.7;
}
a{color:inherit; text-decoration:none}
a:hover{opacity:.9}

.container{max-width:var(--max); margin:0 auto; padding:0 16px}
.site{min-height:100svh; display:flex; flex-direction:column}
main{flex:1}

.screen-reader-text{
  position:absolute!important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0
}

/* Header */
.header{
  position:sticky;
  top:0;
  z-index:1000;
  background:rgba(255,255,255,.88);
  backdrop-filter:saturate(180%) blur(12px);
  border-bottom:1px solid rgba(229,231,235,.75);
}
.header__bar{
  height:72px;
  align-items:center;
  flex-direction: row-reverse;
  display: flex;
  justify-content: space-between;
}
.header__left{justify-self:start; display:flex; align-items:center; gap:10px}
.header__center{justify-self:center}
.header__right{justify-self:end; display:flex; align-items:center; gap:10px}

.iconbtn{
  width:42px; height:42px;
  border-radius:14px;
  border:1px solid rgba(229,231,235,.9);
  background:#fff;
  display:inline-flex; align-items:center; justify-content:center;
  box-shadow: 0 8px 18px rgba(17,24,39,.06);
  cursor:pointer;
}
.iconbtn:hover{transform:translateY(-1px)}
.iconbtn svg{width:22px; height:22px; display:block}
.logo{
  width:60px; height:60px;
  display:flex; align-items:center; justify-content:center;
}
.logo svg, .logo img{width:60px; height:60px; display:block}

/* Offcanvas */
.offcanvas{
  position:fixed; inset:0;
  pointer-events:none;
  z-index:2000;
}
.offcanvas.is-open{pointer-events:auto}
.offcanvas__overlay{
  position:absolute; inset:0;
  background:rgba(17,24,39,.35);
  opacity:0; transition:opacity .2s ease;
}
.offcanvas.is-open .offcanvas__overlay{opacity:1}
.offcanvas__panel{
  position:absolute; top:0; right:0; bottom:0;
  width:min(360px, 92vw);
  background:#fff;
  transform:translateX(110%);
  transition:transform .25s ease;
  box-shadow: var(--shadow);
  border-left:1px solid rgba(229,231,235,.9);
  display:flex; flex-direction:column;
}
.offcanvas.is-open .offcanvas__panel{transform:translateX(0)}
.offcanvas__head{
  height:72px;
  display:flex; align-items:center; justify-content:space-between;
  padding:0 16px;
  border-bottom:1px solid rgba(229,231,235,.9);
}
.offcanvas__title{font-weight:700}
.offcanvas__body{padding:14px 16px; overflow:auto}
.drawerlist{display:flex; flex-direction:column; gap:8px}
.draweritem{
  display:flex; align-items:center; gap:10px;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(229,231,235,.9);
  background:#fff;
}
.draweritem:hover{background:rgba(243,244,246,.6)}
.draweritem__icon svg{width:20px; height:20px}
.draweritem__text{font-weight:600}

/* Hero */
.hero{
  position:relative;
  margin-top:0;
}
.hero__media{
  position:relative;
  width:100%;
  height: min(72vh, 720px);
  overflow:hidden;
}
.hero__media img{
  width:100%; height:100%;
  object-fit:cover;
  display:block;
}
.hero__overlay{
  position:absolute; inset:0;
  background:linear-gradient(to bottom,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.25) 38%,
    rgba(255,255,255,.70) 78%,
    rgba(255,255,255,.95) 100%);
  pointer-events:none;
}
.hero__content{
  position:absolute;
  left:0; right:0;
  top:0; bottom:0;
  display:flex;
  align-items:center;
}
.hero__content-inner{
  width:100%;
  max-width:var(--max);
  margin:0 auto;
  padding:0 16px;
}
.hero__title{
  margin:0;
  font-size: clamp(28px, 5vw, 56px);
  font-weight:800;
  letter-spacing:-.02em;
  position:relative;
  top: 8vh; /* کمی پایین‌تر از وسط */
  text-shadow: 0 6px 26px rgba(255,255,255,.85);
}
.hero__desc{
  margin:16px 0 0;
  max-width:720px;
  color:rgba(17,24,39,.85);
  position:relative;
  top: 8vh;
}

/* Home info card */
.card{
  background:var(--card);
  border:1px solid rgba(229,231,235,.9);
  border-radius:var(--radius);
  box-shadow: 0 10px 28px rgba(17,24,39,.06);
}
.homeinfo{
  margin-top:-42px;
  position:relative;
  z-index:2;
}
.homeinfo__grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
  padding:14px;
}
@media (max-width: 860px){
  .homeinfo__grid{grid-template-columns:1fr; }
}
.infoitem{
  padding:14px;
  border-radius:16px;
  background:rgba(243,244,246,.55);
  border:1px solid rgba(229,231,235,.9);
}
.infoitem__label{font-size:13px; color:var(--muted); font-weight:700}
.infoitem__value{font-size:15px; font-weight:700; margin-top:6px}
.maplink{color:#111827; text-decoration:underline}

/* Gallery */
.section{padding:34px 0}
.section__title{
  font-weight:900; font-size:22px; margin:0 0 12px;
}
.gallery{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:10px;
}
@media (max-width: 860px){
  .gallery{grid-template-columns: repeat(2, 1fr)}
}
@media (max-width: 520px){
  .gallery{grid-template-columns: 1fr}
}
.gallery__item{
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(229,231,235,.9);
  background:#fff;
  cursor:pointer;
}
.gallery__item img{
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  display:block;
}

/* Lightbox */
.lightbox{
  position:fixed; inset:0;
  background:rgba(17,24,39,.78);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:3000;
  padding:18px;
}
.lightbox.is-open{display:flex}
.lightbox__inner{
  position:relative;
  width:min(980px, 100%);
}
.lightbox__img{
  width:100%;
  max-height:82vh;
  object-fit:contain;
  display:block;
  border-radius:18px;
}
.lightbox__close{
  position:absolute;
  top:-10px; right:-10px;
  width:44px; height:44px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.25);
  background:rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  color:#fff;
  cursor:pointer;
}

/* Menu Page */
.menu-page{padding:22px 0 48px}
.menu-section{
  padding:18px 0;
  border-bottom:1px dashed rgba(229,231,235,.9);
}
.menu-section__head{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  margin-bottom:10px;
}
.menu-section__title{
  font-size:22px;
  font-weight:900;
  white-space:nowrap;
}
.menu-section__dash{
  flex:1;
  height:1px;
  background: repeating-linear-gradient(
    to left,
    rgba(17,24,39,.25) 0,
    rgba(17,24,39,.25) 10px,
    rgba(17,24,39,0) 10px,
    rgba(17,24,39,0) 18px
  );
}
.menu-section__icon svg{width:22px; height:22px; display:block}
.menu-section__desc{color:var(--muted); margin:0 0 12px}

.menu-items{display:flex; flex-direction:column; gap:10px}
.menu-item{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 14px;
  border-radius:18px;
  border:1px solid rgba(229,231,235,.9);
  background:#fff;
}
.menu-item__title{font-weight:800; white-space:nowrap}
.menu-item__dash{
  flex:1;
  height:1px;
  background: repeating-linear-gradient(
    to left,
    rgba(17,24,39,.20) 0,
    rgba(17,24,39,.20) 10px,
    rgba(17,24,39,0) 10px,
    rgba(17,24,39,0) 18px
  );
}
.menu-item__price{font-weight:900}
.menu-item__recipe{margin-top:6px; color:var(--muted); font-size:13px}
.menu-item__meta{display:flex; flex-direction:column; gap:2px}

/* Footer */
.footer{
  border-top:1px solid rgba(229,231,235,.9);
  padding:18px 0;
  color:rgba(17,24,39,.75);
}
.footer a{text-decoration:underline}
