/* ============================================
   RESET E CONFIGURAÇÕES GLOBAIS
   (Bootstrap já faz a maior parte do reset)
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bs-primary: #1f5c45;
    --bs-primary-rgb: 31, 92, 69;
    --bs-secondary: #2f7a5a;
    --bs-secondary-rgb: 47, 122, 90;
    --color-ink: #1a2e26;
    --color-muted: #5a6b63;
    --color-paper: #f5f7f6;
    --color-line: rgba(31, 92, 69, 0.16);
    --font-sans: 'Source Sans 3', 'Segoe UI', sans-serif;
    --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    --bs-body-font-family: var(--font-sans);
    --bs-body-color: var(--color-ink);
    --header-offset: 108px;
}

body {
    font-family: var(--font-sans);
    line-height: 1.65;
    color: var(--bs-body-color);
    scroll-padding-top: var(--header-offset);
    background: #fff;
}

.container {
    max-width: 1140px;
}

section {
    padding: 88px 20px;
}

h1, h2, h3, h4, .section-title, .section-heading-left, .news-main-title, .news-item-title, .news-modal-title, .display-4 {
    font-family: var(--font-serif);
    letter-spacing: -0.01em;
}

.section-title {
    text-align: center;
    font-size: clamp(1.85rem, 2.5vw, 2.35rem);
    font-weight: 600;
    color: var(--bs-primary);
    margin-bottom: 0.75rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 56px;
    height: 3px;
    margin: 0.85rem auto 0;
    background: var(--bs-primary);
}

.section-subtitle {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 3.25rem;
    color: var(--color-muted);
    font-size: 1.05rem;
}

.section-eyebrow {
    margin: 0 0 0.5rem;
    color: var(--bs-secondary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-heading-left {
    font-size: clamp(1.85rem, 2.5vw, 2.25rem);
    font-weight: 600;
    color: var(--bs-primary);
    margin-bottom: 1.25rem;
}

.institution-place {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-line);
    color: var(--color-ink);
}

.btn {
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.btn-lg {
    padding: 0.7rem 1.35rem;
}

.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #164836;
    border-color: #164836;
}

.btn-outline-primary {
    color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.btn-outline-primary:hover {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

/* ============================================
   HEADER INSTITUCIONAL
   ============================================ */
.site-header {
    z-index: 1030;
}

.topbar {
    background: #14382c;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.8rem;
    padding: 0.4rem 0;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.topbar a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
}

.topbar a:hover {
    color: #fff;
    text-decoration: underline;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    white-space: nowrap;
}

.topbar-sep {
    opacity: 0.45;
}

.navbar {
    transition: background-color 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    max-width: 70%;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border: 2px solid currentColor;
    font-family: var(--font-serif);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
}

.logo-name {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 700;
}

.logo-sub {
    font-size: 0.72rem;
    font-weight: 500;
    opacity: 0.85;
    letter-spacing: 0.02em;
}

.navbar .nav-link {
    font-size: 0.92rem;
    font-weight: 600;
    padding: 0.45rem 0.7rem !important;
}

.btn-agendar {
    padding: 0.55rem 1.1rem;
    font-weight: 600;
    border-radius: 4px;
    border: 1.5px solid transparent;
}

/* Header sobre o hero (transparente) */
.navbar:not(.scrolled) {
    background: rgba(15, 40, 32, 0.28) !important;
    backdrop-filter: blur(6px);
}

