/*
Theme Name: Window Supply Co.
Theme URI: https://windowsupplyco.co/
Author: Window Supply Co.
Author URI: https://windowsupplyco.co/
Description: Custom official WordPress theme for Window Supply Co. (Salem, OR). Engineered for high-contrast contractor & homeowner usability with #FF6600 brand orange and #111111 charcoal accents, rich architectural backgrounds, and 100% compatibility with self-contained inline-styled pages and interactive calculators.
Version: 1.5.4
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: window-supply-co
*/

:root {
  --wsc-orange: #FF6600;
  --wsc-orange-hover: #e65c00;
  --wsc-orange-soft: #FFF3EA;
  --wsc-dark: #111111;
  --wsc-charcoal: #222222;
  --wsc-text: #222222;
  --wsc-text-muted: #555555;
  --wsc-bg-light: #f4f6f8;
  --wsc-bg-canvas: #15171a;
  --wsc-bg-surface: #ffffff;
  --wsc-border: #e2e4e8;
  --wsc-card-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  --wsc-font: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Base Body Reset - Low specificity so inline page styles always win */
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body.wsc-theme-body {
  margin: 0;
  padding: 0;
  font-family: var(--wsc-font);
  color: var(--wsc-text);
  background-color: #16181c;
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}

/* ==========================================================================
   3 RICH VISUAL BACKGROUND DESIGNS (NO MORE PLAIN WHITE GUTTERS!)
   ========================================================================== */

/* DESIGN 1 (Default): Dark Charcoal & Orange Architectural Window Blueprint Grid */
body.wsc-theme-body,
body.wsc-theme-body.wsc-bg-blueprint {
  background-color: #16181d;
  background-image:
    /* Top & Side Warm Brand Orange Ambient Spotlights */
    radial-gradient(circle at 0% 15%, rgba(255, 102, 0, 0.24) 0%, transparent 38%),
    radial-gradient(circle at 100% 35%, rgba(255, 102, 0, 0.22) 0%, transparent 40%),
    radial-gradient(circle at 0% 80%, rgba(255, 102, 0, 0.18) 0%, transparent 38%),
    radial-gradient(circle at 100% 95%, rgba(255, 102, 0, 0.20) 0%, transparent 38%),
    /* Major Architectural Window Mullion Grid (120px) */
    linear-gradient(to right, rgba(255, 102, 0, 0.14) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 102, 0, 0.14) 1px, transparent 1px),
    /* Fine Technical Blueprint Sub-Grid (24px) */
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    /* Deep Charcoal Base Gradient */
    linear-gradient(180deg, #121417 0%, #1b1e24 50%, #121417 100%);
  background-size:
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%,
    120px 120px,
    120px 120px,
    24px 24px,
    24px 24px,
    100% 100%;
  background-attachment: scroll;
}

/* Architectural Side Framing Rails on Wide Screens for Design 1 & 2 */
body.wsc-theme-body::before,
body.wsc-theme-body::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, #FF6600 0%, rgba(255, 102, 0, 0.2) 50%, #FF6600 100%);
  z-index: 1;
  pointer-events: none;
}

body.wsc-theme-body::before {
  left: 0;
}

body.wsc-theme-body::after {
  right: 0;
}

/* DESIGN 2: Industrial Steel & Bold Orange Diagonal Framing Stripes */
body.wsc-theme-body.wsc-bg-industrial {
  background-color: #1c1e22;
  background-image:
    /* Left & Right Bold Orange Side Vignettes */
    linear-gradient(90deg, rgba(255, 102, 0, 0.22) 0%, transparent 18%, transparent 82%, rgba(255, 102, 0, 0.22) 100%),
    /* Crisp Diagonal Architectural Framing Hazard/Beam Pattern */
    repeating-linear-gradient(
      135deg,
      rgba(255, 102, 0, 0.08) 0px,
      rgba(255, 102, 0, 0.08) 2px,
      transparent 2px,
      transparent 28px
    ),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.035) 0px,
      rgba(255, 255, 255, 0.035) 1px,
      transparent 1px,
      transparent 28px
    ),
    /* Brushed Dark Metallic Charcoal Base */
    radial-gradient(circle at 50% 25%, #2a2d34 0%, #141619 100%);
  background-size: 100% 100%, 40px 40px, 40px 40px, 100% 100%;
  background-attachment: scroll;
}

