/*
Theme Name: Cafe Cinematic
Theme URI: https://example.com/
Author: Custom theme build
Description: A lightweight Persian RTL cafe theme with a six-sequence, scroll-controlled cinematic hero and WooCommerce support. Designed to work with Elementor.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: cafe-cinematic
*/
:root {
  --cafe-bg: #17130f;
  --cafe-surface: #211b15;
  --cafe-text: #f6f0e7;
  --cafe-muted: #c9bfb1;
  --cafe-accent: #c99a5b;
  --cafe-border: rgba(255,255,255,.14);
  --cafe-content-width: 1240px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cafe-bg);
  color: var(--cafe-text);
  font-family: Tahoma, Arial, sans-serif;
  line-height: 1.8;
  direction: rtl;
}
body, button, input, select, textarea { font-family: Tahoma, Arial, sans-serif; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--cafe-accent); }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--cafe-accent); outline-offset: 3px; }
.cafe-container { width: min(var(--cafe-content-width), calc(100% - 40px)); margin-inline: auto; }
.cafe-site-header {
  position: relative; z-index: 20; width: 100%;
  background: rgba(23,19,15,.96); border-bottom: 1px solid var(--cafe-border);
}
.cafe-header-inner {
  min-height: 82px; display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.cafe-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cafe-brand .custom-logo { width: auto; max-height: 52px; }
.cafe-brand-name { font-size: 20px; font-weight: 700; letter-spacing: .02em; }
.cafe-brand-tagline { display: block; color: var(--cafe-muted); font-size: 12px; }
.cafe-nav { display: flex; align-items: center; gap: 22px; }
.cafe-nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin: 0; padding: 0; list-style: none; }
.cafe-nav a { color: var(--cafe-text); font-size: 14px; }
.cafe-nav a:hover { color: var(--cafe-accent); }
.cafe-header-actions { display: flex; align-items: center; gap: 12px; }
.cafe-button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border: 1px solid var(--cafe-accent); border-radius: 2px;
  background: var(--cafe-accent); color: #1c140d; font-weight: 700; cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.cafe-button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover {
  background: #dfb477; color: #1c140d; transform: translateY(-1px);
}
.cafe-button--outline { background: transparent; color: var(--cafe-text); }
.cafe-button--outline:hover { color: #1c140d; }
.cafe-menu-toggle { display: none; background: transparent; color: var(--cafe-text); border: 1px solid var(--cafe-border); padding: 8px 12px; }
.cafe-page-main { min-height: 50vh; }
.cafe-page-content { padding-block: 48px 72px; }
.cafe-page-content > .elementor { color: var(--cafe-text); }
.cafe-page-content .elementor a { color: var(--cafe-accent); }
.cafe-site-footer { border-top: 1px solid var(--cafe-border); padding: 28px 0; color: var(--cafe-muted); font-size: 13px; }
.cafe-footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.cafe-footer-inner p { margin: 0; }
.cafe-cinematic { position: relative; background: #100d0a; color: #fff; overflow: clip; }
.cafe-cinematic__stage { height: 100svh; min-height: 560px; position: sticky; top: 0; overflow: hidden; }
.cafe-cinematic__canvas { display: block; width: 100%; height: 100%; }
.cafe-cinematic__overlay {
  position: absolute; inset: 0; display: flex; align-items: center;
  pointer-events: none; padding: clamp(24px, 6vw, 100px);
  background: linear-gradient(90deg, rgba(0,0,0,.05) 20%, rgba(0,0,0,.32) 100%);
}
.cafe-cinematic__copy { width: min(600px, 70vw); margin-right: auto; text-shadow: 0 2px 22px rgba(0,0,0,.42); }
.cafe-cinematic__eyebrow { color: var(--cafe-accent); font-size: 12px; letter-spacing: .16em; margin: 0 0 14px; }
.cafe-cinematic__title { font-size: clamp(32px, 5.6vw, 76px); line-height: 1.25; margin: 0 0 18px; font-weight: 700; }
.cafe-cinematic__description { color: rgba(255,255,255,.88); font-size: clamp(14px, 1.5vw, 18px); max-width: 490px; margin: 0 0 26px; }
.cafe-cinematic__actions { display: flex; flex-wrap: wrap; gap: 12px; pointer-events: auto; }
.cafe-cinematic__progress { position: absolute; bottom: 24px; inset-inline: 5%; height: 2px; background: rgba(255,255,255,.25); }
.cafe-cinematic__progress span { display: block; height: 100%; width: 0; background: var(--cafe-accent); }
.cafe-cinematic__hint { position: absolute; bottom: 36px; left: 5%; font-size: 11px; color: rgba(255,255,255,.72); letter-spacing: .12em; }
.cafe-cinematic__status { position: absolute; top: 18px; left: 18px; font-size: 11px; color: rgba(255,255,255,.72); }
.cafe-cinematic__fallback { min-height: 100svh; display: grid; place-items: center; padding: 40px 20px; text-align: center; }
.cafe-cinematic__fallback p { max-width: 620px; color: var(--cafe-muted); }
.cafe-content-placeholder { padding: 80px 20px; text-align: center; color: var(--cafe-muted); border-top: 1px solid var(--cafe-border); }
.cafe-content-placeholder h2 { color: var(--cafe-text); }
.woocommerce, .woocommerce-page { color: var(--cafe-text); }
.woocommerce div.product .woocommerce-tabs ul.tabs li, .woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: var(--cafe-surface); border-color: var(--cafe-border); }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { color: var(--cafe-text); }
.woocommerce table.shop_table, .woocommerce table.shop_table td { border-color: var(--cafe-border); }
.woocommerce input.input-text, .woocommerce textarea, .woocommerce select { background: #fff; color: #17130f; border: 1px solid #ccc; padding: 10px; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--cafe-accent); color: #17130f; }
@media (max-width: 900px) {
  .cafe-header-inner { min-height: 72px; }
  .cafe-menu-toggle { display: inline-flex; }
  .cafe-nav { display: none; position: absolute; top: 100%; inset-inline: 0; padding: 18px 20px; background: #17130f; border-bottom: 1px solid var(--cafe-border); }
  .cafe-nav.is-open { display: block; }
  .cafe-nav ul { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
  .cafe-nav a { display: block; padding: 7px 0; }
  .cafe-header-actions .cafe-button { padding: 8px 12px; font-size: 12px; }
  .cafe-cinematic__copy { width: min(620px, 92vw); margin-inline: 0; }
  .cafe-cinematic__overlay { align-items: flex-end; padding: 40px 24px 100px; background: linear-gradient(0deg, rgba(0,0,0,.72), rgba(0,0,0,.02) 85%); }
  .cafe-cinematic__hint { display: none; }
}
@media (max-width: 560px) {
  .cafe-container { width: calc(100% - 28px); }
  .cafe-brand-name { font-size: 16px; }
  .cafe-brand-tagline { font-size: 10px; }
  .cafe-header-actions .cafe-button { display: none; }
  .cafe-cinematic__stage { min-height: 620px; }
  .cafe-cinematic__title { font-size: clamp(30px, 10vw, 48px); }
  .cafe-cinematic__description { font-size: 14px; }
  .cafe-cinematic__overlay { padding: 30px 18px 74px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
