/* ===================================
   David Alves - Investimentos Imobiliários
   CSS Principal
   Cores: Laranja (#FF6B00) e Branco (#FFFFFF)
   =================================== */

/* ----- Variáveis CSS ----- */
:root {
    --primary-color: #FF6B00;
    --primary-dark: #E55A00;
    --primary-light: #FF8533;
    --secondary-color: #333333;
    --white: #FFFFFF;
    --light-gray: #F8F9FA;
    --medium-gray: #6C757D;
    --dark-gray: #343A40;
    --border-radius: 15px;
    --border-radius-sm: 10px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* ----- Reset e Base ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--secondary-color);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

.section-padding {
    padding: 100px 0;
}

/* ----- Botões ----- */
.btn {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 107, 0, 0.4);
}

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

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

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

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: var(--white);
    border: none;
}

.btn-instagram:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(220, 39, 67, 0.4);
    color: var(--white);
}

/* ----- Títulos de Seção ----- */
.section-subtitle {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.section-title {
    font-size: 42px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--primary-light));
    margin-bottom: 20px;
    border-radius: 2px;
}

.section-description {
    font-size: 18px;
    color: var(--medium-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ----- Navbar ----- */
.navbar {
    padding: 20px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: var(--white);
    box-shadow: var(--box-shadow);
    padding: 10px 0;
}

.navbar-brand {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.8);
}

.navbar.scrolled .brand-name {
    color: var(--primary-color);
}

.navbar.scrolled .brand-subtitle {
    color: var(--medium-gray);
}

.nav-link {
    font-weight: 500;
    color: var(--white) !important;
    padding: 10px 20px !important;
    margin: 0 5px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-light) !important;
}

.navbar.scrolled .nav-link {
    color: var(--secondary-color) !important;
}

.navbar.scrolled .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-toggler {
    border: none;
    padding: 10px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2851, 51, 51, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ----- Hero Section ----- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/hero-bg.jpg') center center / cover no-repeat;
    opacity: 0.1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.95) 0%, rgba(229, 90, 0, 0.9) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    padding: 40px 0;
}

.hero-subtitle {
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.hero-title {
    font-size: 60px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.1;
}

.hero-location {
    font-size: 18px;
    margin-bottom: 25px;
    opacity: 0.9;
}

.hero-location i {
    margin-right: 8px;
}

.hero-description {
    font-size: 20px;
    max-width: 550px;
    margin-bottom: 35px;
    line-height: 1.7;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero-scroll-indicator a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    color: var(--white);
    animation: bounce 2s infinite;
}

.hero-scroll-indicator a:hover {
    border-color: var(--white);
    color: var(--white);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Animações de entrada */
.animate-fade-in {
    animation: fadeIn 1s ease forwards;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease 0.3s forwards;
    opacity: 0;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease 0.6s forwards;
    opacity: 0;
}

.animate-fade-in-delay-3 {
    animation: fadeIn 1s ease 0.9s forwards;
    opacity: 0;
}

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

/* ----- Sobre Section ----- */
.sobre-section {
    background-color: var(--white);
}

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

.sobre-image {
    position: relative;
    z-index: 2;
}

.sobre-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.sobre-image-accent {
    position: absolute;
    top: 30px;
    left: 30px;
    right: -30px;
    bottom: -30px;
    border: 4px solid var(--primary-color);
    border-radius: var(--border-radius);
    z-index: 1;
}

.sobre-content {
    padding-left: 30px;
}

.sobre-text {
    font-size: 17px;
    color: var(--medium-gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.sobre-features {
    margin: 30px 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.feature-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.feature-icon i {
    font-size: 26px;
    color: var(--white);
}

.feature-text h5 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.feature-text p {
    font-size: 14px;
    color: var(--medium-gray);
    margin: 0;
}

/* ----- Clientes Section ----- */
.clientes-section {
    background-color: var(--light-gray);
}

.cliente-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.cliente-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.cliente-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.cliente-card:hover .cliente-image img {
    transform: scale(1.05);
}

.cliente-overlay {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: var(--transition);
}

.cliente-card:hover .cliente-overlay {
    opacity: 1;
    transform: scale(1);
}

.cliente-overlay i {
    color: var(--white);
    font-size: 18px;
}

/* Carousel customização */
#clientesCarousel .carousel-control-prev,
#clientesCarousel .carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 1;
}

#clientesCarousel .carousel-control-prev {
    left: -25px;
}

#clientesCarousel .carousel-control-next {
    right: -25px;
}

#clientesCarousel .carousel-control-prev:hover,
#clientesCarousel .carousel-control-next:hover {
    background: var(--primary-dark);
}

#clientesCarousel .carousel-indicators {
    bottom: -50px;
}

#clientesCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--medium-gray);
    opacity: 0.5;
}

