/* LexAI Landing Page Styles - V2 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CRITICAL: Override browser default blue link colors */
a, a:link, a:visited, a:focus, a:active {
    color: inherit;
    text-decoration: none;
}

/* Button Text Colors - Override browser defaults */
a.btn-primary {
    color: #2E4B3C;
    text-decoration: none;
}

a.btn-secondary {
    color: #2E4B3C;
    text-decoration: none;
}

a.btn-outline {
    color: #ffffff;
    text-decoration: none;
}

a.btn-outline.featured {
    color: #2E4B3C;
    text-decoration: none;
}

a.nav-enter-platform {
    color: #2E4B3C;
    text-decoration: none;
}

/* Override browser default focus styles */
a:focus {
    outline: none;
}

/* Force main navigation links to use brand colors - but not dropdown menus or Dashboard button */
.main-nav a:not(.dropdown-content a):not(.dashboard-btn), .main-nav a:not(.dropdown-content a):not(.dashboard-btn):link, .main-nav a:not(.dropdown-content a):not(.dashboard-btn):visited, .main-nav a:not(.dropdown-content a):not(.dashboard-btn):focus, .main-nav a:not(.dropdown-content a):not(.dashboard-btn):active,
.nav-links .nav-link, .nav-links .nav-link:link, .nav-links .nav-link:visited, .nav-links .nav-link:focus, .nav-links .nav-link:active {
    color: #F7EDDA !important;
    text-decoration: none !important;
}

