/*
Theme Name: Nojhan Cloud
Theme URI: https://nojhanacc.com
Author: Amir Hossein
Description: Landing Page ??? ???? ???? ?? ????? ???? ????????? ? RTL
Version: 1.0
Text Domain: nojhan-cloud
*/

:root {
  --color-primary: #00d1c5;
  --color-primary-dark: #008c86;
  --color-accent: #0de6ff;
  --color-bg: #f5f7fb;
  --color-dark: #021a25;
  --color-text: #1f2933;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow-soft: 0 18px 45px rgba(9, 30, 66, 0.16);
  --shadow-soft-small: 0 10px 30px rgba(9, 30, 66, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Vazirmatn", sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  direction: rtl;
  text-align: right;
}

/* ????? */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

section {
  padding: 80px 0;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 16px;
  font-weight: 700;
}

p {
  margin: 0 0 12px;
  line-height: 1.9;
  color: #4b5563;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
  color: #ffffff;
  box-shadow: var(--shadow-soft-small);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 209, 197, 0.45);
}

.btn-secondary {
  background: #e5f4ff;
  color: var(--color-primary-dark);
}

.btn-secondary:hover {
  background: #d3ebff;
}

/* ??? */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 247, 251, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-dark);
  text-decoration: none;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    var(--color-accent),
    var(--color-primary-dark)
  );
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-nav a {
  text-decoration: none;
  color: #4b5563;
  font-size: 0.9rem;
}

.main-nav a:hover {
  color: var(--color-primary-dark);
}

/* ???? ???? */

.hero {
  padding-top: 40px;
  padding-bottom: 80px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.hero-content h1 {
  font-size: 2.1rem;
  margin-bottom: 10px;
}

.hero-content .subtitle {
  font-size: 1.05rem;
  color: var(--color-primary-dark);
  margin-bottom: 18px;
}

.hero-content p {
  max-width: 460px;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-badges {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  font-size: 0.75rem;
  color: #6b7280;
}

.hero-badge {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft-small);
}

/* ?????/???????? ???? */

.hero-visual {
  position: relative;
  height: 260px;
  border-radius: 40px;
  overflow: hidden;
  background: radial-gradient(
      circle at top left,
      rgba(13, 230, 255, 0.4),
      transparent 55%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(0, 209, 197, 0.6),
      transparent 55%
    ),
    linear-gradient(135deg, #021822, #013547, #021822);
  box-shadow: var(--shadow-soft);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 40px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  backdrop-filter: blur(4px);
}

/* ??????? / ??????? */

.products {
  background: transparent;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.section-title p {
  max-width: 520px;
  margin: 0 auto;
}

.product-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: #e5f4ff;
  margin: 0 auto 28px;
}

.product-tabs button {
  border: none;
  border-radius: 999px;
  padding: 6px 16px;
  background: transparent;
  cursor: pointer;
  font-size: 0.82rem;
  color: #4b5563;
}

.product-tabs button.active {
  background: #ffffff;
  color: var(--color-primary-dark);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}

.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  gap: 28px;
  align-items: stretch;
}

.product-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft-small);
  padding: 22px 22px 18px;
  position: relative;
  overflow: hidden;
}

.product-card.large {
  min-height: 230px;
}

.product-card.medium {
  min-height: 108px;
}

.product-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.product-card p {
  font-size: 0.87rem;
}

/* ???? ???? ????? */

.global {
  background: radial-gradient(circle at top, #013547, #02141f 58%, #010b12);
  color: #e5f4ff;
}

.global .section-title h2 {
  color: #f9fafb;
}

.map-placeholder {
  margin: 30px auto 34px;
  max-width: 800px;
  height: 260px;
  border-radius: 32px;
  background: radial-gradient(
      circle at 15% 30%,
      rgba(13, 230, 255, 0.6),
      transparent 58%
    ),
    radial-gradient(
      circle at 75% 65%,
      rgba(0, 209, 197, 0.45),
      transparent 58%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(15, 23, 42, 0.9),
      #020617 65%
    );
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.65);
}

/* ??? ???? ??????? ?????? */

.map-placeholder::before {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 32px;
  background-image: radial-gradient(
      circle at 0 0,
      rgba(15, 23, 42, 0.4) 0,
      transparent 55%
    ),
    linear-gradient(
      90deg,
      rgba(15, 23, 42, 0.65) 1px,
      transparent 1px
    ),
    linear-gradient(
      0deg,
      rgba(15, 23, 42, 0.65) 1px,
      transparent 1px
    );
  background-size: 100% 100%, 22px 22px, 22px 22px;
  opacity: 0.9;
}

