/* 
 * ArteClinic Custom Theme - 2026 Redesign 
 * Based on Brand Manual
 */

/* Import Google Fonts: Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    /* Brand Palette */
    --color-primary: #FF837C;
    /* Coral - CTAs */
    --color-secondary: #8BA67F;
    /* Green - Wellness */
    --color-accent-1: #F7DCA8;
    /* Cream */
    --color-accent-2: #F393FB;
    /* Pink */
    --color-accent-3: #84F4E4;
    /* Aqua */
    --color-text: #1A1A1A;
    /* Charcoal */
    --color-text-light: #FFF;
    /* White text for dark backgrounds */
    --color-bg: #FFFFFF;
    --color-light-gray: #F5F5F7;

    /* Spacing System */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 32px;
    --space-xl: 64px;

    /* UI Tokens */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.08);

    /* Font */
    --font-main: 'Poppins', sans-serif;
}

/* Global Reset & Typography */
body {
    font-family: var(--font-main) !important;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-main);
    font-weight: 600;
    letter-spacing: -0.02em;
    /* Modern tight tracking */
}

/* Button Modernization */
.btn,
.button,
input[type="submit"] {
    border-radius: var(--radius-md) !important;
    font-weight: 500 !important;
    text-transform: none !important;
    /* Remove ALL CAPS */
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.btn-primary,
.button-primary {
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: #FFF !important;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

/* Utility Classes */
.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.bubble-category {
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--color-primary);
    padding: 2px;
}

/* Phase 2: Header Glassmorphism */
/* We will apply this class to the main header container */
.header-glass {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: var(--shadow-soft);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Phase 2: Hero Slider Text Overlay */
.hero-text-overlay {
    position: absolute;
    top: 50%;
    left: 5%;
    /* Mobile friendly default */
    transform: translateY(-50%);
    z-index: 10;
    max-width: 90%;
    background: rgba(255, 255, 255, 0.7);
    /* Fallback for readability */
    padding: var(--space-md);
    border-radius: var(--radius-md);
    backdrop-filter: blur(4px);
}

@media (min-width: 768px) {
    .hero-text-overlay {
        left: 10%;
        max-width: 500px;
        background: transparent;
        /* Cleaner on desktop */
        backdrop-filter: none;
        padding: 0;
    }

    .hero-text-overlay h1 {
        font-size: 3rem;
        line-height: 1.1;
        margin-bottom: var(--space-md);
        color: var(--color-text);
    }
}

/* Phase 3: Story Bubbles (Categories) */
.section-categories-home {
    padding-top: var(--space-md);
    background: transparent !important;
    /* Remove legacy background */
}

.home-category {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.home-category:hover {
    transform: translateY(-5px);
}

.bubble-category {
    width: 90px !important;
    height: 90px !important;
    min-width: 90px !important;
    min-height: 90px !important;
    border-radius: 50% !important;
    overflow: hidden;
    padding: 3px;
    background: linear-gradient(45deg, var(--color-primary), var(--color-accent-2));
    box-shadow: var(--shadow-soft);
    display: flex;
    /* Ensures content centers */
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    /* Center in parent */
    aspect-ratio: 1 / 1;
    /* Modern browser support for perfect circles */
}

.bubble-category img {
    width: 100% !important;
    height: 100% !important;
    min-height: 100%;
    object-fit: cover !important;
    /* Key to fixing distortions */
    object-position: center;
    border-radius: 50% !important;
    border: 3px solid #FFF;
    background-color: #FFF;
    display: block;
    max-width: none !important;
    /* Prevent Bootstrap image-fluid from shrinking it */
}

.home-category-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    text-align: center;
    max-width: 100px;
    line-height: 1.2;
}

/* Mobile specific for Bubbles */
@media (max-width: 767px) {
    .bubble-category {
        width: 70px;
        height: 70px;
    }

    .home-category-name {
        font-size: 0.8rem;
    }
}

/* Phase 4: Modern Video Section */
.section-video-home {
    border-radius: 24px;
    overflow: hidden;
    margin: var(--space-md) auto;
    box-shadow: var(--shadow-card);
    transform: translateZ(0);
    /* Hardware acceleration */
}

.home-video-text {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--color-text) !important;
    max-width: 500px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .section-video-home {
        max-width: 95%;
        /* Clean margins on desktop */
    }

    .home-video-text {
        position: absolute;
        bottom: 10%;
        left: 5%;
        text-align: left;
    }
}

/* Glass Header Inner Elements */
.header-glass input.form-control {
    background-color: rgba(255, 255, 255, 0.5) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    border-radius: 20px !important;
    /* Pill shape search */
    backdrop-filter: blur(5px);
    transition: all 0.3s;
}

.header-glass input.form-control:focus {
    background-color: #FFF !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header-glass .svg-icon-text {
    fill: var(--color-text) !important;
    /* Ensure icons are dark charcoal */
}

.header-glass a {
    color: var(--color-text);
    font-weight: 500;
}

/* Phase 5: Footer & Newsletter Redesign (Premium Bold Gradient) */

/* Newsletter Section */
.newsletter-clean {
    background: transparent;
    padding: 20px 0 0 0;
    /* Changed spacing to merge visually if needed */
    color: var(--color-text);
    position: relative;
    /* We are moving the gradient to the Footer now, so Newsletter acts as a floater on top or part of it */
}

/* Footer Section - New Premium Gradient Look */
.footer-clean {
    /* Gradient: Coral -> Soft Pink -> White hint */
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-accent-2) 60%, #fff 100%) !important;
    color: #FFF !important;
    /* White text for contrast */
    padding-top: var(--space-xl);
    padding-bottom: var(--space-lg);
    font-size: 0.95rem;
    position: relative;
}

