/* Custom CSS for Cartório Álvaro Mello */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* CSS Variables for Colors */
:root {
    --primary-color: #084d6e; /* Azul Petróleo */
    --azul-peroleo: #003952; /* Azul */
    --secondary-color: #F0F0F0; /* Cinza Claro */
    --light-gray: #F8F9FA;
    --dark-gray: #333333;
    --white: #FFFFFF;
    --success-color: #28A745;
    --cinza: #98979c;
    --glass-bg: rgba(255, 255, 255, 0.1);
}

/* Global Styles */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
}
.glass-bg img{
     background-color: transparent !important;
     width: auto; height: 40px;
     margin-top: -10px;
     margin-left: 0px;
    
}

/* Bootstrap Color Overrides */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #0A3A47;
    border-color: #0A3A47;
}



/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--white) 100%);
    padding-top: 80px; /* Account for fixed navbar */
    min-height: -80vh;
    display: flex;
    align-items: center;

}


.hero-logo i {
    opacity: 0.1;
    font-size: 8rem;
}



/* Sections */
section {
    scroll-margin-top: 80px; /* Account for fixed navbar */
}



.bg-light {
    background-color: var(--secondary-color) !important;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding-top: 100px;
    }
    
    .hero-section .display-4 {
        font-size: 2.5rem;
    }
    
    .hero-logo i {
        font-size: 4rem;
    }
}




/* Utilities */
.text-success {
    color: var(--success-color) !important;
}

/* Animation for scroll reveal */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Link Styles */
a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    color: #0A3A47;
    text-decoration: underline;
}

/* Button Styles */
.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.125rem;
}

/* Card Title Styles */
.card-title {
    color: var(--primary-color);
    font-weight: 500;
}

/* Display Utilities */
.display-1 {
    font-weight: 300;
}

.display-4 {
    font-weight: 700;
}

/* Navbar Adjustments */
.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}


.navbar-toggler:focus {
    box-shadow: none;
    
}


/* Offcanvas Customization */
.offcanvas {
    background-color: var(--white);
}

.scrolled .offcanvas {
    background-color: var(--primary-color);
}


.offcanvas .nav-link {
    color: var(--white) !important;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin-bottom: 0.25rem;
    transition: background-color 0.3s ease;
 }

.offcanvas .nav-link:hover,
.offcanvas .nav-link.active {
   background-color: rgba(255, 255, 255, 0.1);
}

.offcanvas-title {
    color: var(--white);
}
/* Offcanvas Customization */


/* Navbar padrão (não scrolled) */
.navbar {
  background-color: var(--white) !important;
  transition: background-color 0.3s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0.1);
}

/* Links padrão */
.navbar:not(.scrolled) .nav-link,
.navbar:not(.scrolled) .navbar-brand {
  color: var(--primary-color) !important;
  transition: color 0.3s ease;

}

/* Links padrão not scrolled*/
.navbar:not(.scrolled) .nav-link:hover {
  color: var(--white) !important;
  transition: color 0.3s ease;
 background-color: var(--primary-color) !important;

}

