/********** SAINT RESPONSE - Custom Maritime Styles **********/

/* ==================== TYPOGRAPHY ==================== */
body {
    font-family: 'Poppins', sans-serif;
}

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

/* ==================== TOP BAR ==================== */
.top-bar {
    background: var(--gradient-primary);
    padding: 10px 0;
    font-size: 14px;
    color: #ffffff;
}

.top-bar a {
    color: #ffffff;
    transition: all 0.3s ease;
}

.top-bar a:hover {
    color: var(--accent);
    transform: translateX(3px);
}

.top-bar i {
    margin-right: 8px;
    font-size: 16px;
}

.top-bar .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    margin-left: 8px;
    transition: all 0.3s ease;
}

.top-bar .social-links a:hover {
    background: #ffffff;
    color: var(--primary);
    transform: translateY(-3px);
}

/* ==================== NAVBAR MODERNA ==================== */
.navbar-maritime {
    background: rgba(0, 0, 0, 0.05) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 25px 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
}

.navbar-maritime.scrolled {
    background: #ffffff !important;
    backdrop-filter: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: fixed;
}

.navbar-maritime .navbar-brand img {
    transition: all 0.3s ease;
}

/* Logo branco visível quando navbar transparente */
.navbar-maritime #logo_branco {
    display: inline-block !important;
}

.navbar-maritime #logo_main {
    display: none !important;
}

/* Logo normal visível quando navbar com fundo branco (scrolled) */
.navbar-maritime.scrolled #logo_branco {
    display: none !important;
}

.navbar-maritime.scrolled #logo_main {
    display: inline-block !important;
}

/* Mobile logo */
@media (max-width: 768px) {
    .navbar-maritime #logo_branco,
    .navbar-maritime #logo_main {
        display: none !important;
    }

    .navbar-maritime #logo_mobile {
        display: inline-block !important;
    }
}

.navbar-maritime .nav-link {
    position: relative;
    font-weight: 500;
    padding: 8px 16px !important;
    margin: 0 8px;
    transition: all 0.3s ease;
    color: #ffffff !important;
}

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

.navbar-maritime.scrolled .nav-link.dropdown-toggle {
    color: var(--dark) !important;
}

/* Navbar toggler (menu mobile) */
.navbar-maritime .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

.navbar-maritime.scrolled .navbar-toggler {
    border-color: var(--primary);
    color: var(--primary);
}

.navbar-maritime .navbar-toggler .fa-bars {
    color: #ffffff;
}

.navbar-maritime.scrolled .navbar-toggler .fa-bars {
    color: var(--primary);
}

.navbar-maritime .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--accent);
    transition: all 0.4s ease;
    transform: translateX(-50%);
    border-radius: 10px 10px 0 0;
}

.navbar-maritime .nav-link:hover::after,
.navbar-maritime .nav-link.active::after {
    width: 80%;
}

.btn-cta-gradient {
    background: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.btn-cta-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
    background: var(--primary);
    color: #ffffff;
}

/* ==================== HERO/SLIDER MODERNO ==================== */
.hero-modern .carousel-item {
    position: relative;
}

.hero-modern .carousel-caption {
    background: var(--gradient-hero);
}

.hero-modern .hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-modern h1, .hero-modern h3 {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-modern .btn-primary-gradient {
    background: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 15px 40px;
    font-weight: 600;
    color: var(--primary);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.hero-modern .btn-primary-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255, 255, 255, 0.5);
    background: var(--primary);
    color: #ffffff;
}

