/* =========================================
   1. GENERAL UTILITIES & LAYOUT
   ========================================= */
.separator-gold {
    width: 60px;
    height: 3px;
    background-color: #e4bb8e;
    margin: 15px auto;
}

.separator-white {
    height: 4px;
    width: 60px;
    background-color: #fff;
    margin: 15px auto;
    border-radius: 2px;
}

.img-invert {
    filter: brightness(0) invert(1);
}

.mt-30 {
    margin-top: 30px;
}

.mr-10 {
    margin-right: 10px;
}

.w-20 {
    width: 20px;
}

/* =========================================
   2. HOMEPAGE COMPONENTS (Index.html)
   ========================================= */

/* --- Service Cards --- */
.new-service-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background-color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    height: 320px;
}

.new-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.new-service-card .card-link-wrapper {
    display: block;
    height: 100%;
    width: 100%;
    position: relative;
}

.new-service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.new-service-card:hover img {
    transform: scale(1.1);
}

/* Gradient Overlay */
.new-service-card .card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    /* Height adjusted to be more of a caption bar */
    height: 80px;
    top: auto;

    /* Glassmorphism Styles */
    background: rgba(20, 20, 20, 0.65);
    /* Semi-transparent dark background */
    backdrop-filter: blur(10px);
    /* The frosted glass blur */
    -webkit-backdrop-filter: blur(10px);
    /* Safari support */
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    /* Subtle top highlight */

    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Optional: Make it glow slightly on hover */
.new-service-card:hover .card-overlay {
    background: rgba(88, 134, 175, 0.85);
    /* Mad Alf's Blue tint on hover */
    height: 100px;
    /* Expands slightly upwards */
}

.new-service-card .card-title {
    color: white;
    font-size: 22px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
    position: relative;
    z-index: 2;
}

.new-service-card .card-title a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    pointer-events: auto;
}

.new-service-card .card-title a:hover {
    color: #bfdbfe;
}

/* --- Rent a Chair Card (Polaroid Style) --- */
.rent-a-chair-card {
    background-color: #ffffff;
    padding: 15px 15px 30px 15px;
    border-radius: 2px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.15);
    transform: rotate(-3deg);
    transition: all 0.4s ease;
    margin-bottom: 30px;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #f0f0f0;
}

.rent-a-chair-card:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 10px 15px 30px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.rent-a-chair-card img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    border-radius: 0;
    filter: sepia(15%) contrast(1.1);
}

.rent-a-chair-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

.rent-a-chair-card p {
    color: #555;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    margin-bottom: 0;
    line-height: 1.3;
}

/* =========================================
   3. PRICING COMPONENTS (Pricing.html)
   ========================================= */
.modern-pricing-section {
    padding: 80px 0;
    background-color: #ffffff;
    color: #444;
}

.modern-pricing-section .sec-title {
    margin-bottom: 50px;
    text-align: center;
}

.modern-pricing-section .sec-title h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 32px;
    color: #222;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modern-pricing-section .sec-title h3 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: #e4bb8e;
    margin-top: 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.pricing-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.pricing-card:hover {
    border-color: #e4bb8e;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #e4bb8e;
    transform: scaleY(0);
    transition: transform 0.3s ease;
    transform-origin: bottom;
}

.pricing-card:hover::before {
    transform: scaleY(1);
}

.pricing-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
}

.pricing-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: #222;
}

.pricing-title h5 {
    font-size: 12px;
    color: #777;
    font-weight: 400;
    margin-top: 5px;
}

.pricing-cost {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #e4bb8e;
    white-space: nowrap;
}

.avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    vertical-align: middle;
    margin-left: 10px;
    border: 2px solid #e4bb8e;
}

/* =========================================
   4. CONTACT COMPONENTS (Contact.html)
   ========================================= */
.modern-contact-section {
    padding: 80px 0;
    background-color: #0a0a0a;
    color: #ddd;
}

.modern-contact-section .sec-title {
    text-align: center;
    margin-bottom: 50px;
}

