/**
 * BELLA CASA - LANDING PAGE CSS
 * Reformas Prediais
 */

/* ========================================
   RESET E CONFIGURAÇÕES GLOBAIS
   ======================================== */

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

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--cor-texto-escuro);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

section {
    scroll-margin-top: 80px;
}

/* ========================================
   NAVBAR
   ======================================== */

@keyframes navbarDrop {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}

@keyframes logoAppear {
    from { opacity: 0; transform: scale(0.6) translateY(-8px); }
    to   { opacity: 1; transform: scale(1)   translateY(0);    }
}

@keyframes navItemIn {
    from { opacity: 0; transform: translateX(18px); }
    to   { opacity: 1; transform: translateX(0);    }
}

.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    overflow: visible;
    animation: navbarDrop 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.navbar-brand .logo {
    animation: logoAppear 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) 0.35s both;
}

.nav-item {
    opacity: 0;
    animation: navItemIn 0.4s ease forwards;
}
.nav-item:nth-child(1) { animation-delay: 0.45s; }
.nav-item:nth-child(2) { animation-delay: 0.55s; }
.nav-item:nth-child(3) { animation-delay: 0.65s; }
.nav-item:nth-child(4) { animation-delay: 0.75s; }
.nav-item:nth-child(5) { animation-delay: 0.85s; }
.nav-item:nth-child(6) { animation-delay: 0.95s; }

.navbar::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 28px;
    background: white;
    clip-path: polygon(0 0, 100% 0, 0 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.navbar.navbar-wave::after {
    opacity: 1;
}

.navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
}

.navbar-brand .logo{
    max-height: 105px;
    max-height: 85px;
	position: absolute;
    top: 33%;
    top: 14%;
    z-index: 10;
}

.navbar-brand .text-primary {
    color: var(--cor-primaria) !important;
}

.navbar-brand .text-secondary {
    color: var(--cor-secundaria) !important;
    font-size: 0.75rem;
    font-weight: 600;
}

.navbar-nav{
    margin-top: 10px;
}

.nav-link {
    font-weight: 600;
    color: var(--cor-texto-escuro) !important;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover {
    color: var(--cor-primaria) !important;
}

.navbar .btn-primary {
    background: var(--cor-primaria);
    border: none;
}

.navbar .btn-primary:hover {
    background: var(--cor-secundaria);
}

/* ========================================
   HERO SLIDER
   ======================================== */

.hero-slider {
    margin-top: 76px;
}

.hero-slide {
    position: relative;
    height: 650px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 122, 77, 0.9), rgba(30, 90, 142, 0.85));
	background: linear-gradient(135deg, rgb(35 34 34), rgb(186 153 149 / 0%));
	background: linear-gradient(89deg, rgb(73 4 4), rgb(186 153 149 / 0%));
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

@keyframes heroSlideRight {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-title {
    font-size: 3rem;
	font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateX(-60px);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateX(-60px);
}

.carousel-item.active .hero-title {
    animation: heroSlideRight 0.65s ease forwards;
}

.carousel-item.active .hero-subtitle {
    animation: heroSlideRight 0.65s ease 0.18s forwards;
}

/* Formulário de Captação */
.form-box {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    position: absolute;
    z-index: 9999;
    top: 14%;
    right: 8%;
    width: 450px;
    display: none;
    transform-origin: top center;
}

.form-box::before {
    content: '';
    position: absolute;
    top: -12px;
    right: 36px;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 12px solid white;
    filter: drop-shadow(0 -2px 2px rgba(0,0,0,0.12));
}

.form-box.aberto {
    display: block;
    animation: formSlideDown 0.3s ease forwards;
}

.form-box.fechando {
    animation: formSlideUp 0.25s ease forwards;
}

@keyframes formSlideDown {
    from {
        opacity: 0;
        transform: translateY(-12px) scaleY(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scaleY(1);
    }
}

@keyframes formSlideUp {
    from {
        opacity: 1;
        transform: translateY(0) scaleY(1);
    }
    to {
        opacity: 0;
        transform: translateY(-12px) scaleY(0.95);
    }
}

.form-title {
    font-size: 1.5rem;
    color: var(--cor-primaria);
    margin-bottom: 0.5rem;
}

.form-subtitle {
    color: var(--cor-texto-claro);
    margin-bottom: 1.5rem;
}

.lead-form .form-control,
.lead-form .form-select {
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
}

.lead-form .form-control:focus,
.lead-form .form-select:focus {
    border-color: var(--cor-primaria);
    box-shadow: 0 0 0 0.2rem rgba(45, 122, 77, 0.15);
}

.lead-form .btn-success {
    background: var(--cor-primaria);
    border: none;
    padding: 0.875rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.lead-form .btn-success:hover {
    background: var(--cor-secundaria);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

/* ========================================
   DIFERENCIAIS
   ======================================== */

.diferencial-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.diferencial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.diferencial-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--cor-primaria), var(--cor-secundaria));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.diferencial-titulo {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--cor-texto-escuro);
    margin-bottom: 0.75rem;
}

.diferencial-texto {
    color: var(--cor-texto-claro);
    font-size: 0.95rem;
    margin: 0;
}

/* ========================================
   SEÇÕES
   ======================================== */

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--cor-texto-escuro);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--cor-primaria);
    font-weight: 600;
    margin-bottom: 2rem;
}

