/* =========================================================
   VARIÁVEIS
   ========================================================= */

:root {
    --green-600: #16a34a;
    --green-700: #15803d;
    --teal-700: #0f766e;
    --green-50: #f0fdf4;
    --green-100: #dcfce7;
    --blue-600: #2563eb;

    --gray-800: #1f2937;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-100: #f3f4f6;

    --white: #ffffff;
}


/* =========================================================
     RESET
     ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 375px;
    font-family: 'Outfit', sans-serif;
    background: var(--green-50);
    color: var(--gray-800);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
}

h1,
h2,
h3 {
    font-family: 'Nunito', sans-serif;
}


/* =========================================================
     ESTRUTURA
     ========================================================= */

.screen {
    min-height: 100vh;
}

.wrap {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}


/* =========================================================
     TOPBAR
     ========================================================= */

.topbar {
    background: var(--white);
    border-bottom: 1px solid #eee;
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.topbar .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: none;
    width: 100%;
    padding-left: 32px;
    padding-right: 32px;
}


/* Logo */

.logo {
    flex-shrink: 0;
    cursor: pointer;
}

.logo a {
    display: block;
}

.logo img {
    display: block;
    width: 150px;
    height: auto;
}


/* Menu */

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 22px;
    flex: 1;
    min-width: 0;
    font-size: 14px;
    color: var(--gray-500);
}

.nav-links a {
    color: inherit;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--green-700);
}


/* Ações */

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    flex-shrink: 0;
}

.navbar-greeting {
    color: var(--gray-700, #495057);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.topbar-actions .login {
    color: var(--gray-500);
    font-size: 14px;
}

.topbar-actions .login:hover {
    color: var(--green-700);
}

.hamburger-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    flex-shrink: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: var(--gray-800);
    cursor: pointer;
}

.hamburger-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.navbar-profile {
    position: relative;
}

.navbar-profile-trigger {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.navbar-avatar {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 50%;
    background: #e9f7ef;
    color: var(--green-700, #157347);
    font-size: 12px;
    font-weight: 700;
}

.navbar-profile-chevron {
    color: var(--gray-500, #64748b);
    font-size: 16px;
    transition: transform .15s ease;
}

.navbar-profile.open .navbar-profile-chevron {
    transform: rotate(180deg);
}

.navbar-profile-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 1000;
    display: none;
    width: 180px;
    padding: 6px;
    flex-direction: column;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .12);
}

.navbar-profile.open .navbar-profile-menu {
    display: flex;
}

.navbar-profile-menu a {
    display: block;
    padding: 10px 11px;
    border-radius: 7px;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.navbar-profile-menu a:hover {
    background: #e9f7ef;
    color: var(--green-700, #157347);
}

.navbar-profile-menu a.logout {
    color: #dc3545;
}

.navbar-profile-menu a.logout:hover {
    background: #fff3f3;
    color: #dc3545;
}


/* =========================================================
     BOTÕES
     ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 14px;

    padding: 10px 18px;

    font-family: inherit;
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background-color 0.2s,
        transform 0.2s,
        border-color 0.2s;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--green-600);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--green-700);
}

.btn-outline {
    background: var(--white);
    border: 1.5px solid var(--green-600);
    color: var(--green-700);
}

.btn-outline:hover {
    background: var(--green-100);
}


/* =========================================================
     HERO
     ========================================================= */

.hero {
    background: linear-gradient(135deg,
            var(--green-600),
            var(--green-700) 60%,
            var(--teal-700));

    color: var(--white);

    padding: 70px 0;
}

.hero .wrap {
    max-width: 700px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.25);

    border-radius: 999px;

    padding: 6px 14px;

    font-size: 13px;

    margin-bottom: 18px;
}

.hero h1 {
    font-size: 38px;
    line-height: 1.15;

    margin: 0 0 26px;

    font-weight: 900;
}

.hero h1 span {
    color: #bbf7d0;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: var(--white);
    color: var(--green-700);
}

.btn-hero-primary:hover {
    background: #f0fdf4;
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}


/* =========================================================
     SEÇÕES
     ========================================================= */

section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 28px;
    margin: 0;
}


/* =========================================================
     CARDS
     ========================================================= */

.grid-cards {
    display: grid;

    grid-template-columns: 1fr;

    gap: 20px;
}

.card {
    background: var(--white);

    border: 1px solid #eee;
    border-radius: 16px;

    overflow: hidden;

    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);

    cursor: pointer;

    transition: transform 0.15s;
}

