/**
 * Lemon Queen Theme - Custom Styles
 * 
 * These styles supplement Tailwind CSS and ensure 100% match
 * with the original React design.
 * 
 * @package Lemon_Queen
 */

/* ==========================================================================
   BASE STYLES
   ========================================================================== */

/* Note: Design tokens are defined in design-tokens.css and loaded before this file */
/* All color, font, spacing, and shadow variables are available via design tokens */

/* Base Typography - Single font for entire theme */
body {
    font-family: var(--font-primary);
    color: var(--lq-gray-700);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
}

/* Ensure page container starts from top on front page */
body.home #page {
    margin-top: 0;
    padding-top: 0;
}

/* Headings - Same font with different weights */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    /* color: var(--lq-gray-900); */
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

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

/* Icon Styles */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon svg {
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   BUTTON SYSTEM
   ========================================================================== */

/* Base Button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    font-family: var(--font-primary);
    text-decoration: none;
    line-height: 1.5;
}

/* Button Variants */
.btn-primary {
    background-color: var(--lq-gray-900);
    color: white;
}

.btn-primary:hover {
    background-color: var(--lq-gray-800);
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.2);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background-color: var(--lq-gray-700);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--lq-gray-600);
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.btn-secondary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(55, 65, 81, 0.2);
}

.btn-secondary:active {
    transform: scale(0.98);
}

.btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--lq-gray-300);
    color: var(--lq-gray-700);
}

.btn-outline:hover {
    border-color: var(--lq-gray-900);
    background-color: var(--lq-gray-50);
}

.btn-outline:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.1);
}

.btn-outline:active {
    background-color: var(--lq-gray-100);
}

.btn-outline:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    border-color: var(--lq-gray-200);
}

.btn-ghost {
    background-color: transparent;
    color: var(--lq-gray-700);
}

.btn-ghost:hover {
    background-color: var(--lq-gray-100);
}

.btn-ghost:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.1);
}

.btn-ghost:active {
    background-color: var(--lq-gray-200);
}

.btn-ghost:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-link {
    background-color: transparent;
    color: var(--lq-gray-900);
    text-decoration: underline;
    padding: 0.5rem 0.75rem;
}

.btn-link:hover {
    color: var(--lq-gray-700);
    text-decoration: none;
}

.btn-link:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.1);
    border-radius: var(--radius-sm);
}

.btn-link:active {
    color: var(--lq-gray-800);
}

.btn-link:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Button Sizes */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    gap: 0.375rem;
}

.btn-md {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    gap: 0.5rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    gap: 0.75rem;
}

/* Rounded Button Variant */
.btn-rounded {
    border-radius: var(--radius-full);
}

/* Button with Icon */
.btn svg {
    flex-shrink: 0;
}

/* ==========================================================================
   BACKGROUND SYSTEM
   ========================================================================== */

/* Background Utility Classes */
.bg-primary {
    background-color: var(--lq-primary);
}

.bg-secondary {
    background-color: var(--lq-secondary);
}

.bg-accent {
    background-color: var(--lq-accent);
}

.bg-accent-dark {
    background-color: var(--lq-accent-dark);
}

.bg-accent-light {
    background-color: var(--lq-accent-light);
}

.bg-surface {
    background-color: var(--lq-background);
}

.bg-surface-variant {
    background-color: var(--lq-gray-50);
}

/* Background Overlay Utilities */
.bg-overlay-light {
    background-color: var(--lq-overlay-light);
}

.bg-overlay-medium {
    background-color: var(--lq-overlay-medium);
}

.bg-overlay-dark {
    background-color: var(--lq-overlay-dark);
}

.bg-overlay-white-light {
    background-color: var(--lq-overlay-white-light);
}

.bg-overlay-white-medium {
    background-color: var(--lq-overlay-white-medium);
}

/* Gradient Backgrounds */
.bg-gradient-primary {
    background: linear-gradient(to bottom, var(--lq-gray-50), var(--lq-background));
}

.bg-gradient-surface {
    background: linear-gradient(to bottom, var(--lq-gray-50), var(--lq-gray-100));
}

/* ==========================================================================
   CARD STYLES
   ========================================================================== */