/* Dropdown padrão */
.navbar:not(.scrolled) .dropdown-menu {
  background-color: var(--white) !important;
  color: var(--primary-color);
  border: 1px solid rgba(0, 0, 0, 0.1);
  margin-top: 35px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

/* Dropdown scrolled */
.navbar.scrolled .dropdown-menu {
  background-color: var(--primary-color) !important;
  margin-top: 35px;
}

/* Links do dropdown padrão  not scrolled*/
.navbar:not(.scrolled) .dropdown-menu a {
  color: var(--primary-color) !important;

}

/* Links do dropdown padrão not scrolled*/
.navbar:not(.scrolled) .dropdown-menu a:hover {
  color: var(--white) !important;
background-color: var(--primary-color) !important;

}


/* Navbar scrolled */
.navbar.scrolled {
  background-color: var(--primary-color) !important;
  color: white;
}

/* Links e marca scrolled */
.navbar.scrolled a,
.navbar.scrolled .nav-link,
.navbar.scrolled .navbar-brand {
  color: white !important;
}


/* Logo imagem */
.logo-img {
  width: 60px;
}

/* Textos da logo */
.logo-name {
  font-size: 14px;
  color: var(--primary-color);
  transition: color 0.3s ease;
  margin-top: 1px;
}

.logo-subtitle {
  font-size: 14px;
  color: var(--gray); /* cinza quando NÃO scrolled */
  transition: color 0.3s ease;
  margin-top: 0.10px
}

/* Textos da logo quando scrolled */
.navbar.scrolled .logo-name {
  color: white !important;
}

.navbar.scrolled .logo-subtitle {
  color: white !important;
}


/* Custom spacing */
.py-5 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

.navbar-brand {
    font-weight: 500;
    font-size: 1.5rem;
}

.navbar-brand .logo-top{
  width: 60px;          /* Tamanho do círculo (ajuste conforme necessário) */
  height: 36px;         /* Altura igual à largura para formar um círculo */
  border: 0px solid rgba(255, 255, 255, 0.1); /* Borda branca com opacidade 0.2 */
  border-radius: 10%;    /* Transforma em círculo */
  background: transparent; /* Fundo transparente (opcional) */
  padding: 0px;
  margin: 0px;
}

span .logo-texto{
    color: var(--cinza);
    font-size: 14px;
    margin-left: 0px;
    margin-top: -20px;
}
span .logo-name{
    color: var(--primary-color);
    letter-spacing:0px; /* Ajuste o valor conforme necessário */
    font-size: 12px; /* Tamanho da fonte */
    font-family: 'SovietStyle-Regular', sans-serif; 
}




/* Hero Carousel Styles */
.carousel-bg video {
    object-fit: cover;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

.hero-carousel {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.carousel-bg {
    position: absolute;
    top: 5;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg, 
        rgba(15, 76, 92, 0.8) 0%, 
        rgba(15, 76, 92, 0.6) 50%, 
        rgba(15, 76, 92, 0.4) 100%
    );
    z-index: 1;
}

.carousel-item {
    height: 100vh;
    position: relative;

}

.carousel-item .container {
    position: relative;
    z-index: 2;
    height: 100%;
    text-shadow: 0 0 2px;

}


.carousel-item .row {
    height: 100%;

}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-size: 100%, 100%;
    border-radius: 50%;
    background-color: rgba(15, 76, 92, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Carousel Indicators */
.carousel-indicators {
    bottom: 2rem;
    z-index: 3;
}

.carousel-indicators [data-bs-target] {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    background-color: var(--primary-color);
    border-color: var(--white);
    transform: scale(1.2);
}

.carousel-indicators button:hover {
    background: rgba(0, 255, 255, 0.25) !important;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.carousel-indicators button:hover::before {
    border-color: rgba(0, 255, 255, 0.5);
}

.carousel-indicators button:hover::after {
    opacity: 1;
    animation: border-glow 2s linear infinite;
}

.carousel-item {
    opacity: 0;
    transform: rotateY(90deg) scale(0.8);
    transform-origin: center;
    transition: all 1s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.carousel-item.active {
    opacity: 1;
    transform: rotateY(0deg) scale(1);
}

/* Carousel Text Animations */
.carousel-item h1,
.carousel-item h2,
.carousel-item p,
.carousel-item .btn {
    animation: slideInFromLeft 1s ease-out;
}

.carousel-item h2 {
    animation-delay: 0.2s;
}

.carousel-item p {
    animation-delay: 0.4s;
}

.carousel-item .btn {
    animation-delay: 0.6s;
}

@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-carousel {
        height: 70vh;
    }
    
    .carousel-item {
        height: 70vh;
    }
    
    .carousel-bg {
        background-attachment: scroll;
    }
    
    .carousel-item h1 {
        font-size: 2.5rem;
    }
    
    .carousel-item h2 {
        font-size: 1.5rem;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 2rem;
        height: 2rem;
    }
    
    .carousel-indicators [data-bs-target] {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 576px) {
    .hero-carousel {
        height: 60vh;
    }
    
    .carousel-item {
        height: 60vh;
    }
    
    .carousel-item h1 {
        font-size: 2rem;
    }
    
    .carousel-item .lead {
        font-size: 1rem;
    }
    
    .carousel-indicators {
        bottom: 1rem;
    }
}
/* Hero Carousel Styles */


.circunscricao .map-container {
            position: relative;
            overflow: hidden;
            height: 500px;
        }
        .map-container iframe {
            position: absolute;
            top: -60px; /* Ajuste para cortar o cabeçalho */
            left: 0;
            width: 100%;
            height: calc(100% + 100px); /* Compensa o crop */
            border: none;
        }
        .map-cover {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 20px;
            background: white;
            z-index: 100;
}

/* Toast Largura personalizada */
#liveToast {
width: 800px;  /* Largura personalizada */
}

/* Estilo para o toast */
.msg {
width: 300px; /* Largura fixa */
}

/* Cores personalizadas */
#btn-add .toast-header.bg-success {
background-color: #28a745 !important;
}
#btn-delete .toast-header.bg-danger {
background-color: #dc3545 !important;
}          


.w-5{
    width: 45px;
  height: 45px;         /* Altura igual à largura para formar um círculo */
  border: 5px solid rgba(255, 255, 255, 0.1); /* Borda branca com opacidade 0.2 */
  border-radius: 10%;    /* Transforma em círculo */
  background: transparent; /* Fundo transparente (opcional) */
  padding: 2px;
  margin: 2px;
  border-color: var(--primary-color);

}



/* Efeito hover para o botão do carousel */
.btn-overlay {
    position: relative;
    transition: all 0.3s ease;
    overflow: visible; /* Permite que o pseudo-elemento seja visível */
    z-index: 1;
}

.btn-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid transparent;
    border-radius: inherit;
    z-index: -1;
    transition: all 0.3s ease;
    opacity: 2;
}

.btn-overlay:hover::before {
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-color: var(--light-gray);
    opacity: 0.3;
    background-color: var(--light-gray);opacity: 0.3;
}

/* Melhoria para dispositivos com hover */
@media (hover: hover) {
    .btn-overlay:hover {
        transform: translateY(-2px);
    }
}

.scroll-to-top {
position: fixed;
bottom: 20px;
right: 20px;
background: var(--secondary-color);
color: white;
border: none;
border-radius: 50%;
width: 50px;
height: 50px;
display: none;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.3s ease;
z-index: 1000;
}

.scroll-to-top:hover {
background: var(--primary-color);
transform: translateY(-2px);
}

@media (max-width: 768px) {
.hero-section {
    padding: 2rem 0;
}

.hero-section h1 {
    font-size: 1.8rem;
}
}


.contact-card {
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
color: white;
border-radius: 12px;
padding: 2rem;
margin-right:1px;

}

.card.contato:hover {
  background-color: var(--secondary-color) !important;
  border: 1px solid var(--primary-color) !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  
}

.contact-card .btn {
background: rgba(255, 255, 255, 0.2);
border: 1px solid rgba(255, 255, 255, 0.3);
color: white;
transition: all 0.3s ease;
}

.contact-card .btn:hover {
background: rgba(255, 255, 255, 0.3);
border-color: rgba(255, 255, 255, 0.5);
color: white;
}


/* pagina aviso de privacidade*/
.hero-section {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            color: white;
            padding: 4rem 0;
            position: relative;
            overflow: hidden;
        }

        .hero-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
            opacity: 0.3;
        }

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

        .section-title {
            color: var(--primary-color);
            font-weight: 700;
            margin-bottom: 1.5rem;
            position: relative;
            padding-bottom: 0.5rem;
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 60px;
            height: 3px;
            background: var(--primary-color);
            border-radius: 2px;
        }

        .card-custom {
            border: none;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            transition: all 0.3s ease;
            border-radius: 12px;
        }

        .card-custom:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        }


        .icon-box {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, var(--primary-color), var(--primary-color));
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.5rem;
            margin-bottom: 1rem;
        }


        .data-category {
            background: var(--bg-light);
            border-left: 4px solid var(--primary-color);
            padding: 1.5rem;
            margin-bottom: 1rem;
            border-radius: 0 8px 8px 0;
        }

        .data-category h5 {
            color: var(--primary-color);
            font-weight: 600;
            margin-bottom: 1rem;
        }

        .data-list {
            list-style: none;
            padding: 0;
        }

        .data-list li {
            padding: 0.5rem 0;
            border-bottom: 1px solid #e5e7eb;
            position: relative;
            padding-left: 1.5rem;
        }

        .data-list li:last-child {
            border-bottom: none;
        }

        .data-list li::before {
            content: '•';
            color: var(--primary-color);
            font-weight: bold;
            position: absolute;
            left: 0;
        }

        .contact-card {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
            border-radius: 12px;
            padding: 2rem;
        }

        .contact-card .btn {
            background: rgba(255, 255, 255, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.3);
            color: white;
            transition: all 0.3s ease;
        }

        .contact-card .btn:hover {
            background: rgba(255, 255, 255, 0.3);
            border-color: rgba(255, 255, 255, 0.5);
            color: white;
        }

        
        .scroll-to-top {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background: var(--secondary-color);
            color: white;
            border: none;
            border-radius: 50%;
            width: 50px;
            height: 50px;
            display: none;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            z-index: 1000;
        }

        .scroll-to-top:hover {
            background: var(--primary-color);
            transform: translateY(-2px);
        }

        @media (max-width: 768px) {
            .hero-section {
                padding: 2rem 0;
            }
            
            .hero-section h1 {
                font-size: 1.8rem;
            }
        }



