/* Lutherville Dental - Shared Luxury Design System */

/* External Imports */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@400;500;600;700;800;900&display=swap');

/* High-End Gradient Design System */
:root {
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-tertiary: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-luxury: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #4FC3F7 100%);
    --gradient-gold: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
    --gradient-purple: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-blue: linear-gradient(135deg, #1976D2 0%, #4FC3F7 50%, #00e5ff 100%);
    --gradient-sms: linear-gradient(135deg, #FFFFFF 0%, #FFD700 25%, #FFFFFF 50%, #00FFFF 75%, #FFFFFF 100%);
    --gradient-dark: linear-gradient(135deg, #232526 0%, #414345 100%);
    --gradient-light: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    --gradient-mesh: radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
                     radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
                     radial-gradient(circle at 40% 40%, rgba(120, 119, 198, 0.3) 0%, transparent 50%);
    --gradient-text: linear-gradient(135deg, #FFFFFF 0%, #FFD700 25%, #FFFFFF 50%, #00FFFF 75%, #FFFFFF 100%);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--gradient-luxury);
    color: #ffffff;
    line-height: 1.6;
    letter-spacing: -0.01em;
    overflow-x: hidden;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--gradient-luxury);
    animation: gradientShift 15s ease infinite;
}

.animated-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-mesh);
    animation: meshMove 20s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background: var(--gradient-luxury); }
    25% { background: var(--gradient-primary); }
    50% { background: var(--gradient-blue); }
    75% { background: var(--gradient-purple); }
}

@keyframes meshMove {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-20px, -20px) scale(1.1); }
    50% { transform: translate(20px, -20px) scale(0.9); }
    75% { transform: translate(-20px, 20px) scale(1.05); }
}

/* Premium Typography */
.display-font {
    font-family: 'Playfair Display', serif;
}

.gradient-text {
    color: #FFFFFF; /* Subtle white fallback */
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientText 8s ease infinite;
    font-weight: 300 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* Ensure gradient text remains legible with a subtle shadow */
@supports (-webkit-background-clip: text) {
    .gradient-text {
        color: transparent;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    }
}

/* Fallback for browsers that don't support gradient text */
@supports not (-webkit-background-clip: text) {
    .gradient-text {
        color: #FFFFFF !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
        font-weight: 300 !important;
    }
}

@keyframes gradientText {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Luxury Navigation */
.luxury-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(30px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.luxury-nav.scrolled {
    background: rgba(30, 60, 114, 0.9);
    backdrop-filter: blur(40px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 50px;
    transition: all 0.4s ease;
    overflow: hidden;
    text-decoration: none;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: all 0.4s ease;
    border-radius: 50px;
    z-index: -1;
}

.nav-link:hover::before {
    left: 0;
}

.nav-link:hover {
    color: #ffffff;
    transform: translateY(-2px);
    text-decoration: none;
}

/* Premium Hero Section */
.hero-luxury {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-banner {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30,60,114,.7) 0%, rgba(102,126,234,.5) 40%, rgba(118,75,162,.6) 100%);
    z-index: 1;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    padding: 2rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(110%) contrast(105%);
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(30, 60, 114, 0.8) 0%, 
        rgba(102, 126, 234, 0.6) 25%,
        rgba(118, 75, 162, 0.7) 50%,
        rgba(79, 195, 247, 0.5) 75%,
        rgba(25, 118, 210, 0.8) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1000px;
    padding: 0 2rem;
}

.hero-glass-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 4rem 3rem;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    animation: floatUp 0.8s ease-out;
}

@keyframes floatUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Luxury Buttons */
.btn-luxury {
    position: relative;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 18px 40px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
    transition: all 0.4s ease;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-luxury::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-secondary);
    transition: all 0.4s ease;
    z-index: -1;
}

.btn-luxury:hover::before {
    left: 0;
}

.btn-luxury:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.6);
    text-decoration: none;
    color: white;
}

.btn-outline-luxury {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    padding: 16px 38px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-outline-luxury::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: all 0.4s ease;
    z-index: -1;
    border-radius: 50px;
}

.btn-outline-luxury:hover::before {
    left: 0;
}

.btn-outline-luxury:hover {
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.4);
    text-decoration: none;
    color: white;
}

/* Premium Sections */
.luxury-section {
    position: relative;
    padding: 8rem 0;
    z-index: 10;
}

.gradient-panel {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 4rem 3rem;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
    margin: 2rem 0;
    transition: all 0.4s ease;
}

.gradient-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 35px 100px rgba(0, 0, 0, 0.3);
}

