/*
Theme Name: تک سرویس - Child Theme for Blocksy
Theme URI: https://takservice.ir
Description: چایلد تم اختصاصی تک سرویس برای Blocksy با طراحی مدرن، تم روشن، رنگ‌های سرمه‌ای و نارنجی، کاملاً رسپانسیو و بهینه‌شده برای سایت تعمیرات لوازم خانگی.
Author: تک سرویس
Author URI: https://takservice.ir
Template: blocksy
Version: 1.0.0
Text Domain: tak-service-child
*/

/* ============================================
   تک سرویس Child Theme - Base Styles
   Colors: Navy (#0A2540 / #1e3a5f) + Orange (#FF6B00 / #fd7e14)
   Light modern theme matching the provided mockup
============================================ */

:root {
  --ts-primary: #0A2540;
  --ts-primary-light: #1e3a5f;
  --ts-accent: #FF6B00;
  --ts-accent-hover: #e55f00;
  --ts-orange: #fd7e14;
  --ts-white: #ffffff;
  --ts-light: #f8fafc;
  --ts-gray: #64748b;
  --ts-dark: #0f172a;
  --ts-border: #e2e8f0;
  --ts-radius: 12px;
  --ts-radius-sm: 8px;
  --ts-shadow: 0 4px 20px rgba(10, 37, 64, 0.08);
  --ts-shadow-lg: 0 10px 40px rgba(10, 37, 64, 0.12);
  --ts-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Persian Fonts - Vazirmatn */
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

body, html {
  font-family: 'Vazirmatn', Tahoma, 'Segoe UI', sans-serif !important;
  direction: rtl;
  text-align: right;
  color: var(--ts-dark);
  background: var(--ts-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.ct-heading,
.entry-title,
.wp-block-heading {
  font-family: 'Vazirmatn', Tahoma, sans-serif !important;
  font-weight: 700;
  color: var(--ts-primary);
}

/* ========== Header & Navigation ========== */
.ct-header,
header.ct-header {
  background: var(--ts-white) !important;
  box-shadow: var(--ts-shadow);
  border-bottom: 1px solid var(--ts-border);
}

.ct-header .ct-container {
  max-width: 1280px;
}

/* Logo area */
.site-logo-container img,
.custom-logo {
  max-height: 60px !important;
  width: auto;
}

/* Top bar style */
.ct-header-top-bar,
.ct-top-bar {
  background: linear-gradient(90deg, var(--ts-primary) 0%, var(--ts-primary-light) 100%) !important;
  color: white !important;
  font-size: 0.9rem;
  padding: 6px 0;
}

.ct-header-top-bar a,
.ct-top-bar a {
  color: white !important;
}

/* Main menu */
.ct-header [data-id="menu"] .menu > li > a,
.ct-header .menu a {
  font-weight: 600;
  color: var(--ts-primary) !important;
  font-size: 0.95rem;
  transition: var(--ts-transition);
  padding: 8px 14px !important;
}

.ct-header [data-id="menu"] .menu > li > a:hover,
.ct-header .menu a:hover,
.ct-header .menu .current-menu-item > a {
  color: var(--ts-accent) !important;
}

/* CTA Button in header */
.ct-header .ct-button,
.ct-header .btn,
.wp-block-button__link,
a.ct-button {
  background: var(--ts-accent) !important;
  color: white !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 10px 24px !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  transition: var(--ts-transition) !important;
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.ct-header .ct-button:hover,
.ct-header .btn:hover,
.wp-block-button__link:hover {
  background: var(--ts-accent-hover) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
}

/* ========== Hero Section ========== */
.hero-section,
.ct-hero,
.wp-block-cover {
  position: relative;
  overflow: hidden;
}

.hero-title,
.hero-section h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem) !important;
  font-weight: 800 !important;
  color: var(--ts-primary) !important;
  line-height: 1.3 !important;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--ts-gray);
}

/* Orange CTA primary button */
.btn-primary-ts,
.cta-orange,
a.btn-orange {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--ts-accent) 0%, #ff8533 100%) !important;
  color: white !important;
  padding: 14px 32px !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  font-size: 1.05rem !important;
  border: none !important;
  box-shadow: 0 6px 25px rgba(255, 107, 0, 0.35);
  transition: var(--ts-transition);
  text-decoration: none !important;
}

