:root {
    --primary: #2E4636; /* Deep, elegant green */
    --accent: #A14C3A; /* Warm terracotta/wine */
    --light: #F9F6F2; /* Soft cream/light beige */
    --dark: #1d1e20; /* Refined dark */
    --white: #FFFFFF;
    --glass: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --body-font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif;
    --heading-font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
}

/*-- -------------------------- -->
<---        General Styles      -->
<--- -------------------------- -*/

body {
    font-family: var(--body-font-family);
    color: var(--dark);
    background-color: var(--light);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font-family);
    font-weight: 700;
    color: var(--primary);
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
}

/*-- -------------------------- -->
<---        Navigation Bar      -->
<--- -------------------------- -*/

.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: background-color 0.3s ease;
}

.navbar-brand {
    font-family: var(--heading-font-family);
    font-weight: 700;
    color: var(--primary) !important;
}

.nav-link {
    font-weight: 700;
    color: var(--dark) !important;
    transition: color 0.3s ease;
    padding: 0.5rem 1.5rem;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent) !important;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/*-- -------------------------- -->
<---        Hero Section        -->
<--- -------------------------- -*/

.hero {
    position: relative;
    color: var(--white);
    text-align: center;
    overflow: hidden;
}

.carousel-item {
    position: relative;
    height: 80vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    padding: 120px 0;
}

.carousel-item .container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    padding: 0 15px;
}

.hero-buttons {
    margin-top: 2.5rem;
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    padding: 14px 32px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-width: 2px;
    transition: all 0.3s ease;
    border-radius: 50px;
    min-width: 200px;
    backdrop-filter: blur(5px);
}

.hero-buttons .btn-primary {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

.hero-buttons .btn-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.hero-buttons .btn-outline-light {
    background-color: rgba(255,255,255,0.1);
}

.hero-buttons .btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero:hover .carousel-control-prev,
.hero:hover .carousel-control-next {
    opacity: 0.8;
}

.carousel-indicators {
    margin-bottom: 2rem;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
    background-color: var(--white);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    opacity: 1;
    transform: scale(1.2);
}

.hero h1, .hero h2 {
    font-size: 3.8rem;
    font-weight: 700;
    color: var(--white);
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}

.hero .lead, .hero p.lead {
    color: var(--white);
    font-weight: 400;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    opacity: 1;
}

/*-- -------------------------- -->
<---        Content Sections    -->
<--- -------------------------- -*/

.content-section {
    padding: 80px 0;
}

.content-section.bg-light {
    background-color: #fff !important; /* Override bootstrap default */
}

/*-- -------------------------- -->
<---        Card Styles         -->
<--- -------------------------- -*/

.card {
    display: flex;
    flex-direction: column;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.25rem;
}

.card-footer {
    flex-shrink: 0;
}

.card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    pointer-events: none;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.card-title {
    color: var(--primary);
    font-weight: 700;
    transition: color 0.3s ease;
    word-break: break-word;
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-text {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card:hover .card-title {
    color: var(--accent);
}

.card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.benefit-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    border-bottom: 3px solid transparent;
}

.benefit-card:hover {
    transform: translateY(-5px);
    border-bottom-color: var(--accent);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background: rgba(46, 70, 54, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
    transition: all 0.3s ease;
}

.benefit-card:hover .benefit-icon {
    background: var(--primary);
    color: var(--white);
}

.card:hover::after {
    opacity: 1;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-img-top {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: scale(1);
}

.card-title {
    color: var(--primary);
    font-weight: 700;
    transition: color 0.3s ease;
}

.card:hover .card-title {
    color: var(--accent);
}

.card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Removido .card-link:hover redundante já que não muda nada */

/*-- -------------------------- -->
<---     Form & Button Styles   -->
<--- -------------------------- -*/

.contact-form {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white) !important;
    font-weight: 700;
    padding: 12px 30px;
    border-radius: 50px; /* Pill-shaped buttons */
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/*-- -------------------------- -->
<---        Footer Section      -->
<--- -------------------------- -*/

.footer {
    background-color: var(--primary);
    color: var(--light);
    padding: 50px 0;
    text-align: center;
}

.footer a {
    color: var(--light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
}

/* Polimento para Iframes (Mapas/Videos) */
iframe {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: none;
    transition: transform 0.3s ease;
}

iframe:hover {
    transform: scale(1.01);
}

.card-img-overlay-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card-img-overlay {
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.1) 30%,
        rgba(0, 0, 0, 0.7) 70%,
        rgba(0, 0, 0, 0.85) 100%);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: all 0.4s ease;
    backdrop-filter: blur(1px);
}

.card-img-overlay .card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.card-img-overlay .card-text {
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    display: -webkit-box;
    display: box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card-link:hover .card-img-overlay {
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.2) 30%,
        rgba(0, 0, 0, 0.8) 70%,
        rgba(0, 0, 0, 0.9) 100%);
    backdrop-filter: blur(2px);
}

.card-link:hover .card-text {
    -webkit-line-clamp: unset;
    line-clamp: unset;
}

.card-link:hover .card-img {
    transform: scale(1.05);
}


.card-img-top {
  height: 220px;
  object-fit: cover;
}

/*-- -------------------------- -->
<---     Carousel Backgrounds   -->
<--- -------------------------- -*/

.carousel-item.bg-img-1 { background-image: url('../img/img1.png'); }
.carousel-item.bg-img-2 { background-image: url('../img/img.santalucia.png'); }
.carousel-item.bg-img-3 { background-image: url('../img/img.fazendasouza.png'); }
.carousel-item.bg-img-4 { background-image: url('../img/img.terceiralegua.png'); }
.carousel-item.bg-img-5 { background-image: url('../img/img.galopolis.png'); }
.carousel-item.bg-img-6 { background-image: url('../img/img.turismoreligioso.png'); }

/*-- -------------------------- -->
<---     WhatsApp Float Button  -->
<--- -------------------------- -*/

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #20BA5A;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    color: #fff;
}

.whatsapp-float:active {
    transform: scale(0.95);
}

.whatsapp-icon {
    width: 35px;
    height: 35px;
    fill: #fff;
}

/* Animação de pulso */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.7);
    }
    100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
}

