/* =========================================================
   RESET / BASE
   ========================================================= */
*,
*::before,
*::after{
  box-sizing:border-box;
}

:root{
  --font:-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif;
  --bg:#020617;
  --card:#020617;
  --brand:#f97316;
  --brand-soft:#fed7aa;
  --accent:#22c55e;
  --accent-soft:#bbf7d0;
  --text:#f9fafb;
  --muted:#9ca3af;
  --border:#1f2937;
  --radius-lg:22px;
  --radius-md:16px;
  --shadow-strong:0 30px 60px rgba(0,0,0,.85);
  --shadow-soft:0 18px 40px rgba(0,0,0,.7);
  /* largura praticamente total, com margem mínima */
  --max-width:1600px;
  --page-margin:0.9rem; /* margem lateral mínima */
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:
    radial-gradient(circle at 10% 0%,rgba(148,163,184,.18) 0,transparent 45%),
    radial-gradient(circle at 90% 100%,rgba(251,146,60,.18) 0,transparent 55%),
    #020617;
  overflow-x:hidden; /* evita scroll lateral */
  text-align:justify; /* texto justificado */
}

img,
video{
  display:block;
  max-width:100%;
  height:auto;
}

/* =========================================================
   LAYOUT GERAL
   ========================================================= */
.container{
  max-width:calc(100% - (2 * var(--page-margin)));
  margin:0 auto;
  padding:0 var(--page-margin); /* margem lateral mínima */
}

.section{
  padding:4.5rem 0;
  background:linear-gradient(to bottom,
             rgba(15,23,42,.96),
             rgba(15,23,42,.99));
  position:relative;
  overflow:hidden;
}

.section-alt{
  padding:4.5rem 0;
  background:radial-gradient(circle at 0 0,rgba(56,189,248,.12),transparent 60%),
             radial-gradient(circle at 100% 100%,rgba(248,113,113,.15),transparent 60%),
             #020617;
  position:relative;
  overflow:hidden;
}

.section-header{
  max-width:760px;
  margin:0 auto 2.4rem;
  text-align:center;
  position:relative;
  z-index:1;
}

.section-header h2{
  font-size:2.1rem;
  margin:0 0 .6rem;
  letter-spacing:.03em;
  background:linear-gradient(90deg,#f97316,#facc15,#22c55e);
  background-clip:text;
  -webkit-background-clip:text;
  color:transparent;
  text-align:center;
}

/* linha fina sob o título */
.section-header::after{
  content:"";
  display:block;
  width:140px;
  height:3px;
  margin:.4rem auto 0;
  border-radius:999px;
  background:linear-gradient(90deg,#f97316,#facc15,#22c55e);
}

.section-header p{
  margin:.9rem 0 0;
  color:var(--muted);
  font-size:.95rem;
  text-align:center;
}

.section-grid{
  display:grid;
  gap:2.7rem;
  align-items:center;
  position:relative;
  z-index:1;
}

.section-grid-reverse{
  grid-auto-flow:dense;
}

@media(min-width:900px){
  .section-grid{
    grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);
  }
  .section-grid.section-grid-reverse > :first-child{
    order:2;
  }
}

/* =========================================================
   TOPBAR / NAV / LÍNGUAS
   ========================================================= */
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  background:
    linear-gradient(to bottom,rgba(15,23,42,.88),rgba(15,23,42,.96)),
    url("img/header.png") center/cover no-repeat;
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(148,163,184,.25);
}

.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:90px;
  gap:1.5rem;
}

/* bloco da marca à esquerda */
.brand{
  display:flex;
  align-items:center;
  gap:1rem;
}

.brand-logo{
  width:72px;
  height:auto;
  filter:drop-shadow(0 0 14px rgba(248,113,22,.9));
}

.brand-text{
  display:flex;
  flex-direction:column;
  gap:.1rem;
}

.brand-name{
  font-weight:900;
  letter-spacing:.18em;
  text-transform:uppercase;
  font-size:1.05rem;
}

.brand-tagline{
  font-size:.82rem;
  color:var(--muted);
}

/* NAV – centrado */
.nav{
  display:flex;
  flex-wrap:wrap;
  gap:.75rem;
  justify-content:center;
  margin:0;
}

