/*
 * LongView Renovation - Consolidated CSS v1.0
 * Performance optimized stylesheet for all pages
 * Generated: December 2024
 */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  --lv-yellow: #f3c623;
  --lv-dark: #121212;
  --lv-gray-50: #f9fafb;
  --lv-gray-100: #f3f4f6;
  --lv-gray-600: #4b5563;
  --lv-gray-800: #1f2937;
  --lv-gray-900: #111827;
  
  /* Spacing Scale */
  --spacing-xs: 0.5rem;
  --spacing-sm: 0.75rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  
  /* Typography Scale */
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
}

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

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Roboto', 'Poppins', system-ui, -apple-system, sans-serif;
  color: var(--lv-gray-800);
  background-color: var(--lv-gray-50);
  line-height: 1.6;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--lv-gray-900);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
  margin-bottom: var(--spacing-md);
  color: var(--lv-gray-600);
}

a {
  color: var(--lv-yellow);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: #d1a91f; /* Darker yellow */
}

/* ===== UTILITY CLASSES ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }

.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: var(--lv-gray-600); }
.text-gray-700 { color: #374151; }
.text-black { color: black; }
.text-gray-800 { color: var(--lv-gray-800); }
.text-gray-900 { color: var(--lv-gray-900); }

.bg-white { background-color: white; }
.bg-gray-50 { background-color: var(--lv-gray-50); }
.bg-gray-100 { background-color: var(--lv-gray-100); }
.bg-yellow-400 { background-color: var(--lv-yellow); }
.bg-yellow-50 { background-color: #fefce8; }
.bg-black { background-color: var(--lv-dark); }

/* Image utilities */
.mx-auto { margin-left: auto; margin-right: auto; }
.w-2 { width: 0.5rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.w-32 { width: 8rem; }
.w-60 { width: 15rem; }

/* Additional responsive classes */
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }

.rounded { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: 9999px; }

.shadow { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

.transition { transition: all var(--transition-fast); }
.transition-colors { transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast); }
.transition-transform { transition: transform var(--transition-normal); }

/* Spacing utilities */
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }

.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }

.m-0 { margin: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }

.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-16 { margin-top: 4rem; }

/* Display utilities */
.flex { display: flex; }
.grid { display: grid; }
.block { display: block; }
.inline-block { display: inline-block; }
.hidden { display: none; }
.relative { position: relative; }
.absolute { position: absolute; }

/* Height utilities */
.h-2 { height: 0.5rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-24 { height: 6rem; }
.h-full { height: 100% !important; }
.h-\[70vh\] { height: 70vh !important; }
.h-\[600px\] { height: 600px; }

/* Force hero section sizing */
section.relative.h-\[70vh\] {
  height: 70vh !important;
  min-height: 500px !important;
  position: relative !important;
  overflow: hidden !important;
  background: url('../images/heroes/home-hero-01.webp') center/cover no-repeat !important;
}

section.relative.h-\[70vh\] img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  z-index: 1 !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
}

/* Hero image background div */
section.relative.h-\[70vh\] > div:first-child {
  background: url('../images/heroes/home-hero-01.webp') center/cover no-repeat !important;
  z-index: 1 !important;
}

/* Ensure overlay is above image */
section.relative.h-\[70vh\] .hero-content {
  z-index: 10 !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  background: rgba(0, 0, 0, 0.6) !important;
  color: white !important;
}

/* Hero title styling */
section.relative.h-\[70vh\] .hero-content h1 {
  color: white !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 0, 0, 0.5) !important;
  font-weight: 800 !important;
}

/* Hero subtitle styling */
section.relative.h-\[70vh\] .hero-content p {
  color: white !important;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7), 0 0 6px rgba(0, 0, 0, 0.4) !important;
  font-weight: 400 !important;
}

/* Background utilities */
.bg-opacity-50 { background-opacity: 0.5; }
.bg-black { background-color: black; }

/* Position utilities */
.inset-0 { 
  top: 0; 
  right: 0; 
  bottom: 0; 
  left: 0; 
}

.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

/* Additional positioning and sizing */
.mt-6 { margin-top: 1.5rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.transition { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

.w-full { width: 100%; }
.max-w-md { max-width: 28rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }

/* Grid utilities */
.grid-cols-1 { grid-template-columns: repeat(1, 1fr) !important; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr) !important; }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr) !important; }
.gap-4 { gap: 1rem !important; }
.gap-6 { gap: 1.5rem !important; }
.gap-8 { gap: 2rem !important; }

/* Force grid display */
.grid { 
  display: grid !important; 
}

/* Ensure grid items don't override */
.grid-item {
  display: block !important;
  width: auto !important;
}

/* Essential index.html classes */
.object-cover { object-fit: cover; }
.justify-center { justify-content: center; }
.flex-col { flex-direction: column; }
.text-white { color: white; }
.font-extrabold { font-weight: 800; }
.font-light { font-weight: 300; }
.drop-shadow-lg { filter: drop-shadow(0 10px 8px rgb(0 0 0 / 0.04)) drop-shadow(0 4px 3px rgb(0 0 0 / 0.1)); }
.bg-yellow-300 { background-color: #fde047; }
.hover\\:bg-yellow-300:hover { background-color: #fde047; }
.rounded-full { border-radius: 9999px; }

/* Typography responsive classes */
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-6xl { font-size: 3.75rem; line-height: 1; }

/* Responsive grid */
@media (min-width: 640px) {
  .sm\:grid-cols-2 { 
    grid-template-columns: repeat(2, 1fr) !important; 
  }
}

@media (min-width: 768px) {
  .md\:grid-cols-3 { 
    grid-template-columns: repeat(3, 1fr) !important; 
  }
  .md\:text-6xl { 
    font-size: 3.75rem !important; 
    line-height: 1 !important; 
  }
  .md\:text-2xl { 
    font-size: 1.5rem !important; 
    line-height: 2rem !important; 
  }
}

/* ===== COMPONENT STYLES ===== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-sm) var(--spacing-lg);
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  font-size: var(--text-base);
}

.btn-primary {
  background-color: var(--lv-yellow);
  color: var(--lv-dark);
}

.btn-primary:hover {
  background-color: #d1a91f;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: white;
  color: var(--lv-gray-800);
  border: 2px solid var(--lv-gray-300);
}

.btn-secondary:hover {
  border-color: var(--lv-yellow);
  color: var(--lv-yellow);
}

/* Cards */
.card {
  background-color: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: var(--spacing-xl);
  transition: all var(--transition-normal);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

/* =========================================================
   LONGVIEW HEADER SYSTEM — Full CSS
   Moved from components/header.html inline <style> to here
   so styles load reliably via <link> in <head> instead of
   depending on innerHTML-injected <style> parsing.
   ========================================================= */

/* --- Core Header Container --- */
#header-container {
    position: sticky;
    top: 0;
    z-index: 50;
}

.lv-main-header {
    background-color: #121212;
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    border-bottom: 2px solid #f3c623;
    overflow: visible;
    position: relative;
}

.lv-main-header.lv-scrolled {
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.2),
        0 4px 20px rgba(243, 198, 35, 0.12);
}

.lv-main-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, rgba(243, 198, 35, 0.5), rgba(255, 255, 255, 0.1), rgba(243, 198, 35, 0.5));
    background-size: 200% 100%;
    animation: lv-shimmer 3s infinite alternate;
}

