/* --- Black & Gold Theme for Salon FLORI --- */

/* --- Font Imports --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Poppins:wght@300;400;500&display=swap');

/* --- Color Palette --- */
:root {
    --bg-dark: #121212;
    /* Rich black for backgrounds */
    --bg-secondary: #1a1a1a;
    /* Slightly lighter black for cards/sections */
    --gold-primary: #D4AF37;
    /* Bright, elegant gold for headers and accents */
    --gold-secondary: #EAD6A0;
    /* Softer gold for hover effects */
    --text-light: #F5F5F5;
    /* Off-white for body text */
    --text-muted: #a0a0a0;
    /* Muted gray for less important text */
}

/* --- Universal Box Sizing --- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Ensure no element exceeds viewport width */
*:not(html):not(body) {
    max-width: 100%;
}

/* --- General HTML & Body Styles --- */
html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    background-image: url('https://www.transparenttextures.com/patterns/flowers.png');
    /* Subtle floral pattern */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    color: var(--gold-primary);
}

/* --- Color Utilities --- */
.primary-color {
    color: var(--gold-primary);
}

.primary-bg {
    background-color: var(--gold-primary);
}

/* --- Header & Navigation --- */
#header {
    background-color: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(10px);
    width: 100%;
    display: flex;
    justify-content: center;
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
    color: var(--text-light);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--gold-primary);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold-primary);
}

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

/* --- Buttons --- */
.btn-primary {
    background-color: var(--gold-primary);
    color: var(--bg-dark);
    font-weight: bold;
    padding: 10px 24px;
    border-radius: 9999px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--gold-secondary);
    transform: translateY(-2px);
}

/* --- Book Appointment Button (Inline for Desktop) --- */
.book-appointment-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--gold-primary);
    color: var(--bg-dark);
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    /* 16px */
    padding: 0.75rem 1.5rem;
    /* 12px 24px */
    border-radius: 9999px;
    /* Fully rounded */
    border: 1px solid transparent;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
    cursor: pointer;
}

.book-appointment-btn:hover {
    background-color: var(--gold-secondary);
    border-color: var(--gold-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.5);
}

.book-appointment-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.4);
}

/* Accessibility: Ensure button is visible in high-contrast mode */
.book-appointment-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(212, 175, 55, 0.2);
}

/* --- Floating Book Appointment Button (Mobile Only) --- */
.book-appointment-float-btn {
    display: none;
    /* Hidden by default */
    position: fixed;
    bottom: 80px;
    /* Above WhatsApp button */
    right: 20px;
    z-index: 999;
    /* Below header, above content */
    background-color: var(--gold-primary);
    color: var(--bg-dark);
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    /* 14px */
    padding: 0.75rem 1.25rem;
    /* 12px 20px */
    border-radius: 9999px;
    border: 1px solid transparent;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

.book-appointment-float-btn:hover {
    background-color: var(--gold-secondary);
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.5);
}

.book-appointment-float-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.4);
}

.book-appointment-float-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(212, 175, 55, 0.2);
}

/* Show floating button only on mobile */
@media (max-width: 640px) {
    .book-appointment-float-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .book-appointment-btn {
        font-size: 0.875rem;
        /* 14px */
        padding: 0.625rem 1.25rem;
        /* 10px 20px */
    }
}

