/*
Theme Name: Blue Valley Enterprises
Description: Professional construction company website theme for Blue Valley Enterprises Limited - Clean Navigation Implementation
Version: 5.0.0
Author: Blue Valley Enterprises
Text Domain: blue-valley
Requires at least: 5.0
Tested up to: 6.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Complete navigation rebuild with clean WordPress best practices.
*/

/* ========== GOOGLE FONTS ========== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Roboto:wght@300;400;500;700&display=swap');

/* ========== CSS CUSTOM PROPERTIES ========== */
:root {
  /* Brand Colors */
  --bve-primary: #0D47A1;
  --bve-secondary: #42A5F5;
  --bve-accent: #FFC107;
  --bve-neutral-dark: #212121;
  --bve-neutral-light: #FFFFFF;
  
  /* Gray Scale */
  --bve-gray-50: #F9FAFB;
  --bve-gray-100: #F3F4F6;
  --bve-gray-200: #E5E7EB;
  --bve-gray-300: #D1D5DB;
  --bve-gray-400: #9CA3AF;
  --bve-gray-500: #6B7280;
  --bve-gray-600: #4B5563;
  --bve-gray-700: #374151;
  --bve-gray-800: #1F2937;
  --bve-gray-900: #111827;
  
  /* Typography */
  --font-primary: 'Montserrat', sans-serif;
  --font-secondary: 'Roboto', sans-serif;
  
  /* Spacing */
  --container-max-width: 1200px;
  --container-padding: 1rem;
  --section-spacing: 5rem;
  --grid-gap: 2rem;
  
  /* Responsive Breakpoints */
  --mobile: 767px;
  --tablet: 1023px;
  --desktop: 1024px;
  
  /* Hero Section Consistent Padding */
  --hero-padding-mobile: 4rem 1.5rem;
  --hero-padding-tablet: 6rem 2rem;
  --hero-padding-desktop: 8rem 3rem;
  --hero-min-height-mobile: 70vh;
  --hero-min-height-tablet: 80vh;
  --hero-min-height-desktop: 90vh;
}

/* ========== RESET AND BASE STYLES ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-secondary);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--bve-neutral-dark);
  background-color: var(--bve-neutral-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.7;
}

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

a:hover {
  color: var(--bve-secondary);
}

/* ========== LAYOUT UTILITIES ========== */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  width: 100%;
}

.section {
  padding: var(--section-spacing) 0;
}

.section-gray {
  background-color: var(--bve-gray-50);
}

.text-center {
  text-align: center;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ========== HERO SECTIONS - CONSISTENT ACROSS ALL PAGES ========== */
.hero-section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: var(--hero-min-height-mobile);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(13, 71, 161, 0.9) 0%,
    rgba(13, 71, 161, 0.7) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max-width);
  padding: var(--hero-padding-mobile);
  text-align: center;
  color: var(--bve-neutral-light);
}