/* DESIGN 3: Warm Architectural Glass & Skyline Glow (Rich Bronze/Charcoal/Orange) */
body.wsc-theme-body.wsc-bg-skyline {
  background-color: #181412;
  background-image:
    /* Warm Golden-Orange Window Reflection Panes */
    radial-gradient(ellipse at 10% 20%, rgba(255, 102, 0, 0.30) 0%, transparent 45%),
    radial-gradient(ellipse at 90% 25%, rgba(255, 120, 20, 0.26) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 90%, rgba(255, 102, 0, 0.22) 0%, transparent 50%),
    /* Architectural Window Pane Geometric Pattern */
    linear-gradient(90deg, rgba(255, 150, 80, 0.09) 2px, transparent 2px),
    linear-gradient(180deg, rgba(255, 150, 80, 0.09) 2px, transparent 2px),
    /* Warm Espresso-Charcoal Gradient */
    linear-gradient(135deg, #1b1512 0%, #261d18 50%, #14110f 100%);
  background-size:
    100% 100%,
    100% 100%,
    100% 100%,
    80px 140px,
    80px 140px,
    100% 100%;
  background-attachment: scroll;
}

/* Skip Link for Accessibility */
.wsc-skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--wsc-orange);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  z-index: 10000;
  transition: top 0.2s ease;
}

.wsc-skip-link:focus {
  top: 16px;
}

/* ==========================================================================
   TOP UTILITY BAR
   ========================================================================== */
.wsc-topbar {
  background-color: #0b0c0e;
  color: #e0e0e0;
  font-size: 13px;
  border-bottom: 1px solid #262626;
  position: relative;
  z-index: 10;
}

.wsc-topbar-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 8px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.wsc-topbar-tagline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.wsc-topbar-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--wsc-orange);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--wsc-orange);
}

.wsc-topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.wsc-topbar-badge {
  color: #bbbbbb;
  font-size: 12.5px;
}

.wsc-topbar-badge strong {
  color: #ffffff;
}

/* ==========================================================================
   SITE HEADER & NAVIGATION (UPDATED LOGO STYLING PER SCREENSHOT)
   ========================================================================== */
/* Site Header Glassmorphism & Sticky Polish */
.wsc-site-header {
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 3px solid var(--wsc-orange);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22);
  position: sticky;
  top: 0;
  z-index: 999;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.wsc-site-header.wsc-header-dark {
  background-color: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 3px solid var(--wsc-orange);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.wsc-header-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Brand / Logo Area - Exact Match to User's Screenshot:
   Vertical orange bar on left, Serif "Window Supply Co.", tapered orange underline below */
.wsc-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.wsc-brand img.custom-logo {
  max-height: 58px;
  width: auto;
  display: block;
}

.wsc-brand-text-wrap {
  display: inline-flex;
  flex-direction: column;
  position: relative;
  padding-left: 14px;
  padding-bottom: 7px;
}

/* Vertical Left Accent Bar with Soft Tapered Ends */
.wsc-brand-text-wrap::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 6px;
  width: 3px;
  background: linear-gradient(180deg, rgba(255, 102, 0, 0.35) 0%, #FF6600 20%, #FF6600 80%, rgba(255, 102, 0, 0.15) 100%);
  border-radius: 2px;
}

/* Horizontal Bottom Underline with Tapered Fade */
.wsc-brand-text-wrap::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 8px;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 102, 0, 0.15) 0%, #FF6600 15%, #FF6600 85%, rgba(255, 102, 0, 0.05) 100%);
  border-radius: 2px;
}

.wsc-brand-title {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 27px;
  font-weight: 700;
  color: var(--wsc-orange);
  line-height: 1.1;
  letter-spacing: 0.3px;
  margin: 0;
  display: inline-block;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

/* Header Right Stack (Phone + CTA + Nav) */
.wsc-header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.wsc-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.wsc-header-phone {
  color: var(--wsc-orange);
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease, transform 0.15s ease;
}

.wsc-header-phone:hover {
  color: var(--wsc-orange-hover);
  transform: translateY(-1px);
}

.wsc-header-cta {
  display: inline-block;
  background-color: var(--wsc-orange);
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  text-decoration: none;
  padding: 9px 18px;
  border-radius: 5px;
  border: 2px solid var(--wsc-orange);
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(255, 102, 0, 0.25);
}

.wsc-header-cta:hover {
  background-color: var(--wsc-dark);
  border-color: var(--wsc-dark);
  color: #ffffff !important;
}

.wsc-header-dark .wsc-header-cta:hover {
  background-color: #ffffff;
  border-color: #ffffff;
  color: var(--wsc-dark) !important;
}

/* Primary Navigation Menu */
.wsc-nav {
  display: flex;
  align-items: center;
}

.wsc-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.wsc-nav-list li {
  margin: 0;
  padding: 0;
  position: relative;
}

.wsc-nav-list a {
  display: inline-block;
  padding: 6px 12px;
  color: var(--wsc-dark);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  transition: color 0.2s ease, background-color 0.2s ease;
  position: relative;
}

.wsc-header-dark .wsc-nav-list a {
  color: #f4f4f4;
}

.wsc-nav-list a:hover,
.wsc-nav-list li.current-menu-item > a,
.wsc-nav-list li.current_page_item > a {
  color: var(--wsc-orange);
}

.wsc-nav-list li.current-menu-item > a::after,
.wsc-nav-list li.current_page_item > a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 3px;
  background-color: var(--wsc-orange);
  border-radius: 2px;
}

