/* 
 * Smile Patrol High-End Redesign (Deep Blue Theme)
 * Modern, Trustworthy, Clean
 */

:root {
    /* Color Palette: Deep Blue & Clean White */
    --tech-primary: #1e40af;
    /* Vibrant Blue for Actions */
    --tech-primary-dark: #1e3a8a;
    /* Deeper Blue for Hover */
    --tech-deep-bg: #0f172a;
    /* Dark Background (Hero/Footer) */
    --tech-surface: #f8fafc;
    /* Light Surface */
    --tech-text-main: #0f172a;
    /* Main Text */
    --tech-text-sub: #64748b;
    /* Sub Text */
    --tech-border: #e2e8f0;
    /* Subtle Borders */
    --tech-accent: #3b82f6;
    /* Bright Accent */

    /* Gradients */
    --tech-gradient: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    --tech-hero-gradient: linear-gradient(180deg, #0f172a 0%, #172554 100%);
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif !important;
    color: var(--tech-text-main);
    line-height: 1.6;
    background-color: #fff;
}

/* Utilities */
.text-tech-blue {
    color: var(--tech-primary) !important;
}

.bg-tech-surface {
    background-color: var(--tech-surface) !important;
}

.bg-tech-gradient {
    background: var(--tech-gradient) !important;
}

.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.section-padding {
    padding: 5rem 0;
}

/* Buttons */
.btn-tech {
    background: var(--tech-gradient);
    color: white;
    border: 2px solid transparent;
    padding: 0.75rem 2rem;
    border-radius: 50rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25);
}

.btn-outline-tech {
    background: transparent;
    color: var(--tech-primary);
    border: 2px solid var(--tech-primary);
    padding: 0.75rem 2rem;
    border-radius: 50rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-tech:hover {
    background: var(--tech-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25);
    transform: translateY(-2px);
}

.btn-tech:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(30, 64, 175, 0.35);
    color: white;
}

.btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 0.75rem 2rem;
    border-radius: 50rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-white:hover {
    background: white;
    color: var(--tech-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.25);
}

/* Hero Section (Deep Blue) */
.hero-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--tech-hero-gradient);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
}

.hero-content p {
    color: #cbd5e1;
    /* Light gray for dark bg */
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
}

/* Service Grid (2x2 Clean Layout) */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1rem 0;
}

@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.bento-item {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid var(--tech-border);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.bento-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
    border-color: var(--tech-accent);
}

.bento-icon {
    width: 60px;
    height: 60px;
    background: var(--tech-surface);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--tech-primary);
}

/* Pricing Cards (Checklists) */
.pricing-card {
    background: white;
    border-radius: 24px;
    padding: 3rem 2rem;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
}

.pricing-card.featured {
    border: 2px solid var(--tech-primary);
    background: linear-gradient(180deg, #fff 0%, #eff6ff 100%);
    z-index: 10;
    transform: scale(1.05);
    padding-top: 5rem;
    padding-bottom: 5rem;
    margin-top: -2rem;
    margin-bottom: -2rem;
    box-shadow: 0 35px 70px -15px rgba(30, 64, 175, 0.4);
    position: relative;
    border-radius: 28px;
}

.pricing-card.featured .badge {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    padding: 0.6rem 1.5rem;
    box-shadow: 0 10px 20px rgba(30, 64, 175, 0.2);
    border: 4px solid white;
    width: max-content;
    z-index: 20;
}

@media (max-width: 991px) {
    .pricing-card.featured {
        padding-top: 3rem;
        padding-bottom: 3rem;
        margin-top: 0;
        margin-bottom: 0;
        transform: scale(1.02);
    }
}

.pricing-amount {
    font-size: 3rem;
    font-weight: 800;
    margin: 1.5rem 0;
    color: var(--tech-text-main);
}

.check-list li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.75rem;
    text-align: left;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--tech-primary);
    font-weight: bold;
}

/* Subscription Wizard */
.wizard-container {
    background: white;
    border-radius: 24px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    padding: 3rem;
    border: 1px solid var(--tech-border);
    max-width: 800px;
    margin: 0 auto;
}

.wizard-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
}

/* Progress Line behind steps */
.wizard-progress::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--tech-border);
    z-index: 0;
}

.wizard-step-indicator {
    position: relative;
    z-index: 1;
    background: white;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: 600;
    color: var(--tech-text-sub);
}

.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--tech-surface);
    border: 2px solid var(--tech-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.wizard-step-indicator.active .step-circle {
    background: var(--tech-primary);
    border-color: var(--tech-primary);
    color: white;
}

.wizard-step-indicator.active {
    color: var(--tech-primary);
}

.wizard-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.wizard-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Styles Override for Wizard */
.wizard-step input.form-control,
.wizard-step select.form-select {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #cbd5e1;
}

.wizard-step input.form-control:focus,
.wizard-step select.form-select:focus {
    border-color: var(--tech-primary);
    box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.1);
}

