:root {
    --primary-color: #FF5C17;
    --primary-color-rgb: 255, 92, 23;
    --primary-color-dark: #e04b0b;
    --secondary-color: #6592C7;
    --text-color: #4a4a4a;
    --light-bg: #f8f9fa;
    --border-radius-lg: 20px;
    --border-radius-xl: 3rem;  /* 123Quarto Style */
    --border-radius-xxl: 4rem; /* 123Quarto Style */
    --transition-base: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-soft: 0 10px 40px rgba(0,0,0,0.08);
    --shadow-strong: 0 25px 50px rgba(0,0,0,0.15);
    --font-main: 'Montserrat', sans-serif;
}

/* Global Reset & Typography */
body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-main);
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #2c3e50;
}

p {
    font-weight: 400;
    color: #666;
}

a {
    text-decoration: none;
    transition: var(--transition-base);
}

/* Navigation Improvements */
.site-nav {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    background: transparent; /* Ensure transparent for overlay effect */
    position: absolute;
    width: 100%;
    z-index: 1000;
}

/* Mobile Menu Overlay */
.site-mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.offcanvas-menu .site-mobile-menu-overlay {
    opacity: 1;
    visibility: visible;
}

.site-navigation .site-menu > li {
    padding: 0 1.5rem !important; /* Generous spacing */
}

.site-navigation .site-menu > li > a {
    font-weight: 500 !important; /* Thinner font */
    font-size: 1rem;
    color: rgba(255,255,255,0.9) !important;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.site-navigation .site-menu > li > a:hover,
.site-navigation .site-menu > li.active > a {
    color: white !important;
    opacity: 1;
}

/* Quando navbar está scrolled (fundo branco) */
.site-nav.scrolled .site-navigation .site-menu > li > a {
    color: var(--primary-color) !important;
    opacity: 0.9;
}

.site-nav.scrolled .site-navigation .site-menu > li > a:hover,
.site-nav.scrolled .site-navigation .site-menu > li.active > a {
    color: var(--primary-color) !important;
    opacity: 1;
    font-weight: 700 !important;
}

/* Helper Classes */
.rounded-xl-custom { border-radius: var(--border-radius-xl) !important; }
.rounded-xxl-custom { border-radius: var(--border-radius-xxl) !important; }
.shadow-2xl-custom { box-shadow: var(--shadow-strong) !important; }
.shadow-soft { box-shadow: var(--shadow-soft) !important; }

/* Fix for Map Visibility - Resolve Bootstrap Conflict */
.ratio::before {
    padding-top: var(--bs-aspect-ratio) !important;
}

/* 123Quarto Buttons */
.btn-modern {
    border-radius: 50px !important;
    padding: 1rem 2.5rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    box-shadow: 0 10px 20px rgba(255, 92, 23, 0.3) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    border: none !important;
    background: var(--primary-color) !important;
    color: white !important;
}

.btn-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(255, 92, 23, 0.5) !important;
    background: var(--primary-color-dark) !important;
}

/* Hero Section */
.hero-slider-wrapper {
    position: relative;
    overflow: hidden;
    height: 85vh;
    border-radius: 0 0 var(--border-radius-xxl) var(--border-radius-xxl); /* Rounded bottom only */
    background-color: #000;
    box-shadow: var(--shadow-strong);
    margin-bottom: 4rem;
}

.hero-slider-wrapper .carousel-item {
    height: 85vh;
}

.hero-slider-wrapper .carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    filter: brightness(0.9) contrast(1.1) saturate(1.1); /* Warm/Pastel treatment */
}

.hero-overlay {
    background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.1) 100%); /* Dense left -> Transparent right */
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding-left: 8%; /* Increased padding */
}

.hero-content {
    max-width: 800px; /* Increased width */
    color: white;
    z-index: 10;
    padding-top: 4rem; /* More vertical space */
    padding-bottom: 4rem;
}

.hero-content h1 {
    font-family: 'Poppins', var(--font-main);
    font-size: 4.5rem; /* Larger dominant title */
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: none; /* Removed heavy shadow for cleaner look */
}

.hero-content p {
    font-size: 1.25rem;
    color: #F5F5F5; /* Off-white */
    margin-bottom: 3rem;
    font-weight: 400;
    letter-spacing: 1px; /* Increased letter spacing */
    max-width: 600px;
    line-height: 1.8;
}

