:root {
    --bg: #0b0b0b;
    /* preto elegante */
    --bg-soft: #121212;
    --white: #ffffff;
    --muted: #d7d7d7;
    --gold: #C6A661;
    /* ouro quente, ajuste se necessário */
    --gold-strong: #A8893D;
    --max: 1120px;
}

/* ADIÇÃO: Transições Globais Subtis */
/* Aplicar transições a elementos interativos chave para movimento suave */
.btn, .btn-primary, .btn-ghost, .card, 
nav a, .footer-line a, .servico, .ponto, .auth-tab, input, textarea {
    transition: all 0.3s ease-in-out;
}

/* Garante que o atributo hidden esconde SEMPRE o menu mobile */
.mobile[hidden] {
  display: none !important;
}

body.hidden {
  visibility: hidden;
  opacity: 0;
}
body.visible {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.2s ease;
}


html,
body {
    height: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--white);
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none
}

.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 20px
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden
}

.skip-link:focus {
    left: 16px;
    top: 16px;
    width: auto;
    height: auto;
    padding: 8px 12px;
    background: #fff;
    color: #000;
    z-index: 10000
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(11, 11, 11, .8);
    backdrop-filter: saturate(150%) blur(6px);
    border-bottom: 1px solid rgba(255, 255, 255, .06)
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px
}

.brand img {
    height: 125px;
    width: auto;
    display: block
}

.brand .logoname {
    font-weight: 600;
    letter-spacing: .04em
}

nav ul {
    display: flex;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0
}

nav a {
    color: var(--muted);
    padding: 10px 12px;
    font-weight: 500
}

nav a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, .06);
    border-radius: 4px; 
}

nav a.active {
    color: var(--white);
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 4px; 
}

.cta-area {
    display: flex;
    align-items: center;
    gap: 10px
}

/* --- BOTÕES MODERNIZADOS E SUBTIS (ESTILO PÍLULA) --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 30px; 
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    border-radius: 30px; /* Estilo Pílula */
    text-decoration: none; 
}

.btn-primary {
    background: linear-gradient(180deg, var(--gold), var(--gold-strong));
    color: var(--bg);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); 
    border-color: var(--gold-strong);
}

.btn-primary:hover {
    background: linear-gradient(180deg, var(--gold-strong), var(--gold));
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn-ghost {
    color: var(--muted);
    border-color: rgba(255, 255, 255, .14);
    background: none;
}

.btn-ghost:hover {
    color: var(--white);
    border-color: rgba(255, 255, 255, .35); 
    background: rgba(255, 255, 255, .05); 
}
/* --- FIM DOS BOTÕES MODERNIZADOS --- */


/* Mobile menu */
.burger {
    display: none;
    background: none;
    border: 0;
    color: var(--white);
    font-size: 26px
}

.mobile {
    display: none
}

@media (max-width: 980px) {
    nav ul {
        display: none
    }

    .burger {
        display: block
    }

    .mobile {
        display: block;
        border-top: 1px solid rgba(255, 255, 255, .08);
        background: rgba(11, 11, 11, .95)
    }

    .mobile a {
        display: block;
        padding: 14px 20px;
        color: var(--muted)
    }

    .mobile a:hover {
        background: rgba(255, 255, 255, .06);
        color: var(--white)
    }

    .cta-area {
        display: none
    }
}

/* Hero */
.hero {
    position: relative;
    min-height: 86vh;
    display: grid;
    align-items: center;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('/images/20524789.jpg') center/cover no-repeat;
    opacity: .35
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(80% 60% at 60% 40%, rgba(198, 166, 97, .25), transparent 60%), linear-gradient(to bottom, rgba(11, 11, 11, .3), var(--bg) 85%)
}

.hero .wrap {
    position: relative;
    padding: 80px 0;
    z-index: 1;
}

.eyebrow {
    color: var(--gold);
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: .82rem
}

h1 {
    font-size: clamp(28px, 4vw, 44px);
    margin: .5rem 0 1rem;
    line-height: 1.15
}

.lead {
    color: var(--muted);
    font-size: clamp(16px, 2.2vw, 19px)
}

.actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap
}