@keyframes lv-shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.lv-logo-wrap {
    padding: 0.5rem 1rem;
    flex-shrink: 0;
}

.lv-brand-logo {
    height: 60px !important;
    width: auto !important;
    max-width: none !important;
    margin: 0;
    flex-shrink: 0;
}

@media (min-width: 1200px) {
    .lv-brand-logo {
        height: 80px !important;
    }
}

/* --- Logo Shimmer Effect ---
   Circular shimmer clipped to the round logo badge.
   Entry: single forward sweep after page load.
   Hover: sweep in. Unhover: sweep back out. */
.lv-logo-shimmer {
    position: relative;
    display: inline-block;
    overflow: hidden;
    border-radius: 50%;
    line-height: 0;
}

.lv-logo-shimmer .lv-brand-logo {
    display: block;
    border-radius: 50%;
    padding: 0;
    margin: 0;
}

/* Shimmer band — sits exactly on top of the logo circle */
.lv-logo-shimmer::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 30%,
        hsla(45, 90%, 70%, 0.10) 40%,
        hsla(45, 90%, 70%, 0.30) 50%,
        hsla(45, 90%, 70%, 0.10) 60%,
        transparent 70%
    );
    border-radius: 50%;
    pointer-events: none;
    transform: translateX(-100%);
}

/* Entry: single forward sweep (JS adds then removes this class) */
.lv-logo-shimmer.lv-shimmer-entry::after {
    animation: logoShimmerIn 1s ease-in-out;
}

/* Bidirectional hover — only active after JS adds .lv-shimmer-active
   on first mouseenter (prevents unwanted OUT sweep on page load) */
.lv-logo-shimmer.lv-shimmer-active::after {
    animation: logoShimmerOut 0.9s ease-in-out;
}
.lv-logo-wrap:hover .lv-logo-shimmer.lv-shimmer-active::after {
    animation: logoShimmerIn 0.9s ease-in-out;
}

@keyframes logoShimmerIn {
    from { transform: translateX(-100%); }
    to   { transform: translateX(100%); }
}

@keyframes logoShimmerOut {
    from { transform: translateX(100%); }
    to   { transform: translateX(-100%); }
}

@media (prefers-reduced-motion: reduce) {
    .lv-logo-shimmer::after {
        animation: none !important;
    }
}

/* --- Desktop Navigation --- */
.lv-desktop-nav {
    display: none;
    gap: 0.9rem;
    align-items: center;
    font-size: 0.85rem;
    flex: 1;
    justify-content: center;
}

.lv-nav-link {
    color: white;
    text-decoration: none;
    transition: color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.25rem 0;
}

.lv-nav-link:hover {
    color: #f3c623;
}

@media (min-width: 1200px) {
    .lv-desktop-nav {
        display: flex;
    }
    .lv-main-header {
        justify-content: space-between;
    }
}

/* --- Mobile Trigger (Hamburger) --- */
.lv-mobile-trigger {
    color: white;
    font-size: 1.875rem;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    min-height: 44px;
    min-width: 44px;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 100000;
}

.lv-mobile-trigger:hover,
.lv-mobile-trigger:active {
    background-color: rgba(243, 198, 35, 0.1);
    color: #f3c623;
}

.lv-mobile-trigger:focus {
    outline: 2px solid #f3c623;
    outline-offset: 2px;
}

@media (min-width: 1200px) {
    .lv-mobile-trigger {
        display: none;
    }
}

@media (max-width: 1199px) {
    .lv-main-header {
        justify-content: space-between;
        align-items: center;
    }
    .lv-mobile-trigger {
        flex-shrink: 0;
    }
}

/* --- Header Right (phone + weather + hamburger) --- */
.lv-header-right {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
}

/* --- Weather Widget: see "HEADER WEATHER WIDGET" section (line ~2586) --- */
/* Duplicate block removed 2026-02-25 — single source of truth below */

/* --- Desktop Dropdown System --- */
.lv-drop-container {
    position: relative;
    overflow: visible;
}