/*--BTN GLASS*/
        
.glass-btn {
    position: relative;
    color: white !important;
    background: rgba(0, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    text-decoration: none;
    transition: all 0.4s ease;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.glass-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid transparent;
    border-radius: 8px;
    background: linear-gradient(90deg, 
              rgba(0, 255, 255, 0.3) 0%, 
              rgba(0, 255, 255, 0) 50%, 
              rgba(0, 255, 255, 0.3) 100%);
    z-index: -1;
    transition: all 0.4s ease;
}

.glass-btn::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: linear-gradient(90deg, 
              rgba(0, 255, 255, 0.8) 0%, 
              rgba(0, 255, 255, 0.2) 50%, 
              rgba(0, 255, 255, 0.8) 100%);
    z-index: -2;
    opacity: 0;
    transition: all 0.4s ease;
}

.glass-btn:hover {
    background: rgba(0, 255, 255, 0.25) !important;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.glass-btn:hover::before {
    border-color: rgba(0, 255, 255, 0.5);
}

.glass-btn:hover::after {
    opacity: 1;
    animation: border-glow 2s linear infinite;
}

@keyframes border-glow {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

/* Ajuste para ícone */
.glass-btn i {
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.glass-btn:hover i {
    transform: scale(1.1);
}

.modal-header {
    padding-top: 3rem;  /* Espaço extra no topo para a logo */
    padding-bottom: 1rem;
}

.logo-modal_acesso {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    object-fit: cover;
    margin-top: -80px;  /* Puxa a logo para cima, sobrepondo a borda */
    background: transparent; /* Fundo transparente (opcional) */
    z-index: 1;  /* Garante que fique acima do título */
}

.modal-title {
    margin-top: 1.5rem;  /* Espaço abaixo da logo */
}



.logo-modal_acesso {
    position: relative;
    color: white !important;
     background: transparent; /* Fundo transparente (opcional) */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    border-radius: 8px;
    padding: 2px 2px;
    text-decoration: none;
    transition: all 0.4s ease;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.logo-modal_acesso::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid transparent;
    border-radius: 8px;
     background: transparent; /* Fundo transparente (opcional) */
    z-index: -1;
    transition: all 0.4s ease;
}

.logo-modal_acesso::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: linear-gradient(90deg, 
              rgba(0, 255, 255, 0.8) 0%, 
              rgba(0, 255, 255, 0.2) 50%, 
              rgba(0, 255, 255, 0.8) 100%);
    z-index: -2;
    opacity: 0;
    transition: all 0.4s ease;
}

.logo-modal_acesso:hover {
    background: rgba(0, 255, 255, 0.25) !important;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.logo-modal_acesso:hover::before {
    border-color: rgba(0, 255, 255, 0.5);
}

.logo-modal_acesso:hover::after {
    opacity: 1;
    animation: border-glow 2s linear infinite;
}

.logo-modal_acesso img{
    width: 40px;
    height: 40px;
}