.hero-title {
  font-family: var(--font-primary);
  font-size: clamp(1.75rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  line-height: 1.6;
  margin-bottom: 2rem;
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-accent {
  color: var(--bve-accent);
}

/* Hero Buttons */
.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 3rem;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 0.5rem;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
  min-height: 48px;
  white-space: nowrap;
}

.hero-btn-primary {
  background-color: var(--bve-accent);
  color: var(--bve-neutral-dark);
  border-color: var(--bve-accent);
}

.hero-btn-primary:hover {
  background-color: #E6AC00;
  border-color: #E6AC00;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

.hero-btn-secondary {
  background-color: transparent;
  color: var(--bve-neutral-light);
  border-color: var(--bve-neutral-light);
}

.hero-btn-secondary:hover {
  background-color: var(--bve-neutral-light);
  color: var(--bve-primary);
}

/* Hero Statistics */
.hero-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.hero-stat {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
}

.hero-stat-number {
  font-family: var(--font-primary);
  font-size: 2rem;
  font-weight: 800;
  color: var(--bve-accent);
  display: block;
  margin-bottom: 0.5rem;
}

.hero-stat-label {
  font-size: 0.875rem;
  opacity: 0.9;
  line-height: 1.4;
}

/* ========== RESPONSIVE HERO SECTIONS ========== */

/* Tablet Styles */
@media (min-width: 768px) {
  .hero-section {
    min-height: var(--hero-min-height-tablet);
  }
  
  .hero-content {
    padding: var(--hero-padding-tablet);
  }
  
  .hero-buttons {
    flex-direction: row;
    gap: 1.5rem;
  }
  
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 2rem auto 0;
  }
  
  .hero-stat-number {
    font-size: 2.5rem;
  }
}

/* Desktop Styles */
@media (min-width: 1024px) {
  .hero-section {
    min-height: var(--hero-min-height-desktop);
  }
  
  .hero-content {
    padding: var(--hero-padding-desktop);
  }
  
  .hero-stats {
    max-width: 1000px;
    gap: 3rem;
  }
  
  .hero-stat-number {
    font-size: 3rem;
  }
  
  .hero-stat-label {
    font-size: 1rem;
  }
}

/* ========== GRID SYSTEM ========== */
.grid {
  display: grid;
  gap: var(--grid-gap);
}

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

/* Responsive Grid */
@media (max-width: 767px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========== CARDS ========== */
.card {
  background: var(--bve-neutral-light);
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
              0 2px 4px -1px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
              0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .card-image {
  transform: scale(1.05);
}

.card-content {
  padding: 1.5rem;
}

.card-title {
  font-family: var(--font-primary);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bve-primary);
  margin-bottom: 0.75rem;
}

.card-description {
  color: var(--bve-gray-600);
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  border-radius: 0.5rem;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
  min-height: 44px;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--bve-primary);
  color: var(--bve-neutral-light);
  border-color: var(--bve-primary);
}

.btn-primary:hover {
  background-color: var(--bve-secondary);
  border-color: var(--bve-secondary);
  color: var(--bve-neutral-light);
}

.btn-outline {
  background-color: transparent;
  color: var(--bve-primary);
  border-color: var(--bve-primary);
}

.btn-outline:hover {
  background-color: var(--bve-primary);
  color: var(--bve-neutral-light);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
  min-height: 48px;
}

/* ========== SECTION HEADERS ========== */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-family: var(--font-primary);
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--bve-primary);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--bve-gray-600);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ========== ABOUT SECTION SPECIFIC ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.about-content {
  order: 2;
}

.about-image {
  order: 1;
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  height: 300px;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: var(--bve-accent);
  color: var(--bve-neutral-dark);
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.about-badge-number {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.25rem;
  display: block;
}

.about-badge-text {
  font-size: 0.75rem;
  margin: 0;
  line-height: 1.2;
}

.about-features {
  margin: 2rem 0;
}

.about-feature {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--bve-gray-700);
}

.about-feature svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--bve-secondary);
  margin-right: 0.75rem;
  flex-shrink: 0;
}

/* About Stats */
.about-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.about-stat {
  text-align: center;
  background: var(--bve-gray-50);
  padding: 2rem;
  border-radius: 0.75rem;
  border: 1px solid var(--bve-gray-200);
}

.about-stat-number {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--bve-primary);
  margin-bottom: 0.5rem;
  line-height: 1;
  display: block;
}

.about-stat-label {
  font-size: 1rem;
  color: var(--bve-gray-600);
  margin: 0;
  line-height: 1.4;
}

/* ========== RESPONSIVE ABOUT SECTION ========== */
@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
  
  .about-content {
    order: 1;
  }
  
  .about-image {
    order: 2;
    height: 400px;
  }
  
  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
}

/* ========== SERVICES SECTION ========== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  position: relative;
  background: var(--bve-neutral-light);
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.service-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.service-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13, 71, 161, 0.8);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card:hover .service-overlay {
  opacity: 1;
}

.service-overlay-icon {
  width: 3rem;
  height: 3rem;
  color: var(--bve-accent);
}

.service-content {
  padding: 1.5rem;
}

.service-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.service-icon {
  background: rgba(66, 165, 245, 0.1);
  padding: 0.75rem;
  border-radius: 0.5rem;
  margin-right: 0.75rem;
}

.service-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--bve-secondary);
}

.service-title {
  font-family: var(--font-primary);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bve-primary);
}

.service-description {
  color: var(--bve-gray-600);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.service-link {
  color: var(--bve-secondary);
  text-decoration: none;
  font-weight: 500;
  font-family: var(--font-primary);
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

.service-link:hover {
  color: var(--bve-primary);
}

.service-link svg {
  margin-left: 0.5rem;
  width: 1rem;
  height: 1rem;
}

/* Responsive Services */
@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ========== PORTFOLIO SECTION ========== */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.project-card {
  position: relative;
  background: var(--bve-neutral-light);
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.project-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--bve-accent);
  color: var(--bve-neutral-dark);
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13, 71, 161, 0.8);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-content {
  padding: 1.5rem;
}

.project-title {
  font-family: var(--font-primary);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--bve-primary);
  margin: 0;
}

