/* ARQUIVO: base.css */

/*--------------------------------------------------------------
# Variáveis CSS e Reset Global
--------------------------------------------------------------*/

:root {
    /* Primeiro conjunto de variáveis - Azul Escuro */
    --dark-blue: #0a1f3c;
    --medium-blue: #1e3a5f;
    --light-blue: #2e5984;
    --transparent-dark: rgba(10, 31, 60, 0.95);
    --transparent-medium: rgba(30, 58, 95, 0.9);

    /* Segundo conjunto de variáveis - Azul com detalhes Vermelhos */
    --blue-light: #3498db;
    --blue-medium: #2980b9;
    --blue-dark: #1e3a5f;
    --red-accent: #e74c3c;
    --red-dark: #c0392b;
    --red-light: #ff6b6b;

    /* Footer */
    --primary-color: #1e3a5f; /* Azul escuro elegante */
    --secondary-color: #191919;
    --accent-color: #2980b9; /* Variação mais clara de azul */
    --text-light: #f8f9fa;
    --text-dark: #212529;
    --footer-bg: #191919;
    --footer-bg-light: #252525;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    font-family: 'Montserrat', sans-serif;
}

.image-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

body {
  background: #0a1f3c; /* ou outro degradê, cor sólida, imagem etc */
}

/*--------------------------------------------------------------
# Barra de Navegação Principal e Secundária
--------------------------------------------------------------*/

/* Principal Navbar */
.main-navbar {
    background: linear-gradient(90deg, var(--dark-blue), var(--medium-blue), var(--light-blue));
    padding: 8px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: transform 0.4s ease-in-out;
}

.navbar-hidden {
    transform: translateY(-100%);
}