.footer-clean h4,
.footer-clean .font-big {
    color: #FFF !important;
    /* White titles */
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-clean p {
    color: rgba(255, 255, 255, 0.9) !important;
}

.footer-clean a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-clean a:hover {
    color: #FFF !important;
    transform: translateX(5px);
}

/* Footer Logo Adjustment for Dark Background */
.footer-clean .footer-logo img {
    max-height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
    /* Forces logo to be white */
    opacity: 1;
}

/* Badge Adjustment */
.footer-clean .badge-brand {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    color: #fff;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.footer-clean .badge-brand:hover {
    background: #FFF;
    color: var(--color-primary) !important;
    transform: translateY(-2px);
}

/* Newsletter Input Fixes */
.newsletter-clean .h2 {
    color: #FFF !important;
    /* White title if inside footer area */
    font-weight: 700;
    margin-bottom: 5px;
}

.newsletter-clean .font-small {
    color: rgba(255, 255, 255, 0.9);
}

/* Form Container */
.newsletter-clean .newsletter-form {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    /* More standard modern radius */
    padding: 6px;
    display: flex;
    align-items: center;
    width: 100%;
}

.newsletter-clean input.form-control {
    background: transparent !important;
    border: none !important;
    color: #FFF !important;
    box-shadow: none !important;
    padding: 10px 15px;
    font-size: 0.95rem;
}

.newsletter-clean input.form-control::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* CTA Button Fix */
.newsletter-clean .newsletter-btn {
    background: #FFF !important;
    color: var(--color-primary) !important;
    border-radius: 6px !important;
    /* Matches container radius inner */
    padding: 10px 18px !important;
    height: auto;
    border: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.newsletter-clean .newsletter-btn svg {
    fill: var(--color-primary);
    width: 20px;
    height: 20px;
}

.newsletter-clean .newsletter-btn:hover {
    transform: scale(1.05);
}

/* Payment & Security Icons - White Theme */
.footer-payments-shipping-logos .fa,
.footer-payments-shipping-logos svg,
.footer-payments-shipping-logos img {
    filter: brightness(0) invert(1);
    /* All icons white */
    opacity: 0.7;
    transition: all 0.3s ease;
}

.footer-payments-shipping-logos:hover .fa,
.footer-payments-shipping-logos:hover svg,
.footer-payments-shipping-logos:hover img {
    opacity: 1;
}

/* Divider Line */
.footer-clean .border-top {
    border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.footer-clean .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Phase 6: Navigation Menu Redesign (Premium Float) */

/* 1. Main Navigation Container */
.nav-desktop-list {
    display: flex !important;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
}

/* 2. Top Level Items */
.nav-list-link {
    font-weight: 500;
    color: var(--color-text);
    padding: 15px 20px;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 5px;
    /* Space for arrow if present */
}

.item-with-subitems {
    position: relative;
    /* CRITICAL for dropdown centering */
}

.nav-list-link:hover {
    color: var(--color-primary);
}

/* 3. Dropdown Container (The Fix) */
.desktop-dropdown {
    position: absolute;
    top: 100%;
    left: 50% !important;
    /* Force center relative to parent LI */
    transform: translateX(-50%) translateY(10px);
    /* Center align & spacing */
    min-width: 240px;
    /* Minimum width */
    width: max-content;
    /* Grow with content */
    max-width: 90vw;
    /* Prevent overflow */

    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 2px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.04);

    padding: 15px 0;
    z-index: 1000;

    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);

    /* Remove default full-width behaviors if any */
    right: auto;
}

/* 4. Dropdown Hover State */
.item-with-subitems:hover .desktop-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    /* Float up animation */
}

/* 5. Dropdown Arrows (Optional aesthetics) */
.desktop-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: #FFF;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    border-left: 1px solid rgba(0, 0, 0, 0.04);
}

/* 6. Dropdown Links */
.desktop-dropdown .nav-list-link {
    text-align: left;
    display: block;
    padding: 10px 25px;
    font-size: 0.9rem;
    color: #555;
    white-space: nowrap;
}

.desktop-dropdown .nav-list-link:hover {
    background: var(--color-light-gray);
    /* Subtle gray bg on hover */
    color: var(--color-primary);
    padding-left: 30px;
    /* Slide effect */
}

/* 7. Reset Container inside Dropdown */
.desktop-dropdown-container {
    width: 100%;
    padding: 0;
    margin: 0;
}

.desktop-list-subitems {
    padding: 0;
    margin: 0;
    list-style: none;
    text-align: left;
    /* Reset alignment for list items */
}