.nav a{
  position:relative;
  font-size:.8rem;
  text-transform:uppercase;
  letter-spacing:.16em;
  text-decoration:none;
  color:var(--muted);
  padding:.35rem .7rem;
  border-radius:999px;
  overflow:hidden;
  white-space:nowrap;
  border:1px solid transparent;
}

.nav a::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(120deg,rgba(248,113,22,.6),rgba(34,197,94,.5));
  opacity:0;
  transition:opacity .15s ease;
  z-index:-1;
}

.nav a:hover,
.nav a:focus-visible{
  color:#0b1120;
}

.nav a:hover::before,
.nav a:focus-visible::before{
  opacity:1;
}

/* SELETOR DE LÍNGUA – à direita */
.lang-switch{
  display:flex;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:.35rem;
}

/* botões mais pequenos, estilo screenshot */
.lang-btn{
  display:inline-flex;
  align-items:center;
  gap:.25rem;
  padding:.18rem .55rem;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.45);
  background:rgba(15,23,42,.9);
  color:var(--muted);
  font-size:.72rem;
  text-transform:uppercase;
  letter-spacing:.14em;
  cursor:pointer;
  min-height:26px;
}

.lang-btn:hover{
  background:rgba(15,23,42,1);
  color:var(--brand-soft);
}

.lang-btn.active{
  border-color:var(--brand);
  border-width:2px;
  color:var(--brand-soft);
  background:rgba(37,99,235,.25);
}

/* bandeiras pequenas, redondas */
.lang-flag{
  width:18px;
  height:18px;
  border-radius:50%;
  object-fit:cover;
  display:block;
}

.lang-code{
  line-height:1;
}

/* responsivo header */
@media(max-width:900px){
  .topbar-inner{
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    gap:1rem;
  }

  .nav{
    justify-content:center;
  }
}

@media(max-width:700px){
  .topbar-inner{
    flex-direction:column;
    align-items:center;
    justify-content:center;
    padding:.8rem 0 .9rem;
  }

  .nav{
    justify-content:center;
  }

  .lang-switch{
    justify-content:center;
  }
}

/* =========================================================
   HERO
   ========================================================= */
.hero{
  position:relative;
  min-height:82vh;
  display:flex;
  align-items:stretch;
  overflow:hidden;
}

.hero-bg{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
  opacity:.52;
  z-index:-2;
}

.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 0 0,rgba(249,115,22,.45),transparent 50%),
    radial-gradient(circle at 100% 100%,rgba(56,189,248,.32),transparent 55%),
    radial-gradient(circle at 50% 100%,rgba(15,23,42,.9),rgba(15,23,42,1));
  mix-blend-mode:screen;
  z-index:-1;
}

.hero-inner{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(0,.95fr);
  gap:3.3rem;
  align-items:center;
  padding:4.7rem var(--page-margin) 4.2rem;
}

@media(max-width:900px){
  .hero-inner{
    grid-template-columns:1fr;
    padding:4rem var(--page-margin) 3.2rem;
  }
}

/* BARRA DE DOCUMENTOS NO HERO */
.hero-docs{
  grid-column:1 / -1;
  display:flex;
  flex-wrap:wrap;
  gap:.75rem;
  margin:0 0 1.5rem;
  position:relative;
  z-index:2;
}

.hero-kicker{
  font-size:.9rem;
  letter-spacing:.24em;
  text-transform:uppercase;
  color:var(--brand-soft);
  margin:0 0 .45rem;
  text-align:left;
}

.hero-copy h1{
  font-size:2.8rem;
  line-height:1.1;
  margin:.35rem 0 1.1rem;
  letter-spacing:.02em;
  background:linear-gradient(90deg,#fee2e2,#fed7aa,#bbf7d0);
  background-clip:text;
  -webkit-background-clip:text;
  color:transparent;
  text-shadow:0 0 30px rgba(15,23,42,.9);
  text-align:left;
}

.hero-text{
  max-width:38rem;
  color:var(--muted);
  font-size:.95rem;
  text-align:justify;
}

.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:1rem;
  margin:1.1rem 0 1.7rem;
}

