/* ==========================================================================
   global.css — Base do site (todas as páginas)
   EXTRAÍDO do style.css (padrão original) — SEM mudar paleta/variáveis
   Inclui: Variáveis, Header/Nav, Layout geral, 404, Legais, Cookies, Goals, Footer, Responsivo e Mobile Menu
   ========================================================================== */

/* ==========================================================================
   1. VARIÁVEIS E CONFIGURAÇÕES GLOBAIS
   ========================================================================== */
:root {
    /* Paleta de Cores Principal */
    --cor-primaria: #2e7d32;       /* Verde Floresta */
    --cor-secundaria: #558b2f;     /* Verde Oliva */
    --cor-destaque: #388e3c;       /* Verde Destaque */
    --cor-borda: #4caf50;          /* Verde Borda */
    --cor-fundo: #e8f5e9;          /* Fundo Suave */
    --cor-sidebar-fundo: #3c3c3c;  /* Fundo Escuro */
    /* Tipografia e Texto */
    --cor-texto-corpo: #333333;
    --fonte-principal: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* Layout */
    --tamanho-logo: 50px;
    --gap-logo-texto: 8px;
    --spacing-right: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--fonte-principal);
    line-height: 1.6;
    color: var(--cor-texto-corpo);
    background-color: #fff;
    overflow-x: hidden;
}

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

/* ==========================================================================
   2. HEADER & NAVEGAÇÃO
   ========================================================================== */
.site-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    padding-right: calc(4rem + var(--spacing-right));
    background: linear-gradient(to right, var(--cor-fundo), #f1f8e9);
    border-bottom: 2px solid var(--cor-borda);
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
}

.logo-container {
    display: inline-flex;
    align-items: center;
    gap: var(--gap-logo-texto);
    padding: 0.5rem;
}

.logo-container a { text-decoration: none; }

.logo-svg {
    width: var(--tamanho-logo);
    height: var(--tamanho-logo);
    flex-shrink: 0;
    display: block;
}

.logo-texto {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.15rem;
}

/* ✅ CANÔNICO: span.logo-title copia o visual do antigo h1 do logo
   ✅ CANÔNICO: span.logo-tagline copia o visual do antigo h3/p do slogan
   Mantém fallback para páginas antigas (h1 e .site-title) */
.logo-texto h1,
.logo-texto .site-title,
.logo-texto .logo-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--cor-primaria);
    line-height: 1.1;
    letter-spacing: -0.3px;
    white-space: nowrap;
    font-family: var(--fonte-principal);
}

.logo-texto h3,
.logo-texto p,
.logo-texto .logo-tagline {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--cor-secundaria);
    line-height: 1.1;
    letter-spacing: -0.2px;
}

/* Navegação */
.main-nav { display: block; flex-grow: 1; min-width: 250px; }

.nav-list {
    display: flex;
    list-style: none;
    gap: 1.8rem;
    justify-content: center;
}

.nav-link {
    text-decoration: none;
    color: var(--cor-primaria);
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav-link:hover {
    border-bottom-color: var(--cor-borda);
    color: var(--cor-destaque);
}

/* Bloco Direito */
.header-right-block {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: flex-end;
    min-width: 220px;
    padding-right: var(--spacing-right);
}

.search-form {
    display: flex;
    gap: 0.3rem;
    width: 100%;
    max-width: 200px;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--cor-borda);
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: var(--fonte-principal);
    background: white;
}