/* Responsivo - Mobile */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }
    
    .whatsapp-icon {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-icon {
        width: 28px;
        height: 28px;
    }
}

/*-- ================================ -->
<---    MELHORIAS VISUAIS v2.0      -->
<--- ================================ -*/

/* Badges & Tags Enhancement */
.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--primary), rgba(46, 70, 54, 0.8));
    color: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(46, 70, 54, 0.2);
}

.feature-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 70, 54, 0.3);
}

.badge-featured {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--accent), #D16B3A);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 3px 10px rgba(161, 76, 58, 0.4);
    animation: float-badge 3s ease-in-out infinite;
}

@keyframes float-badge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Enhanced Card Styling */
.card-hover {
    position: relative;
}

.card-hover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(46, 70, 54, 0.05), rgba(161, 76, 58, 0.05));
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.card-hover:hover::before {
    opacity: 1;
}

.card-footer {
    transition: all 0.3s ease;
}

.card-hover:hover .card-footer {
    background-color: rgba(46, 70, 54, 0.05) !important;
}

/* Testimonial Cards Enhancement */
.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-left: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 80px;
    color: var(--primary);
    opacity: 0.1;
    font-family: Georgia, serif;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    border-left-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.stars {
    display: flex;
    justify-content: center;
    gap: 4px;
}

.stars i, .stars svg {
    color: #FFD700;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
    transition: all 0.2s ease;
}

.testimonial-card:hover .stars i,
.testimonial-card:hover .stars svg {
    transform: scale(1.1);
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--dark);
    font-style: italic;
    margin: 20px 0;
    font-weight: 500;
}

.testimonial-author {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(46, 70, 54, 0.1);
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(46, 70, 54, 0.1);
}

.testimonial-author strong {
    color: var(--primary);
    font-size: 1.05rem;
}

.testimonial-author small {
    color: rgba(0, 0, 0, 0.6);
    font-size: 0.85rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(46, 70, 54, 0.2), rgba(161, 76, 58, 0.2));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
    margin: 0 auto 10px;
}

.rating-stars {
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: flex-start;
}

.rating-stars input {
    display: none;
}

.rating-stars label {
    font-size: 1.6rem;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.2);
    transition: color 0.2s ease;
}

.rating-stars input:checked ~ label,
.rating-stars label:hover,
.rating-stars label:hover ~ label {
    color: #FFD700;
}

/* Button Enhancements */
.btn {
    position: relative;
    overflow: hidden;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
    pointer-events: none;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #245030);
    border: none;
    box-shadow: 0 4px 12px rgba(46, 70, 54, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent), #8B4237);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(161, 76, 58, 0.4);
}

/* Heading Enhancements */
h1 {
    letter-spacing: -0.5px;
    font-weight: 700;
}

h2 {
    position: relative;
    padding-bottom: 15px;
    font-size: 2.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    border-radius: 2px;
}

h3, h4, h5 {
    font-weight: 700;
}

/* Text Enhancement */
.lead {
    color: var(--dark);
    opacity: 0.9;
    line-height: 1.8;
    font-weight: 500;
}

.text-muted {
    color: #6B7280 !important;
    line-height: 1.7;
}

/* Section Enhancements */
.content-section {
    position: relative;
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(46, 70, 54, 0.2), transparent);
}

.content-section h2 {
    margin-bottom: 50px;
}

/* Grid Spacing Enhancement */
.row > * {
    margin-bottom: 1.5rem;
}

/* Link Styling */
a {
    transition: color 0.3s ease;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

/* Form Enhancement */
.form-control, .form-select {
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46, 70, 54, 0.1);
}

.form-label {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

/* Image Enhancement */
img {
    max-width: 100%;
    height: auto;
    transition: all 0.3s ease;
}

/* Mobile Responsiveness Enhancement */
@media (max-width: 768px) {
    h2 {
        font-size: 2rem;
    }

    h2::after {
        width: 50px;
    }

    .hero {
        min-height: 55vh;
    }

    .carousel-item {
        min-height: 400px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .container {
        padding: 100px 0;
    }

    .content-section {
        padding: 60px 0;
    }

    .card-img-top {
        height: auto;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 1.75rem;
    }

    h2::after {
        display: none;
    }

    .hero {
        min-height: 50vh;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero .container {
        padding: 80px 0;
    }

    .lead {
        font-size: 1rem;
    }

    .card-img-overlay-wrapper {
        height: 180px;
    }

}

/* Community & Premium Component Enhancements */
.community-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: white;
}

.community-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.1) !important;
}

.img-zoom-wrapper {
    position: relative;
}

.community-card:hover .img-zoom-wrapper img {
    transform: scale(1.1);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--white);
    border: none;
    transition: all 0.3s ease;
}

.btn-accent:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(161, 76, 58, 0.3);
}

.nav-link .badge {
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.nav-link:hover .badge {
    background-color: var(--accent) !important;
    color: white !important;
}
