/*
Theme Name:   Wavestek Power Solutions
Theme URI:    https://www.wavestekpowersolutions.in
Author:       Wavestek Power Solutions
Author URI:   https://www.wavestekpowersolutions.in
Description:  Industrial-grade power solutions theme for Wavestek Power Solutions Chennai. Built with Elementor compatibility, Custom Post Types for Products, and full Bootstrap 5 integration.
Version:      1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License:      Private
Text Domain:  wavestek
Tags:         industrial, elementor, custom-post-type, bootstrap

/* ============================================================
   WAVESTEK POWER SOLUTIONS — WORDPRESS THEME
   Fonts: Barlow Condensed (headings) + Barlow (body)
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
  --red:       #D32F2F;
  --red-dark:  #b71c1c;
  --blue:      #3A5F8A;
  --blue-dark: #1a3a5c;
  --yellow:    #F5A623;
  --white:     #ffffff;
  --light:     #f5f6f8;
  --gray:      #6b7280;
  --dark:      #111827;
  --border:    #e5e7eb;
  --font-head: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
  --shadow:    0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.18);
  --transition: all 0.3s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); font-size: 16px; color: var(--dark); background: #fff; line-height: 1.65; margin: 0; padding: 0; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; padding: 0; margin: 0; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; }

/* ---- Topbar ---- */
.wv-topbar { background: var(--dark); color: #aaa; font-size: 13px; padding: 8px 0; }
.wv-topbar-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.wv-topbar-left, .wv-topbar-right { display: flex; align-items: center; gap: 20px; }
.wv-topbar a { color: #ccc; }
.wv-topbar a:hover { color: var(--yellow); }
.wv-topbar i { margin-right: 5px; color: var(--red); }
.wv-topbar-wa { background: #25D366; color: #fff !important; padding: 3px 12px; border-radius: 50px; font-weight: 600; }
.wv-topbar-wa i { color: #fff; }

/* ---- Header ---- */
.wv-header { background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 999; transition: var(--transition); }
.wv-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.14); }
.wv-logo-wrap { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.wv-logo-icon { flex-shrink: 0; }
.wv-logo-brand { display: block; font-family: var(--font-head); font-size: 22px; font-weight: 800; color: var(--blue); letter-spacing: 1px; line-height: 1; }
.wv-logo-sub { display: block; font-family: var(--font-head); font-size: 12px; font-weight: 700; color: var(--red); letter-spacing: 2px; }

/* ---- Navigation ---- */

/* ---- Mobile Nav Toggle ---- */

/* ---- Page Banner ---- */
.wv-page-banner { background: linear-gradient(90deg, var(--dark) 0%, var(--blue-dark) 100%); padding: 60px 0; }
.wv-page-banner h1 { color: #fff; font-size: clamp(28px, 4vw, 48px); text-transform: uppercase; }
.wv-breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 13px; }
.wv-breadcrumb a { color: rgba(255,255,255,0.65); }
.wv-breadcrumb a:hover { color: var(--yellow); }
.wv-breadcrumb .sep { color: rgba(255,255,255,0.3); }
.wv-breadcrumb .current { color: var(--yellow); }

/* ---- Section Globals ---- */
.wv-section { padding: 80px 0; }
.wv-section-light { background: var(--light); }
.wv-section-dark { background: linear-gradient(135deg, var(--dark) 0%, var(--blue-dark) 100%); }
.wv-section-title { font-family: var(--font-head); font-size: clamp(28px, 4vw, 42px); font-weight: 800; color: var(--dark); text-transform: uppercase; }
.wv-section-title span { color: var(--red); }
.wv-section-line { width: 50px; height: 4px; background: var(--red); margin: 14px 0 0; border-radius: 2px; }
.wv-section-line.center { margin-left: auto; margin-right: auto; }
.wv-label { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--red); font-size: 13px; display: block; margin-bottom: 6px; }

/* ---- Hero Slider ---- */
.wv-hero { position: relative; }
.wv-slide { position: relative; min-height: 580px; display: flex; align-items: center; overflow: hidden; }
.wv-slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; }
.wv-slide-overlay { position: absolute; inset: 0; z-index: 1; }
.slide-1 .wv-slide-bg { background: linear-gradient(135deg, #0d1b2a 0%, #1a3a5c 50%, #2c5f8a 100%); }
.slide-1 .wv-slide-overlay { background: linear-gradient(90deg, rgba(0,0,0,0.65) 40%, transparent 100%); }
.slide-2 .wv-slide-bg { background: linear-gradient(135deg, #1a0000 0%, #6b1a1a 50%, #a33 100%); }
.slide-2 .wv-slide-overlay { background: linear-gradient(90deg, rgba(0,0,0,0.65) 40%, transparent 100%); }
.slide-3 .wv-slide-bg { background: linear-gradient(135deg, #0d1b0d 0%, #1a3a1a 50%, #2a5f2a 100%); }
.slide-3 .wv-slide-overlay { background: linear-gradient(90deg, rgba(0,0,0,0.65) 40%, transparent 100%); }
.wv-slide-content { position: relative; z-index: 2; padding: 80px 0; }
.wv-slide-badge { display: inline-block; background: var(--yellow); color: #111; font-family: var(--font-head); font-size: 12px; font-weight: 700; letter-spacing: 2px; padding: 4px 14px; border-radius: 2px; margin-bottom: 18px; text-transform: uppercase; }
.wv-slide-title { font-family: var(--font-head); font-size: clamp(36px, 6vw, 72px); font-weight: 800; color: #fff; line-height: 1.05; margin-bottom: 20px; text-transform: uppercase; }
.wv-slide-title span { color: var(--yellow); }
.wv-slide-desc { font-size: 17px; color: rgba(255,255,255,0.82); max-width: 520px; margin-bottom: 32px; }
.swiper-pagination-bullet { background: rgba(255,255,255,0.5); opacity: 1; }
.swiper-pagination-bullet-active { background: var(--yellow); width: 28px; border-radius: 3px; }
.swiper-button-next, .swiper-button-prev { width: 44px; height: 44px; background: rgba(255,255,255,0.15); border-radius: 50%; border: 1px solid rgba(255,255,255,0.25); transition: var(--transition); }
.swiper-button-next:hover, .swiper-button-prev:hover { background: var(--red); }
.swiper-button-next::after, .swiper-button-prev::after { font-size: 14px; font-weight: 900; color: #fff; }

/* ---- Counter ---- */
.wv-counter-section { background: var(--dark); padding: 60px 0; }
.wv-counter-num { font-family: var(--font-head); font-size: clamp(44px, 6vw, 64px); font-weight: 800; color: var(--yellow); line-height: 1; }
.wv-counter-label { font-size: 14px; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 1.5px; margin-top: 8px; font-weight: 500; }

/* ---- Cards ---- */
.wv-offering-card { background: #fff; border-radius: 6px; padding: 36px 28px; text-align: center; box-shadow: 0 2px 12px rgba(0,0,0,0.06); transition: var(--transition); border-bottom: 3px solid transparent; height: 100%; }
.wv-offering-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-bottom-color: var(--red); }
.wv-offering-icon { width: 72px; height: 72px; background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 22px; transition: var(--transition); }
.wv-offering-card:hover .wv-offering-icon { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%); transform: scale(1.1) rotate(5deg); }
.wv-offering-icon i { font-size: 28px; color: #fff; }
.wv-offering-card h4 { font-family: var(--font-head); font-size: 20px; font-weight: 700; margin-bottom: 12px; text-transform: uppercase; }
.wv-offering-card p { font-size: 14px; color: var(--gray); }
.wv-why-card { display: flex; gap: 18px; align-items: flex-start; padding: 28px; border: 1px solid var(--border); border-radius: 6px; background: #fff; transition: var(--transition); }
.wv-why-card:hover { border-color: var(--red); box-shadow: var(--shadow); }
.wv-why-icon { width: 52px; height: 52px; flex-shrink: 0; background: var(--light); border-radius: 8px; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.wv-why-card:hover .wv-why-icon { background: var(--red); }
.wv-why-icon i { font-size: 22px; color: var(--red); transition: var(--transition); }
.wv-why-card:hover .wv-why-icon i { color: #fff; }
.wv-why-card h5 { font-family: var(--font-head); font-size: 17px; font-weight: 700; text-transform: uppercase; margin-bottom: 6px; }
.wv-why-card p { font-size: 14px; color: var(--gray); margin: 0; }
.wv-story-card { background: #fff; border-radius: 6px; padding: 32px; border-left: 4px solid var(--red); box-shadow: 0 2px 12px rgba(0,0,0,0.06); height: 100%; }
.wv-story-icon { width: 48px; height: 48px; background: var(--red); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.wv-story-icon i { font-size: 22px; color: #fff; }
.wv-service-card { background: #fff; border-radius: 6px; padding: 36px 28px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); transition: var(--transition); border-bottom: 3px solid transparent; height: 100%; }
.wv-service-card:hover { border-bottom-color: var(--red); transform: translateY(-4px); }
.wv-service-card i { font-size: 36px; color: var(--red); margin-bottom: 18px; display: block; }
.wv-service-card h5 { font-family: var(--font-head); font-size: 20px; font-weight: 700; text-transform: uppercase; margin-bottom: 12px; }
.wv-value-card { background: var(--light); border-radius: 6px; padding: 28px; text-align: center; border-top: 3px solid var(--red); }
.wv-value-card i { font-size: 32px; color: var(--red); margin-bottom: 14px; }
.wv-value-card h5 { font-family: var(--font-head); font-size: 18px; text-transform: uppercase; font-weight: 700; }

/* ---- CTA Section ---- */
.wv-cta { background: linear-gradient(135deg, var(--dark) 0%, #1a3a5c 100%); padding: 80px 0; position: relative; overflow: hidden; }
.wv-cta::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E"); }
.wv-btn-primary { background: var(--red); border: 2px solid var(--red); color: #fff; font-family: var(--font-head); font-size: 16px; font-weight: 700; letter-spacing: 1px; padding: 14px 36px; border-radius: 3px; text-transform: uppercase; display: inline-block; }
.wv-btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.wv-btn-outline { background: transparent; border: 2px solid rgba(255,255,255,0.5); color: #fff; font-family: var(--font-head); font-size: 16px; font-weight: 700; letter-spacing: 1px; padding: 14px 36px; border-radius: 3px; text-transform: uppercase; display: inline-block; }
.wv-btn-outline:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.08); }

/* ---- Product CPT ---- */
.wv-product-banner { background: linear-gradient(90deg, var(--dark) 0%, var(--blue-dark) 100%); padding: 60px 0; }
.wv-product-banner h1 { color: #fff; font-size: clamp(28px, 4vw, 48px); text-transform: uppercase; }
.wv-product-img-main { border-radius: 6px; overflow: hidden; border: 2px solid var(--border); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; background: var(--light); }
.wv-product-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.wv-product-thumb { width: 72px; height: 72px; border: 2px solid var(--border); border-radius: 4px; cursor: pointer; overflow: hidden; flex-shrink: 0; }
.wv-product-thumb:hover, .wv-product-thumb.active { border-color: var(--red); }
.wv-spec-row { display: flex; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 14px; }
.wv-spec-row:nth-child(odd) { background: rgba(255,255,255,0.8); }
.wv-spec-label { width: 45%; font-weight: 600; }
.wv-spec-value { width: 55%; color: var(--gray); }
.wv-related-card { border-radius: 6px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.06); transition: var(--transition); background: #fff; display: block; color: inherit; }
.wv-related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--red); }
.wv-related-card-img { aspect-ratio: 4/3; background: var(--light); display: flex; align-items: center; justify-content: center; padding: 20px; }
.wv-related-card-body { padding: 16px; }
.wv-related-card-body h6 { font-family: var(--font-head); font-size: 16px; font-weight: 700; text-transform: uppercase; margin-bottom: 4px; }

/* ---- Contact ---- */
.wv-contact-info { background: var(--dark); border-radius: 6px; padding: 36px; color: #fff; height: 100%; }
.wv-contact-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 28px; }
.wv-contact-icon { width: 44px; height: 44px; background: var(--red); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wv-contact-icon i { font-size: 18px; color: #fff; }
.wv-contact-form-wrap { background: #fff; border-radius: 6px; padding: 40px; box-shadow: var(--shadow); }
.wv-form-label { font-family: var(--font-head); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--dark); margin-bottom: 6px; display: block; }
.wv-form-control { border: 1.5px solid var(--border); border-radius: 3px; padding: 10px 14px; font-size: 14px; transition: var(--transition); width: 100%; font-family: var(--font-body); }
.wv-form-control:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(211,47,47,0.1); outline: none; }
.wv-btn-submit { background: var(--red); border: none; color: #fff; font-family: var(--font-head); font-size: 16px; font-weight: 700; padding: 14px 40px; border-radius: 3px; text-transform: uppercase; letter-spacing: 1px; width: 100%; cursor: pointer; }
.wv-btn-submit:hover { background: var(--red-dark); }

/* ---- Timeline (About) ---- */
.wv-timeline { position: relative; padding-left: 40px; }
.wv-timeline::before { content: ''; position: absolute; left: 12px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.wv-timeline-item { position: relative; margin-bottom: 36px; }
.wv-timeline-item::before { content: ''; position: absolute; left: -34px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--red); border: 3px solid #fff; box-shadow: 0 0 0 3px var(--red); }
.wv-timeline-year { font-family: var(--font-head); font-size: 13px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.wv-timeline-title { font-family: var(--font-head); font-size: 20px; font-weight: 700; text-transform: uppercase; margin-bottom: 6px; }

/* ---- Testimonials ---- */
.wv-testimonial { background: #fff; border-radius: 8px; padding: 32px; box-shadow: var(--shadow); text-align: center; }
.wv-testimonial .quote { font-size: 32px; color: var(--red); line-height: 1; margin-bottom: 12px; }
.wv-testimonial p { font-size: 15px; color: var(--gray); font-style: italic; }
.wv-testimonial .name { font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--dark); margin-top: 18px; text-transform: uppercase; }

/* ---- Footer ---- */
.wv-footer { background: #0d1117; }
.wv-footer-top { padding: 64px 0 40px; }
.wv-footer-desc { font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.7; margin-bottom: 20px; }
.wv-footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.2); border-radius: 50%; color: rgba(255,255,255,0.7); margin-right: 8px; transition: var(--transition); }
.wv-footer-social a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.wv-footer-heading { font-family: var(--font-head); font-size: 14px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #fff; margin-bottom: 20px; }
.wv-footer-links { list-style: none; padding: 0; margin: 0; }
.wv-footer-links li { margin-bottom: 10px; }
.wv-footer-links a { font-size: 14px; color: rgba(255,255,255,0.55); }
.wv-footer-links a:hover { color: var(--yellow); padding-left: 4px; }
.wv-footer-contact { list-style: none; padding: 0; margin: 0; }
.wv-footer-contact li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; color: rgba(255,255,255,0.55); font-size: 14px; }
.wv-footer-contact i { color: var(--yellow); margin-top: 2px; flex-shrink: 0; width: 16px; }
.wv-footer-contact a { color: rgba(255,255,255,0.55); }
.wv-footer-contact a:hover { color: var(--yellow); }
.wv-footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding: 18px 0; text-align: center; }
.wv-footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.35); margin: 0; }

/* ---- Floating Buttons ---- */
.wv-float-wa { position: fixed; bottom: 28px; right: 28px; z-index: 9999; width: 56px; height: 56px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(37,211,102,0.45); animation: wv-pulse 2s infinite; }
.wv-float-wa i { font-size: 28px; color: #fff; }
@keyframes wv-pulse { 0%,100%{box-shadow:0 4px 16px rgba(37,211,102,0.45)}50%{box-shadow:0 4px 28px rgba(37,211,102,0.75)} }
#wv-back-to-top { position: fixed; bottom: 96px; right: 28px; z-index: 9998; width: 40px; height: 40px; background: var(--blue); border-radius: 50%; display: none; align-items: center; justify-content: center; box-shadow: 0 3px 12px rgba(0,0,0,0.25); cursor: pointer; transition: var(--transition); border: none; }
#wv-back-to-top:hover { background: var(--red); }
#wv-back-to-top i { font-size: 16px; color: #fff; }
#wv-back-to-top.visible { display: flex; }

/* ---- Mobile CTA Bar ---- */
@media (max-width: 767px) {
  .wv-mobile-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 9990; display: flex; background: var(--dark); border-top: 2px solid rgba(255,255,255,0.08); }
  .wv-mobile-bar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px 8px; font-family: var(--font-head); font-size: 11px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: rgba(255,255,255,0.75); gap: 4px; }
  .wv-mobile-bar a i { font-size: 18px; }
  .wv-mobile-bar a.bar-call { color: #fff; background: var(--red); }
  .wv-mobile-bar a.bar-wa   { color: #fff; background: #25D366; }
  body { padding-bottom: 58px; }
  .wv-float-wa { bottom: 72px; }
}
@media (min-width: 768px) { .wv-mobile-bar { display: none !important; } }

/* ---- Scroll Reveal ---- */
.wv-reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.wv-reveal.revealed { opacity: 1; transform: translateY(0); }
.wv-reveal:nth-child(2) { transition-delay: 0.1s; }
.wv-reveal:nth-child(3) { transition-delay: 0.2s; }
.wv-reveal:nth-child(4) { transition-delay: 0.3s; }
.wv-reveal:nth-child(5) { transition-delay: 0.4s; }
.wv-reveal:nth-child(6) { transition-delay: 0.5s; }

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .wv-topbar-left { display: none; }
  .wv-menu-toggle { display: flex; }
}
@media (max-width: 576px) {
  .wv-section { padding: 50px 0; }
  .wv-slide { min-height: 360px; }
  .wv-slide-content { padding: 50px 0; }
}

/* ---- Elementor Overrides ---- */
.elementor-section { position: relative; }
.elementor-widget-wrap { position: relative; }

/* ---- WordPress Defaults ---- */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--gray); text-align: center; margin-top: 8px; }
.sticky { position: relative; }
.alignleft { float: left; margin: 0 20px 20px 0; }
.alignright { float: right; margin: 0 0 20px 20px; }
.aligncenter { display: block; margin: 0 auto 20px; }
.screen-reader-text { clip: rect(1px,1px,1px,1px); position: absolute; }
/* ============================================================
   HEADER & NAVIGATION — CLEAN REWRITE
   ============================================================ */

/* --- Header wrapper --- */
.wv-header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 9999;
  transition: box-shadow 0.3s ease;
}
.wv-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.14); }

.wv-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}

/* --- Logo --- */
.wv-logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.wv-logo-text { display: flex; flex-direction: column; }
.wv-logo-brand {
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: 1px;
  line-height: 1;
}
.wv-logo-sub {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* --- Desktop nav container --- */
.wv-nav-desktop {
  display: flex;
  align-items: center;
  gap: 0;
}
@media (max-width: 991px) {
  .wv-nav-desktop { display: none; }
}

/* --- Desktop nav list --- */
ul.wv-nav {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}
ul.wv-nav > li {
  position: relative;
}
ul.wv-nav > li > a {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--dark);
  padding: 8px 13px;
  display: flex;
  align-items: center;
  gap: 5px;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}
ul.wv-nav > li > a:hover,
ul.wv-nav > li.current-menu-item > a,
ul.wv-nav > li.current-menu-ancestor > a,
ul.wv-nav > li.current-menu-parent > a {
  color: var(--red);
}

/* --- Level 1 dropdown --- */
ul.wv-nav li.menu-item-has-children { position: relative; }
ul.wv-nav li.menu-item-has-children > ul.sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  min-width: 230px;
  background: #fff;
  border-top: 3px solid var(--red);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.14);
  padding: 6px 0;
  z-index: 9999;
  list-style: none;
  margin: 0;
}
ul.wv-nav li.menu-item-has-children:hover > ul.sub-menu {
  display: block;
}

/* --- Level 1 dropdown items --- */
ul.wv-nav ul.sub-menu li a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
ul.wv-nav ul.sub-menu li a:hover {
  background: var(--light);
  color: var(--red);
}

/* --- Level 2 (nested) dropdown --- */
ul.wv-nav ul.sub-menu li.menu-item-has-children { position: relative; }
ul.wv-nav ul.sub-menu li.menu-item-has-children > ul.sub-menu {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 220px;
  background: #fff;
  border-top: 3px solid var(--blue);
  border-radius: 0 6px 6px 6px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.14);
  padding: 6px 0;
  list-style: none;
  margin: 0;
  z-index: 9999;
}
ul.wv-nav ul.sub-menu li.menu-item-has-children:hover > ul.sub-menu {
  display: block;
}

/* --- Get Quote button --- */
.wv-btn-quote {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  padding: 9px 20px;
  border-radius: 3px;
  background: var(--red);
  color: #fff !important;
  border: 2px solid var(--red);
  text-transform: uppercase;
  display: inline-block;
  margin-left: 12px;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.2s;
}
.wv-btn-quote:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: #fff;
}

/* --- Mobile hamburger toggle --- */
.wv-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}
.wv-menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}
@media (max-width: 991px) {
  .wv-menu-toggle { display: flex; }
}

/* --- Mobile nav panel --- */
.wv-nav-mobile {
  display: none;
  background: #fff;
  border-top: 2px solid var(--light);
  padding: 8px 0 16px;
}
.wv-nav-mobile.open { display: block; }
@media (min-width: 992px) {
  .wv-nav-mobile { display: none !important; }
}

/* --- Mobile nav list --- */
ul.wv-nav-m {
  list-style: none;
  margin: 0;
  padding: 0;
}
ul.wv-nav-m > li > a {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  padding: 11px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--light);
  text-transform: uppercase;
  text-decoration: none;
}
ul.wv-nav-m > li > a:hover { color: var(--red); }

ul.wv-nav-m ul.sub-menu {
  display: none;
  list-style: none;
  padding: 4px 0 4px 16px;
  margin: 0;
  background: #fafafa;
  border-left: 3px solid var(--red);
}
ul.wv-nav-m li.menu-open > ul.sub-menu { display: block; }
ul.wv-nav-m ul.sub-menu li a {
  font-size: 14px;
  color: var(--gray);
  padding: 8px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  text-decoration: none;
}
ul.wv-nav-m ul.sub-menu li a:hover { color: var(--red); }
ul.wv-nav-m ul.sub-menu ul.sub-menu {
  padding-left: 14px;
  border-left: 2px solid var(--blue);
}