.search-form button {
    padding: 0.4rem 0.7rem;
    background: var(--cor-borda);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-form button:hover { background: var(--cor-destaque); }

.lang-list {
    display: flex;
    list-style: none;
    gap: 0.4rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.lang-list a {
    text-decoration: none;
    color: var(--cor-primaria);
    font-size: 0.85rem;
    padding: 0.2rem 0.3rem;
    border-radius: 3px;
    transition: all 0.2s ease;
    min-width: 24px;
    text-align: center;
}

.lang-list a[aria-current="page"] {
    background: var(--cor-borda);
    color: white;
    pointer-events: none;
}

.lang-list a:hover:not([aria-current="page"]) {
    background: rgba(76, 175, 80, 0.1);
    color: var(--cor-destaque);
}

/* Menu toggle (mobile) */
.menu-toggle { display: none; }

/* ==========================================================================
   3. LAYOUT GERAL
   ========================================================================== */
.layout-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.welcome-box {
    max-width: 800px;
    margin: 4rem auto;
    padding: 2.5rem 1.5rem;
    background-color: #fff8e1;
    color: var(--cor-primaria);
    text-align: center;
    border-radius: 12px;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.welcome-box h1 { font-size: 1.8rem; font-weight: 500; margin-bottom: 1.2rem; }
.welcome-box h3 { font-size: 1.1rem; margin-bottom: 1rem; color: var(--cor-secundaria); }
.welcome-box h4 { font-size: 1rem; font-weight: 700; color: var(--cor-destaque); }

/* ==========================================================================
   4. PÁGINA 404 (ERRO)
   ========================================================================== */
.error-container {
    padding: 80px 20px;
    text-align: center;
    background-color: #fcfdfc;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-content { max-width: 600px; margin: 0 auto; display: none; }
.error-content.visible { display: block; animation: fadeIn 0.5s ease-in; }
.error-icon { font-size: 5rem; display: block; margin-bottom: 20px; animation: float 3s ease-in-out infinite; }
.error-content h1 { font-size: 2.5rem; color: var(--cor-primaria); margin-bottom: 15px; }
.error-content p { font-size: 1.1rem; color: #666; line-height: 1.6; }

.error-suggestion { margin: 30px 0; color: var(--cor-secundaria); }
.error-actions { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.error-search p { margin-bottom: 10px; }

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   7. PÁGINAS LEGAIS
   ========================================================================== */
.legal-text {
    color: #333;
    background-color: #fff;
    padding: 2.5rem;
    margin: 30px auto;
    max-width: 900px;
    line-height: 1.8;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.legal-text h1 {
    font-size: 2rem;
    color: var(--cor-primaria);
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.legal-text h2 { color: #000; margin-top: 2rem; font-size: 1.5rem; }
.legal-text a { color: var(--cor-destaque); text-decoration: underline; }

/* ==========================================================================
   8. COMPONENTES E COOKIES
   ========================================================================== */
.btn-primary, .btn-secondary {
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: var(--cor-primaria);
    color: #fff;
    border: 1px solid var(--cor-primaria);
}

.btn-primary:hover { background-color: var(--cor-destaque); transform: translateY(-2px); }

.btn-secondary {
    background-color: transparent;
    color: var(--cor-primaria);
    border: 1px solid var(--cor-primaria);
}

.btn-secondary:hover { background-color: #f1f8e9; transform: translateY(-2px); }

/* Cookie banner (modelo antigo #cookie-banner) */
#cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    padding: 20px;
    padding-right: 40px;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
    z-index: 99999;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.cookie-text {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    flex: 1;
    min-width: 280px;
}

.cookie-link {
    color: var(--cor-destaque);
    text-decoration: none;
    font-weight: bold;
}

.cookie-close {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #888;
    cursor: pointer;
    z-index: 100000;
    padding: 5px;
}

.cookie-close:hover { color: #333; }

.cookie-buttons { display: flex; gap: 10px; padding: 10px 0; }

.cookie-buttons button, #btn-accept, #btn-aceito {
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    border: none;
    background-color: #28a745;
    color: white;
    transition: background 0.2s;
}

.cookie-buttons button:hover, #btn-accept:hover, #btn-aceito:hover { background-color: #218838; }

#btn-decline, #btn-rejeito {
    background-color: transparent !important;
    border: 1px solid #ccc !important;
    color: #555 !important;
    padding: 10px 20px !important;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    display: inline-block;
}

#btn-decline:hover, #btn-rejeito:hover {
    background-color: #f5f5f5 !important;
    border-color: #999 !important;
    color: #333 !important;
}

/* ==========================================================================
   GOALS (páginas específicas)
   ========================================================================== */
.goals-header {
    text-align: center;
    padding: 50px 20px;
    background: #f0f7f4;
    margin-bottom: 40px;
}

.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto 60px auto;
    padding: 0 20px;
}

.goal-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #2c3e50;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.goal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(46, 125, 50, 0.15);
    border-color: #2e7d32;
}

.goal-icon { font-size: 3rem; margin-bottom: 15px; display: block; }

.goal-title { font-size: 1.2rem; font-weight: bold; color: #2e7d32; }
.goal-desc { font-size: 0.9rem; color: #666; margin-top: 5px; }

/* ==========================================================================
   9. FOOTER
   ========================================================================== */
.site-footer { width: 100%; }

.footer-main {
    background: #2b2b2b;
    color: #ffffff;
    padding: 2.5rem 2rem 2rem;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
}

.footer-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--cor-borda);
    margin-bottom: 0.75rem;
}

.footer-list { list-style: none; }

.footer-list a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-list a:hover { color: var(--cor-borda); }

.bottom-bar {
    background-color: #000000;
    color: #cccccc;
    padding: 25px 0;
    font-size: 0.85rem;
    border-top: 1px solid #333333;
}

.bottom-bar .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    width: 100%;
    padding: 0 20px;
}

.bottom-bar a { color: #ffffff; text-decoration: none; }
.bottom-bar a:hover { color: var(--cor-destaque); text-decoration: underline; }

/* ==========================================================================
   HOME — BLOCO HERO + SEGURANÇA E CONFIANÇA
   ========================================================================== */
.home-hero-trust {
    width: min(1180px, calc(100% - 32px));
    margin: 4rem auto 2.5rem;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.85fr);
    gap: 1.5rem;
    align-items: stretch;
}

.home-hero-trust .welcome-box {
    max-width: none;
    margin: 0;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.home-hero-trust .welcome-box h1 {
    font-size: clamp(1.8rem, 2.6vw, 2.55rem);
    line-height: 1.18;
}

.home-hero-trust .welcome-box h3 {
    font-size: clamp(1rem, 1.3vw, 1.25rem);
}

.home-hero-trust .welcome-box h4 {
    font-size: clamp(0.95rem, 1.1vw, 1.08rem);
}

.home-trust-box {
    background: linear-gradient(180deg, #f8fbf7 0%, #ffffff 100%);
    border: 1px solid rgba(76, 175, 80, 0.22);
    border-radius: 16px;
    padding: 1.6rem;
    box-shadow: 0 10px 28px rgba(46, 125, 50, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-trust-kicker {
    margin: 0 0 0.45rem;
    color: var(--cor-destaque);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-trust-box h2 {
    margin: 0 0 0.65rem;
    color: var(--cor-primaria);
    font-size: clamp(1.25rem, 1.7vw, 1.65rem);
    line-height: 1.25;
    font-weight: 600;
}

.home-trust-intro {
    margin: 0 0 1.15rem;
    color: #526352;
    font-size: 0.95rem;
    line-height: 1.55;
}

.home-trust-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.home-trust-list li {
    margin: 0;
}

.home-trust-list a {
    display: block;
    padding: 0.85rem 0.95rem;
    background: #ffffff;
    border: 1px solid #e1eadf;
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.home-trust-list a:hover,
.home-trust-list a:focus {
    border-color: var(--cor-borda);
    box-shadow: 0 8px 20px rgba(46, 125, 50, 0.11);
    transform: translateY(-2px);
}

.home-trust-title {
    display: block;
    color: var(--cor-primaria);
    font-weight: 700;
    font-size: 0.98rem;
    line-height: 1.25;
    margin-bottom: 0.2rem;
}

.home-trust-desc {
    display: block;
    color: #5f6f5f;
    font-size: 0.88rem;
    line-height: 1.45;
}

/* ==========================================================================
   10. RESPONSIVIDADE + MENU MOBILE
   ========================================================================== */
@media (min-width: 768px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); text-align: left; }
    .footer-tools-col .lang-list { justify-content: flex-start; }
    .footer-tools-col .search-form { margin: 0 0 1rem 0; }
    .bottom-bar .container { flex-direction: row; justify-content: space-between; text-align: left; }
}

@media (min-width: 992px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .footer-grid { gap: 2.5rem; } }

/* Header + menu mobile */
@media (max-width: 767px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 8px;
        gap: 0.8rem;
    }

    .logo-container { max-width: 100%; justify-content: flex-start; }

    /* Mantém visual do título/tagline no mobile */
    .logo-texto h1,
    .logo-texto .site-title,
    .logo-texto .logo-title {
        font-size: 1.3rem;
        white-space: normal;
    }

    .logo-texto p,
    .logo-texto .logo-tagline {
        font-size: 0.8rem;
        white-space: normal;
    }

    .header-right-block { align-items: flex-start; width: 100%; padding-right: 0; }
    .search-form { max-width: none; width: 100%; }
    .lang-list { justify-content: flex-start; }
    .main-nav { display: none; }

    .menu-toggle {
        display: flex;
        position: absolute;
        top: 30px;
        right: 8px;
        z-index: 1001;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        cursor: pointer;
    }

    .hamburger,
    .hamburger::before,
    .hamburger::after {
        width: 24px;
        height: 3px;
        background-color: var(--cor-primaria);
        position: absolute;
        transition: all 0.3s ease;
    }

    .hamburger::before { content: ''; top: -8px; }
    .hamburger::after { content: ''; bottom: -8px; }

    body.menu-open .hamburger { background-color: transparent; }
    body.menu-open .hamburger::before { transform: rotate(45deg); top: 0; }
    body.menu-open .hamburger::after { transform: rotate(-45deg); bottom: 0; }

    .legal-text { padding: 15px; margin: 10px; border: none; }
    .cookie-content { flex-direction: column; align-items: flex-start; padding: 10px; }
    .cookie-buttons { width: 100%; justify-content: flex-end; }
    .cookie-close { top: 10px; transform: none; }
    #btn-aceito, #btn-rejeito, #btn-accept, #btn-decline { flex: 1; text-align: center; }
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--cor-fundo);
    z-index: 1000;
    padding: 5rem 1rem 2rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow-y: auto;
}

body.menu-open .mobile-menu { transform: translateX(0); }

.mobile-nav-list { list-style: none; }

.mobile-nav-list a {
    display: block;
    padding: 0.8rem;
    text-decoration: none;
    color: var(--cor-primaria);
}

.mobile-extra {
    border-top: 1px solid var(--cor-borda);
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
/* ==========================================================================
   novas institucionais
   ========================================================================== */
/* Legal and safety page helpers - Aromastherapia
   Addition only. Does not replace existing CSS.
*/

.pet-warning-box {
  background-color: #fff3f3;
  border-left: 5px solid #d9534f;
  padding: 20px;
  margin: 20px 0;
  border-radius: 4px;
}

.pet-warning-box h3 {
  color: #d9534f;
  margin-top: 0;
}

.safe-list {
  color: #2e7d32;
}

.danger-list {
  color: #c62828;
}


@media (max-width: 900px) {
    .home-hero-trust {
        grid-template-columns: 1fr;
        margin: 2rem auto 2rem;
    }

    .home-hero-trust .welcome-box {
        text-align: center;
    }

    .home-trust-box {
        padding: 1.25rem;
    }
}

@media (max-width: 767px) {
    .home-hero-trust {
        width: min(100% - 20px, 1180px);
        margin: 1.25rem auto 1.75rem;
        gap: 1rem;
    }

    .home-hero-trust .welcome-box {
        padding: 1.6rem 1rem;
    }

    .home-trust-list a {
        padding: 0.8rem;
    }
}