.card:hover {
    transform: translateY(-3px);
}

.card-img {
    width: 100%;
    height: 180px;

    background-size: cover;
    background-position: center;
}

.card-body {
    padding: 16px;
}

.card-title {
    font-weight: 800;
    font-size: 15px;
}


/* =========================================================
     EVENTOS
     ========================================================= */

.event-type {
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 4px;
}

.event-orange {
    color: #f39c12;
}

.event-blue {
    color: var(--blue-600);
}

.event-red {
    color: #e74c3c;
}

.event-info {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 4px;
}

.events-action {
    text-align: center;
    margin-top: 40px;
}


/* =========================================================
     RODAPÉ
     ========================================================= */

footer {
    background: #111827;
    color: var(--gray-400);

    padding: 30px 20px;

    text-align: center;

    font-size: 13px;

    margin-top: 20px;
}

footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

footer .footer-links a {
    color: inherit;
}

footer .footer-links a:hover {
    color: #ffffff;
}


/* =========================================================
     AVISO DE COOKIES E PRIVACIDADE
     ========================================================= */

.cookie-consent-banner {
    position: fixed;
    right: 8px;
    bottom: 8px;
    left: 8px;
    z-index: 1100;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    max-width: 960px;
    margin: 0 auto;
    padding: 18px 20px;
    border: 1px solid #dce0e4;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .16);
    font-family: 'Outfit', sans-serif;
}

.cookie-consent-banner[hidden],
.cookie-policy-overlay[hidden] {
    display: none;
}

.cookie-consent-icon {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    border-radius: 50%;
    background: var(--green-100);
    font-size: 21px;
}

.cookie-consent-content {
    flex: 1;
    min-width: 0;
}

.cookie-consent-content h2,
.cookie-policy-header h2 {
    margin: 0;
    color: #3f3f46;
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    line-height: 1.35;
}

.cookie-consent-content p {
    margin: 5px 0 3px;
    color: #737373;
    font-size: 14px;
    line-height: 1.4;
}

.cookie-policy-link {
    color: var(--green-700);
    font-size: 14px;
    font-weight: 700;
    text-decoration: underline;
}

.cookie-consent-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
    align-items: center;
}

.cookie-button {
    min-height: 30px;
    padding: 6px 16px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .04em;
    cursor: pointer;
}

.cookie-button-outline {
    border: 1px solid var(--green-600);
    background: #ffffff;
    color: var(--green-700);
}

.cookie-button-primary {
    border: 1px solid var(--green-600);
    background: var(--green-600);
    color: #ffffff;
}

.cookie-button:hover,
.cookie-button:focus-visible,
.cookie-policy-close:hover,
.cookie-policy-close:focus-visible {
    filter: brightness(.93);
}

.cookie-button:focus-visible,
.cookie-policy-link:focus-visible,
.cookie-policy-close:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 3px;
}

.cookie-policy-overlay {
    position: fixed;
    z-index: 1200;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(15, 23, 42, .48);
}

.cookie-policy-modal {
    width: min(640px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    border: 1px solid #e5e0e3;
    border-radius: 22px;
    background: #fffafd;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .28);
    font-family: 'Outfit', sans-serif;
}

.cookie-policy-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px 14px;
    border-bottom: 1px solid #d8e7dc;
}

.cookie-policy-header h2 {
    font-size: 19px;
}

