/*
Theme Name: Reform Premium Theme
Theme URI: https://reform.maimuse.ca/
Author: Antigravity
Author URI: https://reform.maimuse.ca/
Description: Custom Premium Dark Theme converted from HTML for Reform Support Services.
Version: 1.0
License: Proprietary
Text Domain: reform
*/

/*
 * Reform Support Services - V2 Dark Premium Theme
 */

:root {
    /* High-End Dark Palette */
    --bg-dark: #0a0e17; /* Deep Navy/Black */
    --bg-card: #111827; /* Slightly lighter for cards */
    --bg-glass: rgba(17, 24, 39, 0.6);
    
    /* Extracted from Logo context / Trustworthy Medical Colors */
    --primary: #ec4899; /* Vibrant Pink */
    --primary-glow: rgba(236, 72, 153, 0.5);
    --secondary: #06b6d4; /* Vibrant Cyan */
    --secondary-glow: rgba(6, 182, 212, 0.5);
    --accent: #f59e0b; /* Amber */
    
    /* Text */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Utilities */
    --radius-lg: 24px;
    --radius-md: 16px;
    --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(236, 72, 153, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-dark);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}
.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px var(--primary-glow);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(14, 165, 233, 0.1);
    transform: translateY(-2px);
}

/* Header - Centered Logo */
.header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
}

.nav-main {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-main ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.header-contact:hover {
    color: var(--primary);
}

.header-contact i {
    color: var(--primary);
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.05rem;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text-main);
}

.nav-link:hover::after {
    width: 100%;
}

.logo-left {
    display: block;
    position: relative;
    z-index: 10;
}

.logo-left img {
    height: 110px;
    border-radius: 8px;
    transition: var(--transition);
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.header.scrolled .logo-left img {
    height: 80px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    grid-column: 3;
    justify-self: end;
}

/* Animated Hero Slider */
.hero-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: var(--bg-dark);
}

.slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
    transition: transform 8s linear;
}

.slide.active .slide-bg {
    transform: scale(1);
}

.slide-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(10, 14, 23, 0.95) 0%, rgba(10, 14, 23, 0.4) 100%);
}

.slide-content {
    position: relative;
    z-index: 10;
    max-width: 950px;
}

.slide-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(14, 165, 233, 0.3);
    background: rgba(14, 165, 233, 0.1);
    border-radius: 50px;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
}