/* BOTÕES GENÉRICOS */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:.8rem 1.6rem;
  border-radius:999px;
  font-size:.82rem;
  font-weight:700;
  text-decoration:none;
  text-transform:uppercase;
  letter-spacing:.16em;
  border:1px solid transparent;
  cursor:pointer;
  transition:transform .1s ease, box-shadow .1s ease, background .1s ease, color .1s ease;
  text-align:center;
}

.btn-primary{
  background:linear-gradient(135deg,#f97316,#facc15);
  color:#0b1120;
  box-shadow:var(--shadow-strong);
}

.btn-primary:hover{
  background:linear-gradient(135deg,#fdba74,#f97316);
  transform:translateY(-1px) scale(1.01);
}

.btn-outline{
  background:rgba(15,23,42,.8);
  color:var(--brand-soft);
  border-color:rgba(248,250,252,.4);
}

.btn-outline:hover{
  background:rgba(15,23,42,1);
  color:var(--accent-soft);
  transform:translateY(-1px);
}

/* variação ghost para PDFs em construção */
.btn-ghost{
  background:rgba(15,23,42,.6);
  color:var(--brand-soft);
  border:1px dashed rgba(248,250,252,.45);
}

.btn-ghost:hover{
  background:rgba(15,23,42,.95);
  color:var(--accent-soft);
  transform:translateY(-1px);
}

.btn-full{
  width:100%;
  justify-content:center;
}

/* HERO MÉTRICAS */
.hero-metrics{
  display:flex;
  flex-wrap:wrap;
  gap:1.4rem;
}

.metric{
  min-width:6.3rem;
}

.metric-value{
  display:block;
  font-size:1.6rem;
  font-weight:800;
  text-align:left;
}

.metric-label{
  font-size:.75rem;
  color:var(--muted);
  text-align:left;
}

/* HERO IMAGEM */
.hero-side{
  margin:0;
  border-radius:32px;
  overflow:hidden;
  background:linear-gradient(145deg,#020617,#020617) padding-box,
             linear-gradient(145deg,#f97316,#22c55e) border-box;
  border:1px solid transparent;
  box-shadow:var(--shadow-strong);
  position:relative;
  animation:float 9s ease-in-out infinite;
}

.hero-side img{
  width:100%;
  display:block;
}

@keyframes float{
  0%,100%{transform:translateY(0);}
  50%{transform:translateY(-8px);}
}

/* DROPDOWN DE DOCUMENTOS */
.docs-dropdown{
  position:relative;
}

.docs-menu{
  position:absolute;
  top:100%;
  left:0;
  margin-top:.4rem;
  background:#020617;
  border-radius:12px;
  border:1px solid rgba(148,163,184,.4);
  min-width:240px;
  padding:.4rem 0;
  box-shadow:0 18px 40px rgba(0,0,0,.8);
  display:none;
  z-index:40;
}

.docs-menu.open{
  display:block;
}

.docs-menu a{
  display:block;
  padding:.45rem .9rem;
  font-size:.85rem;
  text-decoration:none;
  color:var(--muted);
}

.docs-menu a:hover{
  background:rgba(15,23,42,.95);
  color:var(--brand-soft);
}

/* =========================================================
   TIPOGRAFIA / LISTAS / PILLS
   ========================================================= */
h2{
  font-size:2rem;
  margin:0 0 .8rem;
  text-align:left;
}

h3{
  font-size:1.25rem;
  margin:.2rem 0 .7rem;
  text-align:left;
}

p{
  line-height:1.7;
  margin:.45rem 0 1rem;
  text-align:justify;
}

.list{
  padding-left:1.2rem;
  margin:.2rem 0 0;
  color:var(--muted);
  text-align:left;
}

.list li + li{
  margin-top:.35rem;
}

.list.small{
  font-size:.87rem;
}

.pill-list{
  display:flex;
  flex-wrap:wrap;
  gap:.6rem;
  margin-top:1.1rem;
}

.pill{
  padding:.35rem .85rem;
  border-radius:999px;
  font-size:.78rem;
  border:1px solid rgba(148,163,184,.55);
  color:var(--muted);
  background:rgba(15,23,42,.9);
  backdrop-filter:blur(10px);
}

/* =========================================================
   CARTÕES / IMAGENS / STATS
   ========================================================= */
.image-card{
  margin:0;
  border-radius:var(--radius-lg);
  overflow:hidden;
  background:
    radial-gradient(circle at 0 0,rgba(248,250,252,.03),transparent 55%),
    #020617;
  border:1px solid rgba(30,64,175,.9);
  box-shadow:var(--shadow-soft);
}

.image-card img{
  width:100%;
  display:block;
}

.image-card figcaption{
  padding:.95rem 1.1rem;
  font-size:.8rem;
  color:var(--muted);
  text-align:justify;
}

.stats-row{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
  gap:1.5rem;
  margin-top:3.1rem;
}

.stat-card{
  background:
    linear-gradient(135deg,rgba(15,23,42,1),rgba(15,23,42,.96)) padding-box,
    linear-gradient(135deg,rgba(248,113,22,.8),rgba(56,189,248,.7)) border-box;
  border-radius:var(--radius-md);
  border:1px solid transparent;
  padding:1.1rem 1.3rem;
  box-shadow:var(--shadow-soft);
  text-align:center;
}

.stat-label{
  font-size:.78rem;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.16em;
  text-align:center;
}

.stat-value{
  display:block;
  font-size:1.1rem;
  margin:.25rem 0;
  font-weight:700;
  text-align:center;
}

.stat-note{
  font-size:.8rem;
  color:var(--muted);
  text-align:center;
}

/* GRID DE CARTÕES (Loja, Eventos, Notícias) */
.cards-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:1.6rem;
  margin-top:2.1rem;
}

.card{
  position:relative;
  background:
    radial-gradient(circle at 0 0,rgba(248,250,252,.03),transparent 60%) padding-box,
    linear-gradient(135deg,rgba(15,23,42,1),rgba(15,23,42,.98)) border-box;
  border-radius:var(--radius-md);
  border:1px solid rgba(30,64,175,.9);
  padding:1.35rem 1.4rem 1.6rem;
  box-shadow:var(--shadow-soft);
}

/* linha fina no topo do cartão */
.card::before{
  content:"";
  position:absolute;
  left:1.4rem;
  right:3.5rem;
  top:.9rem;
  height:3px;
  border-radius:999px;
  background:linear-gradient(90deg,#f97316,#22c55e);
  opacity:.9;
}

/* preços em destaque na loja */
#loja .card p strong{
  color:var(--brand-soft);
}


/* =========================================================
   EVENTOS
   ========================================================= */
.event-header{
  display:flex;
  align-items:center;
  gap:1rem;
  margin-bottom:.6rem;
}

.event-date{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  width:48px;
  height:48px;
  border-radius:999px;
  background:rgba(15,23,42,.98);
  border:1px solid rgba(248,250,252,.25);
  box-shadow:0 10px 18px rgba(0,0,0,.6);
  text-transform:uppercase;
}

.event-day{
  font-size:.95rem;
  font-weight:800;
  line-height:1;
}

.event-month{
  font-size:.6rem;
  letter-spacing:.14em;
  margin-top:2px;
}

.event-meta{
  font-size:.8rem;
  color:var(--muted);
  text-align:left;
}

/* =========================================================
   NOTÍCIAS
   ========================================================= */
.news h3{
  margin-top:.4rem;
  text-align:left;
}

/* =========================================================
   BLOCO PROCESSO SAP
   ========================================================= */
.process-highlight{
  margin-top:3.1rem;
  display:grid;
  gap:1.9rem;
  align-items:center;
}

.process-highlight img{
  width:100%;
  border-radius:var(--radius-lg);
  border:1px solid rgba(30,64,175,.9);
  box-shadow:var(--shadow-strong);
}

.process-text h3{
  margin-top:0;
  text-align:left;
}

.process-text p{
  color:var(--muted);
  text-align:justify;
}

@media(min-width:900px){
  .process-highlight{
    grid-template-columns:minmax(0,1.2fr) minmax(0,1.1fr);
  }
}

/* =========================================================
   FAQ
   ========================================================= */
#faq .card details {
  text-align:left;
}

#faq .card summary {
  font-weight:bold;
  cursor:pointer;
  margin-bottom:0.5rem;
  text-align:left;
}

#faq .card p {
  text-align:justify;
}