/* Responsive Portfolio */
@media (min-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========== CONTACT SECTION ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.contact-info {
  background: var(--bve-gray-50);
  padding: 2rem;
  border-radius: 0.75rem;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 3rem;
  height: 3rem;
  background: var(--bve-primary);
  color: var(--bve-neutral-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.contact-details h4 {
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  color: var(--bve-primary);
  margin-bottom: 0.25rem;
}

.contact-details p {
  font-size: 0.875rem;
  color: var(--bve-gray-600);
  margin: 0;
}

/* Contact Form */
.contact-form {
  background: var(--bve-neutral-light);
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-family: var(--font-primary);
  font-weight: 600;
  color: var(--bve-neutral-dark);
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--bve-gray-300);
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  background-color: var(--bve-neutral-light);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--bve-primary);
  box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Responsive Contact */
@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--bve-neutral-dark);
  color: var(--bve-neutral-light);
  padding: 3rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  font-family: var(--font-primary);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--bve-accent);
}

.footer-section p,
.footer-section a {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--bve-gray-300);
}

.footer-section a:hover {
  color: var(--bve-accent);
}

.footer-bottom {
  border-top: 1px solid var(--bve-gray-700);
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.875rem;
  color: var(--bve-gray-400);
  margin: 0;
}

/* Responsive Footer */
@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-content {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

/* ========== HEADER NAVIGATION - CLEAN REBUILD ========== */

/* Header Container */
.bve-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bve-neutral-light);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.bve-header-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem; /* 64px mobile */
}

@media (min-width: 768px) {
  .bve-header-container {
    height: 5rem; /* 80px desktop */
  }
}

/* ========== LOGO SECTION ========== */
.bve-logo {
  flex-shrink: 0;
}

.bve-logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: transform 0.2s ease;
  outline: none;
}

.bve-logo-link:hover {
  transform: scale(1.02);
}

.bve-logo-link:focus-visible {
  outline: 2px solid var(--bve-primary);
  outline-offset: 2px;
  border-radius: 0.25rem;
}

@media (min-width: 640px) {
  .bve-logo-link {
    gap: 1rem;
  }
}

.bve-logo-image {
  height: 2rem; /* 32px mobile */
  width: auto;
  max-width: 120px; /* Prevent oversized logos */
  object-fit: contain;
  transition: all 0.2s ease;
}

@media (min-width: 640px) {
  .bve-logo-image {
    height: 2.5rem; /* 40px tablet */
    max-width: 150px;
  }
}

@media (min-width: 768px) {
  .bve-logo-image {
    height: 3rem; /* 48px desktop */
    max-width: 200px;
  }
}

/* Text-only logo styling when no custom logo is set */
.bve-logo-text-only .bve-logo-text {
  display: flex !important;
}

.bve-logo-text-only .bve-logo-fallback {
  display: none;
}

/* Hide fallback logo if custom logo exists */
.bve-logo-link:not(.bve-logo-text-only) .bve-logo-fallback {
  display: none;
}

/* Ensure proper spacing when logo is present */
.bve-logo-image + .bve-logo-text {
  margin-left: 0.75rem;
}

@media (min-width: 640px) {
  .bve-logo-image + .bve-logo-text {
    margin-left: 1rem;
  }
}

.bve-logo-text {
  display: none;
  flex-direction: column;
  line-height: 1.1;
}

@media (min-width: 640px) {
  .bve-logo-text {
    display: flex;
  }
}

.bve-logo-primary {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--bve-primary);
  line-height: 1.2;
  margin: 0;
}

@media (min-width: 768px) {
  .bve-logo-primary {
    font-size: 1.25rem;
  }
}

.bve-logo-secondary {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--bve-secondary);
  line-height: 1.2;
  margin: 0;
}

@media (min-width: 768px) {
  .bve-logo-secondary {
    font-size: 0.875rem;
  }
}

/* ========== DESKTOP NAVIGATION ========== */
.bve-desktop-nav {
  display: none;
}

@media (min-width: 768px) {
  .bve-desktop-nav {
    display: block;
  }
}

.bve-nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .bve-nav-menu {
    gap: 2rem;
  }
}

.bve-nav-item {
  position: relative;
}

.bve-nav-link {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 1rem;
  color: var(--bve-gray-700);
  text-decoration: none;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
  position: relative;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.bve-nav-link:hover {
  color: var(--bve-secondary);
}

.bve-nav-link:focus-visible {
  outline: 2px solid var(--bve-primary);
  outline-offset: 2px;
  border-radius: 0.25rem;
}

/* Active state - Golden underline */
.bve-nav-active {
  color: var(--bve-primary) !important;
  border-bottom: 2px solid var(--bve-accent);
  padding-bottom: calc(0.5rem - 2px);
}

/* ========== HEADER ACTIONS ========== */
.bve-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .bve-header-actions {
    gap: 1rem;
  }
}

