.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: #F4F3ED;
    color: #2D2D2D;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Newsreader', serif;
}

.hero-gradient {
    background: linear-gradient(135deg, #F4F3ED 0%, #E5D9C4 100%);
}

.placeholder-box {
    background-color: #F4F3ED;
    border: 2px solid #E5D9C4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5E6B6B;
    font-family: 'Manrope', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
}

.image-3d-frame {
    position: relative;
    background: #F4F3ED;
    border: 1px solid rgba(94, 107, 107, 0.1);
}

.image-3d-effect {
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.1), -5px -5px 20px rgba(255, 255, 255, 0.5);
    transition: transform 0.5s ease;
}

.image-3d-effect:hover {
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
}

.tilt-3d {
    transform-style: preserve-3d;
    transition: transform 260ms ease-out, box-shadow 260ms ease-out;
    will-change: transform;
}

.tilt-3d img {
    transition: transform 260ms ease-out;
    transform: translateZ(0);
}

.tilt-3d:hover img {
    transform: scale(1.035);
}

.dotted-pattern {
    background-image: radial-gradient(rgba(45, 45, 45, 0.35) 2px, transparent 2px);
    background-size: 22px 22px;
}

.text-card {
    border-left: 4px solid #5E6B6B;
}


.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #8A9A8B 0%, #5E6B6B 100%);
    border-radius: 2px;
}

.timeline-item {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: auto;
    text-align: right;
    width: calc(50% - 2rem);
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    margin-right: 0;
    width: calc(50% - 2rem);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 0;
    translate: -50% 0;
    width: 20px;
    height: 20px;
    background: #F4F3ED;
    border: 4px solid #8A9A8B;
    border-radius: 50%;
    z-index: 10;
    flex-shrink: 0;
}

.timeline-item:nth-child(even) .timeline-dot {
    border-color: #5E6B6B;
}

.reveal-up {
    opacity: 0;
    transform: translateY(26px);
    filter: blur(2px);
    transition: opacity 700ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 700ms ease;
    will-change: opacity, transform, filter;
}

.reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

@media (max-width: 768px) {
    html,
    body {
        overflow-x: hidden;
    }

    img,
    svg,
    iframe {
        max-width: 100%;
    }

    nav .max-w-7xl {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
        padding-top: 0.85rem;
        padding-bottom: 0.85rem;
    }

    nav .font-\[\'Newsreader\'\].text-2xl {
        font-size: 1.3rem;
        line-height: 1.2;
    }

    #mobile-menu {
        left: 0.75rem;
        right: 0.75rem;
        padding: 0.75rem;
    }

    #mobile-menu a {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .scroll-progress {
        height: 3px;
    }

    .spa-compact main > section {
        scroll-margin-top: 6.5rem;
    }

    .px-8,
    .px-12 {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .py-24,
    .py-32,
    .py-40 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .pt-40,
    .pt-56 {
        padding-top: 6rem;
    }

    .pb-24,
    .pb-32,
    .pb-40 {
        padding-bottom: 4rem;
    }

    .gap-12,
    .gap-16,
    .gap-24 {
        gap: 2rem;
    }

    .text-4xl {
        font-size: 2rem;
        line-height: 1.15;
    }

    .text-5xl {
        font-size: 2.25rem;
        line-height: 1.1;
    }

    .text-6xl {
        font-size: 2.5rem;
        line-height: 1.05;
    }

    .text-7xl {
        font-size: 3rem;
        line-height: 1.05;
    }

    .rounded-3xl {
        border-radius: 1.25rem;
    }

    .p-10,
    .p-12 {
        padding: 1.4rem;
    }

    .text-lg,
    .md\:text-xl {
        font-size: 1.02rem;
        line-height: 1.6;
    }

    summary {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    #avaliacoes {
        overflow: hidden;
    }

    #avaliacoes iframe,
    #avaliacoes [class*="trustindex"],
    #avaliacoes [class*="ti-widget"],
    #avaliacoes [id*="trustindex"] {
        max-width: 100% !important;
        width: 100% !important;
    }

    #contato .flex.flex-row.flex-wrap.sm\:flex-nowrap.gap-3.pt-8 {
        gap: 0.65rem;
    }

    #contato .flex.flex-row.flex-wrap.sm\:flex-nowrap.gap-3.pt-8 > a {
        min-height: 46px;
    }

    footer .gap-4 {
        gap: 0.7rem;
    }

    footer .text-sm {
        font-size: 0.9rem;
    }

    .flex.flex-wrap.gap-4.items-center {
        justify-content: center;
    }

    .flex.flex-col.md\:flex-row.justify-between.items-center.px-12.py-16.gap-8.max-w-7xl.mx-auto {
        text-align: center;
    }

    .max-w-7xl.mx-auto.px-12.pb-8.text-center {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .lg\:grid-cols-2,
    .lg\:grid-cols-12,
    .md\:grid-cols-2,
    .md\:grid-cols-3 {
        grid-template-columns: 1fr;
    }

    .lg\:col-span-5,
    .lg\:col-span-7 {
        grid-column: auto;
    }

    .grid.grid-cols-1.lg\:grid-cols-2.gap-24.items-center,
    .max-w-7xl.mx-auto.grid.grid-cols-1.lg\:grid-cols-12.gap-16.items-center {
        gap: 2.5rem;
    }

    .timeline::before {
        left: 1.5rem;
    }

    .timeline-item {
        flex-direction: column;
        padding-left: 4rem;
    }

    .timeline-item .timeline-content {
        margin: 0 !important;
        width: 100% !important;
        text-align: left !important;
    }

    .timeline-dot {
        left: 1.5rem !important;
    }

}

