/* ==========================================
   CUSTOM CSS - TAILWIND VERSION
   Estilos que não podem ser feitos apenas com Tailwind
   ========================================== */
body{
	font-family: 'BR Segma', sans-serif;                                              
}
/* ==========================================
   1. BODY LOCK (quando menu mobile está aberto)
   ========================================== */
body.lock {
    overflow: hidden;
}

/* ==========================================
   2. PAINT PHRASE ANIMATION
   ========================================== */
.paint-phrase {
    position: relative;
    display: inline;
    z-index: 0;
    padding: 0 0.15em;
}

.paint-char {
    background-color: transparent;
    position: relative;
    z-index: 1;
    transition: background-color 0.15s ease;
}

.paint-char:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.paint-char:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.paint-char.visible {
    background-color: rgba(0, 51, 180, 1);
    color: #fff;
}

/* ==========================================
   3. REVEAL ANIMATIONS
   ========================================== */
.reveal {
    opacity: 0;
    transition: all 0.8s ease;
}

.reveal[data-direction="top"] {
    transform: translateY(-40px);
}

.reveal[data-direction="bottom"] {
    transform: translateY(40px);
}

.reveal[data-direction="left"] {
    transform: translateX(-40px);
}

.reveal[data-direction="right"] {
    transform: translateX(40px);
}

.reveal.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* ==========================================
   4. HEADER SCROLL EFFECT
   ========================================== */
#header.scrolled {
    top: 0;
}

#header-container.scrolled {
    padding: 1.5rem 2.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

@media (min-width: 1024px) {
    #header-container.scrolled {
        border-radius: 12px;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }
}

/* ==========================================
   5. MOBILE MENU ANIMATION
   ========================================== */
#menu-wrap.show {
    left: 0;
}

#menu-button.active div:nth-child(1) {
    transform: rotate(-45deg) translate(-4px, 4px);
}

#menu-button.active div:nth-child(2) {
    opacity: 0;
}

#menu-button.active div:nth-child(3) {
    transform: rotate(45deg) translate(-7px, -7px);
}

/* ==========================================
   6. SWIPER CUSTOMIZATION
   ========================================== */
.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Navegação customizada */
.swiper-button-next,
.swiper-button-prev {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background-color: #0033B4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    display: none;
}

.swiper-button-next svg path,
.swiper-button-prev svg path {
    stroke: #fff;
}

.swiper-button-disabled {
    background-color: rgba(0, 51, 180, 0.1);
    cursor: not-allowed;
}

/* Paginação */
.swiper-pagination-bullet {
    width: 15px;
    height: 15px;
    background-color: transparent;
    border: 2px solid #0033B4;
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background-color: #0033B4;
}

/* ==========================================
   7. ACCORDION
   ========================================== */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-content.open {
    max-height: 500px;
}

/* ==========================================
   8. TABS
   ========================================== */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   9. MODAL
   ========================================== */
.modal {
    display: none;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ==========================================
   10. LOADING SPINNER
   ========================================== */
.loader {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(0, 51, 180, 0.1);
    border-top: 4px solid #0033B4;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================
   11. FORM ERROR STATE
   ========================================== */
.form-control.error {
    border-color: #dc3545;
}

/* ==========================================
   12. TOOLTIP
   ========================================== */
.tooltip .tooltip-text {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* ==========================================
   13. SCROLLBAR (Desktop)
   ========================================== */
@media only screen and (min-width: 1025px) {
    ::-webkit-scrollbar {
        width: 7.5px;
    }

    ::-webkit-scrollbar-track {
        background: #fff;
    }

    ::-webkit-scrollbar-thumb {
        background: #0033B4;
        border-radius: 1rem;
    }
}

/* ==========================================
   14. KEYBOARD NAVIGATION FOCUS
   ========================================== */
body.keyboard-navigation *:focus {
    outline: 2px solid #0033B4;
    outline-offset: 2px;
}

/* ==========================================
   15. SMOOTH TRANSITIONS
   ========================================== */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================
   16. PRINT STYLES
   ========================================== */
@media print {
    header,
    footer,
    .whatsapp-icon-desktop,
    #menu-button,
    .swiper-button-next,
    .swiper-button-prev {
        display: none !important;
    }
}

/* ==========================================
   17. HOVER EFFECTS (Desktop only)
   ========================================== */
@media (hover: hover) {
    .hover-scale {
        transition: transform 0.3s ease;
    }
    
    .hover-scale:hover {
        transform: scale(1.05);
    }
}

/* ==========================================
   18. GRADIENT TEXT
   ========================================== */
.gradient-text {
    background: linear-gradient(135deg, #0033B4 0%, #67B0C4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================
   19. CARD HOVER EFFECTS
   ========================================== */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ==========================================
   20. IMAGE OVERLAY
   ========================================== */
.image-overlay {
    position: relative;
    overflow: hidden;
}

.image-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-overlay:hover::after {
    opacity: 1;
}

/* ==========================================
   21. TEXT TRUNCATE LINES
   ========================================== */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================
   22. SKELETON LOADING
   ========================================== */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ==========================================
   23. GLASS MORPHISM
   ========================================== */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ==========================================
   24. PULSE ANIMATION
   ========================================== */
.pulse-primary {
    animation: pulse-primary 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-primary {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ==========================================
   25. STAGGER ANIMATION
   ========================================== */
.stagger-item {
    opacity: 0;
    transform: translateY(20px);
    animation: staggerIn 0.5s ease forwards;
}

.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes staggerIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