.lv-drop-trigger {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    color: white;
    text-decoration: none;
    transition: color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.lv-drop-trigger:hover {
    color: #f3c623;
}

.lv-drop-arrow {
    display: inline-block;
    font-size: 0.6em;
    line-height: 1;
    transition: transform 0.2s ease;
    transform: rotate(0deg);
}

.lv-drop-container:hover .lv-drop-arrow {
    transform: rotate(180deg);
}

.lv-drop-menu {
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    background-color: #121212;
    color: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 9999;
    border: 1px solid rgba(243, 198, 35, 0.3);
    border-radius: 4px;
    padding-top: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.lv-drop-container:hover .lv-drop-menu,
.lv-drop-menu:hover {
    display: block !important;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lv-drop-container::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 8px;
    background: transparent;
    z-index: 9998;
}

.lv-drop-item {
    padding: 12px 16px !important;
    display: block !important;
    border-bottom: 1px solid rgba(243, 198, 35, 0.06);
    transition: background-color 0.25s ease, color 0.25s ease, padding-left 0.25s ease;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.lv-drop-item:hover {
    background-color: rgba(243, 198, 35, 0.08) !important;
    color: #f3c623;
    padding-left: 20px !important;
}

.lv-drop-item:last-child {
    border-bottom: none;
}

/* --- Mobile Panel ---
   Glassmorphism-to-solid entrance:
   Base layer = frosted glass (semi-transparent bg + backdrop-blur).
   ::before pseudo = the opaque dark gradient, starts at opacity 0.
   On .lv-active the ::before fades to opacity 1 over 0.7s (delayed
   0.15s so the glass is visible during the first frames of slide-in).
   Result: frosted translucent → fully opaque dark, smooth opacity tween.
   CSS can't transition between rgba() and linear-gradient(), so the
   ::before opacity approach guarantees a smooth interpolation. */
.lv-mobile-panel {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: min(85vw, 20rem);
    background: rgba(18, 18, 18, 0.45);
    color: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0s linear 0.4s,
                backdrop-filter 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.15s,
                -webkit-backdrop-filter 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.15s,
                border-color 0.7s ease 0.15s,
                box-shadow 0.7s ease 0.15s;
    z-index: 99999;
    overflow-y: auto;
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    backdrop-filter: blur(24px) saturate(1.4);
    border-right: 2px solid rgba(243, 198, 35, 0.12);
    will-change: transform;
    visibility: hidden;
    pointer-events: none;
}

/* Opaque gradient overlay — fades in over the glass.
   z-index 0 paints above the panel background; nav content
   gets position:relative + z-index:1 via .lv-mobile-nav. */
.lv-mobile-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #121212 0%, #1a1a1a 50%, #121212 100%);
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.15s;
    z-index: 0;
    border-radius: inherit;
    pointer-events: none;
}

.lv-mobile-panel.lv-active {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0s linear 0s,
                backdrop-filter 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.15s,
                -webkit-backdrop-filter 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.15s,
                border-color 0.7s ease 0.15s,
                box-shadow 0.7s ease 0.15s;
    pointer-events: auto;
    -webkit-backdrop-filter: blur(0px) saturate(1);
    backdrop-filter: blur(0px) saturate(1);
    border-right-color: rgba(243, 198, 35, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lv-mobile-panel.lv-active::before {
    opacity: 1;
}

/* --- Mobile Backdrop ---
   Blur eases in gracefully (0.7s) on open, normal speed (0.4s) on close. */
.lv-mobile-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    -webkit-backdrop-filter: blur(0px);
    backdrop-filter: blur(0px);
    /* Exit timing — normal, responsive */
    transition: opacity 0.4s ease,
                visibility 0s linear 0.4s,
                -webkit-backdrop-filter 0.4s ease,
                backdrop-filter 0.4s ease;
    z-index: 9998;
    pointer-events: none;
}

.lv-mobile-backdrop.lv-active {
    opacity: 1;
    visibility: visible;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    pointer-events: auto;
    /* Entry timing — slower, graceful */
    transition: opacity 0.7s ease,
                visibility 0s linear 0s,
                -webkit-backdrop-filter 0.7s ease,
                backdrop-filter 0.7s ease;
}

/* --- Mobile Panel Header Row ---
   Flex container at the top of the panel. Houses the logo/close
   morphing button. Nav flows naturally below — no absolute hacks. */
.lv-mobile-panel-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid rgba(243, 198, 35, 0.1);
}

/* --- Mobile Close Button (Logo-to-X Morphing Dismiss Target) ---
   On hover the logo cross-dissolves into a spinning × glyph. */
.lv-mobile-close {
    background: transparent;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(243, 198, 35, 0.28);
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.25s ease,
                border-color 0.3s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    overflow: hidden;
    padding: 0;
    flex-shrink: 0;
}

/* Logo image — default visible state */
.lv-mobile-close .lv-close-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 54px;
    height: 54px;
    object-fit: contain;
    opacity: 1;
    transition: opacity 0.25s ease-in-out;
    pointer-events: none;
}

/* × glyph — hidden by default, revealed on hover */
.lv-mobile-close .lv-close-x {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    font-size: 1.75rem;
    font-weight: 300;
    line-height: 1;
    color: #f3c623;
    opacity: 0;
    transition: opacity 0.25s ease-in-out,
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

/* Hover / focus: cross-dissolve morph — logo fades out, × spins in */
.lv-mobile-close:hover .lv-close-logo,
.lv-mobile-close:focus-visible .lv-close-logo {
    opacity: 0;
}
.lv-mobile-close:hover .lv-close-x,
.lv-mobile-close:focus-visible .lv-close-x {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(180deg);
}
.lv-mobile-close:hover,
.lv-mobile-close:focus-visible {
    background: rgba(243, 198, 35, 0.08);
    border-color: rgba(243, 198, 35, 0.55);
    box-shadow: 0 0 20px rgba(243, 198, 35, 0.12);
    transform: scale(1.05);
}

/* Active press feedback */
.lv-mobile-close:active {
    transform: scale(0.95);
}

.lv-mobile-close:focus {
    outline: 2px solid #f3c623;
    outline-offset: 4px;
}

/* --- Mobile Nav Links --- */
.lv-mobile-nav {
    position: relative;
    z-index: 1;
    margin-top: 0;
    padding: 1rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.lv-mobile-link {
    display: block;
    color: white;
    text-decoration: none;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    overflow: hidden;
    background: transparent;
    border: 1px solid transparent;
}

.lv-mobile-link:hover,
.lv-mobile-link:active {
    color: #f3c623;
    background: rgba(243, 198, 35, 0.1);
    border-color: rgba(243, 198, 35, 0.3);
    transform: translateX(4px);
}

.lv-mobile-link:focus {
    outline: 2px solid #f3c623;
    outline-offset: 2px;
}

/* --- Mobile Dropdown System --- */
.lv-mobile-dropdown-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    text-align: left;
    padding: 1rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.lv-mobile-dropdown-btn:hover,
.lv-mobile-dropdown-btn:active {
    background: rgba(243, 198, 35, 0.1);
    border-color: rgba(243, 198, 35, 0.3);
    color: #f3c623;
}

.lv-mobile-dropdown-btn:focus {
    outline: 2px solid #f3c623;
    outline-offset: 2px;
}

.lv-mobile-label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.lv-mobile-arrow {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.875rem;
    color: #f3c623;
}

.lv-mobile-arrow.lv-rotated {
    transform: rotate(180deg);
    color: #f3c623;
}

.lv-mobile-submenu {
    max-height: 0;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(243, 198, 35, 0.05));
    margin-left: 1rem;
    border-left: 2px solid #f3c623;
    margin-top: 0.5rem;
    border-radius: 0 8px 8px 0;
    padding: 0.25rem 0.75rem 0.25rem 0.75rem;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
}

.lv-mobile-submenu.lv-open {
    max-height: 300px;
    opacity: 1;
}

.lv-mobile-submenu .lv-mobile-link {
    margin-left: 0;
    padding: 0.75rem 0.75rem;
    font-size: 0.9rem;
}

@media (min-width: 1200px) {
    .lv-mobile-panel {
        display: none;
    }
}

/* --- Focus Styles --- */
.lv-nav-link:focus,
.lv-drop-item:focus,
.lv-mobile-link:focus {
    outline: none;
}
.lv-nav-link:focus-visible,
.lv-drop-item:focus-visible,
.lv-mobile-link:focus-visible {
    outline: 2px solid rgba(243, 198, 35, 0.6);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== BLOG STYLES ===== */
.blog-header {
  background: white;
  padding: 2rem 1rem;
}

.blog-section {
  background: linear-gradient(to bottom, #f8fafc 0%, #f1f5f9 100%);
}

#blog-posts-grid .blog-card {
  background: white !important;
  border-radius: var(--radius-xl) !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: var(--shadow-md) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 1.5rem !important;
  position: relative !important;
  overflow: visible !important;
  margin: 0.25rem !important;
}

#blog-posts-grid .blog-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: var(--shadow-xl) !important;
  border-color: #d1d5db !important;
}

/* Category Pills */
.pill-filter {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  border: 2px solid #e5e7eb;
  background-color: white;
  color: var(--lv-gray-600);
  font-weight: 500;
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pill-filter:hover {
  border-color: var(--lv-yellow);
  background-color: #fef3c7;
}

.pill-filter.active {
  background-color: var(--lv-yellow);
  border-color: var(--lv-yellow);
  color: var(--lv-dark);
}

/* Newsletter Section */
#omaha-newsletter {
  width: 100%;
  background-color: var(--lv-gray-50);
  padding: 2.5rem 1rem;
}

#omaha-newsletter .newsletter-card {
  max-width: 36rem;
  margin: 0 auto;
  background-color: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid #e5e7eb;
  padding: 2rem 1.25rem;
}

/* ===== HERO SECTION STYLES ===== */
.hero-section {
  position: relative;
  height: 70vh;
  min-height: 500px;
  max-height: 800px;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  padding: 1rem;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.125rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
  max-width: 600px;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.75rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
}

/* ===== HOMEPAGE GRID STYLES ===== */
.grid-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.grid-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
  opacity: 0.8;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.grid-item:hover::before {
  background: linear-gradient(135deg, rgba(255, 220, 100, 0.2), rgba(243, 198, 35, 0.15));
  opacity: 0.9;
}

.grid-item .overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 1.875rem;
  font-weight: 600;
  text-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.8),
    0 0 1px rgba(0, 0, 0, 0.9);
  -webkit-text-stroke: 0.3px rgba(0, 0, 0, 0.4);
  text-align: center;
  z-index: 2;
  white-space: nowrap;
  padding: 0 1rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.5px;
}