.card {
    background-color: var(--lq-background);
    border: 1px solid var(--lq-gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-base);
}

.card:hover {
    border-color: var(--lq-gray-900);
    box-shadow: var(--shadow-xl);
}

/* ==========================================================================
   ANIMATION CLASSES
   ========================================================================== */

/* Fade In */
.fade-in {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.fade-in.animate-in {
    opacity: 1;
}

/* Slide Up */
.slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-up.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Scale In */
.scale-in {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in.animate-in {
    opacity: 1;
    transform: scale(1);
}

/* Image Hover Zoom */
.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 0.5s ease;
}

.img-zoom:hover img {
    transform: scale(1.05);
}

/* ==========================================================================
   MENU PANEL ANIMATIONS
   ========================================================================== */

/* Menu Panel Container - Slide-in from right */
.menu-panel-container {
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-panel-container.animate-in {
    opacity: 1;
    transform: translateX(0);
}

/* Menu Panel Items - Stagger Animation */
.menu-panel-item {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.5s ease-out, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-panel-item.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Hover Scale Effect */
.menu-panel-item a {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.3s ease,
                background-color 0.3s ease,
                box-shadow 0.3s ease;
    display: block;
    will-change: transform;
}

.menu-panel-item a:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Active State Indicator */
.menu-panel-item a.active {
    border-color: var(--lq-gray-900);
    color: white;
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.menu-panel-item a.active .text-gray-700,
.menu-panel-item a.active .text-gray-500 {
    color: white;
}

/* Scroll Progress Indicator */
.menu-panel-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 2px;
    background: var(--lq-gray-900);
    transition: width 0.3s ease-out;
    z-index: 1;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .menu-panel-container,
    .menu-panel-item,
    .menu-panel-item a {
        transition: none;
        animation: none;
    }
    
    .menu-panel-container {
        opacity: 1;
        transform: none;
    }
    
    .menu-panel-item {
        opacity: 1;
        transform: none;
    }
}

/* ==========================================================================
   MENU SECTION (MAGAZINE STYLE) ANIMATIONS
   ========================================================================== */

/* Menu Grid Container - Masonry Animation */
.menu-grid-container {
    opacity: 0;
    transition: opacity 0.6s ease-out;
    width: 100%;
}

.menu-grid-container.animate-in {
    opacity: 1;
}

/* Staggered 3-Column Grid Layout */
.menu-grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .menu-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .menu-grid-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

.menu-card-staggered {
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.3s ease,
                opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    position: relative;
}

/* Staggered offset effect for 3 columns */
@media (min-width: 1024px) {
    /* Column 2 (middle column) - offset down 40px when animated */
    .menu-card-item.menu-card-staggered.animate-in[data-column="1"] {
        transform: translateY(40px) scale(1) !important;
    }
    
    /* Fallback using nth-child - every 2nd, 5th, 8th... card (column 2) */
    .menu-card-item.menu-card-staggered.animate-in:nth-child(3n+2) {
        transform: translateY(-40px) scale(1) !important;
    }
    
    /* Column 1 and 3 - stay at 0 */
    .menu-card-item.menu-card-staggered.animate-in[data-column="0"],
    .menu-card-item.menu-card-staggered.animate-in[data-column="2"] {
        transform: translateY(0) scale(1) !important;
    }
    
    /* Fallback for column 1 and 3 using nth-child */
    .menu-card-item.menu-card-staggered.animate-in:nth-child(3n+1),
    .menu-card-item.menu-card-staggered.animate-in:nth-child(3n+3) {
        transform: translateY(0) scale(1) !important;
    }
}

.menu-card-staggered:hover {
    transform: translateY(-8px) scale(1) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

/* ==========================================================================
   MENU SECTION TYPOGRAPHY - RALEWAY LIGHT/THIN STYLE
   ========================================================================== */

/* Menu Section Header - Raleway Thin */
#menu .mb-20 span {
    text-transform: uppercase;
    letter-spacing: 0.4em;
    font-style: normal;
}

/* Menu Section Title - Raleway Light */
#menu .mb-20 h2 {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-style: normal;
}

/* Menu Section Collection Text - Raleway Light */
#menu .mb-20 p {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-style: normal;
}

/* Menu Card Title - Raleway Light */
.menu-card-title {
    font-family: 'Raleway', sans-serif;
    font-weight: bold; /* Light */
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-style: normal;
}

/* Menu Card Description - Raleway Light */
.menu-card-description {
    font-family: 'Raleway', sans-serif;
    font-weight: 300; /* Light */
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-style: normal;
}

/* Menu Card Price - Raleway Light */
.menu-card-price {
    font-weight: 300; /* Light */
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-style: normal;
}

/* Menu Footer Note - Raleway Light */
#menu .mt-16 p {
    font-weight: 300; /* Light */
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-style: normal;
}

