/* Estetica Energy - Custom Styles */

/* Custom Fonts */
@font-face {
    font-family: 'Avenir Next';
    src: url('../fonts/AvenirNextLTPro-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Avenir Next';
    src: url('../fonts/AvenirNextLTPro-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Avenir Next';
    src: url('../fonts/AvenirNextLTPro-It.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Ambigram';
    src: url('../fonts/Ambigram-Font.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary: #d99aa5;
    --primary-light: #f5d5d9;
    --primary-dark: #c7858f;
    --secondary: #f0ebe8;
    --dark: #1a1a1a;
    --gray: #6b6b6b;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Avenir Next', 'Montserrat', sans-serif;
    color: var(--dark);
    overflow-x: hidden;
}

.font-serif {
    font-family: 'Ambigram', 'Playfair Display', serif !important;
}

.font-brand {
    font-family: 'Ambigram', 'Playfair Display', serif !important;
}

/* Animations */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 1s ease-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Navbar Scroll Effect */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Hero Gradient Overlay */
.hero-overlay {
    background: linear-gradient(135deg, 
        rgba(245, 213, 217, 0.4) 0%, 
        rgba(217, 154, 165, 0.3) 50%, 
        rgba(240, 235, 232, 0.4) 100%);
}

/* Treatment Cards Enhanced */
.treatment-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.treatment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 1;
}

.treatment-card:hover::before {
    opacity: 0.1;
}

.treatment-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(217, 154, 165, 0.3);
}

/* Instagram Gallery */
.instagram-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    transition: transform 0.3s;
}

.instagram-item:hover {
    transform: scale(1.05);
}

.instagram-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instagram-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(26, 26, 26, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    color: white;
}

.instagram-item:hover .instagram-overlay {
    opacity: 1;
}

/* Review Cards */
.review-card {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--white) 100%);
    border: 1px solid var(--primary-light);
    transition: all 0.3s;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(217, 154, 165, 0.2);
}

.star-rating {
    color: #fbbf24;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary span {
    position: relative;
    z-index: 1;
}

/* Section Dividers */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary) 50%, 
        transparent 100%);
}

/* Zen Circle Effect */
.zen-circle {
    width: 100px;
    height: 100px;
    border: 3px solid var(--dark);
    border-radius: 50%;
    opacity: 0.8;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, 
        var(--secondary) 25%, 
        var(--primary-light) 50%, 
        var(--secondary) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

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

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

/* Contact Icons */
.contact-icon {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    transition: all 0.3s;
}

.contact-icon:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 5px 15px rgba(217, 154, 165, 0.4);
}

/* Map Container */
#map iframe {
    filter: grayscale(30%) brightness(95%);
    transition: filter 0.3s;
}

#map:hover iframe {
    filter: grayscale(0%) brightness(100%);
}

/* Responsive Typography */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Print Styles */
@media print {
    nav, footer, .social-links {
        display: none;
    }
}

/* Utility Classes */
.backdrop-blur-sm {
    backdrop-filter: blur(8px);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Reviews Carousel */
.reviews-carousel {
    position: relative;
    overflow: hidden;
    padding: 0 60px;
}

.reviews-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 2rem;
}

.review-slide {
    flex: 0 0 calc(33.333% - 1.333rem);
    min-width: 0;
}

@media (max-width: 1024px) {
    .review-slide {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    .review-slide {
        flex: 0 0 100%;
    }
    .reviews-carousel {
        padding: 0 40px;
    }
}

.review-dot {
    transition: all 0.3s;
}

.review-dot.active {
    background-color: var(--primary);
    width: 2rem;
}