/* Submenu Dropdown Support */
.wsc-nav-list ul.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background-color: var(--wsc-dark);
  border-top: 3px solid var(--wsc-orange);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  padding: 8px 0;
  list-style: none;
  z-index: 1000;
}

.wsc-nav-list li:hover > ul.sub-menu,
.wsc-nav-list li:focus-within > ul.sub-menu {
  display: block;
}

.wsc-nav-list ul.sub-menu li a {
  display: block;
  padding: 9px 18px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 0;
}

.wsc-nav-list ul.sub-menu li a:hover {
  background-color: var(--wsc-charcoal);
  color: var(--wsc-orange);
}

/* Mobile Menu Toggle Button */
.wsc-mobile-toggle {
  display: none;
  background: var(--wsc-dark);
  color: #ffffff;
  border: 2px solid var(--wsc-orange);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  align-items: center;
  gap: 8px;
}

.wsc-mobile-toggle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ==========================================================================
   MAIN CONTENT WRAPPER (SAFE FOR EXISTING CUSTOM PAGES + FRAMED ELEVATION)
   ========================================================================== */
.wsc-main-wrapper {
  width: 100%;
  max-width: 1120px;
  margin: 32px auto 55px auto;
  padding: 28px 24px;
  box-sizing: border-box;
  min-height: 60vh;
  position: relative;
  z-index: 2;
  /* Subtle translucent architectural stage frame around the page content */
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 102, 0, 0.22);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   AUTOMATIC THEME-LEVEL OVERRIDE FOR OLD WHITE DIAGONAL-STRIPED & BARE PAGE WRAPPERS
   Eliminates the need to manually edit each page's outer wrapper or bare text!
   ========================================================================== */
.wsc-entry-content div[style*="repeating-linear-gradient"],
.wsc-entry-content div[style*="#f4f5f7"][style*="max-width"],
.wsc-entry-content > div[style*="#ffffff"][style*="max-width: 1000px"],
.wsc-entry-content > div[style*="#ffffff"][style*="max-width: 1050px"],
.preview-page-tab div[style*="repeating-linear-gradient"],
.preview-page-tab div[style*="#f4f5f7"][style*="max-width"],
.preview-page-tab > div[style*="#ffffff"][style*="max-width: 1000px"] {
  background-color: #1a1d24 !important;
  background-image:
    radial-gradient(circle at 100% 0%, rgba(255, 102, 0, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 0% 100%, rgba(255, 102, 0, 0.12) 0%, transparent 45%),
    linear-gradient(180deg, rgba(28, 31, 38, 0.95) 0%, rgba(20, 22, 27, 0.95) 100%) !important;
  border: 1px solid rgba(255, 102, 0, 0.32) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35) !important;
}

/* Transform bare legacy intro boxes (like #fafafa on Privacy Policy & Testimonials) to luxury dark card */
.wsc-entry-content > div[style*="#fafafa"],
.wsc-entry-content > div > div[style*="background-color: #fafafa"],
.preview-page-tab > div[style*="#fafafa"],
.preview-page-tab > div > div[style*="background-color: #fafafa"] {
  background: linear-gradient(135deg, rgba(26, 29, 36, 0.95) 0%, rgba(18, 20, 25, 0.95) 100%) !important;
  border-left: 6px solid var(--wsc-orange) !important;
  border-top: 1px solid rgba(255, 102, 0, 0.35) !important;
  border-right: 1px solid rgba(255, 102, 0, 0.2) !important;
  border-bottom: 1px solid rgba(255, 102, 0, 0.2) !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45) !important;
  color: #e2e8f0 !important;
}

