/* SB Body & Beauty - Vintage Premium Styles */
/* UTF-8 Encoding */

/* ================================
   BASE STYLES & RESET
   ================================ */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #F5F0E8;
    color: #4A4A4A;
    overflow-x: hidden;
}

/* ================================
   TYPOGRAPHY
   ================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(135deg, #8B7355 0%, #C9B99A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ================================
   PREMIUM ANIMATIONS
   ================================ */

/* Fade In Up */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fade In Scale */
.fade-in-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
}

.stagger-children.visible > *:nth-child(1) { animation: fadeInUp 0.6s 0.1s forwards; }
.stagger-children.visible > *:nth-child(2) { animation: fadeInUp 0.6s 0.2s forwards; }
.stagger-children.visible > *:nth-child(3) { animation: fadeInUp 0.6s 0.3s forwards; }
.stagger-children.visible > *:nth-child(4) { animation: fadeInUp 0.6s 0.4s forwards; }
.stagger-children.visible > *:nth-child(5) { animation: fadeInUp 0.6s 0.5s forwards; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth underline animation */
.hover-underline {
    position: relative;
}

.hover-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #8B7355;
    transition: width 0.3s ease;
}

.hover-underline:hover::after {
    width: 100%;
}

/* ================================
   VINTAGE ELEMENTS
   ================================ */

/* Soft shadows */
.shadow-vintage {
    box-shadow: 
        0 4px 6px -1px rgba(139, 115, 85, 0.1),
        0 2px 4px -1px rgba(139, 115, 85, 0.06),
        0 20px 40px -10px rgba(139, 115, 85, 0.15);
}

.shadow-vintage-lg {
    box-shadow: 
        0 10px 15px -3px rgba(139, 115, 85, 0.1),
        0 4px 6px -2px rgba(139, 115, 85, 0.05),
        0 30px 60px -15px rgba(139, 115, 85, 0.2);
}

/* Decorative lines */
.vintage-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #C9B99A, transparent);
    margin: 1.5rem auto;
}

.vintage-line-left {
    width: 40px;
    height: 1px;
    background: #C9B99A;
    margin: 1rem 0;
}

/* Ornamental divider */
.ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.ornament::before,
.ornament::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #D4C4A8, transparent);
    max-width: 100px;
}

.ornament-symbol {
    color: #C9B99A;
    font-size: 1.2rem;
}

/* ================================
   CARDS & COMPONENTS
   ================================ */

/* Service Card */
.service-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(201, 185, 154, 0.2);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 40px -15px rgba(139, 115, 85, 0.25),
        0 0 0 1px rgba(201, 185, 154, 0.3);
}

/* Feature Card */
.feature-card {
    background: linear-gradient(135deg, white 0%, #FAFAF8 100%);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(201, 185, 154, 0.15);
    transition: all 0.4s ease;
}

.feature-card:hover {
    background: white;
    box-shadow: 0 25px 50px -12px rgba(139, 115, 85, 0.15);
}

/* Testimonial Card */
.testimonial-card {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px -10px rgba(139, 115, 85, 0.1);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    color: #C9B99A;
    opacity: 0.3;
    line-height: 1;
}

/* ================================
   BUTTONS
   ================================ */

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: #8B7355;
    color: white;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(139, 115, 85, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover {
    background: #4A4A4A;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 115, 85, 0.4);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: transparent;
    color: #8B7355;
    border: 1.5px solid #C9B99A;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #C9B99A;
    color: white;
    border-color: #C9B99A;
}

/* ================================
   FORMS
   ================================ */

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: white;
    border: 1.5px solid #E8E0D4;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: #4A4A4A;
}

.form-input:focus {
    outline: none;
    border-color: #C9B99A;
    box-shadow: 0 0 0 4px rgba(201, 185, 154, 0.1);
}

.form-input::placeholder {
    color: #A0A0A0;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #4A4A4A;
}

/* ================================
   HERO SECTION
   ================================ */

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: visible;
    isolation: isolate;
}

.hero-section video,
.hero-section .hero-video,
.hero-section .hero-bg-video,
.hero-section .hero-background-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.hero-section .hero-video video,
.hero-section .hero-bg-video video,
.hero-section .hero-background-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-section:has(video) {
    overflow: hidden;
    background: #0F1115;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #F5F0E8 0%, #E8E0D4 50%, #D4C4A8 100%);
    opacity: 0.5;
    z-index: 1;
    pointer-events: none;
}

