/* 
   =================================================
   DESIGN SYSTEM - SORRISE ODONTOLOGIA
   =================================================
*/

:root {
    /* Color Palette */
    --primary: #004177;
    /* Soft petroleum blue, more elegant */
    --secondary: #6fb1c7;
    /* Modern light blue */
    --accent: #F17833;
    /* Vibrant premium blue */
    --accent-hover: #c06937;
    --green-soft: #a8d5c2;
    /* Soft hospital green */
    --nude: #f9f6f3;
    /* Elegant nude / light beige */
    --light-gray: #f8f9fa;
    --dark-text: #1f2937;
    --light-text: #6b7280;
    --white: #ffffff;
    --white-10: rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-brand: 'Poppins', sans-serif;

    /* Effects & Shadows */
    --shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 20px 40px rgba(30, 58, 71, 0.12);
    --shadow-glow: 0 10px 25px rgba(37, 99, 235, 0.3);

    /* Transitions */
    --transition-all: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

/* =================================================
   BASE STYLES
   ================================================= */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    color: var(--dark-text);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    font-family: var(--font-heading);
    color: var(--primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand-text {
    font-family: var(--font-brand);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
    letter-spacing: -0.03em;
}

/* Typography Utilities */
.text-primary {
    color: var(--primary) !important;
}

.text-accent {
    color: var(--accent) !important;
}

.text-light-text {
    color: var(--light-text) !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

.font-italic {
    font-style: italic;
}

.tracking-wider {
    letter-spacing: 0.1em;
}

.max-w-700 {
    max-width: 700px;
}

/* Backgrounds */
.bg-nude {
    background-color: var(--nude) !important;
}

.bg-light-gray {
    background-color: var(--light-gray) !important;
}

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

.bg-accent {
    background-color: var(--accent) !important;
}

.bg-green-soft {
    background-color: var(--green-soft) !important;
}

.bg-white-10 {
    background-color: var(--white-10) !important;
}

/* Section Padding */
.section-padding {
    padding: 100px 0;
}

@media (max-width: 991px) {
    .section-padding {
        padding: 70px 0;
    }
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
}

/* =================================================
   COMPONENTS
   ================================================= */

/* Buttons */
.btn {
    font-family: var(--font-body);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: var(--transition-all);
    letter-spacing: 0.01em;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-accent {
    background-color: var(--accent);
    color: var(--white);
    border: none;
    box-shadow: var(--shadow-glow);
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.4);
}

.btn-outline-primary {
    color: var(--primary);
    border: 2px solid var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.social-btn {
    width: 45px;
    height: 45px;
    text-decoration: none;
}

.hover-accent:hover {
    background-color: var(--accent) !important;
    transform: translateY(-3px);
}

.hover-white:hover {
    color: var(--white) !important;
}

/* Navbar */
.header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    transition: var(--transition-all);
}

.header.scrolled {
    box-shadow: var(--shadow-soft);
    background: rgba(255, 255, 255, 0.95);
}

.nav-link {
    color: var(--dark-text);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition-all);
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition-all);
}

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

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
}

.hero-shape-1 {
    position: absolute;
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(168, 213, 194, 0.4) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 0;
}

.hero-shape-2 {
    position: absolute;
    bottom: 10%;
    right: 30%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(111, 177, 199, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 0;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    line-height: 1.1;
    font-weight: 800;
}

.title-underline {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    z-index: -1;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    line-height: 1.6;
}

.badge-premium {
    background: rgba(255, 255, 255, 0.8);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
}

.avatar-group {
    display: flex;
}

.avatar-group .avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 3px solid var(--nude);
    object-fit: cover;
    margin-left: -15px;
}

.avatar-group .avatar:first-child {
    margin-left: 0;
}

/* Floating Element Glassmorphism */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-soft);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
}

.glass-card-dark {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.floating-card {
    position: absolute;
    bottom: 30px;
    left: -40px;
    animation: float 6s ease-in-out infinite;
}

@media (max-width: 991px) {
    .floating-card {
        left: 20px;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

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

/* Specialties Cards */
.specialty-card {
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    background: var(--white);
    transition: var(--transition-all);
    border: 1px solid rgba(0, 0, 0, 0.02);
    height: 100%;
}

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

.group-hover-scale {
    transition: var(--transition-all);
}

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

.opacity-0 {
    opacity: 0;
}

.transition-all {
    transition: var(--transition-all);
}

.group:hover .group-hover-opacity {
    opacity: 1;
}

.glass-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
}

/* About Section */
.icon-box {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
}

.icon-box-sm {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image-wrapper {
    position: relative;
}

.bg-shape-organic {
    position: absolute;
    top: -20px;
    right: -20px;
    bottom: -20px;
    left: 20px;
    background-color: var(--nude);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    z-index: 0;
    animation: morph 8s ease-in-out infinite;
}

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

    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }

    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

/* Testimonials */
.circle-decoration {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    z-index: 0;
}

.shape-top-right {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -200px;
}

.shape-bottom-left {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -100px;
}

.testimonials-swiper {
    padding-bottom: 60px;
}

.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5);
    width: 10px;
    height: 10px;
}

.swiper-pagination-bullet-active {
    background: var(--accent);
    width: 25px;
    border-radius: 5px;
}

/* Instagram Grid */
.instagram-grid img {
    filter: grayscale(20%);
    transition: var(--transition-all);
}

.instagram-grid .group:hover img {
    filter: grayscale(0%);
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    font-size: 2rem;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
    z-index: 999;
    transition: var(--transition-all);
    text-decoration: none;
    animation: pulse 2s infinite;
}

.floating-whatsapp:hover {
    transform: translateY(-5px) scale(1.05);
    color: white;
    box-shadow: 0 15px 25px rgba(37, 211, 102, 0.4);
}

.notification-dot {
    position: absolute;
    top: 0;
    right: 0;
    width: 14px;
    height: 14px;
    background-color: #ff3b30;
    border-radius: 50%;
    border: 2px solid white;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* =================================================
   ANIMATIONS (Intersection Observer classes)
   ================================================= */
.fade-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-right {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-left {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.is-visible {
    opacity: 1;
    transform: translate(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .floating-card {
        padding: 0.8rem 1rem;
        bottom: 15px;
    }

    .icon-box {
        width: 45px;
        height: 45px;
        font-size: 1.4rem;
    }
}