/*
Theme Name: Khesht-ha Coming Soon
Theme URI: https://example.com/
Author: Custom WordPress Theme
Author URI: https://example.com/
Description: صفحه «به‌زودی» لوکس و سینمایی برای خشت های مهربانی و همدلی شهربابک؛ کاملاً واکنش‌گرا، بدون اسکرول و قابل تنظیم از سفارشی‌سازی وردپرس.
Version: 1.0.0
Requires at least: 5.8
Requires PHP: 7.4
Text Domain: khesht-ha-coming-soon
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --kh-green: #075c39;
  --kh-green-deep: #011d14;
  --kh-red: #b71522;
  --kh-white: #f8fbf8;
  --kh-gold: #e4af46;
  --kh-glow: rgba(228, 175, 70, .26);
  --kh-overlay: .84;
  --kh-shadow: 0 20px 60px rgba(0,0,0,.38);
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; min-height: 100%; margin: 0; }
html { overflow: hidden; }
body {
  overflow: hidden;
  background: #010a07;
  color: var(--kh-white);
  font-family: Vazirmatn, IRANSans, Tahoma, Arial, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.kh-coming-soon { direction: rtl; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.kh-page {
  position: relative;
  width: 100vw;
  height: 100dvh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #010a07;
}

.kh-backdrop,
.kh-poster-wrap {
  position: absolute;
  inset: 0;
}

.kh-backdrop {
  background-image: var(--kh-image);
  background-position: center;
  background-size: cover;
  filter: blur(24px) brightness(.38) saturate(.85);
  transform: scale(1.08);
  opacity: .72;
}

.kh-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 35%, rgba(23, 122, 78, .16), transparent 34%),
    linear-gradient(180deg, rgba(0,0,0,.14), rgba(0,0,0,.72));
}

.kh-poster-wrap {
  display: grid;
  place-items: center;
  padding: 0;
}

.kh-poster {
  position: relative;
  height: 100dvh;
  width: auto;
  max-width: 100vw;
  max-height: 100dvh;
  object-fit: contain;
  object-position: center;
  display: block;
  filter: saturate(.98) contrast(1.03);
}

.kh-poster-fade {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(66.6667dvh, 100vw);
  min-width: min(66.6667dvh, 100vw);
  height: clamp(24%, 31dvh, 33%);
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(10, 104, 64, .20), transparent 46%),
    linear-gradient(180deg, rgba(1, 27, 19, .18), rgba(1, 17, 12, .97) 22%, rgba(1, 15, 11, .99));
  z-index: 2;
}

.kh-content {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(66.6667dvh, 100vw);
  min-width: min(66.6667dvh, 100vw);
  height: clamp(24%, 31dvh, 33%);
  padding: clamp(20px, 2.1dvh, 34px) clamp(18px, 2.6dvw, 42px) clamp(18px, 2dvh, 30px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  z-index: 3;
}

.kh-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(228,175,70,.82), transparent);
  box-shadow: 0 0 18px var(--kh-glow);
}

.kh-kicker {
  margin: 0 0 .45em;
  font-size: clamp(10px, 1.35dvh, 15px);
  font-weight: 700;
  letter-spacing: .09em;
  color: rgba(247,248,244,.82);
  opacity: .92;
}

.kh-title {
  margin: 0;
  max-width: 100%;
  color: #fff9e8;
  font-size: clamp(23px, 4.1dvh, 44px);
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: -.025em;
  text-shadow: 0 4px 18px rgba(0,0,0,.48), 0 0 26px rgba(228,175,70,.12);
}

.kh-subtitle {
  margin: .7em 0 0;
  padding: .58em 1.1em;
  border: 1px solid rgba(228,175,70,.68);
  border-radius: 999px;
  color: #fff;
  background: rgba(3, 32, 22, .56);
  box-shadow: inset 0 0 20px rgba(228,175,70,.05), 0 8px 30px rgba(0,0,0,.24);
  backdrop-filter: blur(8px);
  font-size: clamp(12px, 1.7dvh, 18px);
  font-weight: 700;
  line-height: 1.4;
}

.kh-tagline {
  margin: .7em 0 0;
  color: rgba(245,249,245,.92);
  font-size: clamp(10px, 1.42dvh, 15px);
  line-height: 1.5;
  font-weight: 600;
}

.kh-actions {
  margin-top: .9em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kh-contact-button {
  border: 1px solid rgba(228,175,70,.72);
  border-radius: 999px;
  padding: .68em 1.35em;
  background: linear-gradient(135deg, rgba(8,95,58,.92), rgba(5,51,34,.92));
  color: #fff;
  text-decoration: none;
  font-size: clamp(11px, 1.45dvh, 15px);
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(0,0,0,.24), 0 0 20px rgba(33,154,104,.12);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
  cursor: pointer;
}

.kh-contact-button:hover,
.kh-contact-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0,0,0,.30), 0 0 25px rgba(228,175,70,.13);
  border-color: rgba(228,175,70,1);
  outline: none;
}

.kh-contact-button:active { transform: translateY(0); }

.kh-wave {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 16%;
  opacity: .22;
  pointer-events: none;
  background:
    radial-gradient(120% 100% at 20% 120%, transparent 48%, rgba(5,111,68,.36) 49%, transparent 51%),
    radial-gradient(100% 90% at 90% 110%, transparent 48%, rgba(184,28,39,.28) 49%, transparent 51%);
  mix-blend-mode: screen;
}

.kh-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 8, 5, .74);
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.kh-modal.is-open { opacity: 1; pointer-events: auto; }

.kh-modal-card {
  position: relative;
  width: min(420px, calc(100vw - 28px));
  max-height: calc(100dvh - 30px);
  overflow: hidden;
  padding: 24px 22px 20px;
  border: 1px solid rgba(228,175,70,.52);
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(4,38,26,.97), rgba(0,15,10,.98));
  box-shadow: 0 28px 100px rgba(0,0,0,.50);
}

.kh-modal-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 900;
  color: #fff7df;
}
.kh-modal-copy {
  margin: 0 0 16px;
  color: rgba(239,246,242,.82);
  font-size: 13px;
  line-height: 1.8;
}
.kh-contact-list { display: grid; gap: 9px; }
.kh-contact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.07);
}
.kh-contact-label { color: rgba(237,245,240,.65); font-size: 11px; }
.kh-contact-value {
  max-width: 72%;
  text-align: left;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  word-break: break-word;
}
.kh-contact-value:hover { color: #f3c86a; }
.kh-modal-close {
  position: absolute;
  inset-inline-start: 13px;
  top: 11px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.kh-admin-off {
  min-height: 100dvh;
  height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #07150f;
  direction: rtl;
}
.kh-admin-off-inner {
  width: min(760px, 100%);
  padding: 44px 32px;
  border: 1px solid rgba(228,175,70,.25);
  border-radius: 28px;
  text-align: center;
  background: rgba(4,28,19,.88);
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
}
.kh-admin-off-inner h1 { margin: 0 0 10px; font-size: clamp(28px, 5vw, 52px); }
.kh-admin-off-inner p { margin: 0; color: rgba(255,255,255,.72); line-height: 1.9; }

@media (max-width: 700px) {
  .kh-poster-wrap { align-items: center; }
  .kh-poster { width: 100vw; height: 100dvh; max-height: 100dvh; object-fit: cover; object-position: center center; }
  .kh-backdrop { background-position: center top; }
  .kh-poster-fade,
  .kh-content {
    width: 100vw;
    min-width: 100vw;
    height: 31dvh;
  }
  .kh-content { padding-inline: 18px; }
  .kh-title { font-size: clamp(22px, 4.3dvh, 36px); }
}

@media (max-height: 680px) {
  .kh-poster-fade,
  .kh-content { height: 28dvh; }
  .kh-content { padding-top: 14px; padding-bottom: 12px; }
  .kh-title { font-size: clamp(19px, 4dvh, 32px); }
  .kh-subtitle { margin-top: .45em; }
  .kh-tagline { margin-top: .45em; }
  .kh-actions { margin-top: .6em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