/* CTA Button */
.bve-cta-btn {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  background-color: var(--bve-accent);
  color: var(--bve-neutral-dark);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
  min-height: 40px;
}

@media (min-width: 640px) {
  .bve-cta-btn {
    display: inline-flex;
  }
}

.bve-cta-btn:hover {
  background-color: #FFB300;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(255, 193, 7, 0.3);
}

.bve-cta-btn:focus-visible {
  outline: 2px solid var(--bve-primary);
  outline-offset: 2px;
}

/* ========== MOBILE MENU TOGGLE ========== */
.bve-mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--bve-primary);
  transition: all 0.2s ease;
  border-radius: 0.25rem;
  min-height: 44px;
  min-width: 44px;
  position: relative;
}

@media (min-width: 768px) {
  .bve-mobile-toggle {
    display: none;
  }
}

.bve-mobile-toggle:hover {
  background-color: var(--bve-gray-100);
}

.bve-mobile-toggle:focus-visible {
  outline: 2px solid var(--bve-primary);
  outline-offset: 2px;
}

/* Hamburger Icon */
.bve-hamburger {
  display: block;
  position: relative;
  width: 24px;
  height: 18px;
}

.bve-hamburger-line {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 1px;
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.bve-hamburger-line:nth-child(1) {
  top: 0;
}

.bve-hamburger-line:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.bve-hamburger-line:nth-child(3) {
  bottom: 0;
}

/* Close Icon */
.bve-close {
  display: none;
  position: relative;
  width: 24px;
  height: 24px;
}

.bve-close-line {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 1px;
  position: absolute;
  left: 0;
  top: 50%;
  transform-origin: center;
}

.bve-close-line:nth-child(1) {
  transform: translateY(-50%) rotate(45deg);
}

.bve-close-line:nth-child(2) {
  transform: translateY(-50%) rotate(-45deg);
}

/* Toggle Active State */
.bve-mobile-toggle.active .bve-hamburger {
  display: none;
}

.bve-mobile-toggle.active .bve-close {
  display: block;
}

/* ========== MOBILE NAVIGATION ========== */
.bve-mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 40;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease;
}

.bve-mobile-nav.show {
  visibility: visible;
  opacity: 1;
}

.bve-mobile-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.bve-mobile-menu {
  position: absolute;
  top: 4rem; /* Below header */
  left: 0;
  right: 0;
  background: var(--bve-neutral-light);
  border-top: 1px solid var(--bve-gray-200);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

@media (min-width: 768px) {
  .bve-mobile-nav {
    display: none !important;
  }
}

.bve-mobile-nav.show .bve-mobile-menu {
  transform: translateY(0);
}

.bve-mobile-menu-content {
  padding: 1rem 0;
}

/* Mobile Menu Links */
.bve-mobile-link {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--bve-gray-700);
  text-decoration: none;
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 1rem;
  border-bottom: 1px solid var(--bve-gray-100);
  transition: all 0.2s ease;
  min-height: 48px;
  line-height: 1.5;
}

.bve-mobile-link:hover,
.bve-mobile-link:focus {
  background-color: var(--bve-gray-50);
  color: var(--bve-secondary);
  outline: none;
}

/* Mobile Active State */
.bve-mobile-active {
  color: var(--bve-primary) !important;
  background-color: rgba(255, 193, 7, 0.1) !important;
  border-right: 4px solid var(--bve-primary);
}

/* Mobile CTA Section */
.bve-mobile-cta {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--bve-gray-200);
  margin-top: 0.5rem;
}

.bve-mobile-cta-btn {
  display: block;
  width: 100%;
  padding: 0.75rem 1.5rem;
  background: var(--bve-accent);
  color: var(--bve-neutral-dark);
  font-family: var(--font-primary);
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  min-height: 48px;
  line-height: 1.5;
}

.bve-mobile-cta-btn:hover,
.bve-mobile-cta-btn:focus {
  background: #FFB300;
  transform: translateY(-1px);
  outline: none;
}

/* ========== ENSURE NO SPACING CONFLICTS ========== */
body {
  margin: 0;
  padding: 0;
}