/* Ensure headings, paragraphs, and text inside dark-converted legacy boxes are crisp & readable */
.wsc-entry-content > div > div[style*="background-color: #fafafa"] h1,
.wsc-entry-content > div > div[style*="background-color: #fafafa"] h2,
.wsc-entry-content > div > div[style*="background-color: #fafafa"] h3,
.wsc-entry-content > div > div[style*="background-color: #fafafa"] h4,
.wsc-entry-content > div[style*="#fafafa"] h1,
.wsc-entry-content > div[style*="#fafafa"] h2,
.wsc-entry-content > div[style*="#fafafa"] h3,
.wsc-entry-content > div[style*="#fafafa"] h4,
.preview-page-tab > div[style*="#fafafa"] h1,
.preview-page-tab > div[style*="#fafafa"] h2,
.preview-page-tab > div[style*="#fafafa"] h3,
.preview-page-tab > div > div[style*="background-color: #fafafa"] h2 {
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
}

.wsc-entry-content > div > div[style*="background-color: #fafafa"] p,
.wsc-entry-content > div[style*="#fafafa"] p,
.preview-page-tab > div[style*="#fafafa"] p,
.preview-page-tab > div > div[style*="background-color: #fafafa"] p {
  color: #cbd5e1 !important;
}

.wsc-entry-content > div > div[style*="background-color: #fafafa"] strong,
.wsc-entry-content > div[style*="#fafafa"] strong,
.preview-page-tab > div[style*="#fafafa"] strong,
.preview-page-tab > div > div[style*="background-color: #fafafa"] strong {
  color: #ffffff !important;
}

/* Automatically convert dark headings, paragraphs, and bold text sitting DIRECTLY
   on the dark stage wrapper (outside of white cards) to crisp white/light-gray!
   IMPORTANT: Uses strict direct child combinators (`>`) up to 2 bare wrapper levels deep
   (covering Gallery's section + header wrappers) so nested white cards never inherit white text! */
.wsc-entry-content div[style*="repeating-linear-gradient"] > h1,
.wsc-entry-content div[style*="repeating-linear-gradient"] > h2,
.wsc-entry-content div[style*="repeating-linear-gradient"] > h3,
.wsc-entry-content div[style*="repeating-linear-gradient"] > div:not([style*="background"]) > h1,
.wsc-entry-content div[style*="repeating-linear-gradient"] > div:not([style*="background"]) > h2,
.wsc-entry-content div[style*="repeating-linear-gradient"] > div:not([style*="background"]) > h3,
.wsc-entry-content div[style*="repeating-linear-gradient"] > div:not([style*="background"]) > div:not([style*="background"]) > h1,
.wsc-entry-content div[style*="repeating-linear-gradient"] > div:not([style*="background"]) > div:not([style*="background"]) > h2,
.wsc-entry-content div[style*="repeating-linear-gradient"] > div:not([style*="background"]) > div:not([style*="background"]) > h3,
.wsc-entry-content div[style*="#f4f5f7"][style*="max-width"] > h1,
.wsc-entry-content div[style*="#f4f5f7"][style*="max-width"] > h2,
.wsc-entry-content div[style*="#f4f5f7"][style*="max-width"] > h3,
.wsc-entry-content div[style*="#f4f5f7"][style*="max-width"] > div:not([style*="background"]) > h1,
.wsc-entry-content div[style*="#f4f5f7"][style*="max-width"] > div:not([style*="background"]) > h2,
.wsc-entry-content div[style*="#f4f5f7"][style*="max-width"] > div:not([style*="background"]) > h3,
.wsc-entry-content div[style*="#f4f5f7"][style*="max-width"] > div:not([style*="background"]) > div:not([style*="background"]) > h1,
.wsc-entry-content div[style*="#f4f5f7"][style*="max-width"] > div:not([style*="background"]) > div:not([style*="background"]) > h2,
.wsc-entry-content div[style*="#f4f5f7"][style*="max-width"] > div:not([style*="background"]) > div:not([style*="background"]) > h3,
.wsc-entry-content div[style*="#ffffff"][style*="max-width: 1000px"] > div:not([style*="background"]) > h2,
.wsc-entry-content div[style*="#ffffff"][style*="max-width: 1000px"] > div:not([style*="background"]) > h3,
.wsc-entry-content div[style*="#ffffff"][style*="max-width: 1000px"] > div:not([style*="background"]) > div:not([style*="background"]) > h2,
.wsc-entry-content div[style*="#ffffff"][style*="max-width: 1000px"] > div:not([style*="background"]) > div:not([style*="background"]) > h3,
.wsc-entry-content div[style*="#ffffff"][style*="max-width: 1050px"] > div:not([style*="background"]) > h2,
.wsc-entry-content div[style*="#ffffff"][style*="max-width: 1050px"] > div:not([style*="background"]) > h3,
.wsc-entry-content div[style*="#ffffff"][style*="max-width: 1050px"] > div:not([style*="background"]) > div:not([style*="background"]) > h2,
.wsc-entry-content div[style*="#ffffff"][style*="max-width: 1050px"] > div:not([style*="background"]) > div:not([style*="background"]) > h3,
.wsc-entry-content div[style*="#ffffff"][style*="max-width: 1050px"] > h2,
.wsc-entry-content div[style*="#ffffff"][style*="max-width: 1050px"] > h3,
.preview-page-tab div[style*="repeating-linear-gradient"] > div:not([style*="background"]) > h2,
.preview-page-tab div[style*="repeating-linear-gradient"] > div:not([style*="background"]) > div:not([style*="background"]) > h2,
.preview-page-tab div[style*="#ffffff"][style*="max-width: 1000px"] > div:not([style*="background"]) > h2,
/* Universal fallback: direct headings inside .wsc-entry-content */
.wsc-entry-content > h1,
.wsc-entry-content > h2,
.wsc-entry-content > h3,
.wsc-entry-content > h4,
.wsc-entry-content > h5,
.wsc-entry-content > h6,
.preview-page-tab > h1,
.preview-page-tab > h2,
.preview-page-tab > h3 {
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
}

