/* ============================================
   СЛАДКИЕ МЕЧТЫ - Авторские торты
   Цветовая палитра: Кремовые, пудровые тона
   Настроение: Воздушный, премиальный, нежный
   ============================================ */

/* Base styles */
body {
    background-color: #FAF7F2;
    overflow-x: hidden;
}

/* Custom scrollbar - elegant & minimal */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #FAF7F2;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #D4A574, #C9A9A6);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #B8956E, #E8C4C4);
}

/* Typography refinements */
.font-display {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.text-balance {
    text-wrap: balance;
}

/* Decorative elements */
.ornament {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23D4A574' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Floating shapes */
.shape-blob {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Image hover effects */
.cake-card {
    position: relative;
    overflow: hidden;
}

.cake-card img {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.cake-card:hover img {
    transform: scale(1.05);
}

.cake-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(62, 39, 35, 0.4), transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.cake-card:hover::after {
    opacity: 1;
}

/* Elegant line decorations */
.line-ornament {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.line-ornament::before,
.line-ornament::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #D4A574, transparent);
}

/* Button styles */
.btn-primary {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #D4A574 0%, #B8956E 100%);
    color: white;
    padding: 1rem 2.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 165, 116, 0.35);
}

.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::before {
    left: 100%;
}

.btn-outline {
    position: relative;
    background: transparent;
    color: #5D4037;
    padding: 1rem 2.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: 1px solid #D4A574;
    cursor: pointer;
    transition: all 0.4s ease;
}

.btn-outline:hover {
    background: #D4A574;
    color: white;
}

/* Form inputs */
.input-elegant {
    background: transparent;
    border: none;
    border-bottom: 1px solid #D4A574;
    padding: 1rem 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: #3E2723;
    transition: border-color 0.3s ease;
    outline: none;
}

.input-elegant:focus {
    border-bottom-color: #5D4037;
}

.input-elegant::placeholder {
    color: #C9A9A6;
}

/* Decorative dividers */
.divider-ornate {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin: 3rem 0;
}

.divider-ornate::before,
.divider-ornate::after {
    content: '';
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #D4A574);
}

.divider-ornate::after {
    background: linear-gradient(90deg, #D4A574, transparent);
}

/* Badge styles */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(212, 165, 116, 0.1);
    border: 1px solid rgba(212, 165, 116, 0.3);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #B8956E;
}

/* Stats counter animation */
@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.stat-number {
    animation: countUp 0.8s ease-out forwards;
}

/* Parallax effect helper */
.parallax-slow {
    will-change: transform;
}

/* Whatsapp button floating */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

/* Price card styles */
.price-card {
    background: white;
    border: 1px solid rgba(212, 165, 116, 0.2);
    padding: 2rem;
    transition: all 0.4s ease;
}

.price-card:hover {
    border-color: #D4A574;
    box-shadow: 0 20px 40px rgba(212, 165, 116, 0.15);
    transform: translateY(-5px);
}

/* Gallery masonry helper */
.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, #F5E6E0 25%, #FAF7F2 50%, #F5E6E0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Smooth image loading */
.img-loading {
    filter: blur(10px);
    transition: filter 0.5s ease;
}

.img-loaded {
    filter: blur(0);
}

/* Mobile menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(250, 247, 242, 0.98);
    backdrop-filter: blur(10px);
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: #3E2723;
    padding: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.mobile-menu.active a {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.active a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active a:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu.active a:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu.active a:nth-child(4) { transition-delay: 0.4s; }
.mobile-menu.active a:nth-child(5) { transition-delay: 0.5s; }

/* Cursor effect (optional) */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 1px solid #D4A574;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease, opacity 0.3s ease;
    mix-blend-mode: difference;
}

.custom-cursor.active {
    transform: scale(2);
}

/* Hero specific */
.hero-image-wrapper {
    position: relative;
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 1px solid #D4A574;
    opacity: 0.5;
    z-index: -1;
}

/* Text gradient */
.text-gradient {
    background: linear-gradient(135deg, #D4A574, #E8C4C4, #D4A574);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 200% center; }
}

/* Section transitions */
section {
    position: relative;
}

/* Responsive typography */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem !important;
        line-height: 1.1 !important;
    }
}

