/* Layout, header, footer e nav, compartilhados entre páginas */

/**
 * Purpose   : Layout styles for navbar, footer, and structural components
 * Consumed by: All pages
 * Layer     : Presentation — Layout Components
 */

/* UTILITY BAR */
.utility-bar {
    background: var(--teal-dark);
    padding: 8px 0;
}

.utility-bar .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 24px;
}

.utility-bar a {
    color: rgb(255 255 255 / 85%);
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.utility-bar a:hover {
    color: #fff;
}

.utility-bar .divider {
    color: rgb(255 255 255 / 30%);
    font-size: 12px;
}

/* NAVBAR */
header {
    position: relative;
    z-index: 200;
}


.navbar {
    background: var(--teal);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgb(0 0 0 / 15%);
}

.navbar .container {
    display: flex;
    align-items: center;
    height: 60px;
    gap: 40px;
}

.navbar-logo {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.navbar-logo .logo-img {
    max-height: 40px;
    width: auto;
}

.navbar-logo span {
    color: rgb(255 255 255 / 60%);
    font-weight: 600;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    list-style: none;
}

.nav-links li a {
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.nav-links li a:hover {
    background: rgb(255 255 255 / 15%);
    color: #fff;
}

/* NAV TOGGLE (hambúrguer), visível só em telas pequenas, ver @media abaixo */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: var(--radius);
    flex-shrink: 0;
    margin-left: auto;
}

.nav-toggle:hover {
    background: rgb(255 255 255 / 15%);
}

.nav-toggle-icon {
    position: relative;
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: background 0.2s;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.2s, top 0.2s;
}

.nav-toggle-icon::before {
    top: -7px;
}

.nav-toggle-icon::after {
    top: 7px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
    top: 0;
    transform: rotate(-45deg);
}

/* FOOTER */
.footer {
    background: var(--white);
    padding: 20px 0;
    margin-top: auto;
}

.footer .container {
    padding: 0 24px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-legal {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-legal a {
    font-size: 12px;
    color: var(--gray-600);
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: var(--gray-900);
}

.footer-copy {
    font-size: 12px;
    color: var(--gray-600);
}

/* SHARED COMPONENTS - BUTTONS */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--teal);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    font-family: Barlow, sans-serif;
    padding: 13px 28px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
    letter-spacing: 0.3px;
    align-self: flex-start;
}


.btn-primary:hover {
    background: var(--teal-dark);
}

.btn-primary.full-width {
    width: 100%;
    align-self: unset;
}

/* SHARED COMPONENTS - SECTION INNER */

/* Fonte única de verdade para largura e respiro lateral do conteúdo interno */

/* de qualquer section, usada por TODAS as páginas (Home, About, Fleet, Contact, Legal). */

/* Usa padding-inline (não padding) de propósito, assim uma classe específica pode */

/* somar padding-block (vertical) sem sobrescrever o padding horizontal por engano. */
.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding-inline: 24px;
}


/* RESPONSIVE */
@media (width <= 768px) {
    .nav-toggle {
        display: flex;
    }

    .navbar .container {
        gap: 16px;
        position: relative;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--teal);
        box-shadow: 0 8px 16px rgb(0 0 0 / 15%);
        padding: 8px 0;
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links li a {
        padding: 12px 24px;
        border-radius: 0;
    }

    .utility-bar .container {
        flex-direction: column;
        gap: 8px;
    }
}

/* Cookie consent banner, componente global exibido em todas as páginas */

.cookie-consent-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    max-width: 720px;
    margin: 0 auto;
    background: var(--white);
    color: var(--gray-800);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 24px;
    z-index: 1000;
}

.cookie-consent-title {
    font-size: 18px;
    margin-bottom: 8px;
}

.cookie-consent-description {
    font-size: 14px;
    margin-bottom: 16px;
}

.cookie-consent-description a {
    color: var(--teal-dark);
    text-decoration: underline;
}

.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cookie-consent-btn {
    border: none;
    border-radius: var(--radius);
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
}

.cookie-consent-btn-accept {
    background: var(--teal);
    color: var(--white);
}

.cookie-consent-btn-accept:hover {
    background: var(--teal-dark);
}

.cookie-consent-btn-reject,
.cookie-consent-btn-manage {
    background: var(--gray-100);
    color: var(--gray-800);
}

.cookie-consent-btn-reject:hover,
.cookie-consent-btn-manage:hover {
    background: var(--gray-200);
}

.cookie-consent-btn:focus-visible {
    outline: 2px solid var(--teal-dark);
    outline-offset: 2px;
}

.cookie-consent-details {
    margin-top: 16px;
    font-size: 13px;
    color: var(--gray-600);
}

@media (width <= 768px) {
    .cookie-consent-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 16px;
    }

    .cookie-consent-actions {
        flex-direction: column;
    }

    .cookie-consent-btn {
        width: 100%;
    }
}