/* Menu Button Text - Raleway Light */
#menu .btn span {
    font-weight: 300; /* Light */
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-style: normal;
}

/* Menu Card Items - Stagger Animation */
.menu-card-item {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.menu-card-item.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Override for staggered cards - apply staggered effect */
.menu-card-item.menu-card-staggered.animate-in {
    opacity: 1;
}

/* Hover Zoom Effect - Enhanced */
.menu-card-image-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #fff; /* Light gray background to fill empty space */
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-card-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Changed from cover to contain to show full image */
    object-position: center;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

/* .menu-card-item:hover .menu-card-image {
    transform: scale(1.1);
} */

/* Overlay Fade-in on Hover */
.menu-card-overlay {
    position: absolute;
    inset: 0;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.menu-card-item:hover .menu-card-overlay {
    opacity: 1;
}

  

/* Number Counter Animation */
.menu-card-number {
    display: inline-block;
    opacity: 0;
    transform: scale(0.5) rotate(-10deg);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.menu-card-item.animate-in .menu-card-number {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* Price Pulse Effect */
.menu-card-price {
    display: inline-block;
}

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


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

/* Hero Card (First Card) - Special Animations */
.menu-card-hero .menu-card-number {
    font-size: 6rem;
    line-height: 1;
}

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

/* Regular Cards */
.menu-card-regular .menu-card-number {
    font-size: 3rem;
    line-height: 1;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .menu-card-item,
    .menu-card-image,
    .menu-card-overlay,
    .menu-card-number,
    .menu-card-price {
        transition: none;
        animation: none;
    }
    
    .menu-card-item {
        opacity: 1;
        transform: none;
    }
    
    .menu-card-number {
        opacity: 1;
        transform: none;
    }
    
    .menu-card-price {
        transform: none;
    }
}

/* ==========================================================================
   SCROLL ANIMATIONS
   ========================================================================== */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Scroll-triggered Animation Classes */
.scroll-fade-in {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-fade-in.animate-in {
    opacity: 1;
}

.scroll-slide-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.scroll-slide-up.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.scroll-slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.scroll-slide-left.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.scroll-slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.scroll-slide-right.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.scroll-scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.scroll-scale-in.animate-in {
    opacity: 1;
    transform: scale(1);
}

/* Stagger Children Animation */
.scroll-stagger-children > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.scroll-stagger-children.animate-in > * {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   SCROLL PROGRESS INDICATORS
   ========================================================================== */

/* Top Progress Bar */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--lq-gray-900), var(--lq-accent));
    z-index: 9999;
    transition: width 0.1s ease-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Section Progress Indicator */
.section-progress-indicator {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.section-progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--lq-gray-300);
    transition: all 0.3s ease;
    cursor: pointer;
}

.section-progress-dot.active {
    background: var(--lq-gray-900);
    transform: scale(1.5);
}

.section-progress-dot:hover {
    background: var(--lq-gray-600);
}

/* Scroll-to-top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--lq-gray-900);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    will-change: transform, opacity;
}

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

.scroll-to-top:hover {
    background: var(--lq-gray-800);
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .scroll-fade-in,
    .scroll-slide-up,
    .scroll-slide-left,
    .scroll-slide-right,
    .scroll-scale-in,
    .scroll-stagger-children > * {
        transition: none;
        opacity: 1;
        transform: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .scroll-progress-bar {
        transition: none;
    }
    
    .scroll-to-top {
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .section-progress-indicator {
        display: none;
    }
    
    .scroll-to-top {
        width: 44px;
        height: 44px;
        bottom: 1.5rem;
        right: 1.5rem;
    }
}

/* ==========================================================================
   PHASE 1 & PHASE 2 EFFECTS
   ========================================================================== */

 
/* Counter Animation */
.stat-counter {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

/* Form Animations */
.input-focused label {
    transform: translateY(-2px);
    color: var(--lq-gray-900);
}

/* Form Input Shake Animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

input.shake,
textarea.shake,
select.shake {
    animation: shake 0.5s ease-in-out;
    border-color: #ef4444;
}

/* Phone Link Ripple Effect */
.phone-link {
    position: relative;
    overflow: hidden;
}

.phone-link::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(17, 24, 39, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.phone-link:active::after {
    width: 200px;
    height: 200px;
}

/* Location Card Icon Animation - Enhanced for new structure */
.location-card:hover .location-indicator {
    animation: pulse 1.5s ease-in-out infinite;
}

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

/* Mobile: Disable slide-right animation to prevent overlap */
@media (max-width: 1023px) {
    .scroll-slide-right {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Franchise Form Animations */
.franchise-form {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.franchise-form.animate-in {
    opacity: 1;
    transform: scale(1);
}

.franchise-form input:focus,
.franchise-form textarea:focus,
.franchise-form select:focus {
    transform: scale(1.01);
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.1);
}

/* Mobile Menu Improvements */
.mobile-menu-overlay {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateX(0);
}

/* Performance: Will-change for animated elements */
.scroll-fade-in,
.scroll-slide-up,
.scroll-slide-left,
.scroll-slide-right,
.scroll-scale-in,
.stat-counter {
    will-change: transform, opacity;
}

 
/* ==========================================================================
   PAGINATION STYLES
   ========================================================================== */

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.pagination .nav-links {
    display: flex;
    gap: 0.5rem;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border: 1px solid var(--lq-gray-200);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: var(--lq-gray-700);
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover {
    border-color: var(--lq-gray-900);
    background-color: var(--lq-gray-50);
}

.pagination .page-numbers.current {
    background-color: var(--lq-gray-900);
    border-color: var(--lq-gray-900);
    color: white;
}

/* ==========================================================================
   FORM STYLES
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="url"],
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--lq-gray-300);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: white;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--lq-gray-900);
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.1);
}

/* ==========================================================================
   STATUS BADGE SYSTEM
   ========================================================================== */

.status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
}

.status-badge-new {
    background-color: var(--lq-status-new-bg);
    color: var(--lq-status-new-text);
}

.status-badge-contacted {
    background-color: var(--lq-status-contacted-bg);
    color: var(--lq-status-contacted-text);
}

.status-badge-approved {
    background-color: var(--lq-status-approved-bg);
    color: var(--lq-status-approved-text);
}

.status-badge-rejected {
    background-color: var(--lq-status-rejected-bg);
    color: var(--lq-status-rejected-text);
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

/* Text Truncation */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Aspect Ratio */
.aspect-video {
    aspect-ratio: 16 / 9;
}

.aspect-square {
    aspect-ratio: 1 / 1;
}

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

/* ==========================================================================
   RESPONSIVE STYLES
   ========================================================================== */

@media (max-width: 1024px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
}

@media (max-width: 640px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
}

/* ==========================================================================
   WORDPRESS SPECIFIC STYLES
   ========================================================================== */

/* Skip Link */
.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 999999;
    padding: 1rem 1.5rem;
    background-color: var(--lq-gray-900);
    color: white;
    text-decoration: none;
}

.skip-link:focus {
    left: 50%;
    transform: translateX(-50%);
    top: 0.5rem;
}

/* Admin Bar Fix */
body.admin-bar .mobile-menu-overlay {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .mobile-menu-overlay {
        top: 46px;
    }
}

/* Comments */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-item {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    border: 1px solid var(--lq-gray-200);
    border-radius: 0.5rem;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-avatar img {
    border-radius: 50%;
}

.comment-author {
    font-weight: 600;
    color: var(--lq-gray-900);
}

.comment-date {
    font-size: 0.875rem;
    color: var(--lq-gray-500);
}

.comment-content {
    color: var(--lq-gray-700);
    line-height: 1.6;
}

/* Widget Styles */
.widget {
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--lq-gray-900);
}

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--lq-gray-200);
}

.nav-subtitle {
    display: block;
    font-size: 0.875rem;
    color: var(--lq-gray-500);
    margin-bottom: 0.25rem;
}

.nav-title {
    font-weight: 600;
    color: var(--lq-gray-900);
}

/* ==========================================================================
   BLOG ENHANCEMENTS
   ========================================================================== */

/* Search & Filter Section */
.search-form input[type="search"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(252, 211, 77, 0.1);
}

/* Newsletter Form */
#newsletter-form input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(252, 211, 77, 0.1);
}

#newsletter-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Blog Notification */
.blog-notification {
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.blog-notification.translate-x-0 {
    transform: translateX(0);
    opacity: 1;
}

/* Popular Posts Badge */
.popular-badge {
    background: linear-gradient(135deg, #FCD34D 0%, #F59E0B 100%);
    color: #000000;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Category Badge with Brand Color */
.category-badge-yellow {
    background-color: rgba(252, 211, 77, 0.95);
    backdrop-filter: blur(8px);
    color: #000000;
    font-weight: 600;
}

/* Sticky Filter Bar */
.sticky-filter-bar {
    position: sticky;
    top: 64px;
    z-index: 30;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--lq-gray-200);
}

/* Sidebar Styling */
.blog-sidebar {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.blog-sidebar::-webkit-scrollbar {
    width: 6px;
}

.blog-sidebar::-webkit-scrollbar-track {
    background: var(--lq-gray-100);
    border-radius: 3px;
}

.blog-sidebar::-webkit-scrollbar-thumb {
    background: var(--lq-gray-300);
    border-radius: 3px;
}

.blog-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--lq-gray-400);
}

/* View Count Icon */
.view-count {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

 

/* Blog Grid - Fixed Equal Height Cards */
.blog-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card > a {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card > a > div {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Fixed height for blog cards - ensures all cards are same height */
.grid.grid-cols-1.sm\:grid-cols-2.lg\:grid-cols-3 .blog-card {
    height: 420px; /* Fixed height for all cards */
}

@media (min-width: 640px) {
    .grid.sm\:grid-cols-2 .blog-card {
        height: 420px;
    }
}

@media (min-width: 1024px) {
    .grid.lg\:grid-cols-3 .blog-card {
        height: 420px;
    }
}

/* Ensure content area fills available space */
.blog-card .p-5.flex-1 {
    min-height: 0; /* Allow flex shrinking */
}

/* Image container fixed height */
.blog-card .relative.h-48 {
    height: 192px; /* 12rem = 48 * 4px */
    flex-shrink: 0;
}

/* Content area fills remaining space */
.blog-card .p-5.flex-1.flex.flex-col {
    flex: 1 1 auto;
    min-height: 0;
}

/* Search Active State */
.search-active {
    border-color: var(--lq-accent);
    box-shadow: 0 0 0 3px rgba(252, 211, 77, 0.1);
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .mobile-menu-toggle,
    .mobile-menu-overlay,
    .pagination,
    .post-navigation,
    .blog-sidebar,
    .sticky-filter-bar {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

/* ==========================================================================
   LOCATIONS SECTION STYLES
   ========================================================================== */

.locations-section {
    padding: 6rem 2rem;
    background: linear-gradient(to bottom, var(--lq-gray-50), #ffffff);
}

.locations-container {
    max-width: 80rem; /* 1280px */
    margin: 0 auto;
}

.locations-header {
    text-align: center;
    margin-bottom: 4rem;
}

.locations-title {
    color: var(--lq-gray-900);
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.locations-description {
    color: var(--lq-gray-600);
    font-size: 1rem;
    line-height: 1.5;
}

.locations-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .locations-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

/* Map Wrapper */
.locations-map-wrapper {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    height: 400px;
    background: var(--lq-gray-100);
}

@media (min-width: 1024px) {
    .locations-map-wrapper {
        height: 500px;
        position: sticky;
        top: 2rem;
    }
}

.locations-map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Locations List */
.locations-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Location Card */
.location-card {
    padding: 1rem;
    border: 2px solid var(--lq-gray-200);
    border-radius: 0.5rem;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

@media (min-width: 1024px) {
    .location-card {
        padding: 1.5rem;
    }
}

.location-card:hover {
    border-color: var(--lq-gray-900);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.location-card.active-location {
    border-color: var(--lq-gray-900);
    background: var(--lq-gray-50);
}

.location-card-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .location-card-content {
        flex-direction: row;
        gap: 1rem;
    }
}

@media (min-width: 1024px) {
    .location-card-content {
        gap: 1rem;
    }
}

/* Location Card Image */
.location-card-image {
    width: 4rem;
    height: 4rem;
    border-radius: 0.5rem;
    overflow: hidden;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .location-card-image {
        width: 5rem;
        height: 5rem;
    }
}

.location-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Location Card Details */
.location-card-details {
    flex: 1;
    min-width: 0;
}

.location-card-title {
    color: var(--lq-gray-900);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.2;
}

@media (min-width: 1024px) {
    .location-card-title {
        font-size: 1.125rem;
    }
}

.location-indicator {
    width: 1rem;
    height: 1rem;
    color: var(--lq-gray-400);
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.location-indicator.active {
    color: var(--lq-gray-900);
}

.location-card.active-location .location-indicator {
    color: var(--lq-gray-900);
}

/* Location Info */
.location-info {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--lq-gray-600);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.location-info:last-child {
    margin-bottom: 0;
}

.location-info svg {
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.location-address span {
    word-break: break-word;
}

/* Location Meta */
.location-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
}

@media (min-width: 640px) {
    .location-meta {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }
}

.location-phone {
    color: var(--lq-gray-600);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.location-phone:hover {
    color: var(--lq-gray-900);
}

/* Location Card Action */
.location-card-action {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--lq-gray-200);
}

.location-detail-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--lq-gray-700);
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.location-detail-link:hover {
    color: var(--lq-gray-900);
}

.location-detail-link svg {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.location-detail-link:hover svg {
    transform: translateX(2px);
}

/* Responsive Adjustments */
@media (max-width: 1023px) {
    .locations-section {
        padding: 4rem 1.5rem;
    }
    
    .locations-header {
        margin-bottom: 2rem;
    }
    
    .locations-title {
        font-size: 1.75rem;
    }
    
    .scroll-slide-right {
        opacity: 1;
        transform: translateX(0);
    }
    
    .location-card:hover {
        transform: translateY(-2px);
    }
}

@media (max-width: 640px) {
    .locations-section {
        padding: 3rem 1rem;
    }
    
    .locations-title {
        font-size: 1.5rem;
    }
    
    .locations-description {
        font-size: 0.875rem;
    }
}

/* ==========================================================================
   HEADER SCROLL SHRINK EFFECT
   ========================================================================== */

/* Default header state (not scrolled) */
.site-header {
    transition: all 0.3s ease;
}

/* Front page header - hidden by default, shown on scroll */
.site-header-front-page {
    position: fixed; /* Use fixed instead of sticky when hidden */
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-100%);
    max-height: 0;
    overflow: hidden;
    height: 0;
    margin: 0;
    padding: 0;
}

.site-header-front-page .header-content {
    padding-top: 0;
    padding-bottom: 0;
    max-height: 0;
    overflow: hidden;
    height: 0;
}

.site-header-front-page.visible {
    position: sticky; /* Switch to sticky when visible */
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    max-height: 200px; /* Enough for header content */
    overflow: visible;
    height: auto;
}

.site-header-front-page.visible .header-content {
    padding-top: 1rem; /* py-4 */
    padding-bottom: 1rem;
    max-height: none;
    overflow: visible;
    height: auto;
}

.site-header .header-content {
    transition: all 0.3s ease;
}

.site-header .header-logo-img,
.site-header .header-logo-svg {
    transition: all 0.3s ease;
}

.site-header .header-title {
    transition: all 0.3s ease;
}

/* Scrolled state - smaller header */
.site-header.scrolled {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.site-header.scrolled .header-content {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

/* Logo shrink when scrolled */
.site-header.scrolled .header-logo-img {
    height: 2rem !important; /* h-8 */
    width: auto;
}

.site-header.scrolled .header-logo-svg {
    width: 35px !important;
    height: 42px !important;
}

/* Title shrink when scrolled */
.site-header.scrolled .header-title {
    font-size: 1.25rem !important; /* text-xl */
    line-height: 1.25;
}

/* Logo wrapper gap shrink */
.site-header.scrolled .header-logo-wrapper {
    gap: 0.5rem; /* gap-2 */
}

/* Navigation links - keep same size or slightly smaller */
.site-header.scrolled .main-navigation a {
    font-size: 0.875rem; /* text-sm */
}

/* Mobile adjustments */
@media (max-width: 1023px) {
    .site-header.scrolled {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
    
    .site-header.scrolled .header-logo-img {
        height: 1.75rem !important; /* h-7 */
    }
    
    .site-header.scrolled .header-logo-svg {
        width: 30px !important;
        height: 36px !important;
    }
    
    .site-header.scrolled .header-title {
        font-size: 1.125rem !important; /* text-lg */
    }
}

/* ==========================================================================
   BLOG CARD STYLES (Knowledge Section)
   ========================================================================== */

/* Blog Card Article */
.blog-card-article {
    overflow: hidden;
    border: 1px solid #e5e7eb; /* border-gray-200 */
    border-radius: 0.5rem; /* rounded-lg */
    transition: all 0.3s ease; /* transition-all duration-300 */
    height: 100%;
    background-color: #ffffff; /* bg-white */
}

.blog-card-article:hover {
    border-color: #111827; /* hover:border-gray-900 */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* hover:shadow-lg */
}

/* Blog Card Link */
.blog-card-link {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* Blog Card Image Wrapper */
.blog-card-image-wrapper {
    position: relative;
    height: 14rem; /* h-56 = 14 * 0.25rem = 3.5rem = 56px, but h-56 in Tailwind is 14rem */
    overflow: hidden;
}

/* Blog Card Image */
.blog-card-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* object-contain */
    transition: transform 0.5s ease; /* transition-transform duration-500 */
}

.blog-card-article:hover .blog-card-image {
    transform: scale(1.05); /* hover:scale-105 */
}

/* Blog Card Category Badge */
.blog-card-category-badge {
    position: absolute;
    top: 1rem; /* top-4 */
    right: 1rem; /* right-4 */
    background-color: rgba(255, 255, 255, 0.9); /* bg-white/90 */
    backdrop-filter: blur(4px); /* backdrop-blur-sm */
    padding: 0.25rem 0.75rem; /* px-3 py-1 */
    border-radius: 9999px; /* rounded-full */
    font-size: 0.75rem; /* text-xs */
    font-weight: 500; /* font-medium */
    color: #374151; /* text-gray-700 */
}

/* Blog Card Content */
.blog-card-content {
    padding: 1.5rem; /* p-6 */
}

/* Blog Card Title */
.blog-card-title {
    color: #111827; /* text-gray-900 */
    margin-bottom: 0.75rem; /* mb-3 */
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.5;
}

/* Blog Card Excerpt */
.blog-card-excerpt {
    color: #4b5563; /* text-gray-600 */
    margin-bottom: 1rem; /* mb-4 */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

/* Blog Card Footer */
.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Blog Card Read More */
.blog-card-read-more {
    color: #111827; /* text-gray-900 */
    transition: color 0.3s ease; /* transition-colors */
    display: inline-flex;
    align-items: center;
    gap: 0.5rem; /* gap-2 */
    text-decoration: none;
}

.blog-card-read-more:hover {
    color: #374151; /* hover:text-gray-700 */
}

/* Blog Card Icon */
.blog-card-icon {
    width: 1rem; /* w-4 */
    height: 1rem; /* h-4 */
    flex-shrink: 0;
}

/* Blog Card Date */
.blog-card-date {
    font-size: 0.875rem; /* text-sm */
    color: #6b7280; /* text-gray-500 */
}