/* --- Hero Section --- */
.hero-section {
    width: 100%;
    max-width: 100vw;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

/* --- Hero Slider --- */
.hero-swiper {
    height: 100vh;
    width: 100vw;
    max-width: 100vw;
    overflow: hidden;
    position: relative;
}

.hero-swiper .swiper-slide {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 6s ease;
}

.hero-swiper .swiper-slide-active img {
    transform: scale(1.08);
}

.hero-swiper .swiper-slide-prev img,
.hero-swiper .swiper-slide-next img {
    transform: scale(1);
}

.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
    color: var(--gold-primary);
    background: rgba(18, 18, 18, 0.6);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    margin-top: -22px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.hero-swiper .swiper-button-next:hover,
.hero-swiper .swiper-button-prev:hover {
    background: rgba(18, 18, 18, 0.9);
    transform: scale(1.1);
}

.hero-swiper .swiper-button-next:after,
.hero-swiper .swiper-button-prev:after {
    font-size: 16px;
    font-weight: bold;
}

.hero-swiper .swiper-pagination {
    bottom: 24px;
    padding: 0 8px;
    display: flex;
    justify-content: center;
}

.hero-swiper .swiper-pagination-bullet {
    background: var(--text-light);
    opacity: 0.6;
    width: 8px;
    height: 8px;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.hero-swiper .swiper-pagination-bullet-active {
    background: var(--gold-primary);
    opacity: 1;
    transform: scale(1.2);
}

.swiper-lazy-preloader-gold {
    border: 3px solid var(--gold-primary);
    border-top-color: transparent;
    width: 36px;
    height: 36px;
}

/* --- Service Page --- */
.service-card {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

.menu-item-line {
    flex-grow: 1;
    border-bottom: 1px dashed var(--text-muted);
    margin: 0 1rem;
}

/* --- Gallery Page --- */
.filter-btn {
    transition: all 0.3s ease;
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--gold-primary);
    color: var(--bg-dark);
}

/* --- Contact Page Form --- */
.form-input {
    background-color: var(--bg-secondary);
    border: 1px solid var(--text-muted);
    color: var(--text-light);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3);
}

/* --- Swiper Services --- */
.services-swiper {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.services-swiper .swiper-wrapper {
    max-width: 100%;
}

.services-swiper .swiper-slide {
    transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
    transform: scale(0.9);
    opacity: 0.8;
    width: auto;
    max-width: 100%;
}

.services-swiper .swiper-slide-active {
    transform: scale(1);
    opacity: 1;
}

/* --- Testimonials Swiper --- */
.testimonials-swiper {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.testimonials-swiper .swiper-wrapper {
    max-width: 100%;
}

.feedback-card {
    background-color: var(--bg-dark);
    border: 2px solid var(--gold-primary);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.4), 0 0 20px rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    max-width: 20rem;
    margin: 0 auto;
    transition: box-shadow 0.3s ease;
}

.feedback-card:hover {
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.5), 0 0 24px rgba(212, 175, 55, 0.3);
}

.feedback-text {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.feedback-details {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.client-name {
    font-weight: bold;
    color: var(--gold-primary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.rating {
    color: #FFD700;
    font-size: 1.25rem;
}

/* --- Responsive Adjustments --- */
@media (min-width: 640px) {
    .feedback-card {
        max-width: 24rem;
        padding: 2rem;
    }

    .feedback-text {
        font-size: 1rem;
    }

    .client-name {
        font-size: 1.125rem;
    }

    .rating {
        font-size: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .feedback-card {
        max-width: 26rem;
        padding: 1.75rem;
    }

    .feedback-text {
        font-size: 0.9375rem;
    }
}

/* --- Animation Keyframes --- */
@keyframes slide-content {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-content {
    animation: slide-content 1s ease-out;
}

/* --- Typewriter Effect --- */
.typewriter-text {
    display: inline-block;
    overflow: hidden;
    border-right: 3px solid var(--gold-primary);
    white-space: nowrap;
    letter-spacing: 0.05em;
    animation: blink-caret 0.75s step-end infinite;
}

.typewriter-text.typing-complete {
    border-right: none;
    animation: none;
}

/* Blinking cursor animation */
@keyframes blink-caret {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: var(--gold-primary);
    }
}

/* --- Floating Animation --- */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

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

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float 3s ease-in-out infinite;
    animation-delay: 0.5s;
}

/* --- Preloader Styles --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    /* Solid black background */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
    visibility: visible;
    flex-direction: column;
    /* To stack logo and loading bar */
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

#preloader img {
    width: 150px;
    animation: popup 0.8s ease-out forwards;
    /* Pop-up animation */
    position: relative;
    z-index: 10000;
    /* Ensure logo is above loading bar */
}

/* Pop-up animation for logo */
@keyframes popup {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    75% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Circular loading bar styles */
.loading-container {
    position: absolute;
    /* Position relative to preloader */
    width: 200px;
    /* Adjust size as needed */
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid transparent;
    /* Transparent base border */
    border-top-color: var(--gold-primary);
    /* Gold color for top */
    animation: spin 1.5s linear infinite;
    /* Spin animation */
}

/* Keyframes for spinning loading bar */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Adjust logo position relative to loading bar */
#preloader img {
    width: 150px;
    /* Your logo size */
    height: 150px;
    /* Your logo size */
    object-fit: contain;
    /* Ensure logo fits within its container */
    animation: popup 0.8s ease-out forwards;
}

/* Define custom properties from your style.css for consistency */
:root {
    --bg-dark: #121212;
    --gold-primary: #D4AF37;
    --gold-secondary: #EAD6A0;
}

/* Custom styles for the WhatsApp button with glowing waves */
.whatsapp-float-btn {
    position: fixed;
    bottom: 20px;
    right: 1.5rem;
    z-index: 999;
    background-color: #25D366;
    color: white;
    border-radius: 9999px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    width: 60px;
    height: 60px;
}

/* Glowing wave animation for WhatsApp button */
.whatsapp-float-btn::before,
.whatsapp-float-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #25D366;
    opacity: 0;
    animation: wave-pulse 2s infinite ease-out;
}

.whatsapp-float-btn::after {
    animation-delay: 1s;
}

@keyframes wave-pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0;
    }
}

.whatsapp-float-btn:hover {
    transform: scale(1.1) translateY(-2px);
    background-color: #1DA851;
    box-shadow: 0 0 12px rgba(29, 168, 81, 0.7), 0 0 20px rgba(29, 168, 81, 0.5);
}

/* Ensure the PNG image inside the button fits */
.whatsapp-float-btn img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

/* Mobile responsiveness for WhatsApp button */
@media (max-width: 640px) {
    .whatsapp-float-btn {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 1rem;
    }

    .whatsapp-float-btn img {
        width: 50px;
        height: 50px;
    }

    /* Hide WhatsApp button when chatbot is open to prevent overlap */
    body.chatbot-open .whatsapp-float-btn {
        display: none !important;
    }
}

/* --- Updates Page Styles --- */

/* --- NEW Underline Style for Filter Tabs --- */
.updates-filter-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    /* 24px */
    margin-bottom: 2.5rem;
    /* 40px */
    border-bottom: 1px solid #282828;
    /* Faint line below the tabs */
}