.btn-primary-ts:hover,
.cta-orange:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 107, 0, 0.45);
  background: linear-gradient(135deg, var(--ts-accent-hover) 0%, #e67300 100%) !important;
}

/* Navy secondary button */
.btn-navy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ts-primary) !important;
  color: white !important;
  padding: 14px 28px !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  transition: var(--ts-transition);
}

.btn-navy:hover {
  background: var(--ts-primary-light) !important;
  transform: translateY(-2px);
}

/* ========== Service Cards ========== */
.service-card,
.ct-card,
.wp-block-group.service-item {
  background: var(--ts-white);
  border-radius: var(--ts-radius);
  box-shadow: var(--ts-shadow);
  border: 1px solid var(--ts-border);
  transition: var(--ts-transition);
  overflow: hidden;
  padding: 24px;
  text-align: center;
}

.service-card:hover,
.ct-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--ts-shadow-lg);
  border-color: var(--ts-accent);
}

.service-card img,
.service-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin: 0 auto 16px;
  transition: var(--ts-transition);
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

.service-card h3,
.service-card h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--ts-primary);
}

/* ========== Why Us / Features ========== */
.feature-box {
  background: var(--ts-light);
  border-radius: var(--ts-radius);
  padding: 28px 20px;
  text-align: center;
  transition: var(--ts-transition);
  border: 1px solid transparent;
}

.feature-box:hover {
  background: white;
  box-shadow: var(--ts-shadow);
  border-color: var(--ts-border);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--ts-primary), var(--ts-primary-light));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 16px;
}

.feature-icon.orange {
  background: linear-gradient(135deg, var(--ts-accent), #ff8533);
}

/* ========== Stats / Counters ========== */
.stats-section {
  background: linear-gradient(135deg, var(--ts-primary) 0%, var(--ts-primary-light) 100%);
  color: white;
  padding: 50px 0;
  border-radius: var(--ts-radius);
}

.stat-item h3 {
  font-size: 2.4rem;
  font-weight: 800;
  color: white !important;
  margin-bottom: 4px;
}

.stat-item p {
  opacity: 0.9;
  font-size: 0.95rem;
}

/* ========== Brands ========== */
.brand-logo {
  filter: grayscale(100%);
  opacity: 0.7;
  transition: var(--ts-transition);
  max-height: 40px;
  width: auto;
}

.brand-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* ========== Testimonials ========== */
.testimonial-card {
  background: white;
  border-radius: var(--ts-radius);
  padding: 24px;
  box-shadow: var(--ts-shadow);
  border-right: 4px solid var(--ts-accent);
}

.testimonial-card .stars {
  color: #fbbf24;
  margin-bottom: 10px;
}

/* ========== FAQ Accordion ========== */
.faq-item,
.wp-block-details {
  background: white;
  border-radius: var(--ts-radius-sm);
  margin-bottom: 12px;
  box-shadow: var(--ts-shadow);
  border: 1px solid var(--ts-border);
  overflow: hidden;
}

.faq-item summary,
.wp-block-details summary {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ts-primary);
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item[open] summary,
.wp-block-details[open] summary {
  color: var(--ts-accent);
  border-bottom: 1px solid var(--ts-border);
}

/* ========== Footer ========== */
.ct-footer,
footer.ct-footer {
  background: var(--ts-primary) !important;
  color: #cbd5e1 !important;
}

.ct-footer a {
  color: #94a3b8 !important;
  transition: var(--ts-transition);
}

.ct-footer a:hover {
  color: var(--ts-accent) !important;
}

.ct-footer h1, .ct-footer h2, .ct-footer h3, .ct-footer h4,
.ct-footer .widget-title {
  color: white !important;
}

.ct-footer .ct-button,
.footer-cta {
  background: var(--ts-accent) !important;
  color: white !important;
}

/* Social icons */
.ct-footer .ct-social-box a,
.social-links a {
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--ts-transition);
}