.hero-section:has(video) .hero-bg {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.32) 45%, rgba(0, 0, 0, 0.12) 100%);
    opacity: 1;
}

.hero-section:has(video) > [class*="bg-black"] {
    background-color: rgba(0, 0, 0, 0.32) !important;
    z-index: 1 !important;
    pointer-events: none;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(201, 185, 154, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 115, 85, 0.1) 0%, transparent 50%);
    z-index: 2;
    pointer-events: none;
}

.hero-section:has(video) .hero-pattern {
    opacity: 0.45;
}

/* Hero content layout */
.hero-content {
    width: 100%;
    position: relative;
    z-index: 10;
}

.hero-visual {
    position: relative;
    z-index: 10;
}

/* Floating elements animation */
.float-element {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

/* ================================
   SCROLL ANIMATIONS
   ================================ */

.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* GSAP will handle the initial hide/show - this ensures content is visible if JS fails */
.js-enabled .reveal {
    opacity: 0;
    transform: translateY(50px);
}

.js-enabled .reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Parallax effect */
.parallax {
    will-change: transform;
}

/* ================================
   BADGES & TAGS
   ================================ */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    background: rgba(201, 185, 154, 0.15);
    color: #8B7355;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge-popular {
    background: linear-gradient(135deg, #8B7355, #C9B99A);
    color: white;
}

/* ================================
   LOADING STATES
   ================================ */

.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 8rem 0 4rem;
    }
    
    .service-card:hover {
        transform: translateY(-4px);
    }
    
    /* Отключаем GSAP reveal анимации на мобильных - элементы видны сразу */
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    
    /* Отключаем floating анимации на мобильных */
    .float-element {
        animation: none !important;
    }
    
    /* Отключаем stagger-анимации */
    .stagger-children > * {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
    
    /* Отключаем fade-in-up анимации */
    .fade-in-up {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    
    .fade-in-up.visible {
        opacity: 1 !important;
        transform: none !important;
    }
    
    /* Отключаем fade-in-scale анимации */
    .fade-in-scale {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    
    .fade-in-scale.visible {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ================================
   ACCESSIBILITY
   ================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #C9B99A;
    outline-offset: 2px;
}

/* ================================
   FAQ ACCORDION
   ================================ */

.faq-section {
    background: linear-gradient(135deg, #FAFAF8 0%, #F5F0E8 100%);
    border-radius: 32px;
    padding: 4rem 2rem;
    border: 1px solid rgba(201, 185, 154, 0.1);
}

.faq-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 20px;
    margin-bottom: 1rem;
    border: 1.5px solid rgba(201, 185, 154, 0.2);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item:hover {
    border-color: rgba(201, 185, 154, 0.4);
    box-shadow: 0 8px 25px rgba(139, 115, 85, 0.1);
}

.faq-item.active {
    border-color: #C9B99A;
    box-shadow: 0 15px 35px rgba(139, 115, 85, 0.15);
}

.faq-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-header:hover {
    background: rgba(201, 185, 154, 0.05);
}

.faq-header h3 {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: #4A4A4A;
    flex: 1;
    text-align: left;
}

.faq-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #C9B99A;
    color: white;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 600;
    margin-right: 1rem;
    flex-shrink: 0;
}

.faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(201, 185, 154, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    background: #C9B99A;
    transform: rotate(180deg);
}

.faq-icon svg {
    width: 20px;
    height: 20px;
    stroke: #8B7355;
    transition: all 0.3s ease;
}

.faq-item.active .faq-icon svg {
    stroke: white;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active .faq-content {
    max-height: 500px;
}

.faq-answer {
    padding: 0 2rem 1.5rem;
    color: #6B6B6B;
    line-height: 1.7;
    border-top: 1px solid rgba(201, 185, 154, 0.1);
    margin-top: -1px;
}

.faq-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.faq-control-btn {
    padding: 0.75rem 1.5rem;
    background: white;
    color: #8B7355;
    border: 1.5px solid #C9B99A;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.faq-control-btn:hover {
    background: #C9B99A;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 185, 154, 0.3);
}

.faq-control-btn svg {
    width: 18px;
    height: 18px;
}

/* FAQ Responsive */
@media (max-width: 768px) {
    .faq-section {
        padding: 3rem 1.5rem;
        border-radius: 24px;
    }
    
    .faq-header {
        padding: 1.25rem 1.5rem;
    }
    
    .faq-header h3 {
        font-size: 1rem;
    }
    
    .faq-answer {
        padding: 0 1.5rem 1.25rem;
    }
    
    .faq-controls {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .faq-control-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
}

/* ================================
   COOKIE CONSENT BANNER (New Two-Column Design)
   ================================ */

/* Banner container */
#cookie-consent-modal {
    z-index: 9999;
}

/* Banner content */
#cookie-consent-content {
    will-change: transform, opacity;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 
        0 25px 50px -12px rgba(139, 115, 85, 0.25),
        0 0 15px rgba(193, 154, 107, 0.15);
}

/* Toggle switch styles for new banner */
.cookie-toggle-btn {
    min-width: 48px;
    height: 24px;
    transition: background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-toggle-btn span {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cookie-toggle-btn.bg-vintage-bronze span {
    transform: translateX(24px);
}

/* Category rows styling */
#cookie-settings > div {
    transition: all 0.3s ease;
    border-width: 1px;
}

#cookie-settings > div:hover {
    border-color: rgba(193, 154, 107, 0.4);
    background-color: rgba(245, 240, 232, 0.4);
}

/* Buttons in banner */
#cookie-consent-modal .btn-primary {
    background: #8B7355;
    color: white;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#cookie-consent-modal .btn-primary:hover {
    background: #4A4A4A;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 115, 85, 0.4);
}

#cookie-consent-modal .btn-secondary {
    background: transparent;
    color: #8B7355;
    border: 1.5px solid #C9B99A;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

#cookie-consent-modal .btn-secondary:hover {
    background: #C9B99A;
    color: white;
    border-color: #C9B99A;
}

/* Banner responsiveness */
@media (max-width: 768px) {
    /* Stack columns on mobile */
    #cookie-consent-content .grid.md\:grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    /* Adjust spacing for mobile */
    #cookie-consent-modal .p-6 {
        padding: 1rem;
    }
    
    #cookie-consent-modal .px-6.py-4 {
        padding: 0.75rem 1rem;
    }
    
    /* Smaller buttons on mobile */
    #cookie-consent-modal .btn-primary,
    #cookie-consent-modal .btn-secondary {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
    
    /* Adjust toggle size for mobile */
    .cookie-toggle-btn {
        min-width: 44px;
        height: 22px;
    }
    
    .cookie-toggle-btn.bg-vintage-bronze span {
        transform: translateX(22px);
    }
    
    .cookie-toggle-btn span {
        width: 18px;
        height: 18px;
        top: 2px;
        left: 2px;
    }
    
    /* Stack buttons in footer */
    #cookie-consent-modal .flex-wrap.gap-3 {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    #cookie-consent-modal .flex-wrap.gap-3 > div {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    #cookie-consent-modal .flex-wrap.gap-3 .text-xs {
        text-align: center;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    #cookie-consent-modal {
        bottom: 4px;
        left: 4px;
        right: 4px;
        transform: none;
        width: calc(100% - 8px);
    }
    
    #cookie-consent-content {
        border-radius: 16px;
    }
    
    /* Hide icons in toggle descriptions to save space */
    #cookie-settings .flex.items-center.gap-2 .w-4.h-4 {
        display: none;
    }
    
    /* Smaller text for mobile */
    #cookie-consent-title {
        font-size: 1rem;
    }
    
    #cookie-consent-modal .text-sm {
        font-size: 0.8rem;
    }
    
    #cookie-consent-modal .text-xs {
        font-size: 0.7rem;
    }
}

/* Accessibility */
#cookie-consent-modal button:focus-visible {
    outline: 2px solid #C9B99A;
    outline-offset: 2px;
}

#cookie-consent-modal a:focus-visible {
    outline: 2px solid #C9B99A;
    outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    #cookie-consent-modal .bg-white {
        background: white;
        border: 2px solid #4A4A4A;
    }
    
    #cookie-consent-modal .border-vintage-gold\/20 {
        border-color: #8B7355;
    }
    
    .cookie-toggle-btn.bg-vintage-bronze {
        background: #8B7355;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    #cookie-consent-content {
        transition: none !important;
    }
    
    .cookie-toggle-btn,
    .cookie-toggle-btn span {
        transition: none !important;
    }
    
    #cookie-settings > div {
        transition: none !important;
    }
}