#clientesCarousel .carousel-indicators button.active {
    background-color: var(--primary-color);
    opacity: 1;
}

/* ----- Empreendimentos Section ----- */
.empreendimentos-section {
    background: var(--white);
}

.empreendimento-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
}

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

.empreendimento-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.empreendimento-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.empreendimento-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.empreendimento-content {
    padding: 25px;
}

.empreendimento-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.empreendimento-location {
    font-size: 14px;
    color: var(--medium-gray);
    margin-bottom: 15px;
}

.empreendimento-location i {
    color: var(--primary-color);
    margin-right: 5px;
}

.empreendimento-desc {
    font-size: 14px;
    color: var(--medium-gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* ----- Contato Section ----- */
.contato-section {
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
}

.contato-info {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    height: 100%;
}

.contato-info-title {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.contato-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.contato-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.contato-icon i {
    font-size: 22px;
    color: var(--white);
}

.contato-text {
    display: flex;
    flex-direction: column;
}

.contato-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--medium-gray);
    margin-bottom: 2px;
}

.contato-text a,
.contato-text span {
    font-size: 16px;
    font-weight: 500;
    color: var(--secondary-color);
}

.contato-text a:hover {
    color: var(--primary-color);
}

/* Instagram CTA */
.instagram-cta {
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    padding: 25px;
    border-radius: var(--border-radius);
    color: var(--white);
    text-align: center;
}

.instagram-cta h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.instagram-cta h4 i {
    margin-right: 8px;
}

.instagram-cta p {
    font-size: 14px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.instagram-cta .btn-instagram {
    background: var(--white);
    color: #dc2743;
}

.instagram-cta .btn-instagram:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #bc1888;
}

/* Instagram Preview */
.instagram-preview {
    background: var(--white);
    border: 1px solid #dbdbdb;
    border-radius: var(--border-radius);
    padding: 15px;
}

.instagram-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.instagram-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    border: 2px solid var(--primary-color);
}

.instagram-user-info {
    display: flex;
    flex-direction: column;
}

.instagram-username {
    font-weight: 600;
    font-size: 14px;
    color: var(--secondary-color);
}

.instagram-follow-text {
    font-size: 12px;
    color: #3897f0;
}

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

.instagram-post {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 5px;
}

.instagram-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.instagram-post:hover img {
    transform: scale(1.1);
}

/* Formulário de Contato */
.contato-form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-title {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.form-control,
.form-select {
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius-sm);
    padding: 15px;
    font-size: 15px;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 0, 0.15);
}

.form-floating > label {
    color: var(--medium-gray);
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
    color: var(--primary-color);
}

/* ----- WhatsApp Float Button ----- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 5px 25px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

/* ----- Footer ----- */
.footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-brand h4 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    margin-bottom: 5px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-top: 15px;
}

.footer-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    color: var(--white);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 30px 0;
}

.footer-bottom {
    padding-top: 10px;
}

.footer-copy {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.footer-cnpj {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    line-height: 1.6;
}

.footer-cnpj strong {
    color: rgba(255, 255, 255, 0.8);
}

/* ----- Responsividade ----- */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 50px;
    }
}

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

    .hero-title {
        font-size: 42px;
    }

    .hero-description {
        font-size: 18px;
    }

    .section-title {
        font-size: 36px;
    }

    .sobre-content {
        padding-left: 0;
        margin-top: 50px;
    }

    .sobre-image-accent {
        top: 20px;
        left: 20px;
        right: -20px;
        bottom: -20px;
    }

    #clientesCarousel .carousel-control-prev {
        left: 10px;
    }

    #clientesCarousel .carousel-control-next {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 120px 0 80px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-scroll-indicator {
        display: none;
    }

    .section-title {
        font-size: 30px;
    }

    .section-description {
        font-size: 16px;
    }

    .navbar.scrolled {
        background: var(--white);
    }

    .navbar-collapse {
        background: var(--white);
        padding: 20px;
        border-radius: var(--border-radius);
        margin-top: 10px;
        box-shadow: var(--box-shadow);
    }

    .nav-link {
        color: var(--secondary-color) !important;
    }

    .contato-info,
    .contato-form-wrapper {
        padding: 25px;
    }

    .footer {
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-copy,
    .footer-cnpj {
        text-align: center;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 28px;
    }

    .section-padding {
        padding: 50px 0;
    }

    .section-title {
        font-size: 26px;
    }

    .empreendimento-content {
        padding: 20px;
    }

    .empreendimento-title {
        font-size: 20px;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
    }

    .feature-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .sobre-image-accent {
        display: none;
    }
}

/* ----- Utilitários ----- */
.text-primary {
    color: var(--primary-color) !important;
}

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

.rounded-custom {
    border-radius: var(--border-radius) !important;
}

/* Alert customização */
.alert {
    border-radius: var(--border-radius-sm);
    border: none;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}
