/*
Theme Name: Themkadeh
Theme URI: https://themkadeh.com
Author: Themkadeh Agency
Author URI: https://themkadeh.com
Description: قالب اختصاصی و سریع وردپرس برای آژانس دیجیتال مارکتینگ و توسعه وب تمکده. طراحی شده برای پزشکان، کلینیک‌های زیبایی و کسب‌وکارهای خدماتی.
Version: 1.0.1
Requires at least: 6.2
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: themkadeh
Tags: custom-background, custom-logo, custom-menu, featured-images, rtl-language-support, translation-ready, threaded-comments, blog, e-commerce
*/

/* ==========================================================================
   DESIGN TOKENS
   ========================================================================== */
:root {
  --color-primary: #01406D;
  --color-primary-dark: #012E4F;
  --color-primary-light: #0C5A8F;
  --color-secondary: #01B4BA;
  --color-secondary-dark: #018A8F;
  --color-accent: #FF7A0F;
  --color-accent-dark: #E0670A;
  --color-bg: #F5FEFE;
  --color-bg-alt: #FFFFFF;
  --color-surface: #FFFFFF;
  --color-text: #14212B;
  --color-text-muted: #55707D;
  --color-border: #E1EDEE;
  --color-success: #1E9E5A;
  --color-warning: #F5A524;
  --color-danger: #E5484D;

  --font-body: "Doran", "Vazirmatn", "Estedad", "IRANSans", Tahoma, sans-serif;
  --font-heading: "Doran", "Vazirmatn", "Estedad", "IRANSans", Tahoma, sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.25rem;
  --text-4xl: 2.875rem;
  --text-5xl: 3.5rem;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-10: 4rem;
  --space-12: 5rem;
  --space-16: 7rem;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 999px;

  --shadow-soft: 0 4px 24px rgba(1, 64, 109, 0.08);
  --shadow-medium: 0 12px 40px rgba(1, 64, 109, 0.12);
  --shadow-strong: 0 20px 60px rgba(1, 64, 109, 0.18);

  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

  --container-width: 1240px;
  --header-height: 84px;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--color-text);
  background: var(--color-bg);
  direction: rtl;
  -webkit-font-smoothing: antialiased;
}
body.lang-en { direction: ltr; font-family: "Inter", "Segoe UI", sans-serif; }
/* LTR (English) overrides: elements below use an explicit physical text-align
   in the base (RTL) stylesheet, so they need a mirrored value in English mode. */
body.lang-en .faq-item__q { text-align: left; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); margin: 0 0 var(--space-3); font-weight: 700; color: var(--color-primary-dark); line-height: 1.3; }
h1 { font-size: clamp(1.9rem, 1.35rem + 2.3vw, 3.5rem); line-height: 1.22; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.25rem); line-height: 1.28; }
h3 { font-size: var(--text-xl); }
p { margin: 0 0 var(--space-4); color: var(--color-text-muted); }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: var(--text-base); }

.container { max-width: var(--container-width); margin-inline: auto; padding-inline: var(--space-5); }
.section { padding-block: var(--space-12); }
.section-alt { background: var(--color-bg-alt); }

.section-head { max-width: 760px; margin-bottom: var(--space-8); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--nowrap h2 { white-space: normal; }
@media (min-width: 900px) {
  .section-head--nowrap h2 { white-space: nowrap; }
}
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  color: var(--color-secondary-dark); font-weight: 700; font-size: var(--text-sm);
  letter-spacing: .02em; margin-bottom: var(--space-3);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--color-accent); border-radius: 2px; display: inline-block; }

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */
.skip-link {
  position: absolute; right: -999px; top: -999px; z-index: 999;
  background: var(--color-primary); color: #fff; padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
}
.skip-link:focus { right: var(--space-4); top: var(--space-4); }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: 0.95rem 1.85rem; border-radius: 14px;
  font-weight: 600; font-size: var(--text-base); border: 1.5px solid transparent;
  transition: transform 220ms cubic-bezier(0.4,0,0.2,1), box-shadow 220ms cubic-bezier(0.4,0,0.2,1), background 220ms ease, color 220ms ease, border-color 220ms ease;
  white-space: nowrap; cursor: pointer; line-height: 1;
}
.btn:active { transform: translateY(0) scale(0.98); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(1,64,109,0.18); }

.btn-primary {
  background: var(--color-primary); color: #fff;
  box-shadow: 0 6px 16px rgba(1,64,109,0.22);
}
.btn-primary:hover { background: var(--color-primary-dark); box-shadow: 0 10px 26px rgba(1,64,109,0.3); transform: translateY(-2px); }