.grid-item:hover .overlay-text {
  transform: translate(-50%, -50%) translateY(-3px);
  text-shadow: 
    0 2px 6px rgba(0, 0, 0, 0.7),
    0 0 20px rgba(243, 198, 35, 0.3);
  -webkit-text-stroke: 0.3px rgba(243, 198, 35, 0.4);
  letter-spacing: 1.5px;
}

.grid-item:hover img {
  transform: scale(1.08);
}

.grid-item:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
}

/* Hero section animations */
@keyframes slideInFromLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

#why-title {
  animation: slideInFromLeft 1s ease-out;
  color: rgba(243, 198, 35, 0.8);
}

/* Hover effects for enhanced interactivity */
.hover-glow {
  position: relative;
  overflow: hidden;
}

.hover-glow::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid transparent;
  border-image: linear-gradient(90deg, rgba(243, 198, 35, 0.5), rgba(255, 255, 255, 0.1), rgba(243, 198, 35, 0.5));
  border-image-slice: 1;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.hover-glow:hover::after {
  opacity: 1;
}

.hover-grow {
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.hover-grow:hover {
  transform: scale(1.1);
}

/* ===== CAROUSEL STYLES ===== */
.carousel-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.carousel-track {
  display: flex;
  transition: transform var(--transition-slow);
}

.carousel-slide {
  min-width: 100%;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(18, 18, 18, 0.8);
  color: white;
  border: none;
  padding: 0.75rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast);
}

.carousel-nav:hover {
  background-color: var(--lv-yellow);
  color: var(--lv-dark);
}

.carousel-prev {
  left: 1rem;
}

.carousel-next {
  right: 1rem;
}

.carousel-indicators {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.carousel-dot.active {
  background-color: var(--lv-yellow);
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Mobile First - Default styles above are mobile */

/* Tablet (768px and up) */
@media (min-width: 768px) {
  .container {
    padding: 0 var(--spacing-lg);
  }
  
  .md\\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .md\\:text-3xl {
    font-size: var(--text-3xl);
  }
  
  .md\\:text-4xl {
    font-size: var(--text-4xl);
  }
  
  .md\\:py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
  
  #omaha-newsletter {
    padding: 4rem 1rem;
  }
  
  #omaha-newsletter .newsletter-card {
    padding: 2.5rem 2rem;
  }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
  .lg\\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .lg\\:text-5xl {
    font-size: 3rem;
  }
}