@media (max-width: 480px) {
    nav .font-\[\'Newsreader\'\].text-2xl {
        font-size: 1.15rem;
    }

    .text-5xl {
        font-size: 2rem;
    }

    .text-4xl {
        font-size: 1.8rem;
    }

    #contato .flex.flex-row.flex-wrap.sm\:flex-nowrap.gap-3.pt-8 {
        flex-direction: column;
    }

    #contato .flex.flex-row.flex-wrap.sm\:flex-nowrap.gap-3.pt-8 > a {
        width: 100%;
        justify-content: center;
    }

    .timeline-item {
        padding-left: 3.1rem;
    }

    .timeline::before,
    .timeline-dot {
        left: 1.1rem !important;
    }
}

@media (max-width: 640px) {
    .spa-compact #inicio {
        padding-top: 6.75rem;
        padding-bottom: 3.2rem;
    }

    .spa-compact #inicio h1 {
        font-size: 2.05rem;
        line-height: 1.12;
        letter-spacing: -0.01em;
    }

    .spa-compact #inicio .text-lg,
    .spa-compact #inicio .md\:text-xl {
        font-size: 0.98rem;
        line-height: 1.58;
    }

    .spa-compact #inicio .pt-6 {
        padding-top: 0.75rem;
    }

    .spa-compact .py-24,
    .spa-compact .py-20,
    .spa-compact .py-16,
    .spa-compact .pt-28,
    .spa-compact .pb-20 {
        padding-top: 3.2rem;
        padding-bottom: 3.2rem;
    }

    .spa-compact .mb-20 {
        margin-bottom: 2.4rem;
    }

    .spa-compact .mb-12 {
        margin-bottom: 1.9rem;
    }

    .spa-compact .space-y-8 > :not([hidden]) ~ :not([hidden]) {
        margin-top: 1.15rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tilt-3d,
    .tilt-3d:hover,
    .tilt-3d img,
    .tilt-3d:hover img,
    .reveal-up,
    .reveal-up.is-visible {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }
}

