/*
Theme Name: WebSocialTraffic
Theme URI: https://websocialtraffic.com/
Author: Pramod Kumar
Author URI: https://websocialtraffic.com/
Description: Modern, eye-friendly WordPress theme for WebSocialTraffic. Built exclusively with clean light aesthetics, Tailwind utility architecture, and native WordPress Block Editor (Gutenberg) support. No dark backgrounds.
Version: 3.1.0
Requires at least: 5.8
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: websocialtraffic
Tags: blog, e-commerce, custom-colors, custom-menu, full-width-template, theme-options, block-patterns, editor-style
*/

/* ==========================================================================
   1. GLOBAL VARIABLES & MODERN CSS RESET
   ========================================================================== */
:root {
  --wst-bg-primary: #FFFFFF;
  --wst-bg-secondary: #F7F9FC;
  --wst-bg-highlight: #EEF4FF;
  --wst-bg-tint: #FEF6EE;
  --wst-text-primary: #344054;
  --wst-text-secondary: #667085;
  --wst-text-heading: #1D2939;
  --wst-color-saffron: #E8942F;
  --wst-color-saffron-light: #F4A340;
  --wst-color-saffron-hover: #CC7620;
  --wst-color-saffron-link: #B96518;
  --wst-border-color: #E4E7EC;
  --wst-border-light: #EAECF0;
  --wst-border-saffron: #E8B36B;
  --wst-radius-sm: 0.375rem;
  --wst-radius-md: 0.5rem;
  --wst-radius-lg: 0.75rem;
  --wst-radius-xl: 1rem;
  --wst-radius-2xl: 1.5rem;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--wst-bg-primary);
  color: var(--wst-text-primary);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   2. SVG ICON DIMENSIONS GUARD
   ========================================================================== */
svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
svg.w-3, .w-3 svg { width: 12px; height: 12px; min-width: 12px; min-height: 12px; }
svg.w-3\.5, .w-3\.5 svg { width: 14px; height: 14px; min-width: 14px; min-height: 14px; }
svg.w-4, .w-4 svg, svg.wst-dropdown-chevron { width: 16px; height: 16px; min-width: 16px; min-height: 16px; max-width: 16px; max-height: 16px; }
svg.w-5, .w-5 svg { width: 20px; height: 20px; min-width: 20px; min-height: 20px; }
svg.w-6, .w-6 svg { width: 24px; height: 24px; min-width: 24px; min-height: 24px; }
svg.w-8, .w-8 svg { width: 32px; height: 32px; min-width: 32px; min-height: 32px; }
svg.w-10, .w-10 svg { width: 40px; height: 40px; min-width: 40px; min-height: 40px; }
svg.w-12, .w-12 svg { width: 48px; height: 48px; min-width: 48px; min-height: 48px; }
svg.h-3, .h-3 svg { height: 12px; }
svg.h-4, .h-4 svg { height: 16px; }
svg.h-5, .h-5 svg { height: 20px; }
svg.h-6, .h-6 svg { height: 24px; }
svg.h-8, .h-8 svg { height: 32px; }
svg.h-10, .h-10 svg { height: 40px; }
svg.h-12, .h-12 svg { height: 48px; }

/* ==========================================================================
   3. TYPOGRAPHY & LINKS
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  color: var(--wst-text-heading);
  font-weight: 800;
  line-height: 1.25;
  margin-top: 0;
  margin-bottom: 0.75rem;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

a {
  color: var(--wst-color-saffron-link);
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}

a:hover {
  color: var(--wst-color-saffron-hover);
}

.font-mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* ==========================================================================
   4. CORE LAYOUT & CONTAINER GRIDS
   ========================================================================== */
.max-w-7xl { max-width: 80rem; margin-left: auto; margin-right: auto; }
.max-w-6xl { max-width: 72rem; margin-left: auto; margin-right: auto; }
.max-w-5xl { max-width: 64rem; margin-left: auto; margin-right: auto; }
.max-w-4xl { max-width: 56rem; margin-left: auto; margin-right: auto; }
.max-w-3xl { max-width: 48rem; margin-left: auto; margin-right: auto; }
.max-w-2xl { max-width: 42rem; margin-left: auto; margin-right: auto; }
.max-w-xl { max-width: 36rem; margin-left: auto; margin-right: auto; }
.max-w-lg { max-width: 32rem; margin-left: auto; margin-right: auto; }
.max-w-md { max-width: 28rem; margin-left: auto; margin-right: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.w-full { width: 100%; }
.h-full { height: 100%; }

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.block { display: block; }
.inline-block { display: inline-block; }
.hidden { display: none !important; }

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }

.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.shrink-0 { flex-shrink: 0; }
.grow { flex-grow: 1; }

.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ==========================================================================
   5. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (min-width: 640px) {
  .sm\:flex { display: flex; }
  .sm\:hidden { display: none !important; }
  .sm\:inline { display: inline; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:p-8 { padding: 2rem; }
  .sm\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .sm\:text-5xl { font-size: 3rem; line-height: 1.15; }
  .sm\:text-6xl { font-size: 3.75rem; line-height: 1.1; }
}

@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none !important; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:p-10 { padding: 2.5rem; }
}

@media (min-width: 1024px) {
  .lg\:flex { display: flex; }
  .lg\:hidden { display: none !important; }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}

/* ==========================================================================
   6. SPACING, PADDING & MARGINS
   ========================================================================== */
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.p-12 { padding: 3rem; }

.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }

.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

/* ==========================================================================
   7. BACKGROUNDS, BORDERS & SHADOWS
   ========================================================================== */