/* Hero Buttons */
.btn-hero-primary {
    background-color: var(--primary-color) !important;
    color: white !important;
    border: none !important;
    border-radius: 12px !important; /* Slightly rounded, not pill */
    padding: 1rem 2.5rem !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important; /* Subtle drop shadow */
    transition: all 0.3s ease !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-hero-primary:hover {
    background-color: var(--primary-color-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25) !important;
}

.btn-hero-secondary {
    background-color: transparent !important;
    color: white !important;
    border: 1px solid rgba(255,255,255,0.7) !important; /* Thin outline */
    border-radius: 12px !important;
    padding: 1rem 2.5rem !important;
    font-weight: 500 !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-hero-secondary:hover {
    background-color: rgba(255,255,255,0.1) !important;
    border-color: white !important;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .hero-overlay {
        padding-left: 5%;
        background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.8) 100%); /* Mobile overlay */
    }
}


/* Section Common */
.section {
    padding: 6rem 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

/* Quote Section */
.section-quote {
    text-align: center;
    background-color: #fff;
    padding: 4rem 0;
}

.section-quote h2 {
    font-size: 2rem;
    color: var(--primary-color);
    font-style: italic;
    font-weight: 600;
    max-width: 900px;
    margin: 0 auto 2rem;
}

/* Services Cards - Redefined (Minimalist Grid) */
.pillars-box {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); /* Auto-fill prevents stretching */
    gap: 2rem;
    justify-content: center;
}

.service-card {
    background: #fff;
    border-radius: 1.5rem !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
    transition: var(--transition-base);
    border: 1px solid #f0f0f0;
    height: 100%;
    min-height: 320px; /* Uniform height */
    display: flex;
    flex-direction: column;
}

.service-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
}

.service-card .icon-box {
    width: 60px !important;
    height: 60px !important;
    font-size: 1.1rem;
    margin-bottom: 1rem !important;
}

.service-card:hover .icon-box {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.service-card h3 {
    font-size: 1.1rem !important;
    color: #333;
    min-height: 2.5rem; /* Consistent title height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card p {
    font-size: 0.9rem !important;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Limit text to 4 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1.5rem !important;
}

.service-card .btn {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: all 0.3s ease;
    margin-top: auto !important; /* Push to bottom */
    display: inline-block !important;
    visibility: visible !important;
    width: auto !important;
}

.service-card:hover .btn {
    opacity: 1 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 20px rgba(255, 92, 23, 0.4) !important;
    background-color: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
}

/* Old Card 3D - Removed/Overwritten */
.card-3d {
    display: none;
}

/* Pillars Info Side */
.pillars-info h2 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.pillars-info p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Program Section */
.section-program {
    background-color: var(--light-bg);
}

.program-images {
    border-radius: var(--border-radius-lg) !important;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-base);
    filter: brightness(0.95);
}

.program-images:hover {
    transform: scale(1.03);
    filter: brightness(1.05);
    box-shadow: var(--shadow-strong);
}

/* About Section */
.section-schedule {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-dark));
    color: white;
    border-radius: var(--border-radius-xxl);
    margin: 4rem 2rem; /* Floating effect */
    padding: 6rem 3rem;
    box-shadow: var(--shadow-strong);
}

.section-schedule h2 {
    color: white !important;
    font-size: 3.5rem;
}

.section-schedule p {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
}

/* Schedule Section Buttons */
.btn-schedule-primary {
    background-color: #fff !important;
    color: var(--primary-color) !important;
    font-weight: 700 !important;
    border-radius: 50px !important;
    padding: 1rem 2.5rem !important;
    border: none !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15) !important;
    transition: all 0.3s ease !important;
    opacity: 1 !important;
    display: inline-block;
}

.btn-schedule-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2) !important;
    background-color: #f0f0f0 !important;
    color: var(--primary-color-dark) !important;
}

.btn-schedule-secondary {
    background-color: transparent !important;
    color: #fff !important;
    border: 2px solid #fff !important;
    font-weight: 700 !important;
    border-radius: 50px !important;
    padding: 1rem 2.5rem !important;
    transition: all 0.3s ease !important;
    opacity: 1 !important;
    display: inline-block;
}

.btn-schedule-secondary:hover {
    background-color: #fff !important;
    color: var(--primary-color) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.youtube-video {
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    width: 100%;
    aspect-ratio: 16/9;
}

/* Instagram Section */
.instagram-tab {
    background: #fff !important; /* Override gradient */
    border-radius: var(--border-radius-xl) !important;
    box-shadow: var(--shadow-soft) !important;
    padding: 4rem !important;
}

.instagram-tab h2.heading {
    color: var(--primary-color) !important;
    font-size: 2.5rem;
}

.insta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 992px) {
    .insta-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .insta-grid {
        grid-template-columns: 1fr;
    }
}

