/*
Theme Name: Kadence Child (SHIFT)
Theme URI: https://shift.camp/
Description: Lightweight Gutenberg child theme for SHIFT.camp with Vazirmatn typography and SHIFT design system.
Author: Hamid Hakaki / Antigravity
Author URI: https://shift.camp/
Template: kadence
Version: 1.0.0
Text Domain: kadence-child
*/

/* ==========================================================================
   1. Typography - Vazirmatn (Local High-Performance WOFF2)
   ========================================================================== */
@font-face {
  font-family: 'Vazirmatn';
  src: url('assets/fonts/vazirmatn/Vazirmatn-VariableFont_wght.woff2') format('woff2-variations'),
       url('assets/fonts/vazirmatn/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('assets/fonts/vazirmatn/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --global-font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --global-heading-font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --sc-font-sans: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --global-palette-highlight: #3366ff;
  --global-palette1: #3366ff;
  --global-palette2: #254edb;
  --global-palette3: #0C0C0C;
  --global-palette4: #2d2d2d;
  --global-palette7: #f8f9fa;
  --global-palette8: #ffffff;
  --global-palette9: #ffffff;
}

html, body, button, input, select, textarea,
h1, h2, h3, h4, h5, h6,
.entry-title, .site-title, .nav--toggle-text, .site-header, .site-footer,
.menu-item, .kadence-menu, .woocommerce, .betterdocs-content, .widget {
  font-family: var(--global-font-family) !important;
}

body {
  direction: rtl;
  text-align: right;
  line-height: 1.85;
  color: #111111;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

p {
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

strong, b {
  font-weight: 700;
}

mark {
  background-color: #fcf8e6;
  color: #000;
  padding: 0 4px;
}

blockquote {
  border-left: 0 !important;
  border-right: 4px solid #3366ff !important;
  font-style: normal !important;
  font-size: 1rem !important;
  padding: 12px 18px !important;
  background: #f2f5ff !important;
  margin: 1.5rem 0 !important;
  border-radius: 4px 0 0 4px;
}

/* ==========================================================================
   2. SHIFT Topbar & Header Enhancements
   ========================================================================== */
.shift-topbar {
  background-color: #ffffff;
  border-bottom: 1px solid #eef0f3;
  padding: 6px 0;
  font-size: 0.85rem;
  color: #444;
}

.shift-topbar .site-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.shift-topbar__tagline {
  font-weight: 700;
  color: #111;
}

.shift-topbar__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.shift-topbar__search-trigger {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #555;
  text-decoration: none;
}

.shift-topbar__search-trigger:hover {
  color: #3366ff;
}

/* Header site branding */
.site-branding img {
  max-height: 48px;
  width: auto;
}

.main-navigation .primary-menu-container > ul > li > a {
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0 14px;
}

.main-navigation .primary-menu-container > ul > li > a:hover {
  color: #3366ff;
}

/* ==========================================================================
   3. Compatibility Grid Layer (for sections, rows, columns)
   ========================================================================== */
.shift-section {
  width: 100%;
  position: relative;
  box-sizing: border-box;
}

.shift-section-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.shift-row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
  box-sizing: border-box;
}

.shift-row--large {
  margin-left: -20px;
  margin-right: -20px;
}

.shift-row-align--center {
  justify-content: center;
}

.shift-col {
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
  flex: 0 0 100%;
  max-width: 100%;
}

.shift-row--large > .shift-col {
  padding-left: 20px;
  padding-right: 20px;
}

/* 12-column grid spans */
.shift-col-1  { flex: 0 0 8.333333%; max-width: 8.333333%; }
.shift-col-2  { flex: 0 0 16.666667%; max-width: 16.666667%; }
.shift-col-3  { flex: 0 0 25%; max-width: 25%; }
.shift-col-4  { flex: 0 0 33.333333%; max-width: 33.333333%; }
.shift-col-5  { flex: 0 0 41.666667%; max-width: 41.666667%; }
.shift-col-6  { flex: 0 0 50%; max-width: 50%; }
.shift-col-7  { flex: 0 0 58.333333%; max-width: 58.333333%; }
.shift-col-8  { flex: 0 0 66.666667%; max-width: 66.666667%; }
.shift-col-9  { flex: 0 0 75%; max-width: 75%; }
.shift-col-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
.shift-col-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
.shift-col-12 { flex: 0 0 100%; max-width: 100%; }

@media (max-width: 849px) {
  .shift-col-md-3 { flex: 0 0 25%; max-width: 25%; }
  .shift-col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .shift-col-md-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .shift-col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .shift-col-md-12 { flex: 0 0 100%; max-width: 100%; }
}

@media (max-width: 549px) {
  .shift-col-sm-6 { flex: 0 0 50%; max-width: 50%; }
  .shift-col-sm-12 { flex: 0 0 100%; max-width: 100%; }
}

.shift-col-align--center {
  text-align: center;
}

.shift-gap {
  height: var(--gap-h, 20px);
}
@media (max-width: 549px) {
  .shift-gap {
    height: var(--gap-h-sm, var(--gap-h, 20px));
  }
}

.shift-ux-img {
  display: inline-block;
  vertical-align: middle;
}

/* ==========================================================================
   4. SHIFT Modern Dark Footer
   ========================================================================== */
.shift-footer {
  background-color: #0C0C0C !important;
  color: #cccccc !important;
  padding: 64px 0 32px 0;
  font-size: 0.92rem;
  border-top: 1px solid #1a1a1a;
}

.shift-footer a {
  color: #bbbbbb;
  text-decoration: none;
  transition: color 0.2s ease;
}

.shift-footer a:hover {
  color: #ffffff;
}

.sf-brand-inner .sf-logo img {
  max-width: 180px;
  height: auto;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.sf-title {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.2px;
}

.sf-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sf-links li {
  margin-bottom: 10px;
}

.sf-contact h3 {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.sf-contact p {
  color: #999999;
  font-size: 0.88rem;
  line-height: 1.7;
}

.sf-btns {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.sf-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1e1e1e;
  color: #ffffff !important;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid #333333;
  transition: all 0.2s ease;
}

.sf-btn:hover {
  background: #3366ff;
  border-color: #3366ff;
  color: #ffffff !important;
}

.sf-btn svg {
  width: 18px;
  height: 18px;
}

.sf-bottom-col {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #1f1f1f;
}

.sf-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.sf-legal {
  font-size: 0.82rem;
  color: #777777;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sf-badges {
  display: flex;
  gap: 16px;
  align-items: center;
}

.sf-badges img {
  background: #ffffff;
  padding: 4px;
  border-radius: 6px;
  max-height: 60px;
  width: auto;
}

/* ==========================================================================
   5. BetterDocs / Knowledge Base Polish
   ========================================================================== */
.betterdocs-wraper, .betterdocs-single-wraper {
  direction: rtl;
  text-align: right;
  font-family: var(--global-font-family);
}

.betterdocs-entry-title, .betterdocs-category-title {
  font-family: var(--global-font-family) !important;
  font-weight: 700;
}

.betterdocs-content p, .betterdocs-content li {
  line-height: 1.9;
  font-size: 1.02rem;
}

/* Glossary Accordions */
.dic-acc summary {
  cursor: pointer;
  padding: 8px 12px;
  background: #f8f9fa;
  border-right: 4px solid #3366ff;
  margin-bottom: 6px;
  font-weight: 600;
  list-style: none;
  border-radius: 4px;
}

.dic-acc summary::-webkit-details-marker {
  display: none;
}

.dic-acc p {
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid #eee;
  border-radius: 4px;
}

/* ==========================================================================
   6. WooCommerce & My Account Polish
   ========================================================================== */
.woocommerce-MyAccount-navigation {
  float: right;
  width: 28%;
}

.woocommerce-MyAccount-content {
  float: left;
  width: 68%;
}

@media (max-width: 768px) {
  .woocommerce-MyAccount-navigation,
  .woocommerce-MyAccount-content {
    float: none;
    width: 100%;
  }
}

.woocommerce-MyAccount-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
  background: #fdfdfd;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  overflow: hidden;
}

.woocommerce-MyAccount-navigation li {
  border-bottom: 1px solid #f0f0f0;
  margin: 0;
}

.woocommerce-MyAccount-navigation li:last-child {
  border-bottom: none;
}

.woocommerce-MyAccount-navigation li a {
  display: block;
  padding: 12px 18px;
  color: #333333;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-MyAccount-navigation li a:hover {
  background: #f2f5ff;
  color: #3366ff;
  border-right: 3px solid #3366ff;
}

/* Checkout Button */
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  background-color: #3366ff !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  padding: 12px 28px !important;
  transition: background-color 0.2s ease;
}

.woocommerce #respond input#submit.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
  background-color: #254edb !important;
}