.navbar:not(.scrolled) .logo { color: #fff; }
.navbar:not(.scrolled) .nav-link { color: rgba(255, 255, 255, 0.92); }
.navbar:not(.scrolled) .nav-link:hover { color: #fff; }
.navbar:not(.scrolled) .btn-agendar {
    border-color: #fff;
    color: #fff !important;
    background: transparent;
}
.navbar:not(.scrolled) .btn-agendar:hover {
    background: #fff !important;
    color: var(--bs-primary) !important;
}
.navbar:not(.scrolled) .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Header após scroll */
.navbar.scrolled {
    background: #fff !important;
    box-shadow: 0 1px 0 var(--color-line), 0 8px 24px rgba(20, 56, 44, 0.06);
}

.navbar.scrolled .logo { color: var(--bs-primary); }
.navbar.scrolled .nav-link { color: var(--color-ink); }
.navbar.scrolled .nav-link:hover { color: var(--bs-primary); }
.navbar.scrolled .btn-agendar {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff !important;
}
.navbar.scrolled .btn-agendar:hover {
    background-color: #164836;
    border-color: #164836;
}

@media (max-width: 991px) {
    :root { --header-offset: 72px; }

    .topbar {
        display: none;
    }

    .logo-sub {
        display: none;
    }

    .navbar:not(.scrolled) {
        background: rgba(15, 40, 32, 0.92) !important;
    }

    .navbar .navbar-collapse {
        background: #fff;
        margin-top: 0.75rem;
        padding: 0.75rem 1rem 1rem;
        border: 1px solid var(--color-line);
    }

    .navbar:not(.scrolled) .navbar-collapse .nav-link,
    .navbar.scrolled .navbar-collapse .nav-link {
        color: var(--color-ink);
    }

    .navbar:not(.scrolled) .navbar-collapse .btn-agendar {
        border-color: var(--bs-primary);
        color: var(--bs-primary) !important;
        margin-top: 0.5rem;
    }
}

/* ============================================
   HERO
   ============================================ */
.hero {
    padding: 0;
    height: 100vh;
    color: #fff;
}

.carousel, .carousel-inner, .carousel-item {
    height: 100%;
}

.carousel-item {
    background-size: cover;
    background-position: center;
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(105deg, rgba(12, 32, 26, 0.78) 0%, rgba(12, 32, 26, 0.45) 55%, rgba(12, 32, 26, 0.35) 100%);
}

.carousel-caption {
    position: static;
    max-width: 760px;
    margin: 0 auto;
    text-align: left;
    padding: 0 1.25rem;
}

.carousel-caption h1, .carousel-caption .lead {
    text-shadow: none;
}

.hero-brand {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.85rem;
}

.carousel-caption .display-4 {
    font-size: clamp(2rem, 4.2vw, 3.2rem);
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.carousel-caption .lead {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    max-width: 34rem;
    opacity: 0.95;
}

/* Animação do texto do slide */
.carousel-item .carousel-caption > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1), transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.carousel-item.active .carousel-caption > * {
    opacity: 1;
    transform: translateY(0);
}

/* Atraso para criar efeito escalonado (stagger) */
.carousel-item.active .carousel-caption h1 { transition-delay: 0.4s; }
.carousel-item.active .carousel-caption .lead { transition-delay: 0.6s; }
.carousel-item.active .carousel-caption .hero-buttons { transition-delay: 0.8s; }

.hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

/* Faixa institucional */
.institutional-band {
    background: #14382c;
    color: #fff;
    padding: 2.25rem 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.institutional-band-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.band-label {
    margin: 0 0 0.45rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
}

.band-text {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.95);
}

@media (max-width: 991px) {
    .carousel-caption {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .carousel-caption .lead {
        margin-inline: auto;
    }

    .institutional-band-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* ============================================
   BOTÕES
   ============================================ */
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ============================================
   SOBRE
   ============================================ */
.sobre-text {
    flex: 1;
    min-width: 300px;
}

.galeria-main-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: none;
    border: 1px solid var(--color-line);
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.galeria-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.galeria-thumbnails .thumbnail {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 3px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s, transform 0.3s;
    border: 2px solid transparent;
}

.galeria-thumbnails .thumbnail:hover {
    opacity: 1;
    transform: scale(1.05);
}

.galeria-thumbnails .thumbnail.active {
    opacity: 1;
    border-color: var(--bs-primary);
}

/* ============================================
   SERVIÇOS (CARDS)
   ============================================ */
.service-card {
    cursor: pointer;
}

.card {
    border: none;
    border-radius: 15px !important;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--bs-primary);
}

.card-title {
    color: var(--bs-primary);
    font-size: 1.25rem;
}

/* ============================================
   SERVIÇOS (CÍRCULO ROTATIVO)
   ============================================ */
.servicos-circle-bg {
    background-color: #f8f9fa;
    overflow: hidden;
}

.services-circle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    min-height: 550px;
    position: relative;
}

.service-wheel-wrapper {
    position: relative;
    width: 500px;
    height: 500px;
    flex-shrink: 0;
}

.service-wheel {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
    /* A animação de rotação será controlada por JS */
}

.service-wheel::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 40px rgba(0,0,0,0.07);
}

.service-circle-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90px;
    height: 90px;
    margin: -45px; /* Metade da largura/altura para centralizar a origem da transformação */
    border-radius: 50%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.4s ease, background-color 0.4s ease;
    z-index: 10;
}