/* Value props strip */
.strip {
    background: var(--bg-soft);
    border-top: 1px solid rgba(255, 255, 255, .06);
    border-bottom: 1px solid rgba(255, 255, 255, .06)
}

.strip .items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 26px 0
}

/* --- CARTÕES MODERNIZADOS E SUBTIS --- */
.card {
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .06);
    padding: 18px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.card:hover {
    background: rgba(255, 255, 255, .04);
    border-color: rgba(255, 255, 255, .1);
    transform: translateY(-2px); /* Ligeiríssima elevação */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
}

.card strong {
    color: var(--white)
}

.card p {
    color: var(--muted);
    margin: .35rem 0 0
}
/* --- FIM DOS CARTÕES MODERNIZADOS --- */

@media (max-width: 860px) {
    .strip .items {
        grid-template-columns: 1fr
    }
}

/* Footer simplificado */
footer {
  background: var(--bg-soft);
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 15px;
}

.footer-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}

.footer-line a {
  color: var(--muted);
  text-decoration: none;
  margin: 0 4px;
}

.footer-line a:hover {
  color: var(--white);
}

.footer-left {
  flex: 1;
  text-align: left;
}

.footer-center {
  flex: 1;
  text-align: center;
}

.footer-right {
  flex: 1;
  text-align: right;
}

.footer-right a {
  font-size: 1.1rem;
  margin-left: 10px;
}

.footer-right a:hover {
  color: var(--white);
}

/* Responsividade */
@media (max-width: 768px) {
  .footer-line {
    flex-direction: column;
    text-align: center;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    flex: none;
    width: 100%;
  }

  .footer-right a {
    margin: 0 6px;
  }
}

.footer-line a:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  color: var(--white);
}

/* Mostrar/ocultar consistente quando existir [hidden] */
[hidden] { display: none !important; }

/* ===== MODAIS e FORMULÁRIOS GLOBAIS (incluindo Login) ===== */

/* Inputs e Textareas base: Cantos e Foco */
input, textarea {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.1);
  color: var(--white); padding: 10px 12px; font-size: 1rem; outline: none;
  border-radius: 6px; /* Cantos Arredondados nos inputs */
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
input:focus, textarea:focus { 
    border-color: var(--gold); 
    box-shadow: 0 0 0 2px rgba(198, 166, 97, 0.2); /* Foco Elegante */
}

/* Modal Contacto - Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: -1;
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}
.modal-overlay.active {
  z-index: 120;
  opacity: 1;
  pointer-events: all;
}

/* Modal Contacto - Caixa */
.modal {
  position: fixed;                 
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(.98); 
  width: 100%;
  max-width: 720px;
  max-height: calc(100vh - 120px);
  overflow: auto;

  background: var(--bg-soft);
  border: 1px solid rgba(255,255,255,.12);
  padding: 50px;
  color: var(--white);
  box-shadow: 0 10px 40px rgba(0,0,0,.5);
  z-index: 130;

  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  border-radius: 8px; /* Cantos ao modal */
}

.modal.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: all;
}

.modal-title{ margin:0 32px 18px 0;color:var(--gold);font-size:clamp(20px,3vw,26px) }
.modal-close{ position:absolute;top:10px;right:12px;background:transparent;border:0;color:var(--muted);font-size:28px;cursor:pointer; transition: color 0.3s ease;}
.modal-close:hover{ color:var(--white) }
.modal .form-grid{ display:grid;grid-template-columns:1fr 1fr;gap:16px }
.modal .form-group{ display:flex;flex-direction:column }
.modal label{ color:var(--muted);margin-bottom:6px;font-size:.95rem }
.modal .btn.btn-primary{ margin-top:16px;border:none }
.form-feedback{ margin-top:12px;font-size:.95rem;color:var(--muted) }
.form-feedback.success{ color:#79d29d }
.form-feedback.error{ color:#ff8b8b }

@media (max-width:680px){
  .modal{ padding:28px; }
  .modal .form-grid{ grid-template-columns:1fr; }
}

/* Modal Responsivo (geral) */
.modal { box-sizing: border-box; max-width: 720px; width: calc(100vw - 48px); }
@media (max-width: 768px) {
  .modal { width: calc(100vw - 32px); padding: 24px; max-height: calc(100vh - 96px); }
  .modal .form-grid { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 480px) {
  .modal .btn.btn-primary { width: 100%; justify-content: center; }
}


/* ====== Password Reset (isolado) - MODERNIZADO ====== */
.pwdreset-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s ease, visibility .28s ease;
  z-index: 9000;
  pointer-events: none;
}
.pwdreset-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.pwdreset-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(92vw, 440px);
  transform: translate(-50%, -50%) scale(.95);
  background: var(--bg-soft);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 18px 48px rgba(0,0,0,.55);
  padding: 30px 24px;
  opacity: 0;
  pointer-events: none;
  transition: transform .28s ease, opacity .28s ease;
  z-index: 9001;
  border-radius: 6px; /* Cantos Arredondados */
}
.pwdreset-modal.is-open {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}

.pwdreset-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
  transition: color 0.3s ease;
}
.pwdreset-close:hover { color: var(--white); }

