﻿/* Custom CSS for style.css */

/* --- GENERAL & MOBILE APP LOOK --- */
body {
    /* Set a smooth transition on all elements for subtle changes */
    transition: background-color 0.3s ease;
    /* Optional: Use a clean, modern font */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 39px;
}

/* 1. Ensure the fixed navbar spans the exact width and doesn't trigger scrollbars */
.fixed-top {
    left: 0;
    right: 0;
    /* Important: This guarantees the element takes the full available viewport width */
    width: 100vw;
    /* Ensures no extra border or shadow bleed outside the 100vw */
    box-sizing: border-box;
}

/* 2. Fix for Mobile View (Optional, but Good Practice) */
/* The navbar-brand logo and the toggler button should sit snugly at the edge */
.navbar-brand, .navbar-toggler {
    /* Use padding from the container instead of external margins */
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.navbar-brand img {
    width: 220px;
}
/* Ensure mobile view uses full screen width with no horizontal scroll */
.container-fluid {
    padding-left: 0;
    padding-right: 0;
}

/* Style for the Hero Section */
#hero {
    /* Subtle background image scroll effect */
    background-attachment: fixed;
    /* Smooth animation for the text overlay on load */
}

/* --- ANIMATIONS & TRANSITIONS --- */

/* 1. Card Hover Effect (Desktop/Laptop Transition) */
.hover-grow {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

    .hover-grow:hover {
        /* Slightly enlarges the card on hover */
        transform: translateY(-5px) scale(1.02);
        /* Adds a deeper shadow for 3D effect */
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
    }

/* 2. Pulse Animation for the Main CTA Button */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 193, 7, 0.4);
    }

    100% {
        transform: scale(1);
    }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* 3. Mobile Navigation Styling (More App-like) */
@media (max-width: 991.98px) {
    .navbar-collapse {
        /* Full-screen menu overlay on mobile */
        position: fixed;
        top: 56px; /* Below the fixed header */
        left: 0;
        right: 0;
        bottom: 0;
        background-color: white;
        z-index: 1050;
        padding: 1rem;
        /* Slide-in transition for the menu */
        transition: transform 0.3s ease-in-out;
        transform: translateX(100%);
    }

        .navbar-collapse.show {
            transform: translateX(0);
        }

    .navbar-nav .nav-item {
        margin-bottom: 0.5rem;
    }

    .navbar-nav .nav-link {
        /* Full width buttons for app feel */
        display: block;
        text-align: center;
        border-bottom: 1px solid #eee;
        padding: 1rem 0;
    }
}

/* =========================================
   1. Brand Colors & Typography
   ========================================= */

:root {
    /* Primary brand color for main elements */
    --color-success: #008000; /* Deep Green (Health, Nature) */
    /* Accent color for CTAs, highlights */
    --color-warning: #FFC107; /* Warm Yellow/Gold (Energy, Vitality) */
    /* Secondary accent for backgrounds/text */
    --color-light: #f8f9fa;
    --color-dark: #343a40;
    --font-primary: 'Poppins', sans-serif; /* Recommended clean font */
    --transition-speed: 0.3s;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--color-dark);
    background-color: #f0f4f0; /* Very light green/grey background */
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #212529; /* Near black for strong headings */
}

/* Customizing Bootstrap Colors */
.text-success {
    color: var(--color-success) !important;
}

.bg-success {
    background-color: var(--color-success) !important;
}

.btn-success {
    background-color: var(--color-success);
    border-color: var(--color-success);
}

    .btn-success:hover {
        background-color: #006400; /* Darker green on hover */
        border-color: #006400;
    }

.btn-warning {
    background-color: var(--color-warning);
    border-color: var(--color-warning);
    color: var(--color-dark);
}

    .btn-warning:hover {
        background-color: #ff9900;
        border-color: #ff9900;
    }

/* =========================================
   2. Layout & Header/Footer
   ========================================= */

.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.footer {
    background-color: var(--color-dark);
    color: var(--color-light);
    border-top: 5px solid var(--color-warning);
}

/* Section Separators */
hr {
    border-top: 2px solid rgba(0, 0, 0, 0.05);
}

/* =========================================
   3. Custom Component Styling
   ========================================= */

/* Why Choose Us Feature Boxes */
.feature-box {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

    .feature-box i {
        color: var(--color-warning);
    }

    .feature-box:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

/* Focused Treatments Icon Boxes */
.treatment-icon-box {
    transition: background-color var(--transition-speed), border-color var(--transition-speed);
}

    .treatment-icon-box:hover {
        background-color: #fffde7; /* Light hover background */
        border-color: var(--color-warning) !important;
    }

.treatment-image-box {
    overflow: hidden; /* Ensures rounded corners on image carousel */
}


/* Facilities Boxes */
.facility-item {
    transition: all var(--transition-speed);
}

    .facility-item:hover {
        background-color: #e6ffe6 !important; /* Light green highlight on hover */
        transform: scale(1.05);
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    }


/* =========================================
   4. Animations (From Home.cshtml)
   ========================================= */

/* --- Pulse Animation (for main CTAs) --- */
.pulse-animation {
    animation: pulse-effect 2s infinite;
}

@keyframes pulse-effect {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
    }
}

/* --- Scroll/Viewport Animations --- */

/* Initial hidden state for elements */
.slide-in-left,
.slide-in-right,
.zoom-in-on-scroll,
.hover-lift {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smooth transition */
}

    /* State when element is visible in viewport */
    .slide-in-left.is-visible {
        opacity: 1;
        transform: translateX(0);
    }

    .slide-in-right.is-visible {
        opacity: 1;
        transform: translateX(0);
    }

    .zoom-in-on-scroll.is-visible {
        opacity: 1;
        transform: scale(1);
    }

/* Specific initial position for each class */
.slide-in-left {
    transform: translateX(-50px);
}

.slide-in-right {
    transform: translateX(50px);
}

.zoom-in-on-scroll {
    transform: scale(0.95);
}


/* =========================================
   5. Hero Section & Backgrounds
   ========================================= */

#hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

    #hero h1 {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
        color: white;
    }

/* Booking Page Specific Styles */
#booking-form .card {
    border: 3px solid var(--color-success);
}