/* Estilos compartilhados para o site ITO Psiquiatria */

/* Seção Hero */
.hero-section {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://itopsiquiatria.com/wp-content/uploads/2024/11/consultorio-Itopsiquiatria3.jpeg');
    background-size: cover;
    background-position: center;
    height: 500px;
    width: 100%;
    position: relative;
}

.nav-blur {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

/* Dropdown menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.95);
    min-width: 250px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    left: 0;
    top: 100%;
    padding: 10px 0;
    border-radius: 4px;
    margin-top: 0.5rem;
    transition: opacity 0.3s, visibility 0.3s;
    pointer-events: none;
}

.dropdown:hover .dropdown-content {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

/* Delay closing of dropdown when mouse leaves */
.dropdown-content:hover,
.dropdown:hover .dropdown-content {
    transition-delay: 0s;
}

/* Offcanvas Menu Styles */
.offcanvas-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background-color: #1a1a1a;
    transition: all 0.3s ease-in-out;
    z-index: 1000;
    overflow-y: auto;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
}

.offcanvas-menu.active {
    left: 0;
}

.offcanvas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #333;
}

.offcanvas-close {
    background: none;
    border: none;
    color: #aaa;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.offcanvas-close:hover {
    color: white;
}

.offcanvas-body {
    padding: 1rem 0;
}

.offcanvas-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.offcanvas-nav li {
    position: relative;
}

.offcanvas-nav a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: white;
    text-decoration: none;
    transition: background-color 0.2s;
    font-size: 16px;
}

.offcanvas-nav a:hover {
    background-color: #333;
}

.offcanvas-nav .dropdown-toggle {
    position: relative;
    padding-right: 2.5rem;
}

.offcanvas-nav .dropdown-toggle::after {
    content: "\f107";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.offcanvas-nav .dropdown-menu {
    display: none;
    background-color: #222;
    padding-left: 1rem;
}

.offcanvas-nav .dropdown-menu.active {
    display: block;
}

.offcanvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.offcanvas-overlay.active {
    display: block;
}

/* Botão de toggle para o menu */
.menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 100;
    display: none;
}

@media (max-width: 767px) {
    .menu-toggle {
        display: block;
    }
    
    .hidden-mobile {
        display: none;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Elementos de formulário personalizados */
.custom-radio {
    display: flex;
    cursor: pointer;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    margin-bottom: 0.75em;
}

.custom-radio input {
    position: absolute;
    left: -9999px;
}

.custom-radio input:checked + span {
    background-color: #d6e4ff;
    border-color: #3b82f6;
}

.custom-radio input:checked + span:before {
    box-shadow: inset 0 0 0 0.4375em #3b82f6;
}

.custom-radio span {
    display: flex;
    align-items: center;
    padding: 0.75em 1em;
    border-radius: 99em;
    transition: 0.25s ease;
    border: 2px solid #d3d3d3;
    width: 100%;
}

.custom-radio span:hover {
    background-color: #f2f8ff;
}

.custom-radio span:before {
    display: flex;
    flex-shrink: 0;
    content: "";
    background-color: #fff;
    width: 1.5em;
    height: 1.5em;
    border-radius: 50%;
    margin-right: 0.75em;
    transition: 0.25s ease;
    box-shadow: inset 0 0 0 0.125em #3b82f6;
}

/* Dropdown arrow */
.dropdown-arrow {
    display: inline-block;
    margin-left: 4px;
    transition: transform 0.2s;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}