/* ==========================================================================
   WHITE SURFACE / RESOURCE CARD CONTRAST & INTERACTIVE POLISH GUARD
   Ensures all headings, links, and paragraphs inside white cards (#ffffff)
   maintain razor-sharp #111111 contrast with zero text-shadow bleed!
   ========================================================================== */
.wsc-entry-content div[style*="background-color: #ffffff"]:not([style*="max-width: 1000px"]):not([style*="max-width: 1050px"]) > h1,
.wsc-entry-content div[style*="background-color: #ffffff"]:not([style*="max-width: 1000px"]):not([style*="max-width: 1050px"]) > h2,
.wsc-entry-content div[style*="background-color: #ffffff"]:not([style*="max-width: 1000px"]):not([style*="max-width: 1050px"]) > h3,
.wsc-entry-content div[style*="background-color: #ffffff"]:not([style*="max-width: 1000px"]):not([style*="max-width: 1050px"]) > h4,
.wsc-entry-content div[style*="background-color: #ffffff"]:not([style*="max-width: 1000px"]):not([style*="max-width: 1050px"]) > div:not([style*="background"]) > h2,
.wsc-entry-content div[style*="background-color: #ffffff"]:not([style*="max-width: 1000px"]):not([style*="max-width: 1050px"]) > div:not([style*="background"]) > h3,
.preview-page-tab div[style*="background-color: #ffffff"]:not([style*="max-width: 1000px"]):not([style*="max-width: 1050px"]) > h2,
.preview-page-tab div[style*="background-color: #ffffff"]:not([style*="max-width: 1000px"]):not([style*="max-width: 1050px"]) > h3,
.preview-page-tab div[style*="background-color: #ffffff"]:not([style*="max-width: 1000px"]):not([style*="max-width: 1050px"]) > div:not([style*="background"]) > h2,
.preview-page-tab div[style*="background-color: #ffffff"]:not([style*="max-width: 1000px"]):not([style*="max-width: 1050px"]) > div:not([style*="background"]) > h3 {
  color: #111111 !important;
  text-shadow: none !important;
}

/* Always keep headings inside dark cards (#111111 / #222222 / converted #fafafa) crisp white! */
.wsc-entry-content div[style*="background-color: #111111"] h1,
.wsc-entry-content div[style*="background-color: #111111"] h2,
.wsc-entry-content div[style*="background-color: #111111"] h3,
.wsc-entry-content div[style*="background-color: #222222"] h1,
.wsc-entry-content div[style*="background-color: #222222"] h2,
.wsc-entry-content div[style*="background-color: #222222"] h3,
.preview-page-tab div[style*="background-color: #111111"] h1,
.preview-page-tab div[style*="background-color: #111111"] h2,
.preview-page-tab div[style*="background-color: #111111"] h3,
.preview-page-tab div[style*="background-color: #222222"] h2,
.preview-page-tab div[style*="background-color: #222222"] h3 {
  color: #ffffff !important;
}