.slide-content h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.slide-content p {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* Staggered Reveals in Slider */
.slide .reveal-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide.active .reveal-item {
    opacity: 1;
    transform: translateY(0);
}

.slide.active .reveal-item:nth-child(1) { transition-delay: 0.2s; }
.slide.active .reveal-item:nth-child(2) { transition-delay: 0.4s; }
.slide.active .reveal-item:nth-child(3) { transition-delay: 0.6s; }
.slide.active .reveal-item:nth-child(4) { transition-delay: 0.8s; }

.slider-controls {
    position: absolute;
    bottom: 3rem;
    right: 3rem;
    z-index: 10;
    display: flex;
    gap: 1rem;
}

.slider-btn {
    width: 50px; height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.slider-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.slider-dots {
    position: absolute;
    bottom: 4rem;
    left: 2rem;
    z-index: 10;
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary);
    width: 30px;
    border-radius: 10px;
}

/* Sections */
.section-padding {
    padding: 8rem 0;
}

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

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Services Grid with Glow Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.glow-card {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    border: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
    transition: var(--transition);
}

.card-glow {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% -20%, rgba(14, 165, 233, 0.15), transparent 70%);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.glow-card:hover {
    transform: translateY(-10px);
    border-color: rgba(14, 165, 233, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

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

.card-content {
    position: relative;
    z-index: 2;
}

.icon-box {
    width: 70px; height: 70px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: var(--secondary);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.glow-card:hover .icon-box {
    color: white;
    border-color: transparent;
    transform: scale(1.1);
    background: transparent;
}

.glow-card:hover .icon-box::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: conic-gradient(transparent 270deg, var(--primary), var(--secondary));
    animation: rotate-border 2s linear infinite;
    z-index: -2;
}

.glow-card:hover .icon-box::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--bg-dark);
    border-radius: inherit;
    z-index: -1;
}

.glow-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.glow-card p {
    color: var(--text-muted);
}

/* About Section */
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-text h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.about-text .lead {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.image-stack {
    position: relative;
}

.img-back {
    width: 100%;
    border-radius: var(--radius-lg);
    display: block;
}

.glow-shadow {
    box-shadow: 0 0 60px rgba(14, 165, 233, 0.15);
}

.experience-card {
    position: absolute;
    bottom: -30px;
    left: -30px;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    text-align: center;
    overflow: hidden;
    --inner-bg: rgba(17, 24, 39, 0.85);
}

.experience-card::after {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.experience-card .number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.experience-card .text {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Reusable Animated Border */
.animated-border {
    overflow: hidden;
    isolation: isolate;
    --inner-bg: var(--bg-dark);
    --border-thickness: 2px;
}
.animated-border::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: conic-gradient(
        transparent 270deg,
        var(--primary),
        var(--secondary)
    );
    animation: rotate-border 3s linear infinite;
    z-index: -2;
}
.animated-border::after {
    content: '';
    position: absolute;
    inset: var(--border-thickness);
    background: var(--inner-bg);
    border-radius: inherit;
    z-index: -1;
}

@keyframes rotate-border {
    100% { transform: rotate(360deg); }
}

/* Footer */
.footer {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 6rem 0 2rem;
    background: #06080b;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-logo {
    height: 50px;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.footer-brand p {
    color: var(--text-muted);
    max-width: 300px;
}

.footer h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
}

.footer ul a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer ul a:hover {
    color: var(--primary);
}

.footer i {
    color: var(--primary);
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
}

/* Scroll Reveal Utility */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Social Icons */
.social-icons {
    display: flex;
    gap: 1rem;
}
.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    color: var(--text-main);
    transition: var(--transition);
}
.social-icons a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* Mobile Drawer */
.mobile-drawer-backdrop {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}
.mobile-drawer-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer {
    position: fixed;
    top: 0; right: 0;
    width: 320px;
    height: 100%;
    background: var(--bg-dark);
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    border-left: 1px solid rgba(255,255,255,0.05);
}
.mobile-drawer.active {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.drawer-logo {
    height: 50px;
    border-radius: 4px;
}
.drawer-close {
    background: none; border: none;
    color: var(--text-main);
    cursor: pointer;
}

.drawer-body {
    flex: 1;
    padding: 2rem 1.5rem;
    overflow-y: auto;
}
.drawer-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.drawer-link {
    text-decoration: none;
    color: var(--text-main);
    font-size: 1.2rem;
    font-family: var(--font-heading);
    font-weight: 500;
}

.drawer-footer {
    padding: 2rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: rgba(255,255,255,0.02);
}
.drawer-contact a, .drawer-contact p {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 1rem;
}
.drawer-contact i {
    color: var(--primary);
}

/* NEW SECTIONS */

/* Areas We Serve */
.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.area-card {
    background: var(--bg-glass);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}
.area-card:hover {
    background: rgba(236, 72, 153, 0.1);
    border-color: var(--primary);
    transform: translateY(-5px);
}
.area-card i {
    color: var(--secondary);
    margin-bottom: 1rem;
    width: 40px; height: 40px;
}

/* Timeline (How We Do It) */
.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    position: relative;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 30px; left: 0; width: 100%; height: 2px;
    background: rgba(255,255,255,0.1);
    z-index: 1;
}
.timeline-step {
    position: relative;
    z-index: 2;
    text-align: center;
}
.timeline-number {
    width: 60px; height: 60px;
    background: var(--bg-dark);
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 20px var(--primary-glow);
}
.timeline-step h3 {
    margin-bottom: 0.5rem;
}
.timeline-step p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Fleet / Colorful Section */
.bg-vibrant {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    position: relative;
}
.fleet-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.fleet-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

/* Feature Grid (Why Choose Us) */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}
.feature-item {
    text-align: center;
}
.feature-icon {
    width: 80px; height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 25px var(--secondary-glow);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}
.testimonial-card {
    background: var(--bg-card);
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    position: relative;
    border: 1px solid rgba(255,255,255,0.05);
}
.quote-icon {
    position: absolute;
    top: 2rem; right: 2rem;
    color: rgba(255,255,255,0.05);
    width: 60px; height: 60px;
}
.testimonial-text {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.author-avatar {
    width: 50px; height: 50px;
    border-radius: 50%;
    background: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-weight: bold;
}
.author-info h4 { margin: 0; font-size: 1rem; }
.author-info span { font-size: 0.85rem; color: var(--secondary); }


/* Responsive */
@media (max-width: 1024px) {
    .desktop-only {
        display: none !important;
    }
    
    .header-container {
        display: flex;
        justify-content: space-between;
    }
    
    .nav-main {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .slide-content h1 {
        font-size: 3.5rem;
    }
    
    .about-wrapper {
        grid-template-columns: 1fr;
    }
    
    .experience-card {
        bottom: -20px;
        left: 20px;
    }
    
    .timeline {
        grid-template-columns: 1fr 1fr;
    }
    .timeline::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .slide-content h1 {
        font-size: 2.5rem;
    }
    
    .slide-content p {
        font-size: 1.1rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .fleet-wrapper {
        grid-template-columns: 1fr;
    }
    
    .feature-grid, .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline {
        grid-template-columns: 1fr;
    }
}
/* Service Card Learn More Links */
.learn-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    margin-top: 1.5rem;
    transition: var(--transition);
}
.learn-more i {
    transition: transform 0.3s ease;
    width: 18px; height: 18px;
}
.learn-more:hover {
    color: var(--secondary);
}
.learn-more:hover i {
    transform: translateX(5px);
}

/* Floating Stack (Bottom Right) */
.floating-stack {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 999;
}

.scroll-top-btn, .whatsapp-btn {
    width: 50px; height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    transition: var(--transition);
}

.scroll-top-btn {
    background: var(--bg-glass);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-main);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: var(--primary);
    color: white;
}

.whatsapp-btn {
    background: #25D366; /* WhatsApp Green */
    color: white;
    text-decoration: none;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* Floating Quote Button (Bottom Left) */
.floating-quote {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 999;
}

.quote-tooltip {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
    pointer-events: none;
    white-space: nowrap;
}

.floating-quote:hover .quote-tooltip {
    opacity: 1;
    transform: translateX(0);
}

.quote-icon-btn {
    width: 60px; height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    animation: shake 4s infinite cubic-bezier(.36,.07,.19,.97) both;
}
.quote-icon-btn i {
    width: 28px; height: 28px;
}

@keyframes shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}

/* Contact Lightbox Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-dark);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 3rem;
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: scale(0.95) translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    background: rgba(255,255,255,0.05);
    border: none;
    color: var(--text-muted);
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(255,255,255,0.1);
    color: white;
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-header h3 {
    font-size: 1.8rem;
    margin: 1rem 0 0.5rem;
}

.modal-header p {
    color: var(--text-muted);
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-input {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: inherit;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255,255,255,0.05);
}

.form-input option {
    background: var(--bg-dark);
    color: var(--text-main);
}

/* Dropdown Menu Styles */
.nav-dropdown {
    position: relative;
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card);
    min-width: 280px;
    padding: 1rem 0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    list-style: none;
    border: 1px solid rgba(255,255,255,0.05);
}
.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-main .dropdown-menu li a {
    display: block;
    padding: 0.7rem 1.5rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}
.nav-main .dropdown-menu li a:hover {
    color: var(--primary);
    background: rgba(236, 72, 153, 0.05);
    padding-left: 2rem;
}

/* Page content basic typography */
.page-content p {
    margin-bottom: 1.5rem;
}
.page-content h2, .page-content h3 {
    color: var(--text-main);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.page-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}
.page-content ul li {
    margin-bottom: 0.5rem;
}


/* Service Split Layout */
.service-split-layout {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: flex-start;
}
@media (min-width: 768px) {
    .service-split-layout {
        flex-direction: row;
        align-items: flex-start;
    }
    .service-split-layout.image-left {
        flex-direction: row-reverse;
    }
}
.service-text {
    flex: 1;
}
.service-image {
    flex: 1;
    width: 100%;
}
.service-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.05);
}