/* Fallback theme utilities to keep colors stable if Tailwind CDN config is delayed. */
.bg-background { background-color: #F4F3ED; }
.bg-surface { background-color: #F4F3ED; }
.bg-surface-container-lowest { background-color: #ffffff; }
.bg-primary { background-color: #8A9A8B; }
.bg-primary\/10 { background-color: rgba(138, 154, 139, 0.1); }
.bg-primary\/15 { background-color: rgba(138, 154, 139, 0.15); }
.bg-primary\/20 { background-color: rgba(138, 154, 139, 0.2); }
.bg-primary\/25 { background-color: rgba(138, 154, 139, 0.25); }
.bg-primary\/30 { background-color: rgba(138, 154, 139, 0.3); }
.bg-secondary { background-color: #5E6B6B; }
.bg-secondary\/10 { background-color: rgba(94, 107, 107, 0.1); }
.bg-secondary\/15 { background-color: rgba(94, 107, 107, 0.15); }
.bg-sand { background-color: #E5D9C4; }

.text-primary { color: #8A9A8B; }
.text-secondary { color: #5E6B6B; }
.text-tertiary { color: #5E6B6B; }
.text-on-primary { color: #ffffff; }
.text-on-surface { color: #2D2D2D; }

.border-primary { border-color: #8A9A8B; }
.border-primary\/20 { border-color: rgba(138, 154, 139, 0.2); }
.border-secondary\/20 { border-color: rgba(94, 107, 107, 0.2); }
.border-sand\/30 { border-color: rgba(229, 217, 196, 0.3); }
.border-sand\/40 { border-color: rgba(229, 217, 196, 0.4); }

.hover\:bg-primary:hover { background-color: #8A9A8B; }
.hover\:bg-primary\/25:hover { background-color: rgba(138, 154, 139, 0.25); }
.hover\:text-on-primary:hover { color: #ffffff; }

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(94, 107, 107, 0.12);
    z-index: 60;
    pointer-events: none;
}

.scroll-progress span {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #8A9A8B 0%, #5E6B6B 100%);
    transition: width 140ms ease-out;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 50;
    background-color: rgba(244, 243, 237, 0.6);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(94, 107, 107, 0.2);
    box-shadow: 0 2px 8px rgba(45, 45, 45, 0.04);
    transition: all 300ms ease;
}

.site-header.is-scrolled {
    background-color: rgba(244, 243, 237, 0.98);
    border-bottom: 1px solid rgba(94, 107, 107, 0.3);
    box-shadow: 0 8px 24px rgba(45, 45, 45, 0.12);
    backdrop-filter: blur(10px);
}

.scroll-to-top-btn {
    position: fixed;
    right: 0.35rem;
    top: 6.1rem;
    bottom: auto;
    line-height: 1.1;
    border: 1px solid rgba(244, 243, 237, 0.26);
    background: rgba(244, 243, 237, 0.32) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: rgba(45, 45, 45, 0.88) !important;
    box-shadow: 0 10px 28px rgba(45, 45, 45, 0.12);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    padding: 0.85rem 1.3rem !important;
    font-size: 1rem;
    transition: opacity 220ms ease, visibility 220ms ease, border-color 220ms ease, background-color 220ms ease, transform 220ms ease;
    pointer-events: none;
    z-index: 51;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .scroll-to-top-btn {
        right: 0.25rem;
        top: 5.4rem;
        bottom: auto;
        font-size: 0.92rem;
        padding: 0.75rem 1.05rem !important;
        gap: 0.5rem !important;
    }
}

.scroll-to-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.scroll-to-top-btn:hover {
    border-color: rgba(244, 243, 237, 0.38);
    background-color: rgba(244, 243, 237, 0.38) !important;
    transform: translateY(-1px);
}

.scroll-to-top-btn:focus-visible {
    outline: 2px solid rgba(94, 107, 107, 0.45);
    outline-offset: 2px;
}

.spa-compact main > section {
    scroll-margin-top: 7.5rem;
}

[data-spa-nav] a.is-active {
    background-color: #8A9A8B !important;
    color: #ffffff !important;
    text-decoration: none;
    box-shadow: 0 6px 14px rgba(94, 107, 107, 0.22);
}

.disorder-card {
    border-color: rgba(45, 45, 45, 0.28) !important;
    background: linear-gradient(135deg, rgba(45, 45, 45, 0.88) 0%, rgba(60, 74, 74, 0.9) 100%) !important;
}

.disorder-card p {
    color: rgba(244, 243, 237, 0.92) !important;
}

.disorder-card .material-symbols-outlined {
    color: #E5D9C4 !important;
}

.disorder-badge {
    color: #F4F3ED;
    background: rgba(138, 154, 139, 0.36);
    border: 1px solid rgba(244, 243, 237, 0.22);
}

@media (min-width: 769px) {
    .spa-compact .pt-56 {
        padding-top: 12rem;
    }

    .spa-compact .pt-40 {
        padding-top: 9rem;
    }

    .spa-compact .py-40,
    .spa-compact .py-32 {
        padding-top: 5.5rem;
        padding-bottom: 5.5rem;
    }

    .spa-compact .py-28,
    .spa-compact .py-24,
    .spa-compact .py-20,
    .spa-compact .pt-28,
    .spa-compact .pb-32,
    .spa-compact .pb-24,
    .spa-compact .pb-20 {
        padding-top: 4.5rem;
        padding-bottom: 4.5rem;
    }

    .spa-compact .gap-24 {
        gap: 3.5rem;
    }

    .spa-compact .gap-16 {
        gap: 2.5rem;
    }

    .spa-compact .text-7xl {
        font-size: 4rem;
    }

    .spa-compact .text-6xl {
        font-size: 3.35rem;
    }

    .spa-compact .text-5xl {
        font-size: 2.65rem;
    }

    .spa-compact .p-12 {
        padding: 2.25rem;
    }

    .spa-compact .p-10 {
        padding: 2rem;
    }
}