/* =========================================================
   RGPD
   ========================================================= */
#rgpd .card h3 {
  text-align:left;
}

#rgpd .card p {
  text-align:justify;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer{
  background:#020617;
  border-top:1px solid rgba(31,41,55,.9);
  margin-top:1rem;
}

.footer-grid{
  display:grid;
  gap:2.5rem;
  padding:3rem 0 2.2rem;
}

@media(min-width:800px){
  .footer-grid{
    grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);
  }
}

/* blocos de contactos e redes */
.footer-contacts{
  display:flex;
  flex-wrap:wrap;
  gap:1.8rem;
  margin-top:1.8rem;
}

.footer-contact-block{
  flex:1 1 220px;
}

/* formulário */
.cta-form{
  display:grid;
  gap:.95rem;
}

.cta-form label{
  display:grid;
  gap:.25rem;
  font-size:.8rem;
  text-align:left;
}

.cta-form input,
.cta-form select{
  padding:.6rem .75rem;
  border-radius:.7rem;
  border:1px solid rgba(148,163,184,.45);
  background:#020617;
  color:var(--text);
  font-family:inherit;
  font-size:.9rem;
}

.cta-form input:focus-visible,
.cta-form select:focus-visible{
  outline:2px solid var(--brand);
  outline-offset:1px;
}