.wsc-entry-content div[style*="background-color: #ffffff"]:not([style*="max-width: 1000px"]):not([style*="max-width: 1050px"]) h2 a,
.wsc-entry-content div[style*="background-color: #ffffff"]:not([style*="max-width: 1000px"]):not([style*="max-width: 1050px"]) h3 a,
.preview-page-tab div[style*="background-color: #ffffff"]:not([style*="max-width: 1000px"]):not([style*="max-width: 1050px"]) h2 a,
.preview-page-tab div[style*="background-color: #ffffff"]:not([style*="max-width: 1000px"]):not([style*="max-width: 1050px"]) h3 a {
  color: #111111 !important;
  text-shadow: none !important;
  text-decoration: none;
  transition: color 0.2s ease;
}

.wsc-entry-content div[style*="background-color: #ffffff"]:not([style*="max-width: 1000px"]):not([style*="max-width: 1050px"]) h2 a:hover,
.wsc-entry-content div[style*="background-color: #ffffff"]:not([style*="max-width: 1000px"]):not([style*="max-width: 1050px"]) h3 a:hover {
  color: var(--wsc-orange) !important;
}

/* Tactile Card Elevation & Brand-Orange CTA Hover Polish across White Cards */
.wsc-entry-content div[style*="background-color: #ffffff"][style*="border-radius"]:not([style*="max-width: 1000px"]):not([style*="max-width: 1050px"]),
.preview-page-tab div[style*="background-color: #ffffff"][style*="border-radius"]:not([style*="max-width: 1000px"]):not([style*="max-width: 1050px"]) {
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.22s ease;
}

.wsc-entry-content div[style*="background-color: #ffffff"][style*="border-radius"]:not([style*="max-width: 1000px"]):not([style*="max-width: 1050px"]):hover,
.preview-page-tab div[style*="background-color: #ffffff"][style*="border-radius"]:not([style*="max-width: 1000px"]):not([style*="max-width: 1050px"]):hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255, 102, 0, 0.35) !important;
}

/* Interactive Hover State for Inline Dark (#111111) & Orange (#FF6600) Action Buttons */
.wsc-entry-content a[style*="background-color: #111111"],
.preview-page-tab a[style*="background-color: #111111"] {
  transition: background-color 0.2s ease, transform 0.18s ease, box-shadow 0.2s ease;
}

.wsc-entry-content a[style*="background-color: #111111"]:hover,
.preview-page-tab a[style*="background-color: #111111"]:hover {
  background-color: var(--wsc-orange) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 102, 0, 0.35);
}

.wsc-entry-content a[style*="background-color: #FF6600"],
.wsc-entry-content a[style*="background-color: #ff6600"],
.preview-page-tab a[style*="background-color: #FF6600"],
.preview-page-tab a[style*="background-color: #ff6600"] {
  transition: background-color 0.2s ease, transform 0.18s ease, box-shadow 0.2s ease;
}

.wsc-entry-content a[style*="background-color: #FF6600"]:hover,
.wsc-entry-content a[style*="background-color: #ff6600"]:hover,
.preview-page-tab a[style*="background-color: #FF6600"]:hover,
.preview-page-tab a[style*="background-color: #ff6600"]:hover {
  background-color: var(--wsc-orange-hover) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 102, 0, 0.42);
}

/* Branded Text Selection & Keyboard Focus Rings */
::selection {
  background-color: rgba(255, 102, 0, 0.22);
  color: inherit;
}

.wsc-theme-body a:focus-visible,
.wsc-theme-body button:focus-visible {
  outline: 2px solid var(--wsc-orange);
  outline-offset: 3px;
  border-radius: 4px;
}

.wsc-entry-content div[style*="repeating-linear-gradient"] > p,
.wsc-entry-content div[style*="repeating-linear-gradient"] > div:not([style*="background"]) > p,
.wsc-entry-content div[style*="repeating-linear-gradient"] > div:not([style*="background"]) > div:not([style*="background"]) > p,
.wsc-entry-content div[style*="#ffffff"][style*="max-width: 1000px"] > div:not([style*="background"]) > p,
.wsc-entry-content div[style*="#ffffff"][style*="max-width: 1000px"] > div:not([style*="background"]) > div:not([style*="background"]) > p,
.wsc-entry-content div[style*="#ffffff"][style*="max-width: 1050px"] > div:not([style*="background"]) > p,
.wsc-entry-content div[style*="#ffffff"][style*="max-width: 1050px"] > div:not([style*="background"]) > div:not([style*="background"]) > p,
.wsc-entry-content div[style*="#ffffff"][style*="max-width: 1050px"] > p,
.preview-page-tab div[style*="repeating-linear-gradient"] > div:not([style*="background"]) > p,
.preview-page-tab div[style*="repeating-linear-gradient"] > div:not([style*="background"]) > div:not([style*="background"]) > p,
.preview-page-tab div[style*="#ffffff"][style*="max-width: 1000px"] > div:not([style*="background"]) > p,
/* Universal fallback: direct paragraphs, lists, and items inside .wsc-entry-content or bare divs */
.wsc-entry-content > p,
.wsc-entry-content > ul,
.wsc-entry-content > ol,
.wsc-entry-content > ul li,
.wsc-entry-content > ol li,
.wsc-entry-content > div[style*="#fafafa"] p,
.preview-page-tab > p,
.preview-page-tab > ul,
.preview-page-tab > ol,
.preview-page-tab > ul li,
.preview-page-tab > div[style*="#fafafa"] p {
  color: #cfd4dc !important;
}

