/*
Theme Name: Velocity Service
Theme URI: https://example.com/velocity-service/
Author: Iftikhar Arefin
Author URI: https://example.com/velocity-service
Description: Production-ready WordPress theme for service marketplaces with WooCommerce, Elementor Free compatibility, Customizer controls, and one-click demo importer.
Version: 1.0.6
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: velocity-service
Tags: e-commerce, custom-colors, custom-menu, featured-images, flexible-header, footer-widgets, full-width-template, theme-options, translation-ready


All rights reserved.
*/

:root {
  --vs-primary: #10b981;
  --vs-primary-dark: #059669;
  --vs-secondary: #0f172a;
  --vs-accent: #f59e0b;
  --vs-bg-light: #f8fafc;
  --vs-card-bg: #ffffff;
  --vs-text-main: #1e293b;
  --vs-text-muted: #64748b;
  --vs-border: #e2e8f0;
  --vs-radius: 12px;
  --vs-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
}

/* Base resets & typography */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--vs-text-main);
  background-color: var(--vs-bg-light);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

a {
  color: var(--vs-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--vs-primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Service Card Styles */
.vs-service-card {
  background: var(--vs-card-bg);
  border: 1px solid var(--vs-border);
  border-radius: var(--vs-radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.vs-service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -4px rgba(15, 23, 42, 0.12);
}

.vs-service-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: #f1f5f9;
}

.vs-service-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.vs-service-card:hover .vs-service-thumb img {
  transform: scale(1.05);
}

.vs-badge-featured {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #f59e0b;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.vs-badge-category {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 6px;
}

.vs-service-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.vs-provider-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.75rem;
}

.vs-provider-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.vs-provider-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--vs-text-muted);
}

.vs-service-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--vs-text-main);
  margin: 0 0 0.75rem 0;
  line-height: 1.4;
}

.vs-service-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #f59e0b;
  font-weight: 600;
  margin-bottom: 1rem;
}

.vs-service-footer {
  border-top: 1px solid var(--vs-border);
  padding-top: 0.85rem;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vs-service-price {
  display: flex;
  flex-direction: column;
}

.vs-price-label {
  font-size: 0.75rem;
  color: var(--vs-text-muted);
  text-transform: uppercase;
}

.vs-price-amount {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--vs-primary-dark);
}

.vs-order-btn {
  background: var(--vs-primary);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s ease;
}

.vs-order-btn:hover {
  background: var(--vs-primary-dark);
  color: #ffffff;
}

/* ==========================================================================
   Service card — v1.0.1 standard layout
   ========================================================================== */