/* Large Desktop (1280px and up) */
@media (min-width: 1280px) {
  .xl\\:grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== ACCESSIBILITY & FOCUS STATES ===== */
.lv-nav-link:focus,
.lv-drop-item:focus,
.lv-mobile-link:focus,
.btn:focus {
  outline: none;
}
.lv-nav-link:focus-visible,
.lv-drop-item:focus-visible,
.lv-mobile-link:focus-visible,
.btn:focus-visible {
  outline: 2px solid rgba(243, 198, 35, 0.6);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
.will-change-transform {
  will-change: transform;
}

.transform-gpu {
  transform: translateZ(0);
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== MOBILE COMPONENT OPTIMIZATION ===== */

/* Mobile touch optimization */
* {
  -webkit-tap-highlight-color: rgba(243, 198, 35, 0.2);
  -webkit-touch-callout: none;
}

/* Allow text selection for content areas */
p, span, div:not(.grid-item):not(.lv-mobile-link), 
.content-text, .service-description {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* Mobile-optimized buttons and interactive elements */
.grid-item, .lv-mobile-link {
  touch-action: manipulation;
  min-height: 44px; /* iOS accessibility requirement */
  position: relative;
  overflow: hidden;
}

/* Enhanced touch feedback — grid items only (not .btn, which leaks into blog pages) */
.grid-item::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(243, 198, 35, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.grid-item:active::after {
  width: 200%;
  height: 200%;
}

/* Mobile typography scaling */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  h1 {
    font-size: 1.75rem;
    line-height: 1.2;
  }
  
  h2 {
    font-size: 1.5rem;
    line-height: 1.3;
  }
  
  h3 {
    font-size: 1.25rem;
    line-height: 1.4;
  }
  
  p {
    font-size: 1rem;
    line-height: 1.6;
  }
}

/* Mobile-first grid optimization */
@media (max-width: 768px) {
  .grid-container {
    padding: 1rem 0.5rem;
    gap: 0.75rem !important;
  }
  
  .grid-item {
    border-radius: 12px;
    min-height: 120px;
  }
  
  .overlay-text {
    font-size: 0.875rem !important;
    padding: 0.5rem !important;
    line-height: 1.2 !important;
  }
}

/* Mobile spacing optimization */
@media (max-width: 768px) {
  .py-8 { padding-top: 2rem; padding-bottom: 2rem; }
  .py-12 { padding-top: 3rem; padding-bottom: 3rem; }
  .py-16 { padding-top: 4rem; padding-bottom: 4rem; }
  .px-4 { padding-left: 1rem; padding-right: 1rem; }
  .mb-8 { margin-bottom: 1.5rem; }
  .mb-12 { margin-bottom: 2rem; }
}

/* Mobile hero optimization */
@media (max-width: 768px) {
  section.relative.h-\[70vh\] {
    height: 60vh !important;
    min-height: 400px !important;
  }
  
  .hero-content {
    padding: 1rem !important;
  }
  
  .hero-title {
    font-size: 1.75rem !important;
    margin-bottom: 0.75rem !important;
  }
  
  .hero-subtitle {
    font-size: 1rem !important;
    margin-bottom: 1.5rem !important;
  }
}

/* Mobile card optimization */
@media (max-width: 768px) {
  .card {
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
  }
  
  .card p {
    font-size: 0.875rem;
    line-height: 1.5;
  }
}

/* Mobile form optimization */
@media (max-width: 768px) {
  input, textarea, select {
    min-height: 48px;
    font-size: 16px; /* Prevents zoom on iOS */
    border-radius: 8px;
    padding: 0.75rem 1rem;
  }
  
  label {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
  }
}

/* Mobile image optimization */
@media (max-width: 768px) {
  img {
    height: auto;
    max-width: 100%;
    border-radius: 8px;
  }
  
  .service-image {
    aspect-ratio: 16/10;
    object-fit: cover;
  }
}

/* Mobile-specific animations */
@media (prefers-reduced-motion: no-preference) and (max-width: 768px) {
  .grid-item {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  
  .grid-item:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Mobile performance optimizations */
@media (max-width: 768px) {
  /* Optimize rendering for mobile */
  .grid-item, .card, .btn {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }
  
  /* Optimize scrolling */
  .scrollable {
    -webkit-overflow-scrolling: touch;
    overflow-scrolling: touch;
  }
}

/* Mobile-specific dark mode support */
@media (prefers-color-scheme: dark) and (max-width: 768px) {
  body {
    background-color: #0a0a0a;
    color: #e5e5e5;
  }
  
  .card {
    background-color: #1a1a1a;
    border: 1px solid #333;
  }
}

/* ===== MICRO-INTERACTIONS & ANIMATIONS ===== */

/* Smooth entrance animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

/* Enhanced button interactions */
.btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Enhanced grid item interactions */
.grid-item {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.grid-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.grid-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(243, 198, 35, 0.1) 50%,
    transparent 70%
  );
  background-size: 200% 200%;
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: shimmer 2s infinite;
  pointer-events: none;
  z-index: 1;
}

.grid-item:hover::before {
  opacity: 1;
}

/* Card hover effects */
.card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Navigation link interactions */
.lv-nav-link {
  position: relative;
}

.lv-nav-link::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #f3c623;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1), left 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.lv-nav-link:hover::before {
  width: 100%;
  left: 0;
}

/* Hero section animations */
.hero-content > * {
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
}

.hero-content > *:nth-child(1) { animation-delay: 0.2s; }
.hero-content > *:nth-child(2) { animation-delay: 0.4s; }
.hero-content > *:nth-child(3) { animation-delay: 0.6s; }

/* Section entrance animations */
.animated-section {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animated-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Grid container staggered animation */
.grid-container .grid-item {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.grid-container .grid-item:nth-child(1) { animation-delay: 0.1s; }
.grid-container .grid-item:nth-child(2) { animation-delay: 0.2s; }
.grid-container .grid-item:nth-child(3) { animation-delay: 0.3s; }
.grid-container .grid-item:nth-child(4) { animation-delay: 0.4s; }
.grid-container .grid-item:nth-child(5) { animation-delay: 0.5s; }
.grid-container .grid-item:nth-child(6) { animation-delay: 0.6s; }

/* Loading skeleton animations */
.skeleton {
  background: linear-gradient(
    90deg,
    #f0f0f0 25%,
    #e0e0e0 50%,
    #f0f0f0 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Form field focus animations */
input:focus,
textarea:focus,
select:focus {
  transform: scale(1.02);
  box-shadow: 0 0 0 3px rgba(243, 198, 35, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Success/error state animations */
.form-success {
  animation: pulse 2s ease-in-out;
  color: #10b981;
}

.form-error {
  animation: shake 0.5s ease-in-out;
  color: #ef4444;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
  20%, 40%, 60%, 80% { transform: translateX(4px); }
}

/* Image loading animations */
img {
  transition: opacity 0.3s ease-in-out;
}

img[data-loaded="true"] {
  animation: fadeInScale 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scroll-triggered animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Floating action effects */
.floating-element {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Counter animation */
.counter {
  transition: all 0.3s ease;
}

.counter.counting {
  color: #f3c623;
  font-weight: bold;
}

/* Progress bar animations */
.progress-bar {
  background: linear-gradient(
    90deg,
    #f3c623 0%,
    #fbbf24 50%,
    #f3c623 100%
  );
  background-size: 200% 100%;
  animation: progress-shimmer 2s infinite;
}

@keyframes progress-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Reduce animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .grid-item,
  .btn,
  .card,
  .hero-content > *,
  .animated-section,
  .scroll-reveal {
    animation: none !important;
    transition: none !important;
  }
  
  .grid-item:hover,
  .btn:hover,
  .card:hover {
    transform: none !important;
  }
}

/* ===== CONVERSION OPTIMIZER STYLES ===== */

/* Exit Intent Modal */
.conversion-exit-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.conversion-exit-modal.active {
  opacity: 1;
  visibility: visible;
}

.conversion-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.conversion-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: white;
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.conversion-exit-modal.active .conversion-modal-content {
  transform: translate(-50%, -50%) scale(1);
}

.conversion-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(0, 0, 0, 0.8);
  font-size: 20px;
  color: #555;
  cursor: pointer;
  padding: 0;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
  line-height: 1;
  font-family: monospace;
  backdrop-filter: blur(8px);
  z-index: 10;
}

.conversion-modal-close:hover {
  background: rgba(255, 255, 255, 1) !important;
  border-color: rgba(0, 0, 0, 1) !important;
  color: var(--lv-dark) !important;
  transform: rotate(360deg) scale(1.15) !important;
  box-shadow: 0 8px 20px rgba(243, 198, 35, 0.25), 0 4px 8px rgba(0, 0, 0, 0.15) !important;
}

/* Floating CTAs */
.conversion-floating-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 350px;
}

.conversion-floating-cta.active {
  transform: translateY(0);
  opacity: 1;
}

.conversion-cta-content {
  background: linear-gradient(135deg, #f3c623, #fbbf24);
  color: #121212;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.conversion-cta-message {
  font-weight: 600;
  flex: 1;
  font-size: 14px;
  line-height: 1.4;
}

.conversion-cta-button {
  background: white;
  color: #121212;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  white-space: nowrap;
}

.conversion-cta-button:hover {
  background: #f9f9f9;
  transform: scale(1.05);
}

.conversion-cta-close {
  position: absolute;
  top: -6px;
  right: -6px;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(0, 0, 0, 0.8);
  color: rgba(18, 18, 18, 0.7);
  cursor: pointer;
  font-size: 16px;
  padding: 0;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.1);
  line-height: 1;
  font-family: monospace;
  backdrop-filter: blur(8px);
  z-index: 10;
}

.conversion-cta-close:hover {
  color: #121212 !important;
  background: rgba(255, 255, 255, 1) !important;
  border-color: rgba(0, 0, 0, 1) !important;
  transform: rotate(360deg) scale(1.15) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25), 0 3px 6px rgba(0, 0, 0, 0.15) !important;
}

/* Urgency Banner */
.conversion-urgency-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.conversion-urgency-banner.active {
  transform: translateY(0);
}

.urgency-content {
  background: linear-gradient(90deg, #ef4444, #dc2626);
  color: white;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 14px;
  font-weight: 600;
  position: relative;
}

.urgency-icon .material-icons {
  font-size: 18px;
  animation: pulse 2s infinite;
  vertical-align: middle;
}

.urgency-text {
  flex: 1;
  text-align: center;
}

.urgency-cta {
  background: white;
  color: #dc2626;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  font-size: 14px;
}

.urgency-cta:hover {
  background: #f9f9f9;
  transform: scale(1.05);
}

.urgency-close {
  position: absolute;
  right: 16px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  font-size: 18px;
  padding: 4px;
}

.urgency-close:hover {
  color: white;
}

.urgency-close .material-icons {
  font-size: 16px;
  vertical-align: middle;
}

/* Activity Notifications */
.conversion-activity-notification {
  position: fixed;
  bottom: 80px;
  left: 20px;
  z-index: 9997;
  transform: translateX(-100%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 300px;
}

.conversion-activity-notification.active {
  transform: translateX(0);
  opacity: 1;
}

.activity-content {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
}

.activity-icon {
  width: 32px;
  height: 32px;
  background: #f3c623;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.activity-message {
  font-size: 13px;
  color: #374151;
  line-height: 1.4;
}

/* Form Validation Styles */
.validation-feedback {
  font-size: 12px;
  margin-top: 4px;
  padding: 4px 8px;
  border-radius: 4px;
}

.validation-feedback.error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.validation-feedback.success {
  background: #f0f9f4;
  color: #059669;
  border: 1px solid #bbf7d0;
}

input.valid, textarea.valid, select.valid {
  border-color: #10b981;
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.1);
}

input.invalid, textarea.invalid, select.invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.1);
}

/* Conversion Success Animation */
.conversion-success {
  animation: conversionPulse 1s ease-in-out;
  background: #10b981 !important;
  color: white !important;
}

@keyframes conversionPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
  }
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .conversion-floating-cta {
    bottom: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
  
  .conversion-cta-content {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  
  .conversion-activity-notification {
    bottom: 70px;
    left: 10px;
    right: 10px;
    max-width: none;
  }
  
  .conversion-modal-content {
    margin: 20px;
    width: calc(100% - 40px);
  }
  
  .urgency-content {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 16px;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .conversion-floating-cta,
  .conversion-exit-modal,
  .conversion-urgency-banner,
  .conversion-activity-notification {
    transition: none !important;
    animation: none !important;
  }
}

/* ===== CONVERSION OPTIMIZER STYLES ===== */

/* Professional Close Button for Floating CTAs */
.conversion-cta-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.1);
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 16px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 200ms ease;
  z-index: 10;
  line-height: 1;
}

.conversion-cta-close:hover {
  background: rgba(0, 0, 0, 0.15);
  color: rgba(0, 0, 0, 0.8);
  transform: scale(1.05);
}

.conversion-cta-close:active {
  transform: scale(0.95);
}

.conversion-cta-close .material-icons {
  font-size: 14px;
  vertical-align: middle;
}

/* Floating CTA Container */
.conversion-floating-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  max-width: 380px;
  width: calc(100vw - 40px);
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 480px) {
  .conversion-floating-cta {
    width: 380px;
  }
}

.conversion-floating-cta.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.conversion-cta-content {
  background: white;
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 
    0 10px 25px rgba(0, 0, 0, 0.15),
    0 4px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(243, 198, 35, 0.2);
  position: relative;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* CTA Message Styling */
.conversion-cta-message {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 12px;
  line-height: 1.4;
  padding-right: 20px;
}

/* CTA Button Styling */
.conversion-cta-button {
  background: linear-gradient(135deg, #f3c623 0%, #f59e0b 100%);
  color: #000;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 200ms ease;
  width: 100%;
  margin-top: 8px;
  box-shadow: 0 2px 8px rgba(243, 198, 35, 0.25);
}

.conversion-cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(243, 198, 35, 0.4);
  background: linear-gradient(135deg, #f59e0b 0%, #eab308 100%);
}

.conversion-cta-button:active {
  transform: translateY(0);
}

/* Urgency Banner Close Button */
.urgency-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 16px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 200ms ease;
}

.urgency-close:hover {
  background: rgba(255, 255, 255, 0.3);
  color: white;
  transform: scale(1.1);
}

/* Exit Intent Modal Close Button */
.conversion-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.1);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 20px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 200ms ease;
  z-index: 20;
}

.conversion-modal-close:hover {
  background: rgba(0, 0, 0, 0.2);
  color: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

/* ===== SHARED FOOTER TRUST LINE ===== */
.footer-trust {
    font-family: 'Roboto', sans-serif;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.35);
    text-align: center;
    letter-spacing: 0.04em;
    margin-bottom: 0;
}

/* ===== HEADER WEATHER WIDGET ===== */
.lv-weather-widget {
    display: none;
    align-items: center;
    gap: 0.55rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(243,198,35,0.06) 100%);
    border: 1px solid rgba(243,198,35,0.45);
    border-radius: 28px;
    padding: 0.4rem 0.9rem 0.4rem 0.65rem;
    font-family: 'Roboto', sans-serif;
    font-size: 0.8rem;
    white-space: nowrap;
    color: white;
    line-height: 1.2;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow:
        0 0 14px rgba(243,198,35,0.1),
        0 2px 8px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.1),
        inset 0 -1px 0 rgba(0,0,0,0.15);
    letter-spacing: 0.02em;
    transition: opacity 0.5s ease;
}

.lv-weather-widget.lv-weather-active {
    display: flex;
}

.lv-weather-widget .lv-weather-icon {
    font-size: 1rem;
    line-height: 1;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.4));
}

