@import url('../styles/base.css');
@import url('../styles/components.css');

html {
    scroll-behavior: smooth;
}

.section {
    scroll-margin-top: 5rem;
}

.shadow-custom {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.gradient-bg {
    background: linear-gradient(135deg, #2B6D82 0%, #1d4d5d 100%);
}

/* Animações */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.appear {
    opacity: 1;
    transform: translateY(0);
}

.stagger-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.stagger-item.appear {
    opacity: 1;
    transform: translateY(0);
}

.hover-float {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-float:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Estilo para o header da página */
.page-header {
    position: relative;
    background: url('../assets/condominioimg.webp') center center/cover no-repeat;
    padding: 8rem 1rem 6rem;
    color: white;
    overflow: hidden;
}

.page-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 40, 60, 0.78);
    z-index: 1;
}

.page-header h1,
.page-header .page-title,
.page-header h2,
.page-header .header-badge,
.page-header .header-badge-icon {
    color: #fff !important;
    text-shadow: 0 2px 16px rgba(0,0,0,0.45), 0 1px 2px rgba(0,0,0,0.25);
}

.page-header p,
.page-header .text-lg,
.page-header .text-sm,
.page-header .text-white,
.page-header .text-opacity-90 {
    color: #f3f4f6 !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.page-header .bg-white,
.page-header .bg-white.bg-opacity-10 {
    background-color: rgba(255,255,255,0.12) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.12);
}

.page-header .text-3xl, .page-header .text-4xl, .page-header .text-5xl {
    color: #fff !important;
    text-shadow: 0 2px 16px rgba(0,0,0,0.45), 0 1px 2px rgba(0,0,0,0.25);
}

.page-title {
    position: relative;
    z-index: 2;
}

.page-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: white;
    margin: 1.5rem auto 0;
}

/* Estilo para os cards de condomínios */
.condo-card {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.condo-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background-color: #2B6D82;
    transition: height 0.3s ease;
}

.condo-card:hover::before {
    height: 100%;
}

.condo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.condo-name {
    font-weight: 600;
    color: #2B6D82;
    transition: transform 0.3s ease, padding-left 0.3s ease;
}

.condo-card:hover .condo-name {
    transform: translateX(5px);
    padding-left: 5px;
}

/* Estilo para o breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    color: #6b7280;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
    content: "/";
    margin: 0 0.5rem;
    color: #9ca3af;
}

.breadcrumb-link {
    color: #2B6D82;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-link:hover {
    color: #1d4d5d;
}

/* Estilo para o contador de condomínios */
.counter-container {
    background-color: rgba(43, 109, 130, 0.1);
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.counter-icon {
    background-color: #2B6D82;
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.counter-text {
    font-size: 1.25rem;
    color: #2B6D82;
    font-weight: 600;
}

/* Estilo para o botão "Ver mais" */
.load-more-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.load-more-btn::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: all 0.6s ease;
}

.load-more-btn:hover::before {
    left: 100%;
}

/* Animação para novos cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.new-card {
    animation: fadeInUp 0.6s ease forwards;
}



main {
    overflow: hidden;
}


body {
    overflow-x: hidden;
    width: 100%;
}

/* Estilo para os ícones flutuantes no header */
.floating-icon {
    position: absolute;
    opacity: 0.2;
    z-index: 1;
}

.floating-icon-1 {
    top: 20%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

.floating-icon-2 {
    top: 30%;
    right: 15%;
    animation: float 8s ease-in-out infinite;
}

.floating-icon-3 {
    bottom: 25%;
    left: 20%;
    animation: float 7s ease-in-out infinite;
}

.floating-icon-4 {
    bottom: 30%;
    right: 10%;
    animation: float 9s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* Side Menu Styles */
#side-menu {
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
}

#side-menu nav a {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

#side-menu nav a:hover {
    background-color: rgba(43, 109, 130, 0.1);
    transform: translateX(5px);
}

#side-menu nav a svg {
    transition: transform 0.3s ease;
}

#side-menu nav a:hover svg {
    transform: scale(1.1);
}

#menu-overlay {
    backdrop-filter: blur(2px);
}

/* Smooth transitions */
#side-menu, #menu-overlay {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}