/* MEGA MENU STYLES */
.mega-menu-wrapper {
    /* position: static to allow absolute centering to header */
}
.mega-menu {
    position: absolute;
    top: 100%;
    left: 100%;
    transform: translateX(-65%) translateY(10px);
    width: 800px;
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.05);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    display: flex;
    overflow: hidden;
}
.mega-menu-wrapper:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-65%) translateY(0);
}
.mega-menu-left {
    flex: 0 0 35%;
    padding: 2rem;
    background: rgba(255,255,255,0.02);
    border-right: 1px solid rgba(255,255,255,0.05);
}
.mega-menu-left h3 {
    margin-top: 0;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}
.mega-menu-left p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}
.mega-menu-right {
    flex: 1;
    padding: 2rem;
}
.mega-menu-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.mega-menu-links li a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
}
.mega-menu-links li a i {
    width: 18px;
    height: 18px;
    color: var(--primary);
}
.mega-menu-links li a:hover {
    color: var(--text-main);
    background: rgba(236, 72, 153, 0.05);
    transform: translateX(5px);
}


/* DYNAMIC MEGA MENU STYLES */
.mega-menu.dynamic-mega-menu {
    width: 900px;
    padding: 0;
    display: flex;
    flex-direction: row;
}
.dynamic-mega-menu .mega-menu-left {
    flex: 0 0 320px;
    padding: 1.5rem;
    background: var(--bg-card);
    border-right: 1px solid rgba(255,255,255,0.05);
}
.dynamic-mega-menu .mega-menu-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.dynamic-mega-menu .mega-menu-nav li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.dynamic-mega-menu .mega-menu-nav li a i {
    width: 16px; height: 16px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}