.lv-weather-widget .lv-weather-temp {
    color: #f3c623;
    font-weight: 700;
    font-size: 0.85rem;
    text-shadow: 0 0 12px rgba(243,198,35,0.3);
}

.lv-weather-widget .lv-weather-sep {
    width: 1px;
    height: 14px;
    background: rgba(243,198,35,0.35);
    flex-shrink: 0;
}

.lv-weather-widget .lv-weather-label {
    color: rgba(255,255,255,0.65);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.lv-weather-widget .lv-weather-nowcast {
    color: #fff;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
}

/* ── Nowcast Severity Tiers ── */
.lv-weather-nowcast[data-tier="clear"] {
    color: #f3c623;
}
.lv-weather-nowcast[data-tier="watch"] {
    color: #fbbf24;
}
.lv-weather-nowcast[data-tier="approaching"] {
    color: #f97316;
    animation: lv-nowcast-pulse 2.5s ease-in-out infinite;
}
.lv-weather-nowcast[data-tier="active"] {
    color: #67e8f9;
}
.lv-weather-nowcast[data-tier="severe"] {
    position: relative;
    color: #ef4444;
    font-weight: 700;
    text-shadow: 0 0 6px rgba(239,68,68,0.5), 0 0 12px rgba(239,68,68,0.25);
}
.lv-weather-nowcast[data-tier="severe"]::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 1px;
    background: repeating-linear-gradient(
        -45deg,
        rgba(239,68,68,0.85) 0px, rgba(239,68,68,0.85) 3px,
        rgba(180,30,30,0.85) 3px, rgba(180,30,30,0.85) 6px
    );
    background-size: 8.485px 8.485px;
    animation: lv-barber-scroll-sm 0.8s linear infinite;
}
@keyframes lv-nowcast-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.65; }
}
@keyframes lv-barber-scroll-sm {
    from { background-position: 0 0; }
    to { background-position: 8.485px 0; }
}
@media (prefers-reduced-motion: reduce) {
    .lv-weather-nowcast[data-tier="approaching"] {
        animation: none;
    }
    .lv-weather-nowcast[data-tier="severe"]::after {
        animation: none;
    }
}

