/* ░░ TRANSLUCE - ESTILOS PRINCIPAIS ░░ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #082545;
    --primary-dark: #051829;
    --accent: #C4A447;
    --light: #F8F9FA;
    --text: #1A1A1A;
    font-family: 'Open Sans', sans-serif;
}

html, body {
    height: 100%;
    overflow-x: hidden;
}

body {
    color: var(--text);
    line-height: 1.6;
    background-color: white;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* ░░ HEADER ░░ */

.site-header {
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 1030;
}

.site-header a {
    color: var(--text);
}

.brand-text {
    line-height: 1.2;
}

.store-logo {
    transition: transform 0.3s ease;
}

.store-logo:hover {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    color: var(--text) !important;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 0.5rem 0;
    width: 420px;
    max-width: calc(100vw - 2rem);
}

.dropdown-item:hover {
    background-color: var(--light);
    color: var(--accent) !important;
}

.menu-service-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.menu-service-thumb {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.menu-service-thumb-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 37, 69, 0.08);
    color: var(--primary);
    font-size: 0.8rem;
}

.menu-service-child {
    padding-left: 3rem;
    opacity: 0.95;
}

.menu-service-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.2;
    white-space: normal;
}

.menu-service-title {
    font-weight: 600;
}

.menu-service-summary {
    color: #6c757d;
    font-size: 0.82rem;
    line-height: 1.35;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 320px;
}

/* Remove o caret padrao do Bootstrap no menu de servicos */
#servicesMenu.dropdown-toggle::after {
    display: none;
}

/* ░░ HERO ░░ */

.hero-welcome {
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-welcome::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 1200 120"><path d="M0,50 Q300,100 600,50 T1200,50 L1200,120 L0,120 Z" fill="rgba(255,255,255,0.05)"/></svg>');
    background-repeat: repeat-x;
    background-size: 600px 120px;
    opacity: 0.3;
}

.hero-welcome .container {
    position: relative;
    z-index: 2;
}

.hero-welcome h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: slideInDown 0.8s ease;
}

.hero-welcome .lead {
    animation: slideInUp 0.8s ease 0.2s both;
}

.hero-welcome p {
    animation: slideInUp 0.8s ease 0.4s both;
}

.hero-welcome .btn {
    animation: slideInUp 0.8s ease 0.6s both;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ░░ CARDS ░░ */

.card {
    transition: all 0.3s ease;
    border: none;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
}

/* ░░ BUTTONS ░░ */

.btn {
    font-weight: 600;
    border-radius: 6px;
    padding: 0.6rem 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: white !important;
}

.btn-primary:hover {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
}

/* ░░ FOOTER ░░ */

.site-footer {
    margin-top: auto;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75);
}

.text-white-75:hover {
    color: var(--accent);
    text-decoration: none;
}

.bg-white-50 {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
}

/* ░░ RESPONSIVE ░░ */

@media (max-width: 768px) {
    .hero-welcome h1 {
        font-size: 2.5rem;
    }

    .hero-welcome .lead {
        font-size: 1.25rem;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* ░░ UTILITIES ░░ */

.section-gap {
    padding: 3rem 0;
}

.opacity-75 {
    opacity: 0.75;
}

main#main-content {
    flex: 1;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
}

.text-primary-color {
    color: var(--primary) !important;
}

.text-accent {
    color: var(--accent) !important;
}

.bg-accent {
    background-color: var(--accent) !important;
}

.bg-primary-dark {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.btn-accent {
    background-color: var(--accent) !important;
    color: var(--primary) !important;
    border: none !important;
}

.btn-accent:hover {
    background-color: #b8943a !important;
    color: var(--primary) !important;
}

.btn-outline-white {
    background-color: transparent !important;
    color: white !important;
    border: 2px solid white !important;
}

.btn-outline-white:hover {
    background-color: white !important;
    color: var(--primary) !important;
}

.flex-1 {
    flex: 1;
}

.h-400 {
    height: 400px;
    min-height: 400px;
    max-height: 400px;
}

.icon-accent {
    color: var(--accent);
}

.card-accent-top {
    border-top: 4px solid var(--accent) !important;
}

.card-gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
    color: white !important;
    border-radius: 12px !important;
}

.bg-section-valores {
    background-color: #8d6f2d;
}

/* ░░ TIMELINE HOME (ESCOPADO) ░░ */

#time_line {
    margin-top: 1.5rem;
}

