/*
Theme Name: قالب اختصاصی شهر ورق (Shahr-e Varagh)
Theme URI: https://shahrvaragh.com
Author: مجموعه صنعتی شهر ورق - مدیریت برادران بری
Author URI: https://shahrvaragh.com
Description: قالب پیشرفته، فوق‌العاده سریع و مهندسی شهر ورق با ۱۲ برگه اختصاصی شناسنامه فنی، پنل مدیریت محصولات کامل در وردپرس و محاسبه‌گر متراژ سقف.
Version: 2.0.0
License: GNU General Public License v2 or later
Text Domain: shahrvaragh
*/

:root {
      --primary: #ea580c;
      --primary-hover: #c2410c;
      --primary-light: #fff7ed;
      --dark: #070b14;
      --dark-surface: #0f172a;
      --dark-card: #1e293b;
      --steel: #475569;
      --silver: #f1f5f9;
      --border: #e2e8f0;
      --border-dark: #334155;
      --accent: #0284c7;
      --success: #16a34a;
      --text-main: #1e293b;
      --text-muted: #64748b;
      --radius: 12px;
    }
    * { box-sizing: border-box; margin: 0; padding: 0; }
    body {
      font-family: 'Vazirmatn', 'IRANSans', system-ui, -apple-system, sans-serif;
      background: #f8fafc;
      color: var(--text-main);
      line-height: 1.8;
      overflow-x: hidden;
    }
    a { text-decoration: none; color: inherit; }
    .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 16px;
    }

    /* Header */
    .top-header {
      background: rgba(7, 11, 20, 0.95);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border-dark);
      position: sticky;
      top: 0;
      z-index: 100;
      padding: 12px 0;
    }
    .header-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
    }
    .brand-link {
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .brand-logo-img {
      width: 46px;
      height: 46px;
      border-radius: 10px;
      object-fit: cover;
      border: 2px solid var(--primary);
    }
    .brand-text h1 {
      font-size: 1.25rem;
      font-weight: 900;
      color: white;
      margin: 0;
    }
    .brand-text span {
      font-size: 0.72rem;
      color: #94a3b8;
      display: block;
    }
    .nav-actions {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .btn-back {
      background: rgba(255, 255, 255, 0.08);
      color: white;
      border: 1px solid rgba(255, 255, 255, 0.2);
      padding: 8px 14px;
      border-radius: 8px;
      font-size: 0.85rem;
      font-weight: 700;
      transition: all 0.2s;
    }
    .btn-back:hover {
      background: var(--primary);
      border-color: var(--primary);
    }

    /* Header Manager Phones Side-by-Side */
    .header-phones {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
    }
    .header-phone-btn {
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid rgba(234, 88, 12, 0.4);
      color: white;
      padding: 6px 10px;
      border-radius: 8px;
      font-size: 0.78rem;
      font-weight: 800;
      display: flex;
      align-items: center;
      gap: 6px;
      cursor: pointer;
      transition: all 0.2s;
    }
    .header-phone-btn.morteza {
      border-color: rgba(2, 132, 199, 0.4);
    }
    .header-phone-btn:hover {
      background: rgba(234, 88, 12, 0.2);
    }
    .header-phone-btn.morteza:hover {
      background: rgba(2, 132, 199, 0.2);
    }

    /* Breadcrumbs */
    .breadcrumbs-bar {
      background: #0f172a;
      border-bottom: 1px solid #1e293b;
      padding: 10px 0;
      font-size: 0.82rem;
      color: #94a3b8;
    }
    .breadcrumbs-bar a {
      color: #cbd5e1;
      transition: color 0.2s;
    }
    .breadcrumbs-bar a:hover {
      color: var(--primary);
    }
    .breadcrumbs-bar span {
      margin: 0 6px;
      color: #64748b;
    }

    /* Hero Section */
    .prod-hero {
      background: linear-gradient(135deg, #070b14 0%, #0f172a 50%, #1e293b 100%);
      color: white;
      padding: 45px 0 55px;
      position: relative;
      overflow: hidden;
      border-bottom: 3px solid var(--primary);
    }
    .prod-hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: rgba(234, 88, 12, 0.2);
      border: 1px solid rgba(251, 146, 60, 0.5);
      color: #fb923c;
      padding: 5px 14px;
      border-radius: 20px;
      font-size: 0.82rem;
      font-weight: 800;
      margin-bottom: 14px;
    }
    .prod-hero-title {
      font-size: 2.2rem;
      font-weight: 900;
      line-height: 1.3;
      margin-bottom: 14px;
      color: #ffffff;
    }
    .prod-hero-desc {
      font-size: 1.05rem;
      color: #cbd5e1;
      line-height: 1.9;
      max-width: 880px;
      margin-bottom: 25px;
    }
    .prod-metrics-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 12px;
      margin-bottom: 30px;
    }
    .metric-card {
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 10px;
      padding: 14px;
    }
    .metric-card span {
      display: block;
      font-size: 0.76rem;
      color: #94a3b8;
    }
    .metric-card strong {
      display: block;
      font-size: 1.15rem;
      color: #fb923c;
      margin-top: 4px;
    }
    .hero-cta-row {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      align-items: center;
    }
    .btn-hero-primary {
      background: linear-gradient(135deg, #ea580c, #c2410c);
      color: white;
      padding: 12px 24px;
      border-radius: 10px;
      font-weight: 800;
      font-size: 0.95rem;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      box-shadow: 0 4px 15px rgba(234, 88, 12, 0.4);
      border: none;
      cursor: pointer;
    }
    .btn-hero-secondary {
      background: rgba(255, 255, 255, 0.08);
      border: 1.5px solid rgba(255, 255, 255, 0.25);
      color: white;
      padding: 12px 22px;
      border-radius: 10px;
      font-weight: 800;
      font-size: 0.95rem;
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }

    /* Main Content Sections */
    .section {
      padding: 50px 0;
    }
    .section-head {
      margin-bottom: 30px;
    }
    .section-tag {
      color: var(--primary);
      font-size: 0.82rem;
      font-weight: 800;
      display: block;
      margin-bottom: 6px;
    }
    .section-title {
      font-size: 1.6rem;
      font-weight: 900;
      color: #0f172a;
    }

    /* Spec Table */
    .spec-table-wrap {
      background: white;
      border-radius: 16px;
      border: 1px solid var(--border);
      box-shadow: 0 4px 20px rgba(0,0,0,0.04);
      overflow: hidden;
      margin-bottom: 40px;
    }
    .spec-table {
      width: 100%;
      border-collapse: collapse;
      text-align: right;
    }
    .spec-table tr {
      border-bottom: 1px solid var(--border);
    }
    .spec-table tr:last-child {
      border-bottom: none;
    }
    .spec-table tr:nth-child(even) {
      background: #f8fafc;
    }
    .spec-table th {
      background: #0f172a;
      color: white;
      padding: 14px 20px;
      font-size: 0.95rem;
      font-weight: 800;
    }
    .spec-table td {
      padding: 14px 20px;
      font-size: 0.92rem;
    }
    .spec-table td.col-prop {
      width: 35%;
      font-weight: 800;
      color: #334155;
    }
    .spec-table td.col-val {
      color: #0f172a;
    }

    /* Features List */
    .features-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 16px;
      margin-bottom: 40px;
    }
    .feature-card {
      background: white;
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 20px;
      box-shadow: 0 2px 10px rgba(0,0,0,0.03);
      position: relative;
    }
    .feature-card::before {
      content: '✓';
      position: absolute;
      top: 18px;
      right: 18px;
      width: 26px;
      height: 26px;
      background: #ecfdf5;
      color: #059669;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 900;
      font-size: 0.85rem;
    }
    .feature-card p {
      padding-right: 36px;
      font-size: 0.92rem;
      line-height: 1.8;
      color: #334155;
    }

    /* Installation Steps */
    .steps-timeline {
      display: flex;
      flex-direction: column;
      gap: 16px;
      margin-bottom: 40px;
    }
    .step-item {
      background: white;
      border-right: 4px solid var(--primary);
      border-radius: 10px;
      padding: 18px 22px;
      border: 1px solid var(--border);
      border-right-width: 4px;
      border-right-color: var(--primary);
    }
    .step-item h4 {
      font-size: 1.05rem;
      font-weight: 900;
      color: #0f172a;
      margin-bottom: 6px;
    }
    .step-item p {
      font-size: 0.9rem;
      color: #475569;
      line-height: 1.8;
    }

    /* Comparison Table */
    .comp-table-wrap {
      background: white;
      border-radius: 14px;
      border: 1px solid var(--border);
      overflow-x: auto;
      margin-bottom: 40px;
    }
    .comp-table {
      width: 100%;
      border-collapse: collapse;
      text-align: center;
    }
    .comp-table th {
      background: #1e293b;
      color: white;
      padding: 12px;
      font-size: 0.88rem;
    }
    .comp-table th.highlight {
      background: var(--primary);
    }
    .comp-table td {
      padding: 12px;
      font-size: 0.88rem;
      border-bottom: 1px solid #f1f5f9;
    }
    .comp-table tr:nth-child(even) {
      background: #f8fafc;
    }

    /* Dedicated Interactive Calculator */
    .calc-box-page {
      background: white;
      border-radius: 18px;
      border: 1.5px solid var(--border);
      box-shadow: 0 10px 30px rgba(0,0,0,0.06);
      padding: 28px;
      margin-bottom: 40px;
    }
    .calc-page-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 24px;
      align-items: start;
    }
    .calc-page-inputs {
      display: flex;
      flex-direction: column;
      gap: 14px;
    }
    .calc-page-field label {
      display: block;
      font-size: 0.85rem;
      font-weight: 800;
      color: #334155;
      margin-bottom: 5px;
    }
    .calc-page-field input, .calc-page-field select {
      width: 100%;
      padding: 10px 12px;
      border: 1px solid #cbd5e1;
      border-radius: 8px;
      font-size: 0.95rem;
    }
    .calc-page-res {
      background: linear-gradient(135deg, #090e1a 0%, #1e293b 100%);
      color: white;
      border-radius: 14px;
      padding: 22px;
    }

    /* Manager Phones Side-by-Side Component */
    .side-by-side-managers {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
      margin: 18px 0;
    }
    .mgr-card {
      background: rgba(255, 255, 255, 0.08);
      border: 1.5px solid rgba(234, 88, 12, 0.5);
      border-radius: 12px;
      padding: 14px 10px;
      text-align: center;
      cursor: pointer;
      transition: all 0.25s;
    }
    .mgr-card.morteza {
      border-color: rgba(2, 132, 199, 0.5);
    }
    .mgr-card:hover {
      background: rgba(234, 88, 12, 0.2);
      transform: translateY(-2px);
    }
    .mgr-card.morteza:hover {
      background: rgba(2, 132, 199, 0.2);
    }
    .mgr-card .name {
      display: block;
      font-size: 0.95rem;
      font-weight: 900;
      color: white;
    }
    .mgr-card .role {
      display: block;
      font-size: 0.75rem;
      color: #cbd5e1;
      margin: 2px 0 6px;
    }
    .mgr-card .num {
      display: inline-block;
      font-size: 0.95rem;
      font-weight: 900;
      color: #fdba74;
      direction: ltr;
      background: rgba(0,0,0,0.3);
      padding: 4px 10px;
      border-radius: 6px;
    }
    .mgr-card.morteza .num {
      color: #38bdf8;
    }

    /* FAQ */
    .faq-list {
      display: flex;
      flex-direction: column;
      gap: 12px;
      margin-bottom: 40px;
    }
    .faq-item {
      background: white;
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 16px 20px;
    }
    .faq-q {
      font-size: 0.98rem;
      font-weight: 900;
      color: #0f172a;
      margin-bottom: 6px;
    }
    .faq-a {
      font-size: 0.9rem;
      color: #475569;
      line-height: 1.8;
    }

    /* All Products Quick Bar */
    .all-prods-bar {
      background: #0f172a;
      padding: 40px 0;
      color: white;
    }
    .prods-pills {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 14px;
    }
    .prod-pill {
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid rgba(255, 255, 255, 0.15);
      color: #cbd5e1;
      padding: 8px 14px;
      border-radius: 20px;
      font-size: 0.82rem;
      transition: all 0.2s;
    }
    .prod-pill:hover, .prod-pill.active {
      background: var(--primary);
      border-color: var(--primary);
      color: white;
    }

    /* Footer */
    .page-footer {
      background: #070b14;
      color: #94a3b8;
      padding: 35px 0 25px;
      font-size: 0.85rem;
      border-top: 1px solid #1e293b;
    }
    .footer-inner {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 14px;
      text-align: center;
    }

    /* Responsive */
    @media (max-width: 768px) {
      .calc-page-grid { grid-template-columns: 1fr; }
      .header-phones { display: none; }
      .prod-hero-title { font-size: 1.7rem; }
      .spec-table td.col-prop { width: 45%; }
    }