/* Premium Service Cards */
.service-card-luxury {
    position: relative;
    height: 450px;
    border-radius: 25px;
    overflow: hidden;
    background: var(--gradient-primary);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.service-card-luxury::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-secondary);
    opacity: 0;
    transition: all 0.5s ease;
    z-index: 1;
}

.service-card-luxury:hover::before {
    opacity: 1;
}

.service-card-luxury:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 35px 80px rgba(102, 126, 234, 0.4);
    text-decoration: none;
    color: inherit;
}

.service-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background-size: cover;
    background-position: center;
    z-index: 2;
}

.service-card-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(30, 60, 114, 0.7) 30%,
        rgba(30, 60, 114, 0.95) 100%);
    z-index: 3;
}

.service-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    z-index: 4;
    color: white;
}

/* Premium Priority Cards */
.priority-card-luxury {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 3rem 2rem;
    height: 350px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.priority-card-luxury::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

.priority-card-luxury:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 70px rgba(102, 126, 234, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.priority-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

/* Premium FAQ */
.faq-card-luxury {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-card-luxury:hover {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.faq-question {
    background: none;
    border: none;
    color: white;
    width: 100%;
    padding: 2rem;
    text-align: left;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    background: rgba(255, 255, 255, 0.05);
}

.faq-answer.active {
    padding: 2rem;
    max-height: 200px;
}

/* Premium Map */
.map-luxury {
    border-radius: 25px;
    overflow: hidden;
    background: var(--gradient-primary);
    padding: 8px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
}

.map-luxury iframe {
    border-radius: 20px;
    width: 100%;
    height: 400px;
}

/* Premium Footer */
.footer-luxury {
    background: linear-gradient(135deg, 
        rgba(30, 60, 114, 0.9) 0%, 
        rgba(102, 126, 234, 0.8) 100%);
    backdrop-filter: blur(30px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.footer-icon-luxury {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.footer-icon-luxury:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
    background: var(--gradient-secondary);
    color: white;
    text-decoration: none;
}

/* Mobile Luxury Footer */
.mobile-footer-luxury {
    position: fixed;
    left: 50%;
    right: auto;
    bottom: max(16px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    background: rgba(30, 60, 114, 0.85);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 9999px;
    padding: 0.5rem 0.75rem;
    z-index: 1000;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
    width: auto;
}

/* Align items tightly inside the capsule */
.mobile-footer-luxury .flex {
    justify-content: center;
    gap: 0.75rem;
}

/* Slightly smaller, pill-friendly icons */
.mobile-footer-luxury .footer-icon-luxury {
    width: 48px;
    height: 48px;
    box-shadow: 0 6px 18px rgba(102, 126, 234, 0.45);
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Ensure sections are visible by default */
.luxury-section {
    opacity: 1 !important;
}

.gradient-panel {
    opacity: 1 !important;
}

.slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.slide-left.active {
    opacity: 1;
    transform: translateX(0);
}

.slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.slide-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-glass-card {
        padding: 3rem 2rem;
        margin: 1rem;
    }

    .gradient-panel {
        padding: 3rem 2rem;
        margin: 1rem;
    }

    .luxury-section {
        padding: 4rem 0;
    }

    .mobile-footer-luxury {
        display: block;
    }

    body {
        padding-bottom: 0;
    }

    /* Make header non-sticky on mobile */
    .luxury-nav {
        position: static !important;
        background: transparent;
        backdrop-filter: none;
        box-shadow: none;
        border-bottom: none;
    }
}

@media (min-width: 769px) {
    .mobile-footer-luxury {
        display: none;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-secondary);
}

/* Floating Elements */
.floating-element {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Luxury Accent Lines */
.accent-line {
    width: 100px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    margin: 2rem auto;
}

/* Additional Utility Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Coupon specific styles */
.coupon-banner-box {
    position: relative;
    display: block;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.coupon-banner-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.coupon-banner-box .overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(30, 60, 114, 0.75);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #FFF;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.coupon-banner-box .overlay .icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.coupon-banner-box .overlay .text {
    font-weight: 600;
    font-size: 1.125rem;
    letter-spacing: 0.05em;
    text-align: center;
    padding: 0 10px;
}

.coupon-banner-box:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.3);
    text-decoration: none;
    color: inherit;
}

.coupon-banner-box:hover .overlay {
    opacity: 1;
}

.coupon-banner-box:hover img {
    transform: scale(1.1);
}

/* Team Cards */
.team-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

/* Map Container */
.map-container {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map-container:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: 0;
    display: block;
}

@media (max-width: 640px) {
    .map-container {
        border-radius: 8px;
        border-width: 1px;
    }

    .map-container iframe {
        height: 300px;
    }
}