.bve-header + * {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.hero-section {
  margin-top: 0 !important;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-menu-content {
  padding: 0;
  max-height: 80vh;
  overflow-y: auto;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
}

.mobile-menu-item {
  display: block;
  width: 100%;
  padding: 1rem 1.5rem;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1rem;
  color: var(--bve-gray-700);
  text-decoration: none;
  transition: all 0.2s ease;
  border-left: 4px solid transparent;
  min-height: 48px;
  line-height: 1.5;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu-item:hover,
.mobile-menu-item:focus {
  background-color: var(--bve-gray-50);
  color: var(--bve-secondary);
  outline: none;
}

.mobile-menu-item:active {
  background-color: var(--bve-gray-100);
}

/* Mobile active state */
.mobile-menu-item-active {
  color: var(--bve-primary) !important;
  background-color: rgba(255, 193, 7, 0.1) !important;
  border-left-color: var(--bve-primary) !important;
}

/* Mobile CTA Section */
.mobile-cta-section {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--bve-gray-200);
  margin-top: 0.5rem;
}

.mobile-cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.75rem 1.5rem;
  background-color: var(--bve-accent);
  color: var(--bve-neutral-dark);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
  min-height: 48px;
}

.mobile-cta-button:hover {
  background-color: #E6AC00;
}

.mobile-cta-button:focus-visible {
  outline: 2px solid var(--bve-primary);
  outline-offset: 2px;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 40;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ========== ACCESSIBILITY ========== */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Focus styles */
*:focus {
  outline: 2px solid var(--bve-primary);
  outline-offset: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--bve-primary);
  color: var(--bve-neutral-light);
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 100000;
}

.skip-link:focus {
  top: 6px;
}

/* ========== UTILITIES ========== */
.margin-bottom-0 { margin-bottom: 0 !important; }
.margin-bottom-1 { margin-bottom: 1rem !important; }
.margin-bottom-2 { margin-bottom: 2rem !important; }
.margin-bottom-3 { margin-bottom: 3rem !important; }

.padding-0 { padding: 0 !important; }
.padding-1 { padding: 1rem !important; }
.padding-2 { padding: 2rem !important; }
.padding-3 { padding: 3rem !important; }

.text-left { text-align: left !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }

.color-primary { color: var(--bve-primary) !important; }
.color-secondary { color: var(--bve-secondary) !important; }
.color-accent { color: var(--bve-accent) !important; }

.background-gray { background-color: var(--bve-gray-50) !important; }
.background-white { background-color: var(--bve-neutral-light) !important; }

/* ========== MAIN CONTENT OFFSET ========== */
.main-content {
  margin-top: 80px; /* Account for fixed header */
}

/* ========== TESTIMONIALS SECTION ========== */
.testimonials-section {
  background: var(--bve-neutral-light);
}

.testimonials-wrapper {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.testimonial-card {
  background: var(--bve-neutral-light);
  border: 0;
  border-radius: 0.75rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 2rem;
}

.testimonial-content {
  padding: 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .testimonial-content {
    padding: 2rem;
  }
}

/* Star Rating */
.testimonial-stars {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .testimonial-stars {
    margin-bottom: 1.5rem;
  }
}

.star-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--bve-accent);
}

@media (min-width: 768px) {
  .star-icon {
    width: 1.5rem;
    height: 1.5rem;
  }
}

/* Testimonial Quote */
.testimonial-quote {
  font-size: 1rem;
  color: var(--bve-gray-600);
  margin-bottom: 1rem;
  font-style: italic;
  line-height: 1.6;
  padding: 0 0.5rem;
}

@media (min-width: 768px) {
  .testimonial-quote {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
  }
}

/* Author Information */
.testimonial-author {
  margin-top: 1rem;
}

.testimonial-name {
  font-family: var(--font-primary);
  font-weight: 700;
  color: var(--bve-primary);
  font-size: 1rem;
  margin: 0 0 0.25rem 0;
}

@media (min-width: 768px) {
  .testimonial-name {
    font-size: 1.125rem;
  }
}

.testimonial-company {
  color: var(--bve-gray-500);
  font-size: 0.875rem;
  margin: 0;
}

@media (min-width: 768px) {
  .testimonial-company {
    font-size: 1rem;
  }
}

/* Navigation Dots */
.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .testimonial-dots {
    margin-top: 2rem;
  }
}

.testimonial-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  border: none;
  background: var(--bve-gray-300);
  cursor: pointer;
  transition: background-color 0.3s ease;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.testimonial-dot::after {
  content: '';
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--bve-gray-300);
  transition: background-color 0.3s ease;
}

@media (min-width: 768px) {
  .testimonial-dot::after {
    width: 1rem;
    height: 1rem;
  }
}

.testimonial-dot.active::after {
  background: var(--bve-accent);
}

.testimonial-dot:hover::after {
  background: var(--bve-accent);
}

/* ========== PRINT STYLES ========== */
@media print {
  .site-header,
  .mobile-menu-toggle,
  .hero-buttons,
  .btn {
    display: none !important;
  }
  
  .main-content {
    margin-top: 0;
  }
  
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
  }
}