.service-circle-item .service-icon {
    font-size: 2.8rem;
    transition: transform 0.4s ease;
}

.service-circle-item.active {
    background-color: var(--bs-primary);
    color: #fff;
    transform: scale(1.15) !important; /* !important para sobrepor o transform de posicionamento */
    z-index: 20;
}

.service-details-content {
    max-width: 400px;
    text-align: left;
    position: relative;
    z-index: 5;
}

.service-details-content h3,
.service-details-content p {
    transition: opacity 0.5s ease-in-out;
}

.service-details-content.fade-out h3,
.service-details-content.fade-out p {
    opacity: 0;
}

/* ============================================
   HANSENÍASE (EDUCAÇÃO)
   ============================================ */
.hanseniase-section {
    background: #fff;
    border-top: 1px solid var(--color-line);
    border-bottom: 1px solid var(--color-line);
}

.hanseniase-heading {
    color: var(--bs-primary);
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hanseniase-list {
    padding-left: 1.1rem;
    margin: 0;
    color: #555;
}

.hanseniase-list li {
    margin-bottom: 0.55rem;
}

.hanseniase-accordion .accordion-item {
    border: none;
    border-bottom: 1px solid rgba(45, 106, 79, 0.15);
    background: transparent;
}

.hanseniase-accordion .accordion-button {
    background: transparent;
    color: #1b4332;
    font-weight: 600;
    box-shadow: none;
    padding-left: 0;
    padding-right: 0;
}

.hanseniase-accordion .accordion-button:not(.collapsed) {
    background: transparent;
    color: var(--bs-primary);
    box-shadow: none;
}

.hanseniase-accordion .accordion-button::after {
    margin-right: 0;
}

.hanseniase-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.hanseniase-accordion .accordion-body {
    padding-left: 0;
    padding-right: 0;
    color: #555;
}

.hanseniase-cta {
    max-width: 640px;
    margin-inline: auto;
    color: #555;
}

.btn-whatsapp-outline {
    border: 2px solid #25d366;
    color: #128c7e;
    font-weight: 600;
    background: transparent;
}

.btn-whatsapp-outline:hover {
    background: #25d366;
    border-color: #25d366;
    color: #fff;
}

/* ============================================
   AÇÕES FLUTUANTES (WhatsApp + topo)
   ============================================ */
.float-actions {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 98;
    width: 56px;
    height: 124px;
    pointer-events: none;
}

.whatsapp-float {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    text-decoration: none;
    pointer-events: auto;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
    transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float svg {
    display: block;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.whatsapp-float:hover {
    background: #1ebe57;
    color: #fff;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.5);
}

.whatsapp-float:focus-visible {
    outline: 3px solid rgba(45, 106, 79, 0.45);
    outline-offset: 3px;
}

.btn-whatsapp-solid {
    background: #25d366;
    border-color: #25d366;
    color: #fff;
    font-weight: 600;
}

.btn-whatsapp-solid:hover {
    background: #1ebe57;
    border-color: #1ebe57;
    color: #fff;
}

/* ============================================
   DEPOIMENTOS
   ============================================ */
.depoimentos {
    background: #eef4f1;
}

.depoimento-card {
    box-shadow: none !important;
    border: 1px solid var(--color-line) !important;
    border-radius: 4px !important;
}

.stars {
    display: none;
}

.paciente {
    font-weight: 600;
    color: var(--bs-primary);
    font-style: normal;
    margin-bottom: 0;
}

/* ============================================
   NOTÍCIAS
   ============================================ */
#noticias {
    background: var(--color-paper);
}

.news-tag {
    color: #fff;
    background: var(--bs-primary);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.7rem;
    padding: 0.28rem 0.55rem;
    border-radius: 2px;
}

.news-main {
    background: #fff;
    border: 1px solid rgba(45, 106, 79, 0.14);
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.news-main:hover,
.news-item:hover {
    border-color: rgba(45, 106, 79, 0.4);
    box-shadow: 0 10px 28px rgba(27, 67, 50, 0.08);
}

.news-main-image {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 320px;
    overflow: hidden;
    background: #e8eee9;
}

.news-main-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.news-main:hover .news-main-image img,
.news-item:hover .news-item-image img {
    transform: scale(1.03);
}

.news-main-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    min-height: 320px;
    padding: 2.25rem;
    background: #fff;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
    margin-bottom: 0.85rem;
}

.news-meta time {
    color: #777;
    font-size: 0.85rem;
}

.news-main-title {
    margin: 0 0 0.85rem;
    color: #1b4332;
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    font-weight: 700;
    line-height: 1.3;
}

.news-main-text {
    margin: 0 0 1.25rem;
    color: #555;
    font-size: 1rem;
    line-height: 1.65;
}

.btn-leia-mais {
    margin-top: auto;
    align-self: flex-start;
    border: none;
    background: transparent;
    color: var(--bs-primary);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
}

.btn-leia-mais::after {
    content: '→';
    transition: transform 0.2s ease;
}

.btn-leia-mais:hover {
    color: #1b4332;
}

.btn-leia-mais:hover::after {
    transform: translateX(4px);
}

.news-secondary {
    margin-top: 0.25rem;
}

.news-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(45, 106, 79, 0.14);
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.news-item-image {
    width: 100%;
    height: 210px;
    overflow: hidden;
    background: #e8eee9;
    flex-shrink: 0;
}

.news-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.news-item-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.5rem;
}

.news-item-title {
    margin: 0 0 0.65rem;
    color: #1b4332;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
}

.news-item-text {
    margin: 0 0 1rem;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.55;
    flex: 1;
}

@media (max-width: 991px) {
    .news-main-image {
        min-height: 230px;
        height: 230px;
    }

    .news-main-content {
        min-height: 0;
        padding: 1.5rem;
    }
}

@media (max-width: 767px) {
    .news-item-image {
        height: 180px;
    }
}

/* ============================================
   CONTATO / FORMULÁRIO
   ============================================ */
#contato {
    background-color: #f8f9fa;
}