/* ========================================
   SOBRE
   ======================================== */

.sobre {
    background: white;
}

.sobre-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--cor-primaria), var(--cor-secundaria));
    border-radius: 12px;
    position: relative;
    margin-left: -100px;
}

.sobre-img {
    width: 100%;
    height: 555px;
    object-fit: contain;
    transition: transform 0.5s ease;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* ========================================
   SERVIÇOS
   ======================================== */

.servico-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.servico-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.servico-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--cor-primaria), var(--cor-secundaria));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    color: white;
}

.servico-titulo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cor-texto-escuro);
    margin-bottom: 1rem;
}

.servico-descricao {
    color: var(--cor-texto-claro);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.servico-link {
    color: var(--cor-primaria);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.servico-link:hover {
    color: var(--cor-secundaria);
    gap: 0.5rem;
}

/* ========================================
   PORTFÓLIO
   ======================================== */

.portfolio {
    background: white;
}

.portfolio-filters {
    margin-bottom: 3rem;
}

.filter-btn {
    background: transparent;
    border: 2px solid #e0e0e0;
    padding: 0.5rem 1.5rem;
    margin: 0.25rem;
    border-radius: 50px;
    font-weight: 600;
    color: var(--cor-texto-escuro);
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--cor-primaria);
    border-color: var(--cor-primaria);
    color: white;
}

.portfolio-item {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.portfolio-item.hide {
    display: none;
}

.portfolio-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
}

.portfolio-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 122, 77, 0.95), rgba(30, 90, 142, 0.9));
	background: linear-gradient(181deg, #490404, rgb(194 38 43));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 2rem;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-content {
    text-align: center;
    color: white;
}

.portfolio-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.portfolio-desc {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.portfolio-category {
    display: inline-block;
    padding: 0.25rem 1rem;
    background: rgba(255,255,255,0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ========================================
   DEPOIMENTOS
   ======================================== */

.depoimento-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    height: 100%;
}

.depoimento-texto {
    font-style: italic;
    color: var(--cor-texto-escuro);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.depoimento-autor strong {
    color: var(--cor-primaria);
    font-size: 1.1rem;
}

/* ========================================
   CTA FINAL
   ======================================== */

/* ========================================
   INSTAGRAM FEED
   ======================================== */

.instagram-feed {
    background: #fafafa;
}

.instagram-perfil {
    color: var(--cor-primaria);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: opacity 0.2s;
}

.instagram-perfil:hover {
    opacity: 0.75;
    color: var(--cor-primaria);
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
}

@media (max-width: 991px) {
    .instagram-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 575px) {
    .instagram-grid { grid-template-columns: repeat(2, 1fr); }
}

.instagram-item {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: block;
    border-radius: 6px;
}

.instagram-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.instagram-overlay {
    position: absolute;
    inset: 0;
    background: rgba(194, 38, 43, 0.82);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 0.75rem;
    text-align: center;
}

.instagram-overlay i {
    font-size: 1.8rem;
}

.instagram-overlay span {
    font-size: 0.75rem;
    line-height: 1.3;
}

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

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

/* ========================================
   CTA FINAL
   ======================================== */

.cta-final {
    background: linear-gradient(135deg, var(--cor-primaria), var(--cor-secundaria));
}

.cta-final .btn-light:hover {
    background: white;
    color: var(--cor-primaria);
    transform: translateY(-2px);
}

.cta-final .btn-outline-light:hover {
    background: white;
    color: var(--cor-primaria);
}

/* ========================================
   FOOTER
   ======================================== */

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--cor-primaria);
}

.footer-contact li {
    margin-bottom: 0.75rem;
    color: rgba(255,255,255,0.8);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--cor-primaria);
    color: white;
}

/* ========================================
   BOTÕES
   ======================================== */

.btn-primary {
    background: var(--cor-primaria);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--cor-secundaria);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-outline-primary {
    border: 2px solid var(--cor-primaria);
    color: var(--cor-primaria);
    padding: 0.75rem 2rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn:first-child:active,
.btn-outline-primary:hover {
    background: var(--cor-secundaria);
    border-color: var(--cor-secundaria);
    color: white;
}

/* ========================================
   RESPONSIVO
   ======================================== */

@media (max-width: 991px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-slide {
        height: auto;
        padding: 3rem 0;
    }
    
    .form-box {
        margin-top: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .sobre-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .portfolio-img {
        height: 250px;
    }
}

/* ========================================
   ANIMAÇÕES
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}