.vs-service-card .vs-service-thumb a { display: block; width: 100%; height: 100%; }
.vs-service-card .vs-service-thumb img { display: block; }
.vs-service-thumb-fallback {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; font-size: 3rem; font-weight: 800; color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #22d3ee);
}
.vs-service-card .vs-provider-meta { flex-wrap: wrap; }
.vs-provider-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.vs-provider-badge { font-size: 0.72rem; color: var(--vs-primary-dark, #059669); font-weight: 600; }
.vs-delivery-tag {
  font-size: 0.75rem; color: var(--vs-text-muted); background: #f1f5f9;
  padding: 3px 8px; border-radius: 9999px; white-space: nowrap;
}
.vs-service-card .vs-service-title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2.8em;
}
.vs-service-card .vs-service-title a { color: inherit; text-decoration: none; }
.vs-service-card .vs-service-title a:hover { color: var(--vs-primary-dark, #059669); }
.vs-new-badge {
  font-size: 0.75rem; font-weight: 700; color: #0369a1; background: #e0f2fe;
  padding: 2px 8px; border-radius: 6px;
}
.vs-rating-count { color: var(--vs-text-muted); font-weight: 400; margin-left: 2px; }
.vs-service-card .vs-service-price .vs-price-amount del { color: var(--vs-text-muted); font-size: 0.8rem; font-weight: 500; margin-right: 6px; }
.vs-service-card .vs-service-price .vs-price-amount ins { text-decoration: none; }
.vs-service-footer { flex-wrap: wrap; gap: 10px; }
.vs-service-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.vs-details-link {
  font-size: 0.85rem; font-weight: 600; color: var(--vs-text-main);
  padding: 8px 10px; border-radius: 8px; border: 1px solid var(--vs-border);
}
.vs-details-link:hover { border-color: var(--vs-primary, #10b981); }
.vs-order-btn.vs-add-to-cart { white-space: nowrap; }
.vs-order-btn.vs-add-to-cart:focus-visible, .vs-details-link:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
@media (max-width: 480px) {
  .vs-service-actions { width: 100%; margin-left: 0; }
  .vs-service-actions .vs-order-btn { flex: 1; justify-content: center; }
}

/* Book Service button (single product page) */
.vs-book-now-btn {
  display: block; width: 100%; text-align: center; box-sizing: border-box;
  background: var(--vs-primary, #10b981); color: #ffffff; text-decoration: none;
  padding: 14px 16px; border-radius: 8px; font-size: 1rem; font-weight: 700;
  transition: background 0.2s ease;
}
.vs-book-now-btn:hover, .vs-book-now-btn:focus-visible { background: var(--vs-primary-dark, #059669); color: #ffffff; }
.vs-book-unavailable { background: #fef2f2; color: #991b1b; padding: 12px; border-radius: 8px; margin: 0; }

/* ==========================================================================
   v1.0.4 — accessibility helpers, homepage sections, real-data components
   ========================================================================== */
.screen-reader-text {
  position: absolute !important; clip: rect(1px, 1px, 1px, 1px);
  width: 1px; height: 1px; overflow: hidden; word-wrap: normal;
}
.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus {
  left: 16px; top: 8px; z-index: 9999; background: #ffffff; color: #0f172a;
  padding: 8px 12px; border-radius: 6px; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}
.vs-hero-cta {
  display: inline-flex; align-items: center; margin-top: 24px;
  background: var(--vs-primary, #10b981); color: #ffffff; text-decoration: none;
  padding: 12px 22px; border-radius: 10px; font-weight: 700; font-size: 0.95rem;
}
.vs-hero-cta:hover, .vs-hero-cta:focus-visible { background: var(--vs-primary-dark, #059669); color: #ffffff; }
.vs-cat-initial {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  font-size: 2.25rem; font-weight: 800; color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #22d3ee);
}
.vs-genre-section .vs-genre-row { margin-top: 44px; }
.vs-genre-section .vs-genre-row:first-of-type { margin-top: 28px; }
.vs-genre-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--vs-border, #e2e8f0);
}
.vs-genre-name { margin: 0; font-size: 1.25rem; font-weight: 700; color: var(--vs-text-main, #0f172a); }
.vs-genre-link { font-weight: 600; color: var(--vs-primary-dark, #059669); text-decoration: none; white-space: nowrap; }
.vs-genre-link:hover { text-decoration: underline; }
.vs-steps-grid, .vs-steps-grid ol, ol.vs-steps-grid { list-style: none; padding: 0; margin: 0; }
.vs-testimonial-card { margin: 0; }
.vs-testimonial-card .vs-quote { margin: 0 0 14px; }
.vs-stars { color: #f59e0b; letter-spacing: 2px; margin-bottom: 8px; }
.vs-faq-answer a { color: var(--vs-primary-dark, #059669); font-weight: 600; }
.vs-service-card .vs-service-thumb-fallback { font-family: inherit; }

/* ==========================================================================
   1.0.5 — Standard content pages (About, Contact, FAQ, policies)
   ========================================================================== */
.vs-standard-page { background: var(--vs-bg-light); }
.vs-page-container { max-width: 880px; margin: 0 auto; padding: 56px 20px 72px; }
.vs-page-article {
  background: var(--vs-card-bg);
  border: 1px solid var(--vs-border);
  border-radius: 16px;
  box-shadow: var(--vs-shadow);
  padding: 44px 48px;
}
.vs-page-header { margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px solid var(--vs-border); position: relative; }
.vs-page-header::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 72px; height: 4px;
  border-radius: 4px; background: linear-gradient(90deg, var(--vs-primary), var(--vs-accent));
}
.vs-page-title { margin: 0; font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; line-height: 1.2; color: var(--vs-secondary); letter-spacing: -0.02em; }
.vs-page-content { color: var(--vs-text-main); font-size: 1.02rem; line-height: 1.75; }
.vs-page-content > *:first-child { margin-top: 0; }
.vs-page-content h2 { font-size: 1.4rem; font-weight: 800; color: var(--vs-secondary); margin: 2em 0 .6em; line-height: 1.3; }
.vs-page-content h3 { font-size: 1.1rem; font-weight: 700; color: var(--vs-secondary); margin: 1.6em 0 .4em; }
.vs-page-content p { margin: 0 0 1em; }
.vs-page-content ul, .vs-page-content ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.vs-page-content li { margin: .4em 0; }
.vs-page-content a { color: var(--vs-primary-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.vs-page-content a:hover { color: var(--vs-secondary); }
.vs-page-content strong { color: var(--vs-secondary); }
.vs-page-content details {
  border: 1px solid var(--vs-border); border-radius: 12px; background: var(--vs-bg-light);
  margin: 0 0 10px; padding: 0;
}
.vs-page-content details[open] { background: #ffffff; box-shadow: 0 2px 10px rgba(15, 23, 42, .05); }
.vs-page-content summary {
  cursor: pointer; list-style: none; padding: 14px 44px 14px 18px; font-weight: 700; color: var(--vs-secondary);
  position: relative;
}
.vs-page-content summary::-webkit-details-marker { display: none; }
.vs-page-content summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 1.3rem; font-weight: 500; color: var(--vs-primary-dark);
}
.vs-page-content details[open] summary::after { content: "–"; }
.vs-page-content details p { padding: 0 18px 16px; margin: 0; color: var(--vs-text-muted); }
.vs-page-content h3 + details { margin-top: 0; }

/* Contact details block (shortcode) */
.vs-contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 1.4em 0 1.8em; }
.vs-contact-card {
  border: 1px solid var(--vs-border); border-radius: 12px; padding: 18px 20px; background: var(--vs-bg-light);
}
.vs-contact-card span { display: block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--vs-text-muted); margin-bottom: 4px; }
.vs-contact-card strong { display: block; color: var(--vs-secondary); font-size: 1rem; word-break: break-word; }
.vs-contact-card a { color: inherit; text-decoration: none; }

/* Footer payment banner — size and placement from the Customizer */
.vs-payment-custom-img { display: flex; }
.vs-payment-custom-img.vs-align-left, .vs-payment-badges-row.vs-align-left { justify-content: flex-start; }
.vs-payment-custom-img.vs-align-center, .vs-payment-badges-row.vs-align-center { justify-content: center; }
.vs-payment-custom-img.vs-align-right, .vs-payment-badges-row.vs-align-right { justify-content: flex-end; }
.vs-payment-custom-img img { display: block; height: auto; object-fit: contain; }

@media (max-width: 640px) {
  .vs-page-container { padding: 28px 12px 48px; }
  .vs-page-article { padding: 26px 20px; border-radius: 12px; }
}
.vs-product-li { list-style: none; margin: 0; padding: 0; }