.lv-weather-widget .lv-weather-loc {
    display: inline-flex;
    align-items: center;
    gap: 0.2em;
    color: rgba(255,255,255,0.45);
    text-transform: none;
    letter-spacing: 0;
}

.lv-weather-widget .lv-weather-pin {
    flex-shrink: 0;
    opacity: 0.6;
}

@media (max-width: 1199px) {
    .lv-header-right {
        position: relative;
    }
    .lv-weather-widget.lv-weather-active {
        position: absolute;
        right: calc(100% + 0.5rem);
        top: 50%;
        transform: translateY(-50%);
    }
    .lv-weather-widget .lv-weather-label,
    .lv-weather-widget .lv-weather-sep {
        display: none;
    }
    .lv-weather-widget {
        gap: 0.4rem;
        padding: 0.35rem 0.7rem 0.35rem 0.55rem;
        font-size: 0.75rem;
    }
}

/* Phones: cancel absolute positioning, return to normal flex flow */
@media (max-width: 480px) {
    .lv-header-right {
        min-width: 0;
    }
    .lv-weather-widget.lv-weather-active {
        position: static;
        transform: none;
    }
    .lv-weather-widget {
        padding: 0.25rem 0.5rem 0.25rem 0.4rem;
        font-size: 0.7rem;
        gap: 0.3rem;
        order: -1;
        max-width: 100%;
        flex-shrink: 0;
    }
    .lv-weather-widget .lv-weather-temp {
        font-size: 0.75rem;
    }
    .lv-weather-widget .lv-weather-icon {
        font-size: 0.85rem;
    }
    .lv-mobile-trigger {
        flex-shrink: 0;
    }
}

/* Only hide on truly tiny screens (<320px) */
@media (max-width: 320px) {
    .lv-weather-widget {
        display: none !important;
    }
}

/* ===== MOBILE NOWCAST TICKER ===== */
/* Thin fixed bar below header — visible only on mobile/tablet (321–1199px) */

/* Two-phase reveal: text rises first → frosted glass materializes behind it */
.lv-nowcast-ticker {
    position: fixed;
    top: var(--lv-header-h, 64px);
    left: 0;
    right: 0;
    z-index: 48;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    height: 32px;
    padding: 0 1rem;
    /* Phase 2: background starts transparent, fades in after text */
    background: rgba(10, 15, 26, 0);
    border-bottom: 1px solid rgba(255, 255, 255, 0);
    background-image: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.45) 40%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0.45) 60%, transparent);
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: 100% 0px;
    -webkit-backdrop-filter: blur(0px) saturate(1);
    backdrop-filter: blur(0px) saturate(1);
    font-family: Poppins, sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 7%,
        black 93%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 7%,
        black 93%,
        transparent 100%
    );
    opacity: 0;
    transform: translateY(0);
    pointer-events: none;
    /* Ticker container fades in instantly (for text), chrome transitions delayed,
       bottom border/shimmer arrives LAST after everything else has settled */
    transition: opacity 0.15s ease,
                background 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.22s,
                border-bottom-color 0.6s ease 1.1s,
                background-size 0.6s ease 1.1s,
                -webkit-backdrop-filter 0.4s ease 0.22s,
                backdrop-filter 0.4s ease 0.22s;
}

.lv-nowcast-ticker-visible {
    opacity: 1;
    /* Phase 2 destination: frosted glass materializes */
    background: rgba(10, 15, 26, 0.55);
    border-bottom-color: rgba(255, 255, 255, 0.08);
    background-size: 100% 1px;
    -webkit-backdrop-filter: blur(10px) saturate(1.2);
    backdrop-filter: blur(10px) saturate(1.2);
    pointer-events: auto;
}

.lv-nowcast-ticker-fade {
    opacity: 0;
    transform: translateY(-4px);
    /* Collapse: background fades first, then text */
    transition: opacity 0.45s ease-out 0.1s,
                transform 0.45s ease-out 0.1s,
                background 0.25s ease-out,
                border-bottom-color 0.25s ease-out,
                -webkit-backdrop-filter 0.25s ease-out,
                backdrop-filter 0.25s ease-out;
}

.lv-nowcast-ticker-fade .lv-nowcast-ticker-text {
    opacity: 0;
    transform: translateX(-4px) translateY(-2px);
    transition-delay: 0.08s;
}

/* Text starts fully invisible, fades in slowly WHILE dropping into place */
.lv-nowcast-ticker-text {
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    transform: translateY(-10px);
    /* No filter blur — text stays crisp and sharp as it fades in */
    transition: opacity 0.7s ease 0.3s,
                transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s;
}

.lv-nowcast-ticker-visible .lv-nowcast-ticker-text {
    opacity: 1;
    transform: translateY(0);
}

/* Ticker tier colors — text color applies immediately, border color scoped
   to -visible so it respects the delayed transition and arrives last */