.dynamic-mega-menu .mega-menu-nav li.active a,
.dynamic-mega-menu .mega-menu-nav li a:hover {
    background: rgba(255,255,255,0.05);
    color: var(--primary);
}
.dynamic-mega-menu .mega-menu-nav li.active a i,
.dynamic-mega-menu .mega-menu-nav li a:hover i {
    opacity: 1;
    transform: translateX(0);
}
.dynamic-mega-menu .mega-menu-right {
    flex: 1;
    background: rgba(10,10,10,0.5);
    position: relative;
    padding: 1.5rem;
}
.mega-panel {
    position: absolute;
    top: 1.5rem; left: 1.5rem; right: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(10px);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.mega-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    position: relative;
    top: 0; left: 0; right: 0;
}
.mega-panel img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.mega-panel-text h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-main);
    font-size: 1.2rem;
}
.mega-panel-text p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}



/* MEGA MENU CENTERING FIX */
.mega-menu-wrapper {
    position: relative !important; /* Fixes vertical jumping on scroll */
}
.mega-menu {
    position: absolute !important;
    top: 100% !important; /* Flush against the bottom of the Services link */
    left: 50% !important;
    transform: translateX(-30%) translateY(10px) !important; /* Pushed to the right horizontally */
    pointer-events: none !important; 
}
.mega-menu-wrapper:hover .mega-menu {
    transform: translateX(-30%) translateY(0) !important;
    pointer-events: auto !important;
}
/* Ensure the gap bridge is still there */
.mega-menu::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

/* Fix for Contact/Referral Form Line Heights */
.page-template-default input[type="text"],
.page-template-default input[type="email"],
.page-template-default input[type="tel"],
.page-template-default input[type="url"],
.page-template-default input[type="date"],
.page-template-default input[type="time"],
.page-template-default textarea,
.page-template-default select,
.wpcf7-form-control, 
.gform_wrapper input, 
.gform_wrapper textarea,
.form-input {
    line-height: 1.2 !important;
    padding: 10px 15px !important;
    min-height: 45px;
}
.page-template-default textarea,
.wpcf7-textarea,
textarea.form-input {
    min-height: 120px;
    padding: 15px !important;
}
/* Reduce bottom margin of form fields */
.wpcf7-form-control-wrap,
p:has(> input) {
    margin-bottom: 15px !important;
}

/* Responsive Hero Actions */
.slide-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .slide-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }
    .slide-actions .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
    }
}

/* Mobile Mega Menu Toggle Fix */
@media (max-width: 992px) {
    .nav-main .mega-menu {
        display: none !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    .nav-main .mega-menu.mobile-expanded {
        display: flex !important;
        flex-direction: column !important;
        position: relative !important;
        transform: none !important;
        width: 100% !important;
        box-shadow: none !important;
        border: none !important;
        background: transparent !important;
        padding: 0 !important;
        margin-top: 10px;
    }
    .dynamic-mega-menu .mega-menu-left {
        width: 100% !important;
        flex: none !important;
        border: none !important;
        background: transparent !important;
        padding: 0 0 0 1rem !important;
    }
    .mega-menu-right {
        display: none !important;
    }
    .mega-menu-wrapper > a {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    .mega-menu-wrapper > a::after {
        content: '+';
        font-size: 1.5rem;
        font-weight: 300;
        transition: transform 0.3s ease;
    }
    .mega-menu-wrapper.expanded > a::after {
        transform: rotate(45deg);
        color: var(--primary);
    }
}

/* Super Aggressive Mobile Nav Hide */
@media screen and (max-width: 992px) {
    .nav-main .mega-menu:not(.mobile-expanded) {
        display: none !important;
        height: 0 !important;
        overflow: hidden !important;
    }
}

/* Drawer Accordion Styles */
.drawer-accordion-wrapper {
    position: relative;
}
.drawer-accordion-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    padding: 10px 0;
    transition: all 0.3s ease;
}
.drawer-accordion-toggle::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}
.drawer-accordion-wrapper.expanded .drawer-accordion-toggle {
    color: var(--primary);
}
.drawer-accordion-wrapper.expanded .drawer-accordion-toggle::after {
    transform: rotate(45deg);
}
.drawer-accordion-menu {
    display: none;
    list-style: none;
    padding-left: 1.5rem;
    margin: 10px 0;
    border-left: 1px solid rgba(255,255,255,0.1);
}
.drawer-accordion-wrapper.expanded .drawer-accordion-menu {
    display: block;
}
.drawer-accordion-menu li a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px 0;
    font-size: 1rem;
}
.drawer-accordion-menu li a:hover {
    color: var(--primary);
}