.hero-modern .btn-outline-modern {
    border: 2px solid #ffffff;
    border-radius: 50px;
    padding: 15px 40px;
    font-weight: 600;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.hero-modern .btn-outline-modern:hover {
    background: #ffffff;
    color: var(--primary);
}

/* Indicadores Modernos */
.hero-modern .carousel-indicators {
    bottom: 30px;
}

.hero-modern .carousel-indicators button {
    width: 40px;
    height: 4px;
    border-radius: 10px;
    border: none;
    margin: 0 5px;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.hero-modern .carousel-indicators button.active {
    width: 60px;
    background: #ffffff;
}

/* ==================== CONTADORES 3D ==================== */
.counter-card-3d {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(0, 119, 190, 0.15);
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.counter-card-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.counter-card-3d:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 60px rgba(0, 119, 190, 0.25);
    border-color: var(--primary);
}

.counter-card-3d .icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 20px rgba(0, 119, 190, 0.3);
    transition: all 0.3s ease;
}

.counter-card-3d:hover .icon-wrapper {
    transform: rotate(10deg) scale(1.1);
}

.counter-card-3d .icon-wrapper i {
    font-size: 36px;
    color: #ffffff;
}

.counter-card-3d h2 {
    font-size: 48px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 15px 0;
}

.counter-card-3d h5 {
    color: var(--dark);
    font-weight: 600;
    font-size: 18px;
}

/* ==================== CARDS DE SERVIÇOS MODERNOS ==================== */
.service-card-modern {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 30px;
    height: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card-modern:hover::before {
    transform: scaleX(1);
}

.service-card-modern:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 60px rgba(0, 119, 190, 0.2);
    border-color: var(--primary);
}

.service-card-modern .service-icon-modern {
    width: 90px;
    height: 90px;
    border-radius: 20px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 8px 25px rgba(0, 119, 190, 0.3);
    transition: all 0.3s ease;
}

.service-card-modern:hover .service-icon-modern {
    transform: rotateY(180deg);
}

.service-card-modern .service-icon-modern img {
    width: 50px;
    height: 50px;
    filter: brightness(0) invert(1);
}

.service-card-modern h4 {
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 15px;
}

.service-card-modern p {
    color: #6c757d;
    line-height: 1.8;
}

.service-card-modern .btn-service {
    background: var(--gradient-primary);
    border: none;
    border-radius: 50px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto 0;
    box-shadow: 0 4px 15px rgba(0, 119, 190, 0.3);
    transition: all 0.3s ease;
}

.service-card-modern:hover .btn-service {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 119, 190, 0.4);
}

/* ==================== FOOTER MODERNO ==================== */
.footer-maritime {
    background: linear-gradient(135deg, var(--dark) 0%, #034078 100%);
    color: #ffffff;
}

.footer-maritime h3, .footer-maritime h5 {
    color: #ffffff;
}

.footer-maritime a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

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

.footer-maritime .footer-link-icon {
    margin-right: 10px;
    color: var(--tertiary);
}

.footer-newsletter input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px 0 0 50px;
    padding: 12px 20px;
    color: #ffffff;
}

.footer-newsletter input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.footer-newsletter button {
    background: var(--gradient-secondary);
    border: none;
    border-radius: 0 50px 50px 0;
    padding: 12px 25px;
}

.footer-bottom {
    background: var(--gradient-primary);
    padding: 20px 0;
}

/* ==================== BADGES ==================== */
.badge-iso {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.3);
    margin: 0 10px;
}

.badge-iso i {
    margin-right: 8px;
    font-size: 20px;
}

/* ==================== WAVE DIVIDERS ==================== */
.wave-divider {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

/* ==================== ANIMAÇÕES ==================== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 119, 190, 0.5); }
    50% { box-shadow: 0 0 40px rgba(0, 180, 216, 0.8); }
}

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* ==================== UTILITÁRIOS ==================== */
.text-gradient-primary {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-secondary {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-secondary {
    background: var(--gradient-secondary);
}

.rounded-modern {
    border-radius: 20px;
}

.shadow-modern {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.shadow-modern-lg {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* ==================== RESPONSIVIDADE ==================== */
@media (max-width: 768px) {
    .top-bar {
        font-size: 12px;
    }

    .counter-card-3d {
        margin-bottom: 30px;
    }

    .service-card-modern {
        margin-bottom: 30px;
    }

    .hero-modern .btn-primary-gradient,
    .hero-modern .btn-outline-modern {
        padding: 12px 25px;
        font-size: 14px;
    }
}