/* Exclude dropdown menu links from the above rule */
.main-nav .dropdown-content a, .main-nav .dropdown-content a:link, .main-nav .dropdown-content a:visited, .main-nav .dropdown-content a:focus, .main-nav .dropdown-content a:active {
    color: #111827 !important; /* Dark text for dropdown readability */
    text-decoration: none !important;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #F7EDDA; /* light-cream */
    color: #1f2937;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Premium Navigation Bar */
.navbar {
    background: linear-gradient(135deg, #2E4B3C 0%, #1a3429 100%);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.15),
        0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4.5rem;
    position: relative;
}

.logo {
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    height: 3rem;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: filter 0.3s ease;
}

.logo:hover img {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.nav-links {
    /* No global display: none; - controlled by media queries */
}

.hamburger-menu {
    display: none; /* Hidden by default, shown in mobile media query */
    flex-direction: column;
    justify-content: space-around;
    width: 1.5rem;
    height: 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem; /* Larger touch target */
    z-index: 100;
    border-radius: 0.25rem;
    transition: background-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.hamburger-menu:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.1);
}

.hamburger-menu:active {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(0.95);
}

.hamburger-icon {
    width: 1.5rem;
    height: 2px;
    background-color: #F7EDDA; /* light-cream for contrast */
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.nav-links-mobile-container {
    display: none; /* Hidden by default, shown by JS on mobile */
}

/* Mobile Portrait Navigation - Hide desktop dropdowns */
@media (max-width: 767px) and (orientation: portrait) {
    /* Hide desktop dropdown menus completely */
    .main-nav .dropdown-content {
        display: none !important;
    }
    
    /* Hide desktop navigation items except Dashboard */
    .main-nav .nav-item.dropdown {
        display: none !important;
    }
    
    /* Hide Dashboard from top nav on mobile portrait (redundant with mobile menu) */
    .main-nav .nav-item:not(.dropdown) {
        display: none !important;
    }
    
    /* Hide main nav completely on mobile portrait */
    .main-nav {
        display: none !important;
    }
    
    .nav-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 4rem;
        position: relative;
    }

    .hamburger-menu {
        display: flex;
        order: 2; /* Position in center */
    }

    .logo {
        position: static;
        left: auto;
        transform: none;
        order: 1; /* Position to the far left */
    }

    .nav-enter-platform {
        order: 3; /* Position to the far right */
    }

    .nav-links-mobile-container {
        flex-direction: column;
        position: absolute;
        top: 4.5rem; /* Below the navbar */
        left: 0;
        right: 0;
        width: 100%;
        background: linear-gradient(135deg, #2E4B3C 0%, #1a3429 100%);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        z-index: 99;
        padding: 1rem 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
        opacity: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links-mobile-container.open {
        display: flex; /* Show when open */
        max-height: 300px; /* Enough height for menu items */
        opacity: 1;
    }

    .nav-links {
        display: flex; /* Ensure nav links are visible when container is open */
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding: 0 1rem;
    }

    .nav-link {
        padding: 1rem 1.5rem;
        width: 100%;
        text-align: center;
        font-weight: 500;
        border-radius: 0.5rem;
        margin: 0.25rem 0;
        transition: all 0.2s ease;
        -webkit-tap-highlight-color: transparent;
        min-height: 48px; /* Touch-friendly height */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-link:hover,
    .nav-link:active {
        background-color: rgba(255, 255, 255, 0.1);
        transform: translateX(4px);
    }

    .nav-link:active {
        background-color: rgba(255, 255, 255, 0.2);
        transform: scale(0.98) translateX(4px);
    }

    /* Enhanced button styling for mobile */
    .nav-enter-platform {
        background: #FFA74F !important;
        color: #2E4B3C !important;
        font-weight: 600 !important;
        margin: 0.5rem 1rem !important;
        border-radius: 0.75rem !important;
        box-shadow: 0 4px 12px rgba(255, 167, 79, 0.3) !important;
    }

    .nav-enter-platform:hover,
    .nav-enter-platform:active {
        background: #F0531C !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 6px 16px rgba(255, 167, 79, 0.4) !important;
    }
}

/* Mobile Landscape Navigation */
@media (max-width: 767px) and (orientation: landscape) {
    .nav-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .logo {
        order: 1; /* Logo on the far left */
    }
    
    .nav-links-mobile-container {
        display: flex; /* Show navigation container */
        position: static;
        background-color: transparent;
        box-shadow: none;
        padding: 0;
        order: 2; /* Navigation in the middle */
        margin-left: auto; /* Push to the right side */
    }
    
    .nav-links {
        display: flex; /* Horizontal layout */
        align-items: center;
        gap: 1.5rem; /* Slightly smaller gap for mobile landscape */
        flex-direction: row; /* Normal order: Features, How It Works, Pricing, Enter Platform */
    }
    
    .hamburger-menu {
        display: none; /* Hide hamburger in landscape */
    }
    
    .nav-enter-platform {
        order: 4; /* Rightmost position after nav links */
        margin-left: 2rem; /* Add space between Pricing and Enter Platform */
    }
}

@media (min-width: 768px) {
    .nav-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .logo {
        order: 1; /* Logo on the far left */
    }
    
    .nav-links-mobile-container {
        display: flex; /* Show navigation container */
        position: static;
        background-color: transparent;
        box-shadow: none;
        padding: 0;
        order: 2; /* Navigation in the middle */
        margin-left: auto; /* Push to the right side */
    }
    
    .nav-links {
        display: flex; /* Horizontal layout */
        align-items: center;
        gap: 2rem;
        flex-direction: row; /* Normal order: Features, How It Works, Pricing, Enter Platform */
    }
    
    .hamburger-menu {
        display: none; /* Hide hamburger on desktop */
    }
    
    .nav-enter-platform {
        order: 4; /* Rightmost position after nav links */
        margin-left: 2rem; /* Add space between Pricing and Enter Platform */
    }
}

.nav-link {
    color: #F7EDDA; /* light-cream */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #FFA74F; /* warm-orange */
}

.btn-primary {
    background-color: #FFA74F; /* warm-orange */
    color: #2E4B3C; /* dark-green */
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    min-height: 48px; /* Touch-friendly minimum height */
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #F0531C; /* bright-coral */
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-primary:active {
    background-color: #F0531C; /* bright-coral */
    transform: translateY(0) scale(0.98);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.1s ease;
}

/* Dashboard button styling - always orange like Enter Platform button */
.main-nav .dashboard-btn {
    background-color: #FFA74F !important; /* warm-orange */
    color: #2E4B3C !important; /* dark-green */
    padding: 0.5rem 1.5rem !important;
    border-radius: 0.5rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

.main-nav .dashboard-btn:hover {
    background-color: #F0531C !important; /* bright-coral */
    color: #2E4B3C !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}

.btn-secondary {
    color: #2E4B3C; /* dark-green */
    border: 2px solid #2E4B3C;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background-color: #2E4B3C;
    color: #F7EDDA;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Hero Section - Creative AI Legal Tech Design */
.hero {
    padding: 8rem 0 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(-45deg, #2E4B3C, #1a3429, #0f2420, #2E4B3C);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 167, 79, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(240, 83, 28, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(247, 237, 218, 0.05) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.02)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.02)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.01)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(1deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #F7EDDA;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    position: relative;
    z-index: 10;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero h1 .highlight {
    color: #FFA74F;
    position: relative;
    display: inline-block;
}

.hero h1 .ai-glitch {
    position: relative;
    display: inline-block;
    color: #FFA74F;
    animation: glitch 3s infinite;
}

.hero h1 .ai-glitch::before,
.hero h1 .ai-glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero h1 .ai-glitch::before {
    animation: glitchTop 3s infinite;
    color: #ff6b6b;
    z-index: -1;
}

.hero h1 .ai-glitch::after {
    animation: glitchBottom 3s infinite;
    color: #4ecdc4;
    z-index: -2;
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitchTop {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, -2px); }
    40% { transform: translate(-2px, 2px); }
    60% { transform: translate(2px, -2px); }
    80% { transform: translate(2px, 2px); }
}

@keyframes glitchBottom {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(2px, 2px); }
    40% { transform: translate(2px, -2px); }
    60% { transform: translate(-2px, 2px); }
    80% { transform: translate(-2px, -2px); }
}

.hero p {
    font-size: 1.25rem;
    color: #F7EDDA;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 10;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    margin-bottom: 2rem;
}

/* Simple Inline Chat Widget */
.inline-chat-widget {
    background: rgba(247, 237, 218, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 167, 79, 0.3);
    margin-top: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 10;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 167, 79, 0.2);
}

.chat-avatar {
    width: 50px;
    height: 50px;
    background: #FFA74F;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.chat-info {
    flex: 1;
}

.chat-title {
    font-weight: 700;
    color: #2E4B3C;
    font-size: 1.1rem;
}

.chat-status {
    font-size: 0.875rem;
    color: #16a34a;
    margin-top: 0.25rem;
}

.chat-messages {
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.chat-message {
    margin-bottom: 1rem;
}

.chat-message.ai-message .message-text {
    background: white;
    color: #2E4B3C;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #FFA74F;
}

.chat-message.user-message .message-text {
    background: #2E4B3C;
    color: white;
    padding: 1rem;
    border-radius: 12px;
    margin-left: 2rem;
    border-right: 4px solid #FFA74F;
}

.quick-questions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.quick-btn {
    background: white;
    border: 1px solid #FFA74F;
    color: #2E4B3C;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.quick-btn:hover {
    background: #FFA74F;
    color: white;
    transform: translateY(-1px);
}

.chat-input-area {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
}

.chat-input-area input {
    flex: 1;
    padding: 1rem;
    border: 2px solid rgba(255, 167, 79, 0.3);
    border-radius: 25px;
    font-size: 1rem;
    background: white;
    color: #2E4B3C;
}

.chat-input-area input:focus {
    outline: none;
    border-color: #FFA74F;
}

.chat-input-area .send-btn {
    background: #2E4B3C;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.chat-input-area .send-btn:hover {
    background: #1a3429;
    transform: translateY(-1px);
}

.typing-dots {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #FFA74F;
    animation: typing 1.4s infinite;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-8px); }
}


/* Morphing CTA Buttons */
.btn-primary {
    background: linear-gradient(135deg, #FFA74F 0%, #F0531C 100%);
    color: #2E4B3C;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 167, 79, 0.3);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    z-index: 10;
}

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

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

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 167, 79, 0.4);
    background: linear-gradient(135deg, #F0531C 0%, #FFA74F 100%);
}

.btn-secondary {
    color: #F7EDDA;
    border: 2px solid #F7EDDA;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    background: transparent;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #F7EDDA;
    transition: width 0.3s ease;
    z-index: -1;
}

.btn-secondary:hover::before {
    width: 100%;
}

.btn-secondary:hover {
    color: #2E4B3C;
    border-color: #F7EDDA;
    transform: translateY(-2px);
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
    
    .hero h1 {
        font-size: 4rem;
    }
}

/* Features Section */
.features {
    padding: 5rem 0;
    background-color: white;
}

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

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.25rem;
    color: #6b7280;
    max-width: 32rem;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.feature-card {
    background-color: #F7EDDA; /* light-cream */
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.feature-icon {
    width: 3rem;
    height: 3rem;
    background-color: #2E4B3C; /* dark-green */
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #F7EDDA; /* light-cream */
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #6b7280;
    line-height: 1.5;
}

/* How It Works */
.how-it-works {
    padding: 5rem 0;
    background-color: #F7DFBA; /* warm-cream */
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

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

.step {
    text-align: center;
}

.step-number {
    width: 4rem;
    height: 4rem;
    background-color: #2E4B3C; /* dark-green */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #F7EDDA; /* light-cream */
}

.step h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.step p {
    color: #6b7280;
}

/* Pricing */
.pricing {
    padding: 5rem 0;
    background-color: white;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 80rem;
    margin: 0 auto;
}

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

.pricing-card {
    background-color: #F7EDDA; /* light-cream */
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
}

.pricing-card.featured {
    border: 2px solid #FFA74F; /* warm-orange */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.popular-badge {
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: #FFA74F; /* warm-orange */
    color: #2E4B3C; /* dark-green */
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.price {
    margin-bottom: 1.5rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2E4B3C; /* dark-green */
}

.price-period {
    color: #6b7280;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.pricing-features li svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #2E4B3C; /* dark-green */
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.btn-outline {
    width: 100%;
    background-color: #2E4B3C; /* dark-green */
    color: #ffffff !important; /* white for better contrast */
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    display: block;
    transition: all 0.2s ease;
    min-height: 48px; /* Touch-friendly minimum height */
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-outline:hover {
    background-color: #09332C; /* darkest-green */
    color: #ffffff !important; /* ensure white on hover */
    transform: translateY(-1px);
}

.btn-outline:active {
    background-color: #09332C; /* darkest-green */
    color: #ffffff !important;
    transform: translateY(0) scale(0.98);
    transition: all 0.1s ease;
}

.btn-outline.featured {
    background-color: #FFA74F; /* warm-orange */
    color: #ffffff !important; /* white for better contrast */
}

.btn-outline.featured:hover {
    background-color: #F0531C; /* bright-coral */
    color: #ffffff !important; /* ensure white on hover */
}



/* Integration Advantage Section - Clean & Simple */
.integration-advantage {
    background: white;
    padding: 4rem 0;
    margin: 3rem 0;
}

.integration-container {
    max-width: 1200px;
    margin: 0 auto;
    background: #F7EDDA;
    border-radius: 0.75rem;
    padding: 3rem 2.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
}

.integration-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.integration-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.integration-header p {
    font-size: 1.125rem;
    color: #6b7280;
    line-height: 1.6;
}

.integration-comparison {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2.5rem;
    align-items: stretch;
    margin-bottom: 3rem;
}

.comparison-side {
    background: white;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.comparison-side h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f3f4f6;
}

.competitors h3 {
    color: #dc2626;
}

.lexai h3 {
    color: #059669;
}

.cost-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-grow: 1;
}

.cost-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f9fafb;
}

.cost-label {
    color: #374151;
    font-weight: 500;
}

.cost-amount {
    color: #dc2626;
    font-weight: 600;
}

.total-line {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #e5e7eb;
    text-align: center;
    font-weight: 700;
    color: #dc2626;
}

.vs-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2E4B3C;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1rem;
    margin: auto;
    box-shadow: 0 4px 12px rgba(46, 75, 60, 0.3);
}

.integration-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-grow: 1;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
}

.feature-icon {
    font-size: 1.5rem;
    min-width: 2.5rem;
    text-align: center;
}

.feature-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.feature-content p {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.4;
}

.lexai-total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #e5e7eb;
    text-align: center;
    font-weight: 700;
    color: #059669;
}

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

.result-card {
    background: #2E4B3C;
    color: white;
    padding: 2rem;
    border-radius: 0.75rem;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(46, 75, 60, 0.3);
}

.result-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.result-card p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.95;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .integration-advantage {
        padding: 3rem 0;
    }
    
    .integration-container {
        margin: 0 1rem;
        padding: 2rem 1.5rem;
    }
    
    .integration-header {
        margin-bottom: 2rem;
    }
    
    .integration-header h2 {
        font-size: 2rem;
    }
    
    .integration-header p {
        font-size: 1rem;
    }
    
    .integration-comparison {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }
    
    .vs-divider {
        width: 50px;
        height: 50px;
        font-size: 0.875rem;
        order: 1;
    }
    
    .competitors {
        order: 0;
    }
    
    .lexai {
        order: 2;
    }
    
    .comparison-side {
        padding: 1.5rem;
    }
    
    .comparison-side h3 {
        font-size: 1.125rem;
        margin-bottom: 1rem;
    }
    
    .result-card {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .result-card h3 {
        font-size: 1.25rem;
    }
    
    .result-card p {
        font-size: 0.875rem;
    }
}

/* CTA Section */
.cta {
    padding: 5rem 0;
    background-color: #2E4B3C; /* dark-green */
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #F7EDDA; /* light-cream */
    margin-bottom: 1.5rem;
}

.cta p {
    font-size: 1.25rem;
    color: #F7EDDA; /* light-cream */
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 64rem;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
    }
}

.cta-note {
    color: #F7EDDA; /* light-cream */
    opacity: 0.75;
}

/* Footer */
.footer {
    padding: 3rem 0;
    background-color: #09332C; /* darkest-green */
    text-align: center;
}

.footer img {
    height: 3rem;
    width: auto;
    margin: 0 auto 1rem;
}

.footer p {
    color: #F7EDDA; /* light-cream */
}

.footer p:first-of-type {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer p:last-of-type {
    opacity: 0.75;
}

/* Base Navigation Styles (for templates extending base.html) */
.base-navbar {
    background-color: #2E4B3C; /* dark-green */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.base-nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.base-nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
    gap: 1rem;
}

/* Ensure navigation can expand when needed */
@media (min-width: 768px) {
    .base-nav-content {
        flex-wrap: nowrap;
    }
    
    .base-nav-main {
        flex: 1;
        justify-content: center;
        max-width: none;
    }
}

@media (min-width: 1024px) {
    .base-nav-content {
        gap: 1.5rem;
    }
}

.base-nav-main {
    display: flex;
    align-items: center;
    gap: 0.125rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.base-nav-main::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

/* Mobile navigation adjustments - FIXED TO ALWAYS SHOW MENUS */
@media (max-width: 767px) {
    .base-nav-main {
        display: flex; /* ALWAYS SHOW - don't hide navigation! */
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (min-width: 768px) {
    .base-nav-main {
        display: flex;
        gap: 0.25rem;
    }
}

@media (min-width: 900px) {
    .base-nav-main {
        gap: 0.375rem;
    }
}

@media (min-width: 1024px) {
    .base-nav-main {
        gap: 0.5rem;
    }
}

@media (min-width: 1200px) {
    .base-nav-main {
        gap: 0.75rem;
    }
}

@media (min-width: 1400px) {
    .base-nav-main {
        gap: 1rem;
    }
}

.base-nav-link {
    color: #F7EDDA; /* light-cream */
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    position: relative;
    white-space: nowrap;
    background: transparent;
    border: 1px solid transparent;
}

.base-nav-link:hover {
    color: #FFA74F; /* warm-orange */
    background: rgba(255, 167, 79, 0.1);
    border-color: rgba(255, 167, 79, 0.2);
    transform: translateY(-1px);
    text-decoration: none;
}

.base-nav-link.active {
    color: #2E4B3C !important;
    background: linear-gradient(135deg, #FFA74F 0%, #F0531C 100%) !important;
    border-color: rgba(255, 167, 79, 0.5) !important;
    box-shadow: 
        0 4px 12px rgba(255, 167, 79, 0.3),
        0 2px 4px rgba(255, 167, 79, 0.2) !important;
    transform: translateY(-1px);
}

/* Responsive navigation link adjustments */
@media (min-width: 768px) and (max-width: 899px) {
    .base-nav-link {
        font-size: 0.75rem;
        padding: 0.375rem 0.5rem;
    }
}

@media (min-width: 900px) and (max-width: 1023px) {
    .base-nav-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
}

@media (min-width: 1024px) and (max-width: 1199px) {
    .base-nav-link {
        font-size: 0.85rem;
        padding: 0.5rem 0.7rem;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .base-nav-link {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
}

@media (min-width: 1400px) {
    .base-nav-link {
        font-size: 0.9rem;
        padding: 0.6rem 0.9rem;
    }
}

/* Dropdown styles */
.base-dropdown {
    position: relative;
}

.base-dropdown-button {
    color: #F7EDDA; /* light-cream */
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}

.base-dropdown-button:hover {
    color: #FFA74F; /* warm-orange */
    background: rgba(255, 167, 79, 0.1);
    border-color: rgba(255, 167, 79, 0.2);
    transform: translateY(-1px);
}

/* Responsive dropdown button adjustments */
@media (min-width: 768px) and (max-width: 899px) {
    .base-dropdown-button {
        font-size: 0.75rem;
        padding: 0.375rem 0.5rem;
    }
}

@media (min-width: 900px) and (max-width: 1023px) {
    .base-dropdown-button {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
}

@media (min-width: 1024px) and (max-width: 1199px) {
    .base-dropdown-button {
        font-size: 0.85rem;
        padding: 0.5rem 0.7rem;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .base-dropdown-button {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
}

@media (min-width: 1400px) {
    .base-dropdown-button {
        font-size: 0.9rem;
        padding: 0.6rem 0.9rem;
    }
}

.base-dropdown-button svg {
    margin-left: 0.25rem;
    width: 1rem;
    height: 1rem;
    transition: transform 0.2s ease;
}

.base-dropdown-button:hover svg {
    transform: rotate(180deg);
}

/* Enhanced dropdown styling for categories */
.base-dropdown-button {
    position: relative;
}

.base-dropdown-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #FFA74F;
    transition: width 0.2s ease;
}

.base-dropdown-button:hover::after {
    width: 80%;
}

/* PREMIUM NAVIGATION - POLISHED UI/UX */
.main-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    justify-content: center;
    position: relative;
}

.nav-item {
    position: relative;
    display: inline-block;
}

.nav-item > a,
.nav-link {
    color: #F7EDDA;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    text-decoration: none;
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    white-space: nowrap;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Dashboard button styling - Updated to match main dashboard */
.main-nav .nav-item.active,
.main-nav .nav-item > a.active,
.main-nav .nav-item > a[aria-current="page"],
.main-nav a.nav-item.active,
.main-nav a.nav-item:is(.active),
.main-nav a[class*="active"],
.main-nav a.nav-item[class*="active"] {
    background: linear-gradient(135deg, #2E4B3C, #4a7c59) !important;
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 0.75rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
    transform: none !important;
}

/* Dashboard button hover state - Updated to match main dashboard */
.main-nav .nav-item.active:hover,
.main-nav .nav-item > a.active:hover,
.main-nav .nav-item > a[aria-current="page"]:hover,
.main-nav a.nav-item.active:hover,
.main-nav a.nav-item:is(.active):hover,
.main-nav a[class*="active"]:hover,
.main-nav a.nav-item[class*="active"]:hover {
    background: linear-gradient(135deg, #2E4B3C, #4a7c59) !important;
    color: white !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1) !important;
}


/* Elegant hover effects with subtle animations */
.nav-item > a:hover,
.nav-link:hover {
    color: #FFA74F;
    background: rgba(255, 167, 79, 0.12);
    border-color: rgba(255, 167, 79, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 167, 79, 0.2);
}

/* Add subtle shimmer effect on hover */
.nav-item > a::before,
.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-item > a:hover::before,
.nav-link:hover::before {
    left: 100%;
}

/* Premium dropdown styling */
.dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    min-width: 240px;
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    z-index: 9999;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 0.75rem;
    overflow: hidden;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    animation: dropdownSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes dropdownSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

/* Polished dropdown items */
.dropdown-content a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827 !important; /* Much darker text for desktop readability */
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.dropdown-content a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #FFA74F;
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.dropdown-content a:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: #2E4B3C;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(46, 75, 60, 0.1);
}

.dropdown-content a:hover::before {
    transform: scaleY(1);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

/* Menu icons styling */
.menu-icon {
    font-size: 1.1rem;
    margin-right: 0.5rem;
    display: inline-block;
    min-width: 1.5rem;
    text-align: center;
    opacity: 0.8;
    transition: all 0.2s ease;
}

.dropdown-content a:hover .menu-icon {
    opacity: 1;
    transform: scale(1.1);
}

/* Add subtle icons to dropdown items */
.dropdown-content a::after {
    content: '→';
    margin-left: auto;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.2s ease;
    color: #FFA74F;
    font-weight: bold;
    font-size: 1rem;
}

.dropdown-content a:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Dropdown category headers for better organization */
.dropdown-content::before {
    content: attr(data-category);
    display: block;
    padding: 0.75rem 1.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

/* Responsive adjustments */
@media (min-width: 768px) and (max-width: 899px) {
    .nav-item > a,
    .nav-link {
        font-size: 0.75rem;
        padding: 0.375rem 0.5rem;
    }
    .main-nav {
        gap: 0.5rem;
    }
}

@media (min-width: 900px) and (max-width: 1023px) {
    .nav-item > a,
    .nav-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
    .main-nav {
        gap: 0.75rem;
    }
}

@media (min-width: 1024px) and (max-width: 1199px) {
    .nav-item > a,
    .nav-link {
        font-size: 0.85rem;
        padding: 0.5rem 0.7rem;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .nav-item > a,
    .nav-link {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
}

@media (min-width: 1400px) {
    .nav-item > a,
    .nav-link {
        font-size: 0.9rem;
        padding: 0.6rem 0.9rem;
    }
}

/* Mobile responsive */
@media (max-width: 767px) {
    .main-nav {
        flex-direction: column;
        gap: 0.25rem;
        align-items: stretch;
    }
    
    .dropdown-content {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        margin: 0;
        background: rgba(255, 255, 255, 0.1);
    }
    
    .dropdown-content a {
        padding: 0.5rem 1rem;
        color: #F7EDDA;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .dropdown-content a:hover {
        background: rgba(255, 167, 79, 0.1);
        color: #FFA74F;
        transform: none;
    }
}

.base-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
}

.base-dropdown-item:hover {
    background-color: #f8fafc;
    color: #2E4B3C;
    transform: translateX(4px);
}

.base-dropdown-item:last-child {
    border-bottom: none;
}

.base-dropdown-item svg {
    width: 1rem;
    height: 1rem;
    color: #6b7280;
    transition: color 0.2s ease;
}

.base-dropdown-item:hover svg {
    color: #2E4B3C;
}

/* User menu styles */
.base-user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.base-notification-btn {
    color: #F7EDDA; /* light-cream */
    transition: color 0.2s ease;
    background: none;
    border: none;
    cursor: pointer;
}

.base-notification-btn:hover {
    color: #FFA74F; /* warm-orange */
}

.base-notification-btn svg {
    width: 1.5rem;
    height: 1.5rem;
}

.base-user-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: #FFA74F; /* warm-orange */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2E4B3C; /* dark-green */
    font-weight: 500;
    font-size: 0.875rem;
}

.base-mobile-btn {
    color: #F7EDDA; /* light-cream */
    transition: color 0.2s ease;
    background: none;
    border: none;
    cursor: pointer;
    display: block;
}

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

.base-mobile-btn:hover {
    color: #FFA74F; /* warm-orange */
}

.base-mobile-btn svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Mobile menu */
.base-mobile-menu {
    background-color: #09332C; /* darkest-green */
    border-top: 1px solid #2E4B3C; /* dark-green */
}

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

.base-mobile-menu.hidden {
    display: none;
}

.base-mobile-nav {
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.base-mobile-link {
    display: block;
    padding: 0.75rem; /* Match accordion header padding */
    font-size: 1rem; /* Same as parent menu items */
    font-weight: 500;
    color: #F7EDDA; /* light-cream */
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.base-mobile-link:hover {
    color: #FFA74F; /* warm-orange */
    background-color: #2E4B3C; /* dark-green */
}

.base-mobile-link.active {
    color: #F7EDDA; /* Light cream text like logo */
    background-color: #2E4B3C; /* dark-green background */
}


/* Mobile Accordion Styles */
.mobile-accordion-section {
    border-bottom: 1px solid rgba(247, 237, 218, 0.1);
}

.mobile-accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: transparent;
    border: none;
    color: #F7EDDA; /* light-cream */
    font-size: 1rem; /* Same as Dashboard link */
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-accordion-header.parent-active {
    color: #FFA74F; /* warm-orange for active parent sections */
    background-color: rgba(255, 167, 79, 0.15);
}

.mobile-accordion-header:hover {
    background-color: rgba(247, 237, 218, 0.1);
}

.mobile-accordion-header.active {
    background-color: rgba(247, 237, 218, 0.15);
}

.mobile-accordion-chevron {
    transition: transform 0.2s ease;
    color: #F7EDDA;
}

.mobile-accordion-header.active .mobile-accordion-chevron {
    transform: rotate(180deg);
}

.mobile-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: rgba(46, 75, 60, 0.3);
}

.mobile-accordion-content.active {
    max-height: 500px; /* Adjust based on content */
}

.base-mobile-link.submenu {
    padding-left: 2rem;
    border-left: 2px solid rgba(255, 167, 79, 0.3);
    font-size: 0.9rem;
    color: #F7EDDA; /* Light cream for mobile readability */
}

.base-mobile-link.submenu.active {
    color: #FFA74F; /* warm-orange for active submenu items */
    background-color: rgba(255, 167, 79, 0.2);
    border-left-color: #FFA74F;
}

/* Mobile Dashboard button styling - matches desktop but with lighter text */
.base-mobile-link.mobile-dashboard-btn {
    background-color: #FFA74F !important; /* warm-orange */
    color: #ffffff !important; /* white text for better readability on mobile */
    padding: 0.75rem 1.5rem !important;
    border-radius: 0.5rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
    margin: 0.5rem 0 !important;
}

.base-mobile-link.mobile-dashboard-btn:hover {
    background-color: #F0531C !important; /* bright-coral */
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}

/* Footer styles for base template */
.base-footer {
    background-color: #2E4B3C; /* dark-green */
    border-top: 1px solid #09332C; /* darkest-green */
    margin-top: auto;
}

.base-footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

.base-footer-content {
    text-align: center;
    font-size: 0.875rem;
    color: #F7EDDA; /* light-cream */
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.125rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .cta h2 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
}


/* ========================================
   MOBILE TOUCH INTERACTION OPTIMIZATIONS
   ======================================== */

/* Global touch-friendly button standards */
button, input[type="submit"], input[type="button"], .btn, .button {
    min-height: 48px;
    min-width: 48px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

/* Enhanced touch feedback for all interactive elements */
a, button, input, select, textarea, [role="button"], [tabindex] {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* Input fields should allow text selection */
input[type="text"], input[type="email"], input[type="password"], textarea {
    -webkit-user-select: text;
    user-select: text;
}

/* Mobile-specific touch interactions */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets on mobile */
    .nav-link {
        min-height: 48px;
        padding: 0.75rem 1rem;
    }
    
    .btn-primary, .btn-secondary, .btn-outline {
        min-height: 52px;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Enhanced tap feedback */
    .btn:active, .button:active, [role="button"]:active {
        transform: scale(0.97);
        transition: transform 0.1s ease;
    }
    
    /* Prevent text selection on touch */
    .hero, .features, .pricing, .cta {
        -webkit-user-select: none;
        user-select: none;
    }
    
    /* Optimize form controls for touch */
    select, input[type="file"] {
        min-height: 48px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Touch-friendly dropdown menus */
    .dropdown-content a {
        min-height: 48px;
        padding: 0.875rem 1rem;
        display: flex;
        align-items: center;
    }
}

/* Landscape mobile optimizations */
@media (max-width: 768px) and (orientation: landscape) {
    /* Reduce vertical spacing in landscape */
    .hero {
        padding: 2rem 0;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    /* Optimize button sizes for landscape */
    .btn-primary, .btn-secondary, .btn-outline {
        min-height: 44px;
        padding: 0.75rem 1.25rem;
    }
}

/* High-DPI display optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure crisp borders and shadows on retina displays */
    .btn, .button, .nav-link {
        border-width: 0.5px;
    }
}

/* Accessibility improvements for touch */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus improvements for keyboard navigation on mobile */
@media (max-width: 768px) {
    a:focus, button:focus, input:focus, select:focus, textarea:focus {
        outline: 2px solid #FFA74F;
        outline-offset: 2px;
        border-radius: 0.25rem;
    }
    
    /* Skip link for accessibility */
    .skip-link {
        position: absolute;
        top: -40px;
        left: 6px;
        background: #2E4B3C;
        color: white;
        padding: 8px;
        text-decoration: none;
        border-radius: 4px;
        z-index: 1000;
    }
    
    .skip-link:focus {
        top: 6px;
    }

}