/* ============================================
   LAYOUT.CSS
   Seções específicas da página
   ============================================ */

/* ============================================
   HEADER COM TRANSIÇÕES SUAVES
   ============================================ */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.03);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.header-scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    transition: padding 0.3s ease;
}

.logo {
    height: 45px;
    display: block;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover {
    transform: scale(1.05);
}

.desktop-nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
}

.desktop-nav a {
    text-decoration: none;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.desktop-nav a:hover {
    color: var(--primary-color);
}

.desktop-nav a:hover::after {
    width: 100%;
}

.desktop-nav a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
    border-radius: 4px;
}


/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    background-image: url('../assets/images/clinica/recepção.png');
    background-size: cover;
    background-position: center;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-overlay {
    background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-content {
    color: var(--white);
    max-width: 750px;
    z-index: 10;
}

.hero-content h1 {
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 25px;
    font-weight: 700;
}

.hero-content h1 span {
    color: var(--primary-color);
    display: block;
    font-size: 3.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 35px;
    opacity: 0.9;
    max-width: 500px;
}


/* ============================================
   BARRA AUTORIDADE - PREMIUM
   ============================================ */
.authority-bar {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%);
    color: var(--white);
    padding: 25px 0;
    position: relative;
    overflow: hidden;
}

/* Linha de destaque com gradiente animado */
.authority-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark), var(--primary-color));
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Brilho sutil no fundo */
.authority-bar::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(59, 188, 179, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.authority-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 50px;
    position: relative;
    z-index: 1;
}

.authority-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    position: relative;
    overflow: hidden;
}

/* Efeito de hover nos itens */
.authority-item:hover {
    background: rgba(59, 188, 179, 0.1);
    border-color: rgba(59, 188, 179, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Glow effect no hover */
.authority-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 188, 179, 0.1), transparent);
    transition: left 0.6s ease;
}

.authority-item:hover::before {
    left: 100%;
}

/* Animação nos ícones */
.authority-icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.authority-item:hover .authority-icon {
    transform: scale(1.15) rotate(5deg);
}

.authority-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary-color);
    stroke-width: 2;
    fill: none;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 8px rgba(59, 188, 179, 0.3));
}

.authority-item:hover .authority-icon svg {
    stroke-width: 2.5;
    filter: drop-shadow(0 0 12px rgba(59, 188, 179, 0.5));
}

/* Texto com transição suave */
.authority-item p {
    transition: color 0.3s ease;
}

.authority-item:hover p {
    color: var(--primary-color);
}


/* ============================================
   SERVIÇOS
   ============================================ */
.services {
    background-color: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.services-cta {
    text-align: center;
    width: 100%;
    margin-top: 20px;
}


/* ============================================
   DEPOIMENTOS - Fundo cinza claro (alternância)
   ============================================ */
.testimonials {
    background-color: var(--bg-light);
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}


/* ============================================
   EQUIPE - Fundo branco (alternância)
   ============================================ */
.team {
    background-color: var(--white);
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(300px, 420px));
    gap: 50px;
    justify-content: center;
}

.team-member {
    background: var(--white);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-image {
    width: 100%;
    aspect-ratio: 4 / 5;
    height: auto;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.member-info {
    padding: 40px;
    text-align: center;
}

.member-info .cro {
    color: var(--primary-color);
    font-weight: 700;
    display: block;
    margin-bottom: 20px;
}


/* ============================================
   CONTATO E MAPA - Fundo branco (alternância)
   ============================================ */
.contact-location {
    background-color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}

.contact-info-box {
    background: var(--white);
    padding: 50px;
    border-radius: 25px;
}

.contact-subtitle {
    color: var(--primary-dark);
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
    margin-bottom: 35px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.info-icon svg {
    width: 26px;
    height: 26px;
    fill: var(--primary-color);
}

.btn-cta-contact {
    width: 100%;
    text-align: center;
    padding: 20px;
    font-weight: 600;
}

.contact-map-box {
    min-height: 450px;
    border-radius: 25px;
    overflow: hidden;
}


/* ============================================
   FOOTER
   ============================================ */
.footer {
    background-color: #1a1a1a;
    color: #f4f4f4;
    padding: 80px 0 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 80px;
    margin-bottom: 20px;
    background: #fff;
    padding: 12px;
    border-radius: 12px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.footer-logo-area p {
    font-size: 0.95rem;
    color: #999;
    max-width: 300px;
}

.footer-nav h4,
.footer-social h4 {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.footer-nav ul {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 12px;
}

.footer-nav a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    display: inline-block;
    position: relative;
    padding-left: 0;
}

.footer-nav a::before {
    content: '→';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--primary-color);
}

.footer-nav a:hover {
    color: var(--primary-color);
    padding-left: 20px;
}

.footer-nav a:hover::before {
    opacity: 1;
    left: 0;
}

.social-links-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 5px 0;
}

.social-link svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link:hover {
    color: var(--primary-color);
    transform: translateX(8px);
}

.social-link:hover svg {
    transform: scale(1.2);
}

.footer-legal {
    background-color: #111;
    padding: 30px 20px 110px;
    border-top: 1px solid #222;
    text-align: center;
}

.footer-legal p {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 5px;
}

.made-by {
    font-weight: 400;
    color: #888 !important;
    font-size: 0.75rem;
    margin-top: 10px;
    display: block;
}

.made-by a {
    color: #555;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.made-by a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.made-by a:hover {
    color: var(--primary-color);
}

.made-by a:hover::after {
    width: 100%;
}