.ct-footer .ct-social-box a:hover {
  background: var(--ts-accent) !important;
  color: white !important;
}

/* ========== Floating Call Button ========== */
.float-call-btn {
  position: fixed;
  bottom: 25px;
  left: 25px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--ts-accent), #ff8533);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 6px 25px rgba(255, 107, 0, 0.45);
  transition: var(--ts-transition);
  text-decoration: none;
  animation: pulse-orange 2s infinite;
}

.float-call-btn:hover {
  transform: scale(1.1);
  color: white;
}

@keyframes pulse-orange {
  0% { box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.5); }
  70% { box-shadow: 0 0 0 18px rgba(255, 107, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 107, 0, 0); }
}

/* ========== Buttons global override ========== */
.wp-block-button.is-style-fill .wp-block-button__link,
.ct-button[data-type="type-1"] {
  background-color: var(--ts-accent) !important;
  border-color: var(--ts-accent) !important;
}

.wp-block-button.is-style-outline .wp-block-button__link {
  border-color: var(--ts-primary) !important;
  color: var(--ts-primary) !important;
}

/* ========== Section spacing ========== */
.ct-section-inner-wrap,
.entry-content > .wp-block-group {
  padding-top: 60px;
  padding-bottom: 60px;
}

/* ========== Responsive - Mobile First Best Practices ========== */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 1.7rem !important;
  }
  
  .ct-header [data-id="menu"] {
    /* Mobile menu improvements */
  }
  
  .service-card {
    margin-bottom: 16px;
  }
  
  .float-call-btn {
    bottom: 20px;
    left: 15px;
    width: 55px;
    height: 55px;
    font-size: 1.3rem;
  }
}

@media (max-width: 767.98px) {
  body {
    font-size: 15px;
  }
  
  h1, .hero-title {
    font-size: 1.5rem !important;
  }
  
  h2 {
    font-size: 1.35rem !important;
  }
  
  .ct-header .ct-button {
    padding: 8px 16px !important;
    font-size: 0.85rem !important;
  }
  
  .btn-primary-ts,
  .cta-orange {
    padding: 12px 24px !important;
    font-size: 0.95rem !important;
    width: 100%;
    justify-content: center;
  }
  
  .stats-section .stat-item h3 {
    font-size: 1.8rem;
  }
  
  .ct-section-inner-wrap {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  
  /* Better mobile spacing */
  .wp-block-columns {
    gap: 20px !important;
  }
  
  /* Stack service icons nicely */
  .services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 479.98px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .float-call-btn {
    bottom: 15px;
    left: 12px;
  }
}

/* ========== Utility Classes ========== */
.text-navy { color: var(--ts-primary) !important; }
.text-orange { color: var(--ts-accent) !important; }
.bg-navy { background-color: var(--ts-primary) !important; }
.bg-orange { background-color: var(--ts-accent) !important; }
.bg-light-ts { background-color: var(--ts-light) !important; }
.rounded-ts { border-radius: var(--ts-radius) !important; }
.shadow-ts { box-shadow: var(--ts-shadow) !important; }

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Focus states for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--ts-accent);
  outline-offset: 2px;
}

/* Blocksy specific overrides for better Persian RTL */
.ct-container,
.ct-container-full {
  direction: rtl;
}

/* Improve form styles */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  border-radius: var(--ts-radius-sm) !important;
  border: 1px solid var(--ts-border) !important;
  padding: 12px 16px !important;
  font-family: 'Vazirmatn', Tahoma, sans-serif !important;
  transition: var(--ts-transition);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--ts-accent) !important;
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.15) !important;
  outline: none !important;
}

/* Phone number direction */
.phone-ltr,
a[href^="tel:"] {
  direction: ltr;
  unicode-bidi: embed;
}