.modern-contact-section .sec-title h3 {
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.modern-contact-section .sec-title p {
    color: #888;
}

.modern-contact-section .contact-card {
    background-color: #242424;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #333;
    margin-bottom: 30px;
    transition: 0.3s;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.modern-contact-section .contact-card:hover {
    border-color: #e4bb8e;
}

.modern-contact-section .icon-box {
    width: 50px;
    height: 50px;
    background: rgba(228, 187, 142, 0.1);
    color: #e4bb8e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    transition: 0.3s;
}

.modern-contact-section .contact-card:hover .icon-box {
    background: #e4bb8e;
    color: #1a1a1a;
}

.modern-contact-section h6 {
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 15px;
    font-family: 'Poppins', sans-serif;
}

.modern-contact-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modern-contact-section ul li {
    margin-bottom: 8px;
    font-size: 15px;
    color: #ccc;
}

.modern-contact-section ul li a {
    color: #ccc;
    transition: 0.3s;
}

.modern-contact-section ul li a:hover {
    color: #e4bb8e;
}

.contact-note {
    font-size: 13px;
    color: #777;
    margin-top: 15px;
    border-left: 2px solid #555;
    padding-left: 10px;
    font-style: italic;
}

.address-text {
    color: #ccc;
    line-height: 1.6;
}

.modern-contact-section .map-box {
    height: 100%;
    min-height: 450px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #333;
}

.modern-contact-section iframe {
    width: 100%;
    height: 100%;
}

/* =========================================
   5. SHARED: TESTIMONIALS & SWIPER
   ========================================= */
.testimonial-section-modern {
    padding: 100px 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.testimonial-section-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1;
}

.testimonial-section-modern .auto-container {
    position: relative;
    z-index: 2;
}

.testimonial-section-modern .sec-title h2 {
    color: #ffffff;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
}

/* Swiper Customization */
.swiper.myTestimonialSwiper {
    width: 100%;
    max-width: 500px;
    padding-bottom: 50px;
    padding-top: 20px;
}

.modern-testi-card {
    background: #ffffff;
    padding: 50px 40px;
    border-radius: 12px;
    margin-bottom: 0;
    height: 100%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.quote-icon {
    font-size: 40px;
    color: #e4bb8e;
    opacity: 0.5;
    margin-bottom: 20px;
    display: block;
}

.modern-testi-card .text {
    font-family: 'DM Sans', sans-serif;
    color: #555;
    font-size: 18px;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 30px;
    flex-grow: 1;
}

.modern-testi-card .author-box {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 25px;
    border-top: 1px solid #f0f0f0;
}

.modern-testi-card .author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid #e4bb8e;
}

.modern-testi-card .info h5 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 18px;
    margin: 0;
    color: #222;
}

.modern-testi-card .rating {
    color: #ffc107;
    font-size: 14px;
    margin-top: 5px;
}

.swiper-pagination-bullet {
    background: #fff;
    opacity: 0.4;
    width: 10px;
    height: 10px;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: #e4bb8e;
}

/* =========================================
   6. SHARED: FOOTER
   ========================================= */
.modern-footer {
    background-image: url(../images/background/2.jpg);
    /* Adjusted path relative to CSS folder */
    background-size: cover;
    background-position: center;
    position: relative;
    color: #bbb;
    padding: 80px 0 30px;
    font-family: 'DM Sans', sans-serif;
}

.modern-footer::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.85);
    z-index: 1;
}

.modern-footer .auto-container {
    position: relative;
    z-index: 2;
}

.modern-footer h4 {
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.modern-footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: #e4bb8e;
}

.modern-footer .footer-widget {
    margin-bottom: 40px;
}