.cookie-policy-header h2 span {
    display: inline-grid;
    width: 29px;
    height: 29px;
    place-items: center;
    margin-right: 8px;
    border: 2px solid var(--green-600);
    border-radius: 9px;
    color: var(--green-700);
    font-size: 20px;
    vertical-align: middle;
}

.cookie-policy-close {
    padding: 0 4px;
    border: 0;
    background: transparent;
    color: var(--green-700);
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.cookie-policy-body {
    padding: 17px 24px 20px;
    color: #737373;
    font-size: 14px;
    line-height: 1.48;
}

.cookie-policy-body > p {
    margin: 0 0 18px;
    color: #3f3f46;
}

.cookie-policy-body section + section {
    margin-top: 17px;
}

.cookie-policy-body section {
    padding: 0;
}

.cookie-policy-body h3 {
    margin: 0 0 5px;
    color: var(--green-700);
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
}

.cookie-policy-body section p {
    margin: 0;
}

.cookie-policy-body a {
    color: var(--green-700);
    font-weight: 700;
    text-decoration: underline;
}

.cookie-policy-footer {
    display: flex;
    justify-content: flex-end;
    margin: 0 24px;
    padding: 13px 0 20px;
    border-top: 1px solid #d8e7dc;
    background: transparent;
}


/* =========================================================
     RENOVAÇÃO DE ACEITES
     ========================================================= */

.aceites-pendentes {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
}

.aceites-pendentes-card {
    width: min(560px, 100%);
    padding: 32px;
    border: 1px solid #d8e7dc;
    border-radius: 16px;
    background: var(--white);
    box-shadow: 0 12px 32px rgba(15, 23, 42, .12);
}

.aceites-pendentes-eyebrow {
    margin: 0 0 8px;
    color: var(--green-700);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.aceites-pendentes-card h1 {
    margin: 0 0 12px;
    font-size: 28px;
}

.aceites-pendentes-card > p {
    margin: 0;
    color: var(--gray-500);
    line-height: 1.5;
}

.aceites-pendentes-card form {
    margin-top: 24px;
}

.aceites-pendentes-opcao {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.aceites-pendentes-opcao input {
    width: 17px;
    height: 17px;
    margin-top: 3px;
    accent-color: var(--green-600);
}

.aceites-pendentes-opcao a,
.aceites-pendentes-sair {
    color: var(--green-700);
    font-weight: 700;
    text-decoration: underline;
}

.aceites-pendentes-sair {
    display: inline-block;
    margin-top: 20px;
    font-size: 14px;
}

@media (max-width: 700px) {
    .cookie-consent-banner {
        flex-wrap: wrap;
        border-radius: 18px;
        padding: 16px;
    }

    .cookie-consent-actions {
        width: 100%;
        justify-content: flex-end;
        padding-left: 58px;
    }
}

@media (max-width: 480px) {
    .cookie-consent-banner {
        right: 0;
        bottom: 0;
        left: 0;
        border-radius: 18px 18px 0 0;
    }

    .cookie-consent-icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        font-size: 18px;
    }

    .cookie-consent-content h2 {
        font-size: 15px;
    }

    .cookie-consent-content p,
    .cookie-policy-link {
        font-size: 13px;
    }

    .cookie-consent-actions {
        justify-content: stretch;
        padding-left: 0;
    }

    .cookie-button {
        flex: 1;
        padding: 8px 10px;
        font-size: 12px;
    }

    .cookie-policy-overlay {
        padding: 10px;
    }

    .cookie-policy-header,
    .cookie-policy-body {
        padding-right: 18px;
        padding-left: 18px;
    }

    .cookie-policy-footer {
        margin: 0 18px;
    }
}


/* =========================================================
     SM
     375px +
     ========================================================= */

@media (min-width: 375px) {

    .wrap {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero {
        padding: 55px 0;
    }

    .hero h1 {
        font-size: 34px;
    }

    .section-title h2 {
        font-size: 26px;
    }

    .card-img {
        height: 180px;
    }
}


/* =========================================================
     MD
     768px +
     ========================================================= */

@media (min-width: 768px) {

    .wrap {
        padding-left: 24px;
        padding-right: 24px;
    }

    .topbar .wrap {
        gap: 30px;
    }

    .hero {
        padding: 70px 0;
    }

    .hero h1 {
        font-size: 38px;
    }

    .grid-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-img {
        height: 160px;
    }

    .section-title h2 {
        font-size: 28px;
    }
}


/* =========================================================
     LG
     1200px +
     ========================================================= */

@media (min-width: 1200px) {

    .wrap {
        max-width: 1100px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .grid-cards {
        grid-template-columns: repeat(3, 1fr);
    }

    .card-img {
        height: 180px;
    }
}


/* =========================================================
     AJUSTE PARA TELAS PEQUENAS
     ========================================================= */

@media (max-width: 767px) {
    .wrap {
        padding-left: 16px;
        padding-right: 16px;
    }

    .topbar {
        position: relative;
    }

    .topbar .wrap {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .logo {
        order: 1;
        width: auto;
        flex: 1;
        text-align: left;
    }

    .logo img {
        width: 120px;
        margin: 0;
    }

    .hamburger-toggle {
        display: inline-flex;
        order: 4;
    }

    .nav-links {
        order: 5;
        width: 100%;
        display: none;
        justify-content: flex-start;
        align-items: center;
        gap: 10px 16px;
        font-size: 13px;
        flex-wrap: wrap;
        text-align: left;
        padding: 8px 0 2px;
    }

    .nav-links.mobile-menu-open {
        display: flex;
    }

    .nav-links a {
        white-space: nowrap;
    }

    .topbar-actions {
        order: 3;
        width: auto;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 8px;
        margin-left: auto;
    }

    .topbar-actions .login {
        display: inline;
    }

    .topbar-actions .btn {
        padding: 8px 10px;
        font-size: 12px;
    }

    .navbar-greeting {
        max-width: 75px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hero {
        padding: 45px 0;
    }

    .hero h1 {
        font-size: 32px;
        line-height: 1.15;
    }

    .hero-buttons {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-buttons .btn {
        width: auto;
        min-width: 220px;
        max-width: 90%;
        padding: 11px 18px;
        text-align: center;
        white-space: nowrap;
    }
}


/* =========================================================
     TELAS MUITO PEQUENAS
     ========================================================= */

@media (max-width: 374px) {

    body {
        min-width: 0;
    }

    .wrap {
        padding-left: 15px;
        padding-right: 15px;
    }

    .hero h1 {
        font-size: 30px;
    }

    .nav-links {
        gap: 10px;
        font-size: 12px;
    }

    .topbar-actions {
        right: 15px;
    }
}

/* =========================================
   AJUSTES PARA TELAS PEQUENAS
   ========================================= */

@media (max-width: 767px) {

    /* Impede a página de criar largura horizontal */
    html,
    body {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Garante que o conteúdo ocupe apenas a largura disponível */
    .wrap {
        width: 100%;
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }

    /* -----------------------------
       MENU
       ----------------------------- */

    .topbar .wrap {
        width: 100%;
        max-width: 100%;
    }

    .nav-links {
        max-width: 100%;
    }

    .nav-links a {
        white-space: normal;
    }

    /* -----------------------------
       HERO
       ----------------------------- */

    .hero {
        width: 100%;
        overflow: hidden;
    }

    .hero .wrap {
        width: 100%;
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero h1 {
        width: 100%;
        max-width: 100%;
        font-size: 30px;
        line-height: 1.15;

        /* Permite que o texto quebre normalmente */
        white-space: normal !important;
        overflow-wrap: break-word;
        word-break: normal;
    }

    .hero-buttons {
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .hero-buttons .btn {
        width: auto !important;
        min-width: 0 !important;
        max-width: 220px;
        padding: 10px 16px;
        font-size: 13px;
        white-space: nowrap;
        box-sizing: border-box;
    }
}