.bg-white { background-color: #FFFFFF; }
.bg-\[\#F7F9FC\] { background-color: #F7F9FC; }
.bg-\[\#FEF6EE\] { background-color: #FEF6EE; }
.bg-\[\#EEF4FF\] { background-color: #EEF4FF; }
.bg-\[\#E8942F\] { background-color: #E8942F; }
.bg-\[\#F4A340\] { background-color: #F4A340; }
.bg-\[\#CC7620\] { background-color: #CC7620; }
.bg-\[\#1D2939\] { background-color: #1D2939; }
.bg-\[\#344054\] { background-color: #344054; }

.text-white { color: #FFFFFF; }
.text-\[\#344054\] { color: #344054; }
.text-\[\#1D2939\] { color: #1D2939; }
.text-\[\#667085\] { color: #667085; }
.text-\[\#B96518\] { color: #B96518; }
.text-\[\#E8942F\] { color: #E8942F; }
.text-\[\#D88925\] { color: #D88925; }
.text-\[\#12B76A\] { color: #12B76A; }
.text-\[\#F04438\] { color: #F04438; }

.border { border: 1px solid #E4E7EC; }
.border-b { border-bottom: 1px solid #EAECF0; }
.border-t { border-top: 1px solid #EAECF0; }
.border-\[\#E4E7EC\] { border-color: #E4E7EC; }
.border-\[\#EAECF0\] { border-color: #EAECF0; }
.border-\[\#E8B36B\] { border-color: #E8B36B; }

.rounded-full { border-radius: 9999px; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-md { border-radius: 0.375rem; }

.shadow-sm { box-shadow: 0 1px 2px 0 rgba(16, 24, 40, 0.05); }
.shadow-md { box-shadow: 0 4px 8px -2px rgba(16, 24, 40, 0.1), 0 2px 4px -2px rgba(16, 24, 40, 0.06); }
.shadow-lg { box-shadow: 0 12px 16px -4px rgba(16, 24, 40, 0.08), 0 4px 6px -2px rgba(16, 24, 40, 0.03); }
.shadow-xl { box-shadow: 0 20px 24px -4px rgba(16, 24, 40, 0.08), 0 8px 8px -4px rgba(16, 24, 40, 0.03); }

/* ==========================================================================
   8. SPECIFIC THEME COMPONENTS
   ========================================================================== */

/* Top Ticker Marquee Bar */
.wst-top-ticker-bar {
  background-color: #F7F9FC;
  border-bottom: 1px solid #EAECF0;
}
.wst-marquee-inner {
  display: inline-flex;
  gap: 2rem;
  align-items: center;
  animation: wstTicker 35s linear infinite;
  white-space: nowrap;
}
@keyframes wstTicker {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}
.wst-marquee-inner:hover {
  animation-play-state: paused;
}

/* Header & Dropdown Navigation */
.wst-main-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #EAECF0;
}
.wst-dropdown-trigger {
  background: transparent !important;
  border: none !important;
  padding: 0.5rem 0 !important;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: #344054;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}
.wst-dropdown-trigger:hover {
  color: #B96518;
}
.wst-dropdown {
  position: relative;
}
.wst-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 320px;
  background: #FFFFFF;
  border: 1px solid #E4E7EC;
  border-radius: 1rem;
  box-shadow: 0 12px 24px -4px rgba(16, 24, 40, 0.12);
  padding: 1rem;
  z-index: 50;
}
.wst-dropdown:hover .wst-dropdown-menu,
.wst-dropdown:focus-within .wst-dropdown-menu,
.wst-dropdown.is-open .wst-dropdown-menu {
  display: block !important;
}

/* Primary & Action Buttons */
.wst-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  background-color: #E8942F;
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  border: 1px solid transparent;
  box-shadow: 0 4px 6px -1px rgba(232, 148, 47, 0.2);
  transition: all 0.2s ease;
  cursor: pointer;
}
.wst-btn-primary:hover {
  background-color: #CC7620;
  transform: translateY(-1px);
  box-shadow: 0 6px 12px -2px rgba(232, 148, 47, 0.3);
}

.wst-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  background-color: #FFFFFF;
  color: #344054 !important;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  border: 1px solid #E4E7EC;
  box-shadow: 0 1px 2px 0 rgba(16, 24, 40, 0.05);
  transition: all 0.2s ease;
  cursor: pointer;
}
.wst-btn-secondary:hover {
  background-color: #F7F9FC;
  color: #B96518 !important;
  border-color: #E8B36B;
}

/* Service Cards */
.wst-service-card {
  background-color: #FFFFFF;
  border: 1px solid #E4E7EC;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px 0 rgba(16, 24, 40, 0.05);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.wst-service-card:hover {
  transform: translateY(-4px);
  border-color: #E8B36B;
  box-shadow: 0 12px 20px -4px rgba(232, 148, 47, 0.12);
}

/* Comparison Table */
.wst-comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #E4E7EC;
  border-radius: 1rem;
  overflow: hidden;
}
.wst-comparison-table th,
.wst-comparison-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid #EAECF0;
}
.wst-comparison-table tr:last-child td {
  border-bottom: none;
}
.wst-comparison-table th {
  background-color: #F7F9FC;
  font-weight: 700;
  color: #1D2939;
  font-size: 0.875rem;
}

/* FAQ Accordion Details */
details.wst-faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  color: #1D2939;
}
details.wst-faq-item summary::-webkit-details-marker {
  display: none;
}
details.wst-faq-item[open] summary svg {
  transform: rotate(180deg);
}

/* Range Slider */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #E4E7EC;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #E8942F;
  cursor: pointer;
  border: 3px solid #FFFFFF;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: transform 0.1s ease;
}
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* Gutenberg Block Alignments */
.alignwide {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
