/* Main Styles for Lee Communication Website */

:root {
    --primary: #2563eb;
    --secondary: #7c3aed;
}

/* Base Styles */
.text-primary {
    color: var(--primary);
}

.text-secondary {
    color: var(--secondary);
}

.bg-primary {
    background-color: var(--primary);
}

.bg-primary\/10 {
    background-color: rgba(37, 99, 235, 0.1);
}

/* Dark Mode Toggle */
html.dark {
    color-scheme: dark;
}

/* Animations */
@keyframes gradient-x {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.animate-gradient-x {
    animation: gradient-x 5s ease infinite;
}

/* Glassmorphism Navbar */
.backdrop-blur-md {
    backdrop-filter: blur(12px);
}

/* Hero Section */
.hero-gradient {
    background-image: linear-gradient(to right, var(--primary), var(--secondary));
    opacity: 0.2;
}

/* Text Gradients */
.text-gradient {
    background-image: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Plan Cards */
.plan-card {
    transition: all 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-5px);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    color: white;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #1d4ed8; /* Darker blue */
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: rgba(37, 99, 235, 0.1);
}

/* FAQ Toggles */
.faq-toggle svg {
    transition: transform 0.3s ease;
}

.rotate-180 {
    transform: rotate(180deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-content:not(.hidden) {
    max-height: 300px; /* Adjust based on content */
}

/* Coverage Map */
#coverage-map {
    z-index: 1;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.leaflet-popup-content-wrapper {
    border-radius: 0.5rem;
}

.leaflet-popup-content {
    font-family: inherit;
    padding: 0.5rem;
}

/* Contact Form */
input, select, textarea {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

/* Footer Gradient */
.footer-gradient {
    background-image: linear-gradient(to right, var(--primary), var(--secondary));
}

/* Mobile Responsiveness Enhancements */
@media (max-width: 768px) {
    .text-gradient {
        background-size: 200% auto;
    }
    
    /* Make sure buttons stack properly on smaller screens */
    .flex-col-mobile {
        flex-direction: column;
    }
    
    /* Increase tap target size on mobile */
    .mobile-tap-target {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(37, 99, 235, 0.5);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(37, 99, 235, 0.8);
}

/* Smooth transition for all hover states */
a, button, .transition-all {
    transition: all 0.3s ease;
}

/* Back to top button */
#back-to-top {
    transform-origin: center;
}

#back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

#back-to-top svg {
    transition: transform 0.3s ease;
}

#back-to-top:hover svg {
    transform: translateY(-2px);
}

/* Dark mode adjustment for back to top button */
.dark #back-to-top {
    box-shadow: 0 4px 6px -1px rgba(255, 255, 255, 0.1), 0 2px 4px -1px rgba(255, 255, 255, 0.06);
}

/* Print styles for better printing */
@media print {
    .no-print {
        display: none;
    }
    
    body, html {
        width: 100%;
        margin: 0;
        padding: 0;
        background-color: white;
        color: black;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
    }
}

/* Content Isolation and Layout */
section {
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.flex-col, .flex-row {
    isolation: isolate;
}

.container {
    isolation: isolate;
}

/* Fix for top spacing with fixed header */
main {
    padding-top: 0; /* Remove any default padding */
}

.mt-24 {
    margin-top: 5rem; /* Reduce from 6rem (mt-24) to 5rem for better spacing */
}

/* For the homepage hero section specifically */
header.min-h-\[80vh\] {
    padding-top: 4rem; /* Add padding specifically for the hero header */
    min-height: calc(80vh - 4rem); /* Adjust the min-height to account for navbar */
}