.navbar-brand img {
    height: 50px;
    transition: all 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    color: white !important;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0 10px;
    position: relative;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.nav-link:before {
    content: "";
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -5px;
    left: 0;
    background-color: var(--red-accent);
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-link:hover:before {
    visibility: visible;
    width: 100%;
}

.dropdown-menu {
    background: linear-gradient(135deg, var(--transparent-dark), var(--transparent-medium));
    border: none;
    border-radius: 15px;
    overflow: hidden;
    padding: 15px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.5s;
}

.dropdown-item {
    color: white;
    font-weight: 500;
    padding: 10px 25px;
    position: relative;
    transition: all 0.3s ease;
    transform: translateX(0);
}

.dropdown-item:hover {
    background: rgba(231, 76, 60, 0.2);
    color: white;
    transform: translateX(5px);
}

.dropdown-item i {
    margin-right: 10px;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--red-accent);
}

.dropdown-item:hover i {
    opacity: 1;
}

/* Secondary Navbar (transparent) */
.secondary-navbar {
    background: rgba(10, 31, 60, 0.8);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: -100px;
    z-index: 999;
    transition: top 0.4s ease-in-out;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.secondary-navbar.visible {
    top: 0;
}

.secondary-navbar .navbar-brand img {
    height: 40px;
}

.secondary-navbar .nav-link {
    font-size: 0.85rem;
}

/* Hamburger Menu for Mobile */
.navbar-toggler {
    border: none;
    background: transparent;
    padding: 0;
}

.hamburger {
    width: 30px;
    height: 20px;
    position: relative;
    margin: 0;
    transform: rotate(0deg);
    transition: .5s ease-in-out;
    cursor: pointer;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 9px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger span:nth-child(1) {
    top: 0px;
}

.hamburger span:nth-child(2), .hamburger span:nth-child(3) {
    top: 10px;
}

.hamburger span:nth-child(4) {
    top: 20px;
}

.navbar-toggler[aria-expanded="true"] .hamburger span:nth-child(1) {
    top: 10px;
    width: 0%;
    left: 50%;
}

.navbar-toggler[aria-expanded="true"] .hamburger span:nth-child(2) {
    transform: rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .hamburger span:nth-child(3) {
    transform: rotate(-45deg);
}

.navbar-toggler[aria-expanded="true"] .hamburger span:nth-child(4) {
    top: 10px;
    width: 0%;
    left: 50%;
}

.navbar-brand-text {
    color: white !important;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.navbar-brand-text .text-red {
    color: #e74c3c !important;
    transition: all 0.3s ease;
}

.navbar-brand-text:hover {
    transform: scale(1.05);
}

.navbar-brand-text:hover .text-red {
    color: #ff6b6b !important;
}

/* Para navbar secundária */
.secondary-navbar .navbar-brand-text {
    font-size: 1.3rem;
}

/*--------------------------------------------------------------
# Carousel Principal
--------------------------------------------------------------*/

/* Hero Carousel */
.hero-carousel {
    margin-top: 60px;
    position: relative;
    height: calc(100vh - 60px);
    overflow: hidden;
}

.carousel-item {
    height: 100%;
}

.carousel-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--dark-blue), var(--medium-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    background-size: cover;
    background-position: center;
    height: 100vh;
    position: relative;
    z-index: 1;
}

.carousel-background::before {
    content: '';
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.carousel-content {
    position: relative;
    z-index: 3;
    color: #fff;
    text-align: center;
    padding: 60px 20px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 10;
    padding-left: 10%;
    will-change: opacity, transform;
}

.content-wrapper {
    max-width: 600px;
    opacity: 0;
    transform: translateY(30px) translateZ(0);
    animation: fade-up 1s forwards;
    will-change: opacity, transform;
}

@keyframes fade-up {
    to {
        opacity: 1;
        transform: translateY(0) translateZ(0);
    }
}

.slide-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    position: relative;
    line-height: 1.1;
}

.slide-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, #e74c3c, #ff6b6b);
    margin-top: 10px;
    transform: scaleX(0) translateZ(0);
    transform-origin: left;
    animation: expand 1.2s forwards 0.5s ease;
    will-change: transform;
}

@keyframes expand {
    to {
        transform: scaleX(1) translateZ(0);
    }
}

.slide-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-weight: 300;
    max-width: 90%;
    transform: translateX(-20px) translateZ(0);
    opacity: 0;
    animation: slide-in 0.8s forwards 0.8s;
    will-change: opacity, transform;
}

@keyframes slide-in {
    to {
        transform: translateX(0) translateZ(0);
        opacity: 1;
    }
}

.discover-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    background: rgba(231, 76, 60, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(231, 76, 60, 0.4);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 500;
    transform: translateY(20px) translateZ(0);
    opacity: 0;
    animation: btn-appear 1s forwards 1s;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.2);
    will-change: opacity, transform, box-shadow;
}

@keyframes btn-appear {
    to {
        transform: translateY(0) translateZ(0);
        opacity: 1;
    }
}

.discover-btn:hover {
    background: rgba(231, 76, 60, 0.3);
    transform: translateY(-3px) translateZ(0);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
    color: #fff;
}

.discover-btn i {
    margin-left: 8px;
    transition: transform 0.3s ease;
    will-change: transform;
}

.discover-btn:hover i {
    transform: translateX(5px) translateZ(0);
}

/* Overlay */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

/* Customizações para cada slide */
.carousel-item:nth-child(1) .slide-title::after {
    background: linear-gradient(to right, #e74c3c, #ff6b6b); /* Cozinhas */
}

.carousel-item:nth-child(2) .slide-title::after {
    background: linear-gradient(to right, #3498db, #5dade2); /* Salas */
}

.carousel-item:nth-child(3) .slide-title::after {
    background: linear-gradient(to right, #e74c3c, #c0392b); /* Quartos */
}

.carousel-item:nth-child(4) .slide-title::after {
    background: linear-gradient(to right, #e74c3c, #ff6b6b); /* Banheiros */
}

.carousel-item:nth-child(5) .slide-title::after {
    background: linear-gradient(to right, #3498db, #85c1e9); /* Lavação */
}

.carousel-item:nth-child(6) .slide-title::after {
    background: linear-gradient(to right, #e74c3c, #ff6b6b); /* Diversos */
}

/* Decorative Elements */
.background-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(255,255,255,0.1) 2px, transparent 2px);
    background-size: 30px 30px;
    opacity: 0.5;
}

.circle-decoration {
    position: absolute;
    border-radius: 50%;
    background: rgba(231, 76, 60, 0.1);
    opacity: 0.7;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: 50px;
    left: -50px;
}

.circle-3 {
    width: 150px;
    height: 150px;
    top: 30%;
    left: 10%;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-icon {
    display: inline-block;
    margin-right: 5px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/

/* Footer Styles */
.footer {
    background-color: var(--footer-bg);
    color: var(--text-light);
    padding: 4rem 0 2rem;
    position: relative;
}

.footer-top {
    position: relative;
    z-index: 2;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.footer-logo {
    max-width: 200px;
    margin-bottom: 20px;
}

.footer h5 {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 12px;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--red-accent);
}

.footer-contact-info li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
}

.footer-contact-info i {
    color: var(--accent-color);
    margin-right: 12px;
    font-size: 18px;
    width: 24px;
    text-align: center;
    margin-top: 3px;
}

.footer-links li {
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.footer-links li:hover {
    transform: translateX(5px);
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    padding-left: 15px;
}

.footer-links a::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--red-accent);
    font-size: 20px;
    line-height: 1;
    top: -2px;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--footer-bg-light);
    color: var(--text-light);
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--red-accent);
    color: #fff;
    transform: translateY(-5px);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a {
    color: var(--red-accent);
    text-decoration: none;
}

/* Decorative Elements */
.footer-decoration {
    position: absolute;
    opacity: 0.03;
    z-index: 1;
}

.footer-decoration-1 {
    top: 40px;
    left: 5%;
    font-size: 120px;
    font-family: 'Font Awesome 6 Free';
    content: '\f6e3'; /* Hammer icon */
}

.footer-decoration-2 {
    bottom: 60px;
    right: 5%;
    font-size: 150px;
    font-family: 'Font Awesome 6 Free';
    content: '\f6e3'; /* Hammer icon */
    transform: rotate(45deg);
}

/* Horário de Funcionamento */
.gym-hours {
    background-color: var(--footer-bg-light);
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.gym-hours .day-time {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.gym-hours .day-time:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* CTA Button */
.footer-cta {
    background: linear-gradient(90deg, var(--red-accent), var(--accent-color));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
    margin-top: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-cta:hover {
    background: linear-gradient(90deg, var(--accent-color), var(--red-accent));
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
    color: white;
}

/* Hammer animation */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.dumbell-icon {
    display: inline-block;
    animation: spin 15s linear infinite;
}

/*--------------------------------------------------------------
# Animações Globais e Utilidades
--------------------------------------------------------------*/

/* Animações globais */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-180deg);
    }
    to {
        opacity: 1;
        transform: rotate(0deg);
    }
}

/* Classes de utilidades */
.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

.animate-slide-up {
    animation: slideInUp 0.8s ease-out;
}

.animate-slide-down {
    animation: slideInDown 0.8s ease-out;
}

.animate-slide-left {
    animation: slideInLeft 0.8s ease-out;
}

.animate-slide-right {
    animation: slideInRight 0.8s ease-out;
}

.animate-zoom-in {
    animation: zoomIn 0.8s ease-out;
}

.animate-rotate-in {
    animation: rotateIn 0.8s ease-out;
}

/* Delays para animações */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* Classes para otimização */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

.gpu-acceleration {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--blue-medium), var(--red-accent));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, var(--red-accent), var(--blue-medium));
}

/* Seleção de texto personalizada */
::selection {
    background-color: var(--red-accent);
    color: white;
}

::-moz-selection {
    background-color: var(--red-accent);
    color: white;
}