/*
Theme Name: VAXI Theme
Theme URI: https://vaxi.ir
Author: VAXI Team
Author URI: https://vaxi.ir
Description: قالب وردپرس اختصاصی واکسی (VAXI) — سبک، مدرن، مینیمال، فروش‌محور، RTL و Performance-first
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vaxi
Tags: rtl, minimal, saas, seo, performance, custom-theme
*/

/* =========================================================
   Root Variables (Design System)
========================================================= */
:root{
  --color-bg: #faf9ff;
  --color-bg-alt: #f3f0ff;
  --color-surface: #ffffff;

  --color-primary: #6d5dfc;
  --color-primary-soft: #ece9ff;
  --color-accent: #9b8cff;

  --color-text: #1f1f2e;
  --color-text-muted: #6b6b85;
  --color-border: #e6e3f3;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 4px 14px rgba(109,93,252,0.08);
  --shadow-md: 0 10px 40px rgba(109,93,252,0.12);

  --transition-fast: 0.2s ease;
  --transition-base: 0.35s cubic-bezier(.4,0,.2,1);

  --container-width: 1180px;
}

/* =========================================================
   CSS Reset (Lightweight)
========================================================= */
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body,h1,h2,h3,h4,h5,h6,p,ul,ol,figure{margin:0;padding:0}
ul{list-style:none}
img{max-width:100%;height:auto;display:block}
a{text-decoration:none;color:inherit}

/* =========================================================
   Base / Typography (RTL-first)
========================================================= */
html[dir="rtl"] body{
  font-family:
    "IRANSansX",
    "IRANSans",
    "Vazirmatn",
    "Segoe UI",
    Tahoma,
    sans-serif;
}

body{
  direction: rtl;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3{
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.4;
}

h1{font-size: clamp(32px,4vw,48px)}
h2{font-size: clamp(26px,3vw,36px)}
h3{font-size: 20px}

p{
  color: var(--color-text-muted);
  font-size: 15.5px;
}

/* =========================================================
   Layout Helpers
========================================================= */
.container{
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 20px;
}

.section{
  padding: 90px 0;
  position: relative;
}

.section--alt{
  background: var(--color-bg-alt);
}

.section__header{
  max-width: 640px;
  margin-bottom: 48px;
}

.section__header h2{
  margin-bottom: 14px;
}

.section__header p{
  font-size: 16px;
}

/* =========================================================
   Buttons
========================================================= */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-base);
  white-space: nowrap;
}

.btn-primary{
  background: linear-gradient(135deg,var(--color-primary),var(--color-accent));
  color:#fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline{
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover{
  background: var(--color-primary-soft);
}

/* =========================================================
   HERO Section
========================================================= */
.hero{
  padding: 140px 0 120px;
  overflow: hidden;
}

.hero::before{
  content:"";
  position:absolute;
  inset: -40% -20% auto auto;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(109,93,252,0.25), transparent 70%);
  z-index:0;
}

.hero__inner{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items:center;
  position:relative;
  z-index:1;
}

.hero__content h1{
  margin-bottom: 20px;
}

.hero__content p{
  font-size: 17px;
  margin-bottom: 34px;
}

.hero__actions{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
}

/* Hero Image Placeholder */
.hero__media{
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  min-height: 360px;
  display:flex;
  align-items:center;
  justify-content:center;
  color: var(--color-text-muted);
  font-weight:600;
}

/* =========================================================
   Problem Section
========================================================= */
.problem__grid{
  display:grid;
  grid-template-columns: repeat(3,1fr);
  gap:24px;
}

.problem__item{
  background: var(--color-surface);
  padding:32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
}

.problem__item:hover{
  transform: translateY(-4px);
}

.problem__icon{
  width:48px;
  height:48px;
  margin-bottom:16px;
  background: var(--color-primary-soft);
  border-radius: 50%;
  display:flex;
  align-items:center;
  justify-content:center;
  color: var(--color-primary);
  font-weight:900;
}

/* =========================================================
   Services Section
========================================================= */
.services__grid{
  display:grid;
  grid-template-columns: repeat(2,1fr);
  gap:40px;
}

.service{
  background: linear-gradient(180deg,#fff,#faf9ff);
  border-radius: var(--radius-lg);
  padding:40px;
  box-shadow: var(--shadow-sm);
  position:relative;
}

.service::after{
  content:"";
  position:absolute;
  inset: auto 0 0 0;
  height:4px;
  background: linear-gradient(90deg,var(--color-primary),var(--color-accent));
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.service__icon{
  width:56px;
  height:56px;
  border-radius: 14px;
  background: var(--color-primary-soft);
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:18px;
}

/* =========================================================
   Case Studies
========================================================= */
.cases__grid{
  display:grid;
  grid-template-columns: repeat(3,1fr);
  gap:24px;
}

.case{
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding:26px;
  box-shadow: var(--shadow-sm);
}

.case__media{
  border-radius: var(--radius-sm);
  background: var(--color-bg-alt);
  height:160px;
  margin-bottom:18px;
}

.case__metrics{
  display:flex;
  gap:16px;
  margin-top:12px;
  font-size:14px;
  color: var(--color-primary);
  font-weight:700;
}

/* =========================================================
   Philosophy Section
========================================================= */
.philosophy{
  text-align:center;
}

.philosophy p{
  font-size:18px;
  color: var(--color-text);
  font-weight:600;
}

/* =========================================================
   Blog Preview
========================================================= */
.blog__grid{
  display:grid;
  grid-template-columns: repeat(3,1fr);
  gap:24px;
}

.post-card{
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow:hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
}

.post-card:hover{
  transform: translateY(-4px);
}

.post-card__thumb{
  height:180px;
  background: var(--color-bg-alt);
}

.post-card__body{
  padding:22px;
}

.post-card__title{
  font-size:17px;
  font-weight:800;
  margin-bottom:8px;
}

/* =========================================================
   Final CTA / Form
========================================================= */
.final-cta{
  background: linear-gradient(135deg,#f2efff,#ffffff);
  border-radius: var(--radius-lg);
  padding:60px;
  box-shadow: var(--shadow-md);
}

.form{
  display:grid;
  grid-template-columns: repeat(3,1fr);
  gap:16px;
  margin-top:24px;
}

.form input,
.form textarea{
  width:100%;
  padding:14px 16px;
  border-radius: var(--radius-sm);
  border:1px solid var(--color-border);
  font-family:inherit;
  font-size:14px;
}

.form textarea{
  grid-column: 1 / -1;
  resize: vertical;
  min-height:120px;
}

.form button{
  grid-column: 1 / -1;
  justify-self:flex-start;
}

/* =========================================================
   Footer (base)
========================================================= */
.site-footer{
  padding:40px 0;
  text-align:center;
  font-size:14px;
  color: var(--color-text-muted);
}

/* =========================================================
   Responsive
========================================================= */
@media (max-width: 1024px){
  .hero__inner{grid-template-columns:1fr}
  .problem__grid,
  .cases__grid,
  .blog__grid{grid-template-columns:1fr 1fr}
}

@media (max-width: 640px){
  .services__grid,
  .problem__grid,
  .cases__grid,
  .blog__grid{grid-template-columns:1fr}
  .form{grid-template-columns:1fr}
  .hero{padding-top:110px}
}