/* ícones sociais em círculos finos */
.social-links{
  display:flex;
  align-items:center;
  gap:.7rem;
  margin-top:.6rem;
}

.social-link{
  width:42px;
  height:42px;
  border-radius:50%;
  border:1px solid rgba(148,163,184,.6);
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--muted);
  text-decoration:none;
  font-size:1.1rem;
  transition:background .15s ease,
             color .15s ease,
             transform .1s ease,
             border-color .15s ease;
}

.social-link:hover,
.social-link:focus-visible{
  border-color:var(--brand);
  color:var(--brand-soft);
  background:rgba(15,23,42,.95);
  transform:translateY(-1px);
}

/* bottom */
.footer-bottom{
  border-top:1px solid rgba(31,41,55,.9);
  background:#020617;
  padding:1rem 0;
  font-size:.78rem;
  color:var(--muted);
}

.footer-bottom-inner{
  display:flex;
  flex-direction:column;
  gap:.3rem;
  text-align:center;
}

@media(min-width:800px){
  .footer-bottom-inner{
    flex-direction:row;
    justify-content:space-between;
    align-items:center;
  }
}
/* QR CODE CONTAINER */
.qr-container {
    background: linear-gradient(120deg, #77b3f0 0%, #e9ecef 100%);
    padding: 1.5rem 0;
    border-bottom: 2px solid #2ecc71;
}

.qr-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.qr-text h3 {
    color: #05060a;
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.qr-text p {
    color: #5d6d81;
    font-size: 1.20rem;
    max-width: 500px;
}

.qr-image img {
    width: 160px;
    height: 160px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* RESPONSIVIDADE PARA QR CODE */
@media (max-width: 768px) {
    .qr-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .qr-text p {
        max-width: 100%;
    }
    
    .qr-image img {
        width: 100px;
        height: 100px;
    }
}
/* Estilo para o vídeo - mantém exatamente o mesmo estilo da imagem */
.hero-side video.hero-video {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    display: block;
    object-fit: cover;
    max-height: 500px; /* Ajuste conforme necessário */
}

/* Mantém o estilo do figure como estava */
.hero-side {
    flex: 0 0 45%;
    margin: 0;
    padding: 0;
}

/* Adicione ao seu estilo.css */
.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-link:hover {
    text-decoration: none;
}

.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Botão de Tema */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: #2ecc71;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, background 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
    background: #27ae60;
}

/* Estilos para tema claro no index.html */
[data-theme="light"] {
    background-color: #ffffff;
    color: #333333;
}

[data-theme="light"] .topbar {
    background-color: #f8f9fa;
    border-bottom: 1px solid #eaeaea;
}

[data-theme="light"] .card {
    background-color: #ffffff;
    border: 1px solid #eaeaea;
}

[data-theme="light"] .section-alt {
    background-color: #f8f9fa;
}

[data-theme="light"] .btn-outline {
    border-color: #2ecc71;
    color: #2ecc71;
}

[data-theme="light"] .btn-outline:hover {
    background-color: #2ecc71;
    color: white;
}
.image-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
}

.thumbnail {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
}