.wsc-entry-content div[style*="repeating-linear-gradient"] > p strong,
.wsc-entry-content div[style*="repeating-linear-gradient"] > div:not([style*="background"]) > p strong,
.wsc-entry-content div[style*="#ffffff"][style*="max-width: 1000px"] > div:not([style*="background"]) > p strong,
.wsc-entry-content div[style*="#ffffff"][style*="max-width: 1050px"] > div:not([style*="background"]) > p strong,
.wsc-entry-content div[style*="#ffffff"][style*="max-width: 1050px"] > p strong,
.wsc-entry-content > p strong,
.wsc-entry-content > ul strong,
.wsc-entry-content > div[style*="#fafafa"] strong,
.preview-page-tab > p strong,
.preview-page-tab > ul strong,
.preview-page-tab > div[style*="#fafafa"] strong {
  color: #ffffff !important;
}

/* Any section subheadings with orange underline on bare page */
.wsc-entry-content > h2[style*="border-bottom"] {
  border-bottom: 3px solid var(--wsc-orange) !important;
}

.wsc-main-wrapper.wsc-full-bleed {
  max-width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

/* Optional Default Page Title (Off by default on Pages so custom Heroes shine) */
.wsc-default-page-header {
  max-width: 1050px;
  margin: 0 auto 24px auto;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--wsc-orange);
}

.wsc-default-page-title {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
}

/* Blog Archive / Standard Post Cards (For unstyled standard WP posts) */
.wsc-post-card {
  background-color: var(--wsc-bg-surface);
  border: 1px solid var(--wsc-border);
  border-top: 4px solid var(--wsc-orange);
  border-radius: 8px;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--wsc-card-shadow);
}

.wsc-post-card-title {
  margin: 0 0 10px 0;
  font-size: 22px;
  font-weight: 800;
}

.wsc-post-card-title a {
  color: var(--wsc-dark);
  text-decoration: none;
}

.wsc-post-card-title a:hover {
  color: var(--wsc-orange);
}

.wsc-post-meta {
  font-size: 13px;
  color: #777777;
  margin-bottom: 14px;
  font-weight: 600;
}

.wsc-read-more {
  display: inline-block;
  background-color: var(--wsc-dark);
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 5px;
  text-decoration: none;
  margin-top: 10px;
  transition: background-color 0.2s ease;
}

.wsc-read-more:hover {
  background-color: var(--wsc-orange);
}

/* ==========================================================================
   SITE FOOTER
   ========================================================================== */
.wsc-site-footer {
  background-color: var(--wsc-dark);
  color: #e0e0e0;
  border-top: 5px solid var(--wsc-orange);
  font-size: 15px;
  margin-top: 40px;
  position: relative;
  z-index: 10;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.4);
}

.wsc-footer-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 55px 20px 40px 20px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.1fr;
  gap: 40px;
}

.wsc-footer-col h3.wsc-footer-heading {
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 18px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--wsc-orange);
  display: inline-block;
  letter-spacing: 0.3px;
}

.wsc-footer-brand-box {
  position: relative;
  padding-left: 14px;
  padding-bottom: 8px;
  margin-bottom: 16px;
  display: inline-block;
}

.wsc-footer-brand-box::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 6px;
  width: 3px;
  background: linear-gradient(180deg, rgba(255, 102, 0, 0.35) 0%, #FF6600 20%, #FF6600 80%, rgba(255, 102, 0, 0.15) 100%);
  border-radius: 2px;
}

.wsc-footer-brand-box::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 8px;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 102, 0, 0.15) 0%, #FF6600 15%, #FF6600 85%, rgba(255, 102, 0, 0.05) 100%);
  border-radius: 2px;
}