.item-slide-instagram {
    border-radius: 16px !important; /* More modern radius */
    aspect-ratio: 1/1;
    position: relative;
    overflow: hidden;
}

.item-slide-instagram img {
    border-radius: 16px !important;
    transition: all 0.5s ease;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}

/* Hover Effect: Zoom & Overlay */
.item-slide-instagram:hover img {
    transform: scale(1.1);
}

.item-slide-instagram::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.item-slide-instagram:hover::after {
    opacity: 1;
}

/* Flat Instagram Button */
.btn-instagram-flat {
    background-color: transparent !important;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color) !important;
    border-radius: 50px !important;
    padding: 0.8rem 2rem !important;
    font-weight: 600 !important;
    box-shadow: none !important;
    transition: all 0.3s ease !important;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-instagram-flat:hover {
    background-color: var(--primary-color) !important;
    color: white !important;
    transform: translateY(-2px);
}


/* Testimonials */
#sectionDepositions {
    background-color: #fff;
    padding-bottom: 6rem;
}

.testimonial-card-modern {
    background: #fff !important;
    border: none !important;
    border-radius: var(--border-radius-xl) !important;
    box-shadow: var(--shadow-soft) !important;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    overflow: hidden;
    max-height: 100%;
}

.testimonial-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-color-dark) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.testimonial-card-modern:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12) !important;
}

.testimonial-card-modern:hover::before {
    transform: scaleX(1);
}

.testimonial-text {
    position: relative;
    min-height: 45px;
}

.avatar-modern {
    transition: transform 0.3s ease;
}

.testimonial-card-modern:hover .avatar-modern {
    transform: scale(1.1) rotate(5deg);
}

.google-rating-badge {
    transition: all 0.3s ease;
}

.google-rating-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

.review-header h5 {
    font-weight: 700;
    font-size: 1.2rem;
}

.stars .star.filled {
    filter: drop-shadow(0 2px 2px rgba(255, 193, 7, 0.4));
}

/* Owl Carousel Custom Styles for Testimonials */
#carousel-depoimentos .owl-dots {
    text-align: center;
    margin-top: 2rem;
}

#carousel-depoimentos .owl-dots .owl-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd !important;
    margin: 0 5px;
    transition: all 0.3s ease;
}

#carousel-depoimentos .owl-dots .owl-dot.active {
    background: var(--primary-color) !important;
    width: 30px;
    border-radius: 6px;
    transform: scale(1.2);
}

#carousel-depoimentos .owl-dots .owl-dot:hover {
    background: var(--primary-color) !important;
    opacity: 0.7;
}

/* Responsive adjustments for testimonials */
@media (max-width: 768px) {
    .testimonial-card-modern {
        padding: 1.5rem !important;
    }
    
    .testimonial-text {
        font-size: 0.95rem !important;
        min-height: auto !important;
    }
    
    .avatar-modern {
        width: 45px !important;
        height: 45px !important;
        font-size: 1rem !important;
    }
    
    .google-rating-badge {
        flex-direction: column;
        gap: 1rem !important;
        text-align: center !important;
    }
    
    .google-rating-badge .text-start {
        text-align: center !important;
    }
}

/* Footer */
footer.site-footer {
    background: #1a1a1a !important; /* Dark footer */
    color: #bbb;
    padding-top: 6rem !important;
    margin-top: 4rem !important;
}

footer h3 {
    color: white !important;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

footer a {
    color: #bbb !important;
}

footer a:hover {
    color: var(--primary-color) !important;
    padding-left: 5px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1rem; }
    .hero-slider-wrapper { height: 70vh; border-radius: 0 0 2rem 2rem; }
    .section-schedule { margin: 2rem 0; border-radius: 0; padding: 4rem 1.5rem; }
    .section-schedule h2 { font-size: 2.5rem; }
    .pillars-info { text-align: center; margin-bottom: 3rem; }
    .btn-modern { padding: 0.8rem 2rem !important; }
}

/* Form Styles Override */
.form-control, .form-select {
    border-radius: 1.5rem !important;
    border: 1px solid #e1e1e1 !important;
    padding: 1rem 1.5rem !important;
    box-shadow: none !important;
    background-color: #f8f9fa;
}

.form-control:focus {
    background-color: #fff;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 4px rgba(255, 92, 23, 0.1) !important;
}

.form-label {
    font-weight: 700;
    margin-left: 1rem;
    font-size: 0.9rem;
    color: #555;
}