.pwdreset-title {
  color: var(--gold);
  margin: 0 0 10px;
  text-align: center;
}
#pwdreset-btn { margin-top: 10px;}
@media (max-width: 420px) {
  .pwdreset-modal { padding: 24px 18px; }
}


/* =======================================
   ESTILOS GERAIS PARA SUBPÁGINAS (HERO, BREADCRUMB)
========================================= */

/* Hero centrado (Para subpáginas) */
.page-hero {
  position: relative;
  min-height: 30vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 60% at 60% 40%, rgba(198, 166, 97, .25), transparent 60%), linear-gradient(to bottom, rgba(11, 11, 11, .3), var(--bg) 85%), var(--hero) center / cover no-repeat;
  opacity: 0.95;
}
.page-hero-inner {
  position: relative;
  z-index: 1;
}
.page-title {
  font-size: clamp(28px, 4vw, 44px);
  margin: 0;
  color: var(--white);
}

/* Breadcrumb */
.breadcrumb {
  background: var(--bg-soft);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 10px 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: var(--muted);
}
.breadcrumb a {
  color: var(--muted);
  transition: color 0.3s ease;
}
.breadcrumb a:hover {
  color: var(--gold);
}
.breadcrumb ol li+li::before {
  content: "›";
  margin: 0 15px 0 0;
  color: var(--gold);
}

/* Conteúdo Base para Subpáginas */
.content {
  padding: 60px; 
}
.content h2 {
  margin: 28px 0 10px;
  font-size: clamp(20px, 3.2vw, 26px);
  color: var(--gold);
}
.content p {
  color: var(--white);
  margin-bottom: 1rem;
}
.lead {
  color: var(--muted);
  font-size: clamp(17px, 2.2vw, 19px);
  border-left: 3px solid var(--gold);
  padding-left: 12px;
  font-weight: bold;
}

/* Lista dos princípios (Página Sobre) */
.checklist {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}
.checklist li {
  margin: 6px 0;
}


/* =======================================
   LAYOUTS ESPECÍFICOS
========================================= */

/* --- Layout de Autenticação (Login) --- */
.auth-wrap { padding: 40px 20px 60px; }

.auth-card {
  max-width: 760px;
  margin: 0 auto;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.12);
  padding: 50px;
  border-radius: 8px; /* Cantos Arredondados Suaves */
}