.btn-secondary {
  background: #fff; border-color: var(--color-primary); color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(1,64,109,0.08);
}
.btn-secondary:hover { background: rgba(1,64,109,0.05); box-shadow: 0 8px 20px rgba(1,64,109,0.14); transform: translateY(-2px); }

/* On dark surfaces (hero) secondary becomes translucent white */
.on-dark .btn-secondary { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.55); color: #fff; box-shadow: none; }
.on-dark .btn-secondary:hover { background: rgba(255,255,255,0.14); border-color: #fff; }

.btn-outline { background: transparent; border-color: var(--color-primary); color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; transform: translateY(-2px); }

.btn-ghost { background: rgba(1,64,109,0.05); color: var(--color-primary); border-color: transparent; }
.btn-ghost:hover { background: rgba(1,64,109,0.1); }

.btn-accent { background: var(--color-accent); color: #fff; box-shadow: 0 6px 16px rgba(255,122,15,0.28); }
.btn-accent:hover { background: var(--color-accent-dark); transform: translateY(-2px); }

.btn-sm { padding: 0.6rem 1.3rem; font-size: var(--text-sm); border-radius: 12px; }
.btn-lg { padding: 1.1rem 2.25rem; font-size: var(--text-lg); border-radius: 16px; }
.btn-block { width: 100%; }
.btn-icon { width: 1.1em; height: 1.1em; flex-shrink: 0; }

.btn-row { display: flex; gap: var(--space-3); flex-wrap: nowrap; }
@media (max-width: 480px) {
  .btn-row { gap: var(--space-2); }
  .btn-row .btn { flex: 1 1 0; padding-inline: var(--space-4); font-size: var(--text-sm); }
}

/* ==========================================================================
   BADGES / ALERTS
   ========================================================================== */
.badge {
  display: inline-block; padding: 0.25rem 0.75rem; border-radius: var(--radius-full);
  font-size: var(--text-xs); font-weight: 700; background: rgba(1,64,109,0.08); color: var(--color-primary);
}
.badge-accent { background: rgba(255,122,15,0.12); color: var(--color-accent-dark); }
.alert { padding: var(--space-4) var(--space-5); border-radius: var(--radius-md); border: 1px solid var(--color-border); margin-bottom: var(--space-4); }
.alert-success { background: rgba(30,158,90,0.08); border-color: rgba(30,158,90,0.3); color: var(--color-success); }
.alert-error { background: rgba(229,72,77,0.08); border-color: rgba(229,72,77,0.3); color: var(--color-danger); }

/* ==========================================================================
   GRID / RESPONSIVE UTILITIES
   ========================================================================== */
.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* mobile-compact: 2 columns everywhere on phones (services, products, why-us, faq, blog) */
.grid-mobile-2 { gap: var(--space-3); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-mobile-2.grid-2, .grid-mobile-2.grid-3, .grid-mobile-2.grid-4 { grid-template-columns: repeat(2, 1fr); }
  .section { padding-block: var(--space-8); }
}

.text-clamp-2 {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.hide-mobile { display: initial; }
.show-mobile { display: none; }
@media (max-width: 640px) {
  .hide-mobile { display: none !important; }
  .show-mobile { display: initial !important; }
}



html,
body,
button,
input,
textarea,
select {
    font-family: 'Doran', sans-serif;
}

/* v1.8 product-first and WooCommerce-ready enhancements */
.tm-hero__actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.tm-hero__actions .btn-outline{background:rgba(255,255,255,.9)}
.products-hero__grid{display:grid;grid-template-columns:1fr 1fr;gap:var(--space-10);align-items:center}.products-hero__grid img{width:100%;border-radius:var(--radius-lg);box-shadow:var(--shadow-lg)}
.products-layout{display:grid;grid-template-columns:280px 1fr;gap:var(--space-8);align-items:start}.products-sidebar{position:sticky;top:90px;background:#fff;border:1px solid var(--border-color);border-radius:var(--radius-lg);padding:24px;box-shadow:var(--shadow-sm)}.products-sidebar ul{list-style:none;margin:0;padding:0}.products-sidebar li{border-bottom:1px solid var(--border-color)}.products-sidebar a{display:block;padding:10px 0}.mini-cta{margin-top:24px;background:var(--color-soft);border-radius:var(--radius-md);padding:18px}.archive-toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.product-card .product-price{font-weight:800;color:var(--color-primary);margin:12px 0}.tmk-product-meta{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:20px 0;padding:16px;background:var(--color-soft);border-radius:var(--radius-md)}
@media(max-width:900px){.products-hero__grid,.products-layout{grid-template-columns:1fr}.products-sidebar{position:static}.tm-hero__actions{justify-content:center}}