.lv-nowcast-ticker[data-tier="clear"] { color: #f3c623; }
.lv-nowcast-ticker[data-tier="watch"] { color: #fbbf24; }
.lv-nowcast-ticker[data-tier="approaching"] {
    color: #f97316;
    animation: lv-nowcast-pulse 2.5s ease-in-out infinite;
}
.lv-nowcast-ticker[data-tier="active"] { color: #67e8f9; }
.lv-nowcast-ticker[data-tier="severe"] {
    color: #fff;
    font-weight: 700;
    background: repeating-linear-gradient(
        -45deg,
        rgba(239, 68, 68, 0.85) 0px, rgba(239, 68, 68, 0.85) 8px,
        rgba(180, 30, 30, 0.85) 8px, rgba(180, 30, 30, 0.85) 16px
    );
    background-size: 22.627px 22.627px;
    animation: lv-ticker-barber-scroll 0.8s linear infinite;
}

/* Tier border colors — only when visible (delayed transition applies) */
.lv-nowcast-ticker-visible[data-tier="clear"] { border-bottom-color: rgba(243, 198, 35, 0.15); }
.lv-nowcast-ticker-visible[data-tier="watch"] { border-bottom-color: rgba(251, 191, 36, 0.15); }
.lv-nowcast-ticker-visible[data-tier="approaching"] { border-bottom-color: rgba(249, 115, 22, 0.2); }
.lv-nowcast-ticker-visible[data-tier="active"] { border-bottom-color: rgba(103, 232, 249, 0.15); }
.lv-nowcast-ticker-visible[data-tier="severe"] { border-bottom-color: rgba(239, 68, 68, 0.4); }

@keyframes lv-ticker-barber-scroll {
    from { background-position: 0 0; }
    to { background-position: 22.627px 0; }
}

/* Hide on desktop (label is visible there) and tiny screens (widget hidden) */
@media (min-width: 1200px) {
    .lv-nowcast-ticker { display: none !important; }
}
@media (max-width: 320px) {
    .lv-nowcast-ticker { display: none !important; }
}

/* Reduced motion — instant show/hide, no two-phase reveal */
@media (prefers-reduced-motion: reduce) {
    .lv-nowcast-ticker[data-tier="approaching"] { animation: none; }
    .lv-nowcast-ticker[data-tier="severe"] { animation: none; }
    .lv-nowcast-ticker {
        transition: opacity 0.15s ease;
        transform: none !important;
        background: rgba(10, 15, 26, 0.55);
        -webkit-backdrop-filter: blur(10px) saturate(1.2);
        backdrop-filter: blur(10px) saturate(1.2);
    }
    .lv-nowcast-ticker-visible { transform: none !important; }
    .lv-nowcast-ticker-fade {
        opacity: 0;
        transform: none !important;
    }
    .lv-nowcast-ticker-text {
        transition: opacity 0.15s ease;
        transform: none !important;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
  .lv-main-header,
  .carousel-nav,
  .carousel-indicators {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .card {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }
}

/* ===== ENHANCED MODAL STYLES ===== */

/* Modal Content Enhancements */
.conversion-modal-content {
  position: relative !important;
  border: 2px solid var(--lv-yellow) !important;
}

.conversion-modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--lv-yellow), #fbbf24, var(--lv-yellow));
  border-radius: 16px 16px 0 0;
  z-index: 1;
}

.conversion-modal-close {
  z-index: 10 !important;
}

.conversion-modal-close .material-icons {
  font-size: 18px;
  vertical-align: middle;
}

.conversion-modal-inner {
  padding: 28px;
  position: relative;
  z-index: 2;
}

/* Header Styling */
.modal-header {
  text-align: center;
  padding-top: 6px;
}

.modal-icon {
  margin-bottom: 10px;
}

.modal-icon .material-icons {
  font-size: 32px;
  color: var(--lv-yellow);
  vertical-align: middle;
}

.conversion-modal-content h3 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 800;
  color: var(--lv-dark) !important;
  position: relative;
  padding-bottom: 14px;
}

.conversion-modal-content h3::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  border-radius: 2px;
  background: var(--lv-yellow);
}

.conversion-modal-content p {
  color: var(--lv-gray-600) !important;
  margin-bottom: 18px;
  line-height: 1.5;
}

/* Benefits List */
.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  gap: 10px;
}

.benefits-list li {
  position: relative;
  padding-left: 26px;
  color: var(--lv-dark);
  font-weight: 600;
  font-size: 15px;
}

.benefits-list li::before {
  content: "check";
  font-family: 'Material Icons';
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--lv-dark);
  background: rgba(243, 198, 35, 0.25);
  border: 1px solid rgba(243, 198, 35, 0.45);
  width: 18px;
  height: 18px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 400;
}

/* Button Styling */
.modal-actions {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.btn-primary-modal {
  width: 100%;
  background: linear-gradient(135deg, var(--lv-yellow) 0%, #fbbf24 100%);
  color: var(--lv-dark);
  border: none;
  padding: 14px 18px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(243, 198, 35, 0.30), 0 2px 4px rgba(0, 0, 0, 0.10);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary-modal:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(243, 198, 35, 0.40), 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-primary-modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transition: left 0.6s ease;
}

.btn-primary-modal:hover::before {
  left: 120%;
}

.conversion-modal-dismiss {
  width: 100%;
  background: transparent;
  color: var(--lv-gray-600);
  border: 2px solid #e5e7eb;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.conversion-modal-dismiss:hover {
  border-color: var(--lv-yellow);
  background: rgba(243, 198, 35, 0.10);
  color: var(--lv-dark);
}

/* Focus States */
.conversion-modal-content:focus-within {
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.30),
    0 0 0 4px rgba(243, 198, 35, 0.45);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .conversion-modal-inner {
    padding: 22px;
  }
  
  .conversion-modal-content h3 {
    font-size: 20px;
  }
  
  .benefits-list li {
    font-size: 14px;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .btn-primary-modal,
  .conversion-modal-dismiss {
    transition: none !important;
  }
  
  .btn-primary-modal::before {
    display: none !important;
  }
}

/* =========================================================
   Mobile nav dropdown buttons: force true transparency
   Wins over Chrome UA "buttonface" + any innerHTML timing
   ========================================================= */
.lv-mobile-panel .lv-mobile-dropdown-btn {
  -webkit-appearance: none !important;
  appearance: none !important;
  background: none !important;
  background-color: transparent !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.lv-mobile-panel .lv-mobile-dropdown-btn::before,
.lv-mobile-panel .lv-mobile-dropdown-btn::after {
  content: none !important;
}

/* =========================================================
   Close Button: Guaranteed black ring (border + fallback ring)
   Place LAST in the loaded CSS to win the cascade.
   ========================================================= */

button.conversion-modal-close,
button.conversion-cta-close {
  /* Lock the actual border (protect against longhand overrides) */
  border-style: solid !important;
  border-width: 2px !important;
  border-color: rgba(0, 0, 0, 1) !important;

  /* Bold black X character to match border strength */
  color: rgba(0, 0, 0, 1) !important;
  font-weight: 900 !important;
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.5) !important;

  /* Fallback ring that still shows even if borders get zeroed */
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.15),
    0 2px 4px rgba(0, 0, 0, 0.10),
    inset 0 0 0 2px rgba(0, 0, 0, 0.95) !important;

  /* Helps prevent odd bleed with translucent backgrounds */
  background-clip: padding-box;
}

button.conversion-modal-close:hover,
button.conversion-cta-close:hover {
  border-color: rgba(0, 0, 0, 1) !important;
  color: rgba(0, 0, 0, 1) !important;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.8) !important;
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.20),
    0 3px 6px rgba(0, 0, 0, 0.12),
    inset 0 0 0 2px rgba(0, 0, 0, 1) !important;
}