.contato-info h3 {
    color: var(--bs-primary);
    margin-bottom: 20px;
}

.contato-info .info-item {
    margin-bottom: 15px;
    color: #555;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: 1rem;
}

.contato-info .info-item a,
.contato-info p a {
    color: #555;
    text-decoration: none;
}

.contato-info .info-item a:hover {
    color: var(--bs-primary);
}

.contato-nota {
    font-size: 0.85rem;
    color: #888;
}

.form-label {
    font-weight: 600;
    color: #444;
}

.form-control:focus, .form-select:focus {
    box-shadow: none;
    border-color: var(--bs-primary);
}

/* ============================================
   MODAL
   ============================================ */
.modal-header {
    border-bottom: 1px solid #dee2e6;
}

.modal-title {
    color: var(--bs-primary);
    display: flex;
    align-items: center;
}

.modal-icon {
    font-size: 1.8rem;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: #102820;
    padding: 3.5rem 20px 1.75rem;
}

.footer-brand-block {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.footer-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    font-family: var(--font-serif);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.footer-brand {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
}

.footer-heading {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0 0 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-text {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
}

.footer-text a,
.footer-links a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
}

.footer-text a:hover,
.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.45rem;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 2.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-copy {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.85rem;
}

/* ============================================
   ANIMAÇÕES (ON SCROLL)
   ============================================ */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transition-delay: var(--stagger-delay, 0s);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   BOTÃO "VOLTAR AO TOPO"
   ============================================ */
#backToTopBtn {
    position: absolute;
    right: 4px;
    bottom: 68px;
    border: none;
    background-color: var(--bs-primary);
    color: white;
    cursor: pointer;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 22px;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background-color 0.25s;
}

#backToTopBtn.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