.updates-filter-btn {
    padding: 0.75rem 0.25rem;
    border: none;
    border-radius: 0;
    background-color: transparent;
    color: var(--text-muted);
    /* Muted color for inactive tabs */
    font-weight: 500;
    font-size: 1.125rem;
    /* 18px */
    position: relative;
    /* Required for the underline effect */
    transition: color 0.3s ease;
    cursor: pointer;
}

/* The underline pseudo-element */
.updates-filter-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    /* Sits on top of the container's bottom border */
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--gold-primary);
    transition: width 0.3s ease-in-out;
}

/* Animate the underline on hover */
.updates-filter-btn:hover::after {
    width: 100%;
}

/* Style for the active button */
.updates-filter-btn.active {
    color: var(--gold-primary);
    /* Bright gold color for active text */
    font-weight: 600;
    /* Make active text bolder */
}

/* Make the underline visible for the active button */
.updates-filter-btn.active::after {
    width: 100%;
}

/* Change text color on hover for any tab */
.updates-filter-btn:hover {
    color: var(--gold-secondary);
}

/* Content Card Styles */
.update-card {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    /* 0.5rem */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 0.5px solid transparent;
    /* Changed from 1px to 0.5px */
}

.update-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
    border-color: var(--gold-primary);
}

.update-card-content {
    padding: 1.5rem;
    /* 24px */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.update-card-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    /* 12px */
    font-weight: 500;
    margin-bottom: 0.75rem;
    /* 12px */
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Specific Tag Colors */
.tag-offer {
    background-color: #4CAF50;
    color: white;
}

/* Green */
.tag-news {
    background-color: #2196F3;
    color: white;
}

/* Blue */
.tag-blog {
    background-color: #FF9800;
    color: white;
}

/* Orange */

.update-card-meta {
    font-size: 0.875rem;
    /* 14px */
    color: var(--text-muted);
}

/* --- Card Excerpt Truncation --- */
.card-excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    /* Standard property for compatibility */
    /* Show a maximum of 3 lines */
    overflow: hidden;
    text-overflow: ellipsis;
}

/*---cake page-----*/
/* .btn-primary styles defined at line 107-119 */
/* Marquee Animation */
.marquee-container {
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.marquee-content:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .marquee-content {
        animation-duration: 5s;
        /* Even faster speed for mobile */
    }
}
/* Featured Carousel Container */
.featured-carousel { 
    padding-bottom: 50px; 
}

/* Individual Slide (Inactive) */
.featured-carousel .carousel-cell { 
    width: 70%; 
    height: 400px; 
    margin-right: 20px; 
    opacity: 0.4; 
    transform: scale(0.85); 
    transition: all 0.5s ease-in-out; 
    border-radius: 1rem; 
    border: 1px solid transparent; 
}

/* Tablet/Desktop Sizing */
@media (min-width: 768px) { 
    .featured-carousel .carousel-cell { 
        width: 30%; 
        height: 500px; 
    } 
}

/* Active/Center Slide (Zoom Effect) */
.featured-carousel .carousel-cell.is-selected { 
    opacity: 1; 
    transform: scale(1.05); 
    z-index: 10; 
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7); 
    border: 1px solid rgba(255,255,255,0.1); 
}

/* Carousel Dots */
.featured-carousel .flickity-page-dots { 
    bottom: -40px; 
}
.featured-carousel .flickity-page-dots .dot { 
    background: #475569; 
    opacity: 0.5;
    width: 10px;
    height: 10px;
    margin: 0 6px;
}
.featured-carousel .flickity-page-dots .dot.is-selected { 
    background: #ffffff; 
    opacity: 1;
    transform: scale(1.2);
}