#time_line > h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary);
}

#time_line .timeline {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    flex-wrap: nowrap;
    gap: 40px;
    max-width: 1600px;
    margin: 0 auto;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 20px 24px;
    scroll-padding-left: 24px;
    transition: padding 0.3s ease;
}

#time_line .timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 150%;
    height: 4px;
    background: linear-gradient(to right, #dee2e6 85%, transparent);
    transform: translateY(-50%);
    z-index: 1;
}

@media (max-width: 1200px) {
    #time_line .timeline::before {
        width: 190%;
    }
}

@media (max-width: 992px) {
    #time_line .timeline::before {
        width: 230%;
    }
}

#time_line .event {
    position: relative;
    z-index: 2;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    text-align: left;
    width: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    animation: timelineFadeInUp 0.6s ease forwards;
    flex: 0 0 auto;
}

#time_line .event:hover {
    background: #fefefe;
    transform: translateY(-6px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

#time_line .event::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -12px;
    width: 16px;
    height: 16px;
    background: radial-gradient(circle, #051829 40%, #0c3355 100%);
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 6px rgba(22, 18, 51, 0.4);
    z-index: 3;
}

#time_line .event h5 {
    font-weight: 700;
    color: #292d31;
    font-size: 1.05rem;
    margin-bottom: 8px;
}

#time_line .event p {
    font-size: 0.85rem;
    color: #6c757d;
    margin: 0;
}

@keyframes timelineFadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.4;
        transform: translateX(0);
    }
    50% {
        opacity: 1;
        transform: translateX(8px);
    }
}

#time_line .timeline::after {
    content: '\2192';
    position: absolute;
    right: 20px;
    bottom: 0px;
    font-size: 40px;
    font-weight: 700;
    color: var(--accent);
    animation: scrollPulse 1.5s ease-in-out infinite;
    z-index: 10;
    text-shadow: 0 0 12px rgba(196, 164, 71, 0.5);
    cursor: pointer;
    transition: transform 0.2s ease;
}

#time_line .timeline::after:hover {
    transform: translateX(4px);
}

#time_line .timeline.scrolled::after {
    display: none;
}

#time_line .timeline::-webkit-scrollbar {
    height: 8px;
}

#time_line .timeline::-webkit-scrollbar-thumb {
    background: #adb5bd;
    border-radius: 4px;
}

#time_line .timeline::-webkit-scrollbar-track {
    background: #f1f3f5;
}

@media (max-width: 768px) {
    #time_line .timeline {
        flex-direction: column;
        align-items: flex-start;
        overflow-x: hidden;
        padding: 0;
    }

    #time_line .timeline::before {
        top: 0;
        left: 20px;
        width: 4px;
        height: 100%;
        transform: none;
        background: #dee2e6;
    }

    #time_line .event {
        width: calc(100% - 40px);
        margin: 20px 0 20px 40px;
    }

    #time_line .event::before {
        left: -30px;
        top: 20px;
        transform: none;
    }
}

html,
body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

main#main-content .container {
    max-width: 100%;
}

main#main-content .full-width {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

/* ░░ AVISO DE COOKIES (LGPD) ░░ */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--primary, #082545);
    color: #fff;
    padding: 1rem 1.5rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,.25);
    transform: translateY(100%);
    transition: transform .4s ease;
}

.cookie-notice.show {
    transform: translateY(0);
}

.cookie-notice .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-notice p {
    margin: 0;
    font-size: .9rem;
    line-height: 1.5;
    flex: 1 1 280px;
}

.cookie-notice .btn-cookie {
    background: var(--accent, #C4A447);
    color: #fff;
    border: none;
    padding: .5rem 1.5rem;
    font-size: .875rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity .2s;
}

.cookie-notice .btn-cookie:hover {
    opacity: .85;
}

.cookie-notice .btn-cookie-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,.4);
    color: #fff;
    padding: .5rem 1.5rem;
    font-size: .875rem;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s;
    margin-right: .5rem;
}

.cookie-notice .btn-cookie-outline:hover {
    background: rgba(255,255,255,.1);
}

@media (max-width: 576px) {
    .cookie-notice .container {
        flex-direction: column;
        text-align: center;
    }
    .cookie-notice .btn-group {
        width: 100%;
        display: flex;
        gap: .5rem;
    }
    .cookie-notice .btn-group button {
        flex: 1;
    }
}