.global-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
}

.global-stat {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  font-size: 0.85rem;
}

/* ??? ?? */

.whyus-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.why-item {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-soft-small);
  font-size: 0.9rem;
}

/* CTA ???? ??? ???? */

.banner-cta {
  background: radial-gradient(circle at left, #0de6ff, #00b3a9 55%, #005b73);
  border-radius: 32px;
  padding: 28px 26px;
  color: #ecfeff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  box-shadow: var(--shadow-soft);
  margin-top: 40px;
}

.banner-cta p {
  color: #e5f4ff;
}

/* ???????? ????? ???? ???????? */

.feature-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.feature-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 16px 18px 14px;
  box-shadow: var(--shadow-soft-small);
  font-size: 0.85rem;
}

.feature-card h3 {
  font-size: 0.9rem;
  margin-bottom: 4px;
}

/* ???? CTA ????? */

.final-cta {
  background: #021822;
  color: #e5f4ff;
  text-align: center;
}

.final-cta h2 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.final-cta p {
  color: #cbd5f5;
  max-width: 520px;
  margin: 0 auto 22px;
}

/* ???? */

.site-footer {
  background: #020617;
  color: #9ca3af;
  padding: 40px 0 28px;
  font-size: 0.8rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr 1.5fr;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-col h4 {
  color: #e5e7eb;
  font-size: 0.87rem;
  margin-bottom: 10px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 4px;
}

.footer-col a {
  color: #9ca3af;
  text-decoration: none;
}

.footer-col a:hover {
  color: #e5e7eb;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  padding-top: 12px;
  margin-top: 8px;
}

/* ????????? */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-visual {
    order: -1;
    height: 210px;
  }

  .product-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .whyus-grid,
  .feature-cards,
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  section {
    padding: 56px 0;
  }

  .main-nav {
    display: none;
  }

  .whyus-grid,
  .feature-cards,
  .footer-top {
    grid-template-columns: minmax(0, 1fr);
  }

  .banner-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
  }
}
/* ========================== ULTRA BLOG GRID V2 ========================== */

.ultra-blog-grid {
  padding: 80px 0;
}

.blog-grid-v2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.blog-card-v2 {
  background: #fff;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all .25s ease;
}

.blog-card-v2:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}

.blog-thumb-v2 img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.blog-body-v2 {
  padding: 18px 16px;
}

.blog-body-v2 h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

.blog-body-v2 h3 a {
  color: #0f172a;
  text-decoration: none;
}

.blog-body-v2 h3 a:hover {
  color: #00aabf;
}

.blog-date-v2 {
  display: block;
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 10px;
}

.blog-readmore-v2 {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 12px;
  background: #e0f2fe;
  color: #0284c7;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
}

.blog-readmore-v2:hover {
  background:#bae6fd;
}

@media(max-width:1024px){
  .blog-grid-v2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width:600px){
  .blog-grid-v2 {
    grid-template-columns: 1fr;
  }
}
/* ========================== ULTRA BLOG - SHORTCODE ========================== */

.ultra-blog-grid{
  padding:70px 0;
}

.blog-grid-v2{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:28px;
}

.blog-card-v2{
  background:#fff;
  border-radius:26px;
  overflow:hidden;
  box-shadow:0 4px 20px rgba(0,0,0,0.08);
  transition:.25s ease;
}

.blog-card-v2:hover{
  transform:translateY(-8px);
  box-shadow:0 12px 28px rgba(0,0,0,0.14);
}

.blog-thumb-v2 img{
  width:100%;
  height:250px;
  object-fit:cover;
  border-bottom:0;
}

.blog-body-v2{
  padding:18px;
}

.blog-body-v2 h3{
  margin:0;
  font-size:1.2rem;
  margin-bottom:8px;
}

.blog-body-v2 h3 a{
  text-decoration:none;
  color:#0f172a;
  font-weight:700;
}

.blog-date-v2{
  display:block;
  margin-bottom:12px;
  color:#64748b;
  font-size:.85rem;
}

.blog-readmore-v2{
  display:inline-block;
  padding:7px 10px;
  border-radius:12px;
  background:#e0f2fe;
  color:#0284c7;
  font-size:.85rem;
  font-weight:600;
  text-decoration:none;
}

.blog-readmore-v2:hover{
  background:#bae6fd;
}

@media(max-width:900px){
  .blog-grid-v2{
    grid-template-columns:1fr;
  }
}