/* App Download (Mockup Style) */
.app-mockup {
    /* No border radius on image itself if it has phone frame, but adding shadow */
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s ease;
}

.app-mockup:hover {
    /* transform: rotate(-5deg) scale(1.02) !important; */
}

/* Footer (Deep Blue Dark) */
footer {
    background: var(--tech-deep-bg) !important;
    /* Making footer dark per Deep Blue theme, contradicting user request? Wait. 
    User request 3: "Footer: Lighten the background for better contrast". 
    But new request "Deep blue and clean white color scheme".
    Usually Deep Blue themes have Dark Footers.
    I will stick to the Deep Blue Theme variables which define Footer as Deep BG ?? 
    Wait, in my CSS I defined: --tech-deep-bg: #0f172a; 
    Let's check the previous plan. "Footer: Lighten the background".
    However, the latest prompt "High-High-End UI... Deep blue and clean white".
    A white footer is safer for "Lighten the background".
    I will make the footer LIGHT in CSS to respect the earlier specific feedback.
    */
    background: var(--tech-surface) !important;
    color: var(--tech-text-sub) !important;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

footer h6 {
    color: var(--tech-text-main) !important;
    font-weight: 700;
}

/* =========================================
   Sticky Header & Navigation Redesign
   ========================================= */

#mainNav {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    transition: all 0.3s ease-in-out;
    background-color: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Scrolled State */
#mainNav.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    /* Gentle shadow */
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-bottom: none;
}

/* Brand/Logo */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: white !important;
    transition: color 0.3s ease;
}

#mainNav.scrolled .navbar-brand {
    color: var(--tech-primary) !important;
}

/* Navigation Links */
#mainNav .navbar-nav .nav-item .nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 0.5rem 1rem;
    position: relative;
    transition: all 0.3s ease;
    border-bottom: none !important;
    /* Fix for double-line bug */
}

/* Hover Effect (Underline) */
#mainNav .navbar-nav .nav-item .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    transition: width 0.3s ease;
}

#mainNav .navbar-nav .nav-item .nav-link:hover {
    color: white !important;
}

#mainNav .navbar-nav .nav-item .nav-link:hover::after {
    width: 80%;
}

/* Active State - Use the same underline style */
#mainNav .navbar-nav .nav-item .nav-link.active::after {
    width: 80%;
}

/* Scrolled State Links */
#mainNav.scrolled .navbar-nav .nav-item .nav-link {
    color: var(--tech-text-main) !important;
}

#mainNav.scrolled .navbar-nav .nav-item .nav-link:hover {
    color: var(--tech-primary) !important;
}

#mainNav.scrolled .navbar-nav .nav-item .nav-link::after {
    background-color: var(--tech-primary);
}

/* CTA Buttons */
.btn-login {
    color: white !important;
    font-weight: 600;
    margin-right: 1rem;
    transition: color 0.3s ease;
    text-decoration: none;
}

#mainNav.scrolled .btn-login {
    color: var(--tech-text-sub) !important;
}

#mainNav.scrolled .btn-login:hover {
    color: var(--tech-primary) !important;
}

.btn-tech-cta {
    background-color: white;
    color: var(--tech-primary);
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-tech-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background-color: white;
    color: var(--tech-primary-dark);
}

/* Scrolled Button State */
#mainNav.scrolled .btn-tech-cta {
    background: var(--tech-gradient);
    color: white;
}

#mainNav.scrolled .btn-tech-cta:hover {
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
    color: white;
}

/* Mobile Toggler */
.navbar-toggler {
    border: none;
    color: white !important;
    font-size: 1.25rem;
}

#mainNav.scrolled .navbar-toggler {
    color: var(--tech-text-main) !important;
}

/* Mobile Menu Adjustments */
@media (max-width: 991px) {
    #navbarResponsive {
        background-color: white;
        padding: 1.5rem;
        margin-top: 1rem;
        border-radius: 1rem;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }

    #mainNav .navbar-nav .nav-item .nav-link {
        color: var(--tech-text-main) !important;
        text-align: center;
        padding: 0.75rem 0;
    }

    #mainNav .navbar-nav .nav-item .nav-link::after {
        background-color: var(--tech-primary);
    }

    .btn-login {
        color: var(--tech-text-sub) !important;
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .d-flex.align-items-center.gap-3 {
        flex-direction: column;
        margin-top: 1rem;
        width: 100%;
    }

    .btn-tech-cta {
        width: 100%;
        text-align: center;
        background: var(--tech-gradient) !important;
        color: white !important;
    }
}