#backToTopBtn:hover {
    background-color: #1b4332;
}

/* ============================================
   PRELOADER
   ============================================ */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--bs-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   RESPONSIVO
   ============================================ */
@media (max-width: 768px) {
    section {
        padding: 50px 20px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        margin-bottom: 40px;
    }

    .hero {
        height: 70vh;
    }

    .galeria-thumbnails {
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    }

    .services-circle-container {
        flex-direction: column;
        gap: 3rem;
    }
    .service-details-content {
        text-align: center;
        max-width: 500px;
        order: 1; /* Show text first */
    }
    .service-wheel-wrapper {
        order: 2;
    }
}

@media (max-width: 576px) {
    .service-wheel-wrapper {
        width: 320px;
        height: 320px;
    }
    .service-circle-item {
        width: 65px;
        height: 65px;
        margin: -32.5px;
    }
}

@media (max-width: 480px) {
    .hero-buttons .btn {
        width: 100%;
    }

    .footer-trust {
        gap: 25px;
    }

    .float-actions {
        right: 16px;
        bottom: 16px;
        width: 52px;
        height: 116px;
    }

    #backToTopBtn {
        width: 44px;
        height: 44px;
        font-size: 20px;
        right: 4px;
        bottom: 64px;
    }

    .whatsapp-float {
        width: 52px;
        height: 52px;
    }

    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
}

/* ============================================
   MODAL MODERNO DE NOTÍCIAS
   ============================================ */
.news-modal .modal-dialog {
    max-width: 1080px;
    margin: 1.25rem auto;
}

.news-modal-content {
    position: relative;
    border: none;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.news-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.news-modal-close:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.05);
}

.news-modal-layout {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    min-height: 520px;
}

.news-modal-media {
    background: #111;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.news-modal-stage {
    position: relative;
    flex: 1;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(160deg, #1a1a1a, #0d0d0d);
}

.news-modal-stage img {
    width: 100%;
    height: 100%;
    max-height: 460px;
    object-fit: cover;
    transition: opacity 0.25s ease;
}

.news-media-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: background-color 0.2s ease;
}

.news-media-nav:hover {
    background: rgba(45, 106, 79, 0.85);
}

.news-media-prev { left: 12px; }
.news-media-next { right: 12px; }

.news-media-counter {
    position: absolute;
    left: 14px;
    bottom: 14px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 999px;
}

.news-modal-thumbs {
    display: flex;
    gap: 8px;
    padding: 12px;
    overflow-x: auto;
    background: #161616;
}

.news-modal-thumb {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.55;
    border: 2px solid transparent;
    flex-shrink: 0;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

.news-modal-thumb:hover,
.news-modal-thumb.active {
    opacity: 1;
    border-color: #25d366;
}

.news-modal-panel {
    padding: 2.25rem 2rem 1.75rem;
    display: flex;
    flex-direction: column;
}

.news-modal-date {
    margin: 0 0 0.6rem;
    color: var(--bs-primary);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.news-modal-title {
    margin: 0 0 1rem;
    color: #1b4332;
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    font-weight: 700;
    line-height: 1.25;
}

.news-modal-text {
    color: #555;
    line-height: 1.7;
    flex: 1;
    overflow-y: auto;
    max-height: 280px;
    padding-right: 4px;
}

.news-modal-text p {
    margin-bottom: 0.9rem;
}

.news-modal-text p:last-child {
    margin-bottom: 0;
}

.news-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.5rem;
}

.news-modal-pager {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #e8eee9;
}

.news-pager-btn {
    border: none;
    background: transparent;
    color: var(--bs-primary);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0;
    cursor: pointer;
}

.news-pager-btn:hover {
    color: #1b4332;
    text-decoration: underline;
}

.news-pager-btn:disabled {
    opacity: 0.35;
    cursor: default;
    text-decoration: none;
}

@media (max-width: 991px) {
    .news-modal-layout {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .news-modal-stage {
        min-height: 240px;
    }

    .news-modal-stage img {
        max-height: 280px;
    }

    .news-modal-panel {
        padding: 1.5rem 1.25rem 1.25rem;
    }

    .news-modal-text {
        max-height: none;
    }
}