.wsc-footer-brand-name {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--wsc-orange);
  margin: 0;
}

.wsc-footer-desc {
  color: #cccccc;
  font-size: 14.5px;
  line-height: 1.65;
  margin: 0 0 18px 0;
}

.wsc-footer-badge {
  display: inline-block;
  background-color: var(--wsc-charcoal);
  border: 1px solid #333333;
  color: var(--wsc-orange);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 6px 12px;
  border-radius: 4px;
}

/* Footer Quick Links */
.wsc-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
}

.wsc-footer-links li {
  margin: 0;
  padding: 0;
}

.wsc-footer-links a {
  color: #dcdcdc;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  transition: color 0.2s ease, padding-left 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wsc-footer-links a::before {
  content: "›";
  color: var(--wsc-orange);
  font-weight: 800;
  font-size: 16px;
}

.wsc-footer-links a:hover {
  color: var(--wsc-orange);
  padding-left: 4px;
}

/* Footer Contact Column */
.wsc-footer-contact-list {
  list-style: none;
  margin: 0 0 20px 0;
  padding: 0;
}

.wsc-footer-contact-list li {
  margin-bottom: 12px;
  color: #dcdcdc;
  font-size: 14.5px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.wsc-footer-contact-label {
  color: var(--wsc-orange);
  font-weight: 700;
  min-width: 68px;
}

.wsc-footer-phone-link {
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
}

.wsc-footer-phone-link:hover {
  color: var(--wsc-orange);
}

.wsc-footer-cta-btn {
  display: inline-block;
  background-color: var(--wsc-orange);
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 5px;
  transition: background-color 0.2s ease;
}

.wsc-footer-cta-btn:hover {
  background-color: var(--wsc-orange-hover);
}

/* Footer Bottom Copyright Bar */
.wsc-footer-bottom {
  background-color: #0a0a0a;
  border-top: 1px solid #222222;
  padding: 18px 20px;
  font-size: 13.5px;
  color: #999999;
}

.wsc-footer-bottom-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.wsc-footer-bottom-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.wsc-footer-bottom-links a {
  color: #bbbbbb;
  text-decoration: none;
  font-weight: 600;
}

.wsc-footer-bottom-links a:hover {
  color: var(--wsc-orange);
}

/* Floating Back-to-Top Button */
.wsc-back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background-color: var(--wsc-dark);
  color: #ffffff;
  border: 2px solid var(--wsc-orange);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease, background-color 0.2s ease;
}

.wsc-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.wsc-back-to-top:hover {
  background-color: var(--wsc-orange);
  transform: translateY(-2px);
}

.wsc-back-to-top svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 900px) {
  .wsc-topbar-inner {
    justify-content: center;
    text-align: center;
  }

  .wsc-topbar-right {
    display: none;
  }

  .wsc-header-container {
    flex-wrap: wrap;
  }

  .wsc-mobile-toggle {
    display: inline-flex;
  }

  .wsc-header-right {
    width: 100%;
    align-items: stretch;
    display: none;
    padding-top: 14px;
    border-top: 1px solid #eeeeee;
  }

  .wsc-header-dark .wsc-header-right {
    border-top-color: #2a2a2a;
  }

  .wsc-header-right.is-open {
    display: flex;
  }

  .wsc-header-actions {
    justify-content: space-between;
    background-color: #f8f9fa;
    padding: 10px 14px;
    border-radius: 6px;
  }

  .wsc-header-dark .wsc-header-actions {
    background-color: #1c1c1c;
  }

  .wsc-nav-list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 2px;
  }

  .wsc-nav-list a {
    display: block;
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
  }

  .wsc-header-dark .wsc-nav-list a {
    border-bottom-color: #222222;
  }

  .wsc-nav-list ul.sub-menu {
    position: static;
    display: block;
    box-shadow: none;
    border-top: none;
    border-left: 3px solid var(--wsc-orange);
    margin-left: 14px;
    background-color: transparent;
  }

  .wsc-main-wrapper {
    margin: 16px auto 32px auto;
    padding: 16px 12px;
    border-radius: 10px;
  }

  .wsc-footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .wsc-footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 540px) {
  .wsc-footer-links {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .wsc-footer-container {
    padding: 35px 16px 30px 16px;
    gap: 28px;
  }

  .wsc-header-container {
    padding: 14px 14px;
    gap: 10px;
  }

  .wsc-brand-title {
    font-size: 21px;
  }

  .wsc-mobile-toggle {
    padding: 6px 10px;
    font-size: 13px;
  }
}