.auth-tabs { display: flex; border-bottom: 1px solid rgba(255,255,255,.12); }
.auth-tab {
  background: transparent; border: 0; color: var(--muted);
  padding: 12px 16px; cursor: pointer; font-weight: 600;
  transition: color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.auth-tab.active { color: var(--white); border-bottom: 2px solid var(--gold); }
.auth-tab:hover { color: var(--white); }
.auth-tab:focus { 
    outline: none; 
    box-shadow: 0 2px 0 0 var(--gold); 
}
.auth-pane { padding: 18px 4px 4px; }
.auth-pane[hidden] { display: none !important; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; }
label { color: var(--muted); margin-bottom: 6px; font-size: .95rem; }
.hint { color: var(--muted); font-size: .85rem; margin-top: 6px; }

.input-pass { position: relative; display: flex; align-items: center; width: 100%; }
.input-pass input { flex: 1 1 auto; width: 100%; padding-right: 40px; box-sizing: border-box; }
.input-pass .pass-toggle {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: transparent; border: 0; color: var(--muted); cursor: pointer;
  font-size: 1rem; line-height: 1; transition: color 0.3s ease;
}
.input-pass .pass-toggle:hover { color: var(--white); }

.auth-actions { display: flex; justify-content: space-between; align-items: center; margin: 6px 0 12px; }
.remember { display: flex; align-items: center; gap: 8px; color: var(--muted); }

.link-muted { color: var(--muted); transition: color 0.3s ease; }
.link-muted:hover { color: var(--white); }

/* --- Layout de Contacto --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  transition: all 0.3s ease-in-out;
}
.info h2 { color: var(--gold); font-size: clamp(22px, 3vw, 28px); margin-bottom: 8px; }
.info .lead { color: var(--muted); font-size: clamp(17px, 2.2vw, 19px); margin-bottom: 30px; }
.dados { list-style: none; padding: 0; color: var(--muted); font-size: 1rem; }
.dados li { margin: 12px 0; display: flex; align-items: center; gap: 10px; transition: color 0.3s ease; }
.dados li:hover { color: var(--white); }
.dados i { color: var(--gold); font-size: 1rem; }
.formulario { text-align: left; }
.formulario button.btn-primary { margin-top: 18px; border: none; }


/* --- Layout de Serviços (Grelhas) --- */
.grid-servicos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.servico {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(198, 166, 97, 0.4); 
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15); 
}
.servico h2 { color: var(--gold); margin-top: 0; margin-bottom: 8px; font-size: clamp(18px, 2.8vw, 22px); }
.servico p { color: var(--white); margin: 0 0 10px; font-weight: 500; }
.servico ul { list-style: disc; padding-left: 18px; color: var(--muted); }
.servico ul li { margin: 6px 0; }
.servico:hover {
  background: rgba(255,255,255,.05);
  border-color: var(--gold);
  transform: translateY(-3px); 
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Grelha “Como Trabalhamos” (Página Sobre) */
.grid-pontos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}
.ponto {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(198, 166, 97, 0.4); 
  padding: 18px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15); 
}
.ponto:hover {
  background: rgba(255,255,255,.05);
  border-color: var(--gold);
  transform: translateY(-3px); 
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}
.ponto h3 { margin: 0 0 8px; font-size: 1.05rem; color: var(--gold); }
.ponto p { color: var(--muted); margin: 0; }


/* =======================================
   RESPONSIVO GERAL
========================================= */
@media (max-width: 860px) {
  .page-hero { min-height: 20vh; }
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .grid-servicos { grid-template-columns: 1fr; }
  .grid-pontos { grid-template-columns: 1fr; }
  .auth-card { padding: 18px; }
  .auth-wrap { padding: 40px 15px 60px; }
  .content { padding: 40px 20px 60px; }
  .form-grid { grid-template-columns: 1fr; }
}

/* ===========================
   FORM: BLOCO DO LIVRO
=========================== */

.book-check-group {
  margin-top: 20px;
}

.block-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--white);
}

.book-options {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

/* esconder o radio nativo */
.book-option input {
  display: none;
}

/* pill buttons */
.book-pill {
  display: inline-block;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s ease;
  color: var(--muted);
}

.book-option input:checked + .book-pill {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(198, 166, 97, 0.1);
}

/* versão gold */
.book-pill-gold {
  border-color: rgba(198, 166, 97, 0.4);
}

.book-option input:checked + .book-pill-gold {
  background: var(--gold);
  color: #0b0b0b;
  font-weight: 600;
}

/* campo do barcode */
#grp_barcode label {
  font-weight: 600;
  color: var(--white);
}

.barcode-input {
  letter-spacing: 3px;
  font-size: 1.1rem;
  text-align: center;
}
/* CTA dentro do menu mobile */
#mobileMenu .mobile-cta {
  margin: 12px 20px;
  justify-content: center;
  display: inline-flex;
}
