:root {
    --color-ivory: #F5F1EE;
    --color-champagne: #E6D5C9;
    --color-rose-gold: #E6B5B0;
    --color-taupe: #9F8B85;
    --color-mauve: #A67F7F;
    --color-leather: #5C4B47;
    --color-gold: #D4AF37;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Playfair Display', serif;
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--color-ivory);
    color: var(--color-leather);
    line-height: 1.6;
}

/* Header e Navegação */
.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none !important;
    color: var(--color-leather) !important;
    z-index: 1001;
}

.navbar-brand:hover {
    color: var(--color-leather) !important;
    text-decoration: none !important;
}

.navbar-brand .highlight {
    color: var(--color-gold);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--color-leather);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--color-rose-gold);
    text-decoration: none;
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-rose-gold);
    transition: width 0.3s ease;
}

.nav-link:hover:after {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: var(--color-leather);
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* Mobile Menu Active State */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Botões */
.btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

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

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

/* Alert styles */
.alert {
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid transparent;
    margin-bottom: 1rem;
}

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

/* Cards e Seções */
.section {
    padding: 5rem 0;
}

.card {
    background-color: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

/* Títulos e Textos */
h1, h2, h3, h4, h5 {
    font-family: var(--font-secondary);
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    color: var(--color-leather);
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    color: var(--color-taupe);
}

/* Elementos de Destaque */
.highlight {
    color: var(--color-gold);
}

/* Formulários */
.form-control {
    padding: 1rem;
    border: 2px solid var(--color-champagne);
    border-radius: 8px;
    width: 100%;
    margin-bottom: 1rem;
    transition: border-color 0.3s ease;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-rose-gold);
    box-shadow: 0 0 0 3px rgba(230, 181, 176, 0.1);
}

@media (max-width: 768px) {
    .form-control {
        padding: 0.8rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

@media (max-width: 576px) {
    .form-control {
        padding: 0.7rem;
        margin-bottom: 0.8rem;
    }
}

/* Footer */
.footer {
    background-color: var(--color-leather);
    color: var(--color-ivory);
    padding: 3rem 0;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #1ebe57;
    transform: scale(1.1);
    color: white;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
    margin: 0;
}

/* Animação pulsante para chamar atenção */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.7), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
    100% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
}

.whatsapp-float {
    animation: pulse 2s infinite;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 22px;
        bottom: 15px;
        right: 15px;
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.3s ease;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 1.2rem;
        padding: 1rem;
    }
    
    h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .hero {
        margin-top: -70px;
        background-attachment: scroll;
    }
    
    .hero h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .card {
        margin-bottom: 1.5rem;
        padding: 1.5rem;
    }
    
    .gallery-container {
        padding: 1rem 0;
    }
    
    .carousel-control {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .carousel-prev {
        left: -15px;
    }
    
    .carousel-next {
        right: -15px;
    }
}

@media (max-width: 576px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 1.7rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .gallery-card .img-container {
        height: 180px;
    }
    
    .gallery-card .card-body {
        padding: 0.8rem;
    }
    
    .gallery-card h5 {
        font-size: 1rem;
    }
    
    .gallery-card p {
        font-size: 0.8rem;
    }
    
    .carousel-control {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .carousel-prev {
        left: -10px;
    }
    
    .carousel-next {
        right: -10px;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* Hero Section */
.hero {
    background-image: url('../img/37efec38-db6a-4bf7-b3c7-632393c404b7.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    color: white;
    padding: 0;
    margin-top: -76px; /* Ajuste baseado na altura do header */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero .container {
    position: relative;
    z-index: 2;
}

/* Seções alternadas */
.section {
    padding: 5rem 0;
}

.section-light {
    background-color: var(--color-ivory);
}

.section-dark {
    background-color: var(--color-champagne);
}

/* Otimização de imagens */
.img-container {
    overflow: hidden;
    border-radius: 15px;
    position: relative;
    background-color: #f8f9fa;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

/* Imagens específicas com melhor controle */
.about-img {
    max-height: 500px;
    width: 100%;
    object-fit: cover;
    object-position: center top;
}

.product-img {
    max-height: 400px;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

/* Hero section melhorada */
.hero {
    background-image: url('../img/37efec38-db6a-4bf7-b3c7-632393c404b7.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    color: white;
    padding: 0;
    margin-top: -76px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
}

.hero .container {
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .hero {
        background-attachment: scroll;
        min-height: 70vh;
    }
    
    .img-container {
        max-height: 300px;
    }
    
    .about-img {
        max-height: 350px;
    }
    
    .product-img {
        max-height: 300px;
    }
}

@media (max-width: 576px) {
    .hero {
        min-height: 60vh;
    }
    
    .img-container {
        max-height: 250px;
    }
    
    .about-img {
        max-height: 300px;
    }
    
    .product-img {
        max-height: 250px;
    }
}

/* Galeria melhorada */
.gallery-container {
    position: relative;
    padding: 2rem 0;
    max-width: 1000px;
    margin: 0 auto;
}

.gallery-card {
    margin: 0 10px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: white;
    height: auto;
    transition: transform 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-5px);
}

.gallery-card .img-container {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
    background-color: #f8f9fa;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

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

.gallery-card .card-body {
    padding: 1.2rem;
    background: white;
}

.gallery-card h5 {
    color: var(--color-leather);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-family: var(--font-secondary);
}

.gallery-card p {
    color: var(--color-taupe);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

/* Controles do carrossel melhorados */
.carousel-control {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: var(--color-rose-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.carousel-control:hover {
    background: var(--color-mauve);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: -25px;
}

.carousel-next {
    right: -25px;
}

.carousel-control i {
    font-size: 1.2rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .img-container {
        max-height: 300px;
    }

    .gallery-card img {
        height: 200px;
    }

    .card {
        margin-bottom: 1rem;
    }

    .hero {
        margin-top: -60px;
    }

    .carousel-control {
        width: 30px;
        height: 30px;
    }

    .gallery-card .img-container {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .img-container {
        max-height: 200px;
    }

    .gallery-card img {
        height: 150px;
    }

    .section {
        padding: 3rem 0;
    }

    .gallery-card .img-container {
        height: 180px;
    }
    
    .gallery-card .card-body {
        padding: 0.8rem;
    }
    
    .gallery-card h5 {
        font-size: 1rem;
    }
    
    .gallery-card p {
        font-size: 0.8rem;
    }
}

/* Cursos Section */
.cursos-card {
    height: 100%;
    transition: all 0.3s ease;
    border: none;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

.cursos-card .card-body {
    padding: 2rem;
}

.cursos-card .bi {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-rose-gold);
}

.cursos-card .card-title {
    color: var(--color-leather);
    font-family: var(--font-secondary);
    margin-bottom: 1rem;
}

.cursos-card .card-text {
    color: var(--color-taupe);
    margin-bottom: 1.5rem;
    min-height: 48px;
}

.cursos-card ul li {
    margin-bottom: 0.5rem;
    color: var(--color-leather);
    font-size: 0.95rem;
}

.cursos-card .btn {
    margin-top: auto;
    width: 100%;
    max-width: 200px;
}

/* Responsividade para Cursos */
@media (max-width: 992px) {
    .cursos-card .card-body {
        padding: 1.5rem;
    }

    .cursos-card .card-text {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .cursos-card {
        margin-bottom: 1rem;
    }

    .cursos-card .bi {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .cursos-card .card-body {
        padding: 1.25rem;
    }
}