/* Custom Styles for Marcenaria Triunfo */

:root {
    --primary-color: #8B4513;
    --secondary-color: #D2B48C;
    --dark-color: #2C1810;
    --light-color: #F5F5DC;
    --success-color: #25D366;
    --brand-yellow: #BEAB33;
    --instagram-gradient: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #A0522D;
    border-color: #A0522D;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.text-primary {
    color: var(--primary-color) !important;
}

/* Navigation */
.navbar {
    background-color: #3a3a3a;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    transition: background-color 0.3s ease, padding 0.3s ease;
}

.navbar-brand img {
    max-height: 52px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.92);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus,
.navbar-dark .navbar-nav .show > .nav-link {
    color: var(--brand-yellow);
}

/* Vertical separators between top-level menu items (desktop) */
@media (min-width: 992px) {
    .navbar-nav .menu-item {
        display: flex;
        align-items: center;
    }
    .navbar-nav .menu-item + .menu-item::before {
        content: "";
        width: 1px;
        height: 15px;
        background-color: rgba(255, 255, 255, 0.4);
        margin-right: 0.15rem;
    }
    .navbar-nav .nav-social:first-of-type {
        margin-left: 0.75rem;
    }
}

/* Social icons in the navbar */
.navbar-nav .nav-social .nav-link {
    font-size: 1.05rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.navbar-scrolled {
    background-color: rgba(33, 37, 41, 0.97) !important;
    backdrop-filter: blur(10px);
}

/* Dropdown accent */
.dropdown-menu .dropdown-item:active,
.dropdown-menu .dropdown-item:hover {
    background-color: var(--brand-yellow);
    color: #fff;
}

/* Institucional section */
.anos-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.anos-badge .anos-num {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--brand-yellow);
}

.anos-badge .anos-txt {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: #6c757d;
    line-height: 1.15;
}

.pilar-icon {
    color: var(--brand-yellow);
}

#sobre .pilar-icon + h5 {
    color: #4a4a52;
}

/* Footer */
.footer-dark {
    background-color: #2b2b2b;
}

.footer-logo {
    max-height: 60px;
    width: auto;
}

.footer-contact i {
    color: var(--brand-yellow);
    width: 18px;
}

.footer-social {
    color: #fff;
    font-size: 1.15rem;
    transition: color 0.3s ease;
}

.footer-social:hover {
    color: var(--brand-yellow);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), url('../images/hero-home.jpg');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
}

/* Cards */
.card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.card-body {
    padding: 2rem;
}

/* Gallery */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
}

.gallery-item img {
    transition: all 0.3s ease;
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(139, 69, 19, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Contact Section */
.contact-options .btn {
    min-width: 250px;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

/* Service Icons */
.service-icon,
.feature-icon,
.benefit-icon,
.process-icon {
    transition: all 0.3s ease;
}

.service-icon:hover,
.feature-icon:hover,
.benefit-icon:hover,
.process-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Style Cards */
.style-card {
    transition: all 0.3s ease;
    background: #fff;
}

.style-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color) !important;
}

/* Process Steps */
.process-step {
    position: relative;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 40px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    z-index: 1;
}

.process-step:last-child::after {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .contact-options .btn {
        min-width: 100%;
        margin-bottom: 15px;
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    .process-step::after {
        display: none;
    }
    
    .service-icon,
    .feature-icon,
    .benefit-icon,
    .process-icon {
        width: 60px !important;
        height: 60px !important;
    }
}

@media (max-width: 576px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .btn-lg {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .contact-options .btn {
        padding: 12px 20px;
        font-size: 1rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Section spacing */
section {
    padding-top: 80px;
}

#home {
    padding-top: 0;
}

/* Animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* WhatsApp button styling */
.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
    border-radius: 50px;
}

.btn-success:hover {
    background-color: #128C7E;
    border-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Instagram gradient button */
.btn-instagram {
    background: var(--instagram-gradient);
    border: none;
    color: white;
    border-radius: 50px;
}

.btn-instagram:hover {
    background: linear-gradient(45deg, #e08329 0%, #d55a32 25%, #c21e39 50%, #b31f5c 75%, #a8177e 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #A0522D;
}

/* Back to top button */
#backToTop {
    transition: all 0.3s ease;
}

#backToTop:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Floating WhatsApp button */
.contato-flutuante {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    z-index: 1050;
    animation: pulso-contato 2.5s infinite;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.contato-flutuante:hover,
.contato-flutuante:focus {
    color: #fff;
    background-color: #1ebe57;
    transform: scale(1.08);
}

@keyframes pulso-contato {
    0%   { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(37, 211, 102, 0.55); }
    70%  { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3), 0 0 0 16px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Keep the back-to-top button above the floating WhatsApp button */
#backToTop {
    bottom: 92px !important;
}

@media (max-width: 575.98px) {
    .contato-flutuante {
        width: 52px;
        height: 52px;
        font-size: 29px;
    }
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2f2f2f 0%, #232323 100%);
}

footer a {
    transition: all 0.3s ease;
}

footer a:hover {
    transform: scale(1.2);
}

/* Modal customization */
.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    border-bottom: 1px solid #eee;
    border-radius: 15px 15px 0 0;
}

/* Accessibility improvements */
.btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(139, 69, 19, 0.25);
}

/* Print styles */
@media print {
    .navbar, footer, #backToTop {
        display: none !important;
    }
    
    .hero-section {
        background: none !important;
        color: #000 !important;
    }
    
    .text-white {
        color: #000 !important;
    }
}