.modern-footer .logo-widget img {
    max-width: 150px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.modern-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modern-footer ul li {
    margin-bottom: 12px;
    line-height: 1.6;
}

.modern-footer a {
    color: #bbb;
    transition: color 0.3s ease;
}

.modern-footer a:hover {
    color: #e4bb8e;
}

.modern-footer .footer-widget ul li i {
    color: #e4bb8e;
}

.opening-hours li {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.opening-hours li:last-child {
    border-bottom: none;
}

.opening-hours span.day {
    color: #fff;
    font-weight: 500;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #e4bb8e;
    transform: translateY(-3px);
}

.social-links a.instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    border: none;
}

.social-links a.instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.footer-bottom-modern {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
}

/* =========================================
   7. DARK MODE STYLES
   ========================================= */
body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

body.dark-mode .page-title-section h1,
body.dark-mode .page-title-section .post-meta li,
body.dark-mode .page-title-section .post-meta li a {
    color: #ffffff !important;
}

body.dark-mode .page-wrapper,
body.dark-mode .main-header,
body.dark-mode .sticky-header,
body.dark-mode .mobile-menu,
body.dark-mode .mobile-menu .menu-box {
    background-color: #1a1a1a !important;
}

body.dark-mode .main-header .main-menu .navigation>li>a {
    color: #e0e0e0 !important;
}

body.dark-mode .main-header .main-menu .navigation>li.current>a,
body.dark-mode .main-header .main-menu .navigation>li:hover>a {
    color: #e4bb8e !important;
}

/* Invert dark logo for header-style-two in dark mode */
body.dark-mode .header-style-two .logo img {
    filter: brightness(0) invert(1);
}

/* Dark Mode - Common Titles */
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode .sec-title h2 {
    color: #fff;
}

body.dark-mode p {
    color: #bbb;
}

/* Dark Mode - Pricing Page Specifics */
body.dark-mode .modern-pricing-section {
    background-color: #1a1a1a !important;
}

body.dark-mode .pricing-card {
    background-color: #242424;
    border-color: #333;
}

body.dark-mode .pricing-title {
    color: #fff;
}

body.dark-mode .pricing-title h5 {
    color: #aaa;
}

body.dark-mode .pricing-header {
    border-bottom-color: #333;
}

/* Dark Mode - Pricing Payment Box */
body.dark-mode .col-lg-8>div {
    background: #242424 !important;
    border-color: #333 !important;
}

body.dark-mode .col-lg-8 h4 {
    color: #fff !important;
}

/* Dark Mode - Testimonials */
body.dark-mode .modern-testi-card {
    background-color: #242424;
    color: #ddd;
}

body.dark-mode .modern-testi-card .info h5 {
    color: #fff;
}

body.dark-mode .modern-testi-card .text {
    color: #bbb;
}

body.dark-mode .modern-testi-card .author-box {
    border-top: 1px solid #333;
}

/* Dark Mode - Home Page Specifics */
body.dark-mode .reserve-section,
body.dark-mode .services-section {
    background-color: #121212;
}

body.dark-mode .rent-a-chair-card {
    background-color: #242424;
    border-color: #333;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5);
}

body.dark-mode .rent-a-chair-card h3 {
    color: #fff;
}

body.dark-mode .rent-a-chair-card p {
    color: #bbb;
}

body.dark-mode .rent-a-chair-card img {
    border-color: #333;
    filter: opacity(0.9);
}

body.dark-mode .new-service-card {
    background-color: #242424;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

/* Dark Mode - Mobile Menu Text */
body.dark-mode .mobile-menu .navigation li a {
    color: #fff;
    border-bottom-color: #333;
}

body.dark-mode .mobile-menu .close-btn {
    color: #fff;
}

body.dark-mode .mobile-menu .close-btn:hover {
    color: #e4bb8e;
}

/* =========================================
   8. TOGGLE BUTTONS & SNOW CANVAS
   ========================================= */

/* Floating Toggles Container */
.floating-toggles {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Button Styling */
.theme-toggle-btn,
.snow-toggle-btn {
    background-color: #ffffff;
    border: 2px solid #e4bb8e;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    color: #333;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    /* Removed margin-left to fit in floating container */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    /* Enhanced shadow for floating state */
}

.theme-toggle-btn:hover,
.snow-toggle-btn:hover {
    background-color: #e4bb8e;
    color: #fff;
    transform: translateY(-2px);
}

.snow-toggle-btn.active {
    background-color: #e4bb8e;
    color: #fff;
}

body.dark-mode .theme-toggle-btn,
body.dark-mode .snow-toggle-btn {
    background-color: #333;
    color: #e4bb8e;
    border-color: #e4bb8e;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

body.dark-mode .theme-toggle-btn:hover,
body.dark-mode .snow-toggle-btn:hover {
    background-color: #e4bb8e;
    color: #222;
}

body.dark-mode .snow-toggle-btn.active {
    background-color: #e4bb8e;
    color: #222;
}

/* Mobile Nav Toggle Adjustments */
.mobile-nav-toggler {
    display: flex !important;
    align-items: center;
}

.mobile-nav-toggler .icon.flaticon-menu {
    margin-top: 45px;
}

.mobile-nav-toggler .mobile-toggle {
    width: 36px;
    height: 36px;
    font-size: 16px;
}

/* Fix Visibility For Mobile Toggler Icon */
.mobile-nav-toggler .icon {
    color: #fff !important;
    /* Default light */
    cursor: pointer;
}

/* Specific Override for Index/Home Header if needed */
.header-style-two .mobile-nav-toggler .icon {
    color: #333 !important;
}

body.dark-mode .mobile-nav-toggler .icon {
    color: #fff !important;
}

/* Canvas for Snow Effect */
#snow-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    display: none;
}

/* =========================================
   9. NEW ANIMATIONS (Added)
   ========================================= */

/* Floating Animation for Rent-a-Chair Card */
@keyframes float-card {
    0% {
        transform: translateY(0px) rotate(-3deg);
    }

    50% {
        transform: translateY(-10px) rotate(-3deg);
    }

    100% {
        transform: translateY(0px) rotate(-3deg);
    }
}

/* Apply to Rent a Chair card (only when not hovering) */
.rent-a-chair-card:not(:hover) {
    animation: float-card 4s ease-in-out infinite;
}

/* Pulse Animation for Book Appointment Button */
@keyframes pulse-btn {
    0% {
        box-shadow: 0 0 0 0 rgba(88, 134, 175, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(88, 134, 175, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(88, 134, 175, 0);
    }
}

.banner-section .btn-style-one {
    animation: pulse-btn 2s infinite;
}

/* Ensure WOW elements are hidden before scrolling */
.wow {
    visibility: hidden;
}

/* =========================================
   10. IMPRESSIVE ANIMATIONS (Added)
   ========================================= */

/* --- 3D Tilt Effect Specifics --- */
.js-tilt-glare {
    border-radius: 12px;
}

/* Ken Burns Effect for Main Slider */
@keyframes kenBurns {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.15);
    }
}

.main-slider-carousel .slide {
    animation: kenBurns 20s ease-out infinite alternate;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
    /* Ensures image doesn't bleed out */
}

/* Liquid Fill Effect */
.btn-style-one {
    background-size: 200% auto;
    background-image: linear-gradient(to right, #5886af 0%, #285AEB 51%, #5886af 100%);
    transition: 0.5s;
}

.btn-style-one:hover {
    background-position: right center;
    /* Moves the gradient */
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    color: #fff;
    text-decoration: none;
}