/* ============================================================
   FACING GROUP — Design System Premium
   Paleta baseada nas cores reais do logótipo
   ============================================================ */

/* --- Google Fonts import (General Sans via Nunito + Inter) --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Nunito:wght@600;700;800;900&display=swap');

/* ============================================================
   TOKENS DE DESIGN
   ============================================================ */
:root {
  /* Cores da Marca (extraídas do logótipo) */
  --color-brand:        #37c9af;   /* Verde-água / teal — cor primária da marca */
  --color-brand-dark:   #28a891;   /* Hover / variante escura */
  --color-brand-light:  #e6f9f6;   /* Superfícies / backgrounds suaves */
  --color-dark:         #172928;   /* Verde muito escuro — textos e hero */
  --color-dark-700:     #1f3735;   /* Variante ligeiramente mais clara */
  --color-blue-light:   #97ccf7;   /* Azul claro — acento secundário */

  /* Neutros */
  --color-bg:           #ffffff;
  --color-surface:      #f5f7f6;
  --color-surface-2:    #eef4f3;
  --color-text:         #172928;
  --color-text-muted:   #4a6360;
  --color-border:       #d8e6e4;
  --color-border-light: #edf2f1;

  /* Tipografia */
  --font-display: 'Nunito', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Escala tipográfica modular (~1.25) */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.563rem;
  --text-3xl:  1.953rem;
  --text-4xl:  2.441rem;
  --text-5xl:  3.052rem;

  --leading-body:  1.65;
  --leading-tight: 1.15;
  --leading-snug:  1.3;

  /* Espaçamento (escala 4/8px) */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  /* Layout */
  --container:    1200px;
  --container-sm: 820px;
  --radius:       10px;
  --radius-lg:    18px;
  --radius-xl:    28px;

  /* Sombras em camadas (premium, suaves) */
  --shadow-xs: 0 1px 2px rgba(23,41,40,.05);
  --shadow-sm: 0 2px 6px rgba(23,41,40,.07);
  --shadow-md: 0 4px 16px rgba(23,41,40,.09), 0 1px 4px rgba(23,41,40,.06);
  --shadow-lg: 0 12px 36px rgba(23,41,40,.13), 0 2px 8px rgba(23,41,40,.07);

  /* Movimento */
  --ease: cubic-bezier(.22,.61,.36,1);
  --dur:  220ms;
  --dur-fast: 140ms;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   TIPOGRAFIA
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: var(--leading-tight);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-dark);
}

h1 { font-size: clamp(2.2rem, 5vw, var(--text-5xl)); }
h2 { font-size: clamp(1.6rem, 3.5vw, var(--text-4xl)); margin-bottom: var(--sp-4); }
h3 { font-size: clamp(1.2rem, 2.5vw, var(--text-2xl)); font-weight: 700; }
h4 { font-size: var(--text-xl); font-weight: 700; }

p {
  color: var(--color-text-muted);
  max-width: 68ch;
  line-height: var(--leading-body);
}

a {
  color: var(--color-brand-dark);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}
a:hover { color: var(--color-brand); }

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

ul, ol { list-style: none; }

address { font-style: normal; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

.container--sm {
  max-width: var(--container-sm);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

section { padding-block: clamp(var(--sp-16), 8vw, var(--sp-24)); }

.section--alt { background: var(--color-surface); }
.section--dark { background: var(--color-dark); color: #fff; }
.section--brand { background: var(--color-brand-light); }

/* Grid utilitário */
.grid { display: grid; gap: var(--sp-6); }
@media (min-width: 640px)  { .grid--2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px)  { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.flex-center { display: flex; align-items: center; justify-content: center; }
.text-center { text-align: center; }
.text-center p { margin-inline: auto; }

/* ============================================================
   COMPONENTES
   ============================================================ */

/* --- Eyebrow (rótulo acima do título) --- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-brand-dark);
  background: var(--color-brand-light);
  padding: var(--sp-1) var(--sp-3);
  border-radius: 100px;
  margin-bottom: var(--sp-4);
}

/* --- Botões --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 48px;
  padding: .75rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--dur) var(--ease),
              background var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-brand);
  color: var(--color-dark);
  border-color: var(--color-brand);
}
.btn--primary:hover {
  background: var(--color-brand-dark);
  border-color: var(--color-brand-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--dark {
  background: var(--color-dark);
  color: #fff;
  border-color: var(--color-dark);
}
.btn--dark:hover {
  background: var(--color-dark-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--color-dark);
  border-color: var(--color-border);
}
.btn--outline:hover {
  border-color: var(--color-brand);
  color: var(--color-brand-dark);
  transform: translateY(-2px);
}

.btn--outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.4);
}
.btn--outline-white:hover {
  border-color: #fff;
  background: rgba(255,255,255,.1);
}

.btn:focus-visible {
  outline: 3px solid var(--color-brand);
  outline-offset: 3px;
}

/* --- Cards --- */
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card--dark {
  background: var(--color-dark-700);
  border-color: rgba(255,255,255,.08);
  color: #fff;
}
.card--dark h3, .card--dark p { color: rgba(255,255,255,.9); }

/* --- Ícone de serviço --- */
.service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--color-brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-4);
  flex-shrink: 0;
}
.service-icon svg { width: 26px; height: 26px; color: var(--color-brand-dark); }

/* --- Stat / número de destaque --- */
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, var(--text-5xl));
  font-weight: 900;
  color: var(--color-brand);
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--sp-1);
}

/* --- Breadcrumb --- */
.breadcrumb {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding-block: var(--sp-4) 0;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-brand-dark); }
.breadcrumb span[aria-current] { color: var(--color-text); font-weight: 500; }

/* --- FAQ accordion --- */
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-item:first-child { border-top: 1px solid var(--color-border); }

.faq-item summary {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  cursor: pointer;
  padding-block: var(--sp-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  list-style: none;
  color: var(--color-dark);
  transition: color var(--dur-fast) var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--color-brand);
  flex-shrink: 0;
  transition: transform var(--dur) var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--color-brand-dark); }

.faq-answer {
  padding-bottom: var(--sp-5);
  color: var(--color-text-muted);
  max-width: 72ch;
  line-height: var(--leading-body);
}

/* --- Process steps --- */
.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-brand);
  color: var(--color-dark);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: var(--sp-4);
}

/* --- Tag / badge --- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: .25rem .65rem;
  border-radius: 100px;
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

/* --- Divisor decorativo --- */
.divider {
  width: 48px;
  height: 4px;
  background: var(--color-brand);
  border-radius: 2px;
  margin-block: var(--sp-4);
}

/* ============================================================
   NAVEGAÇÃO
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--color-bg) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-xs);
}

.navbar-inner {
	  max-width: 1600px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--sp-4);
  gap: var(--sp-4);
}

.navbar-logo,
.navbar-cta {
  flex-shrink: 0;
}

.navbar-logo img { height: 80px !important; width: auto !important; }

.navbar-links {
  display: none;
  align-items: center;
  gap: var(--sp-6);
}
@media (min-width: 1200px) { .navbar-links { display: flex; } }

.navbar-links a {
  font-size: var(--text-lg) !important;
  font-weight: 600;
  color: var(--color-text-muted);
  padding-block: var(--sp-2);
  border-bottom: 2px solid transparent;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.navbar-links a:hover,
.navbar-links a[aria-current="page"] {
  color: var(--color-dark);
  border-bottom-color: var(--color-brand);
}

.navbar-cta { display: none; }
@media (min-width: 1200px) { .navbar-cta { display: inline-flex; } }

/* Menu mobile */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--sp-2);
  border-radius: var(--radius);
}
@media (min-width: 1200px) { .menu-toggle { display: none; } }

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-dark);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: var(--sp-1);
  padding: var(--sp-4) var(--sp-6) var(--sp-6);
  border-top: 1px solid var(--color-border-light);
  background: var(--color-bg);
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  padding-block: var(--sp-3);
  border-bottom: 1px solid var(--color-border-light);
}
.mobile-menu .btn { margin-top: var(--sp-4); align-self: flex-start; }

@media (max-width: 639px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
  }
  
  .footer-links a {
    color: rgba(255,255,255,.6) !important;
  }
  
  .navbar-logo img {
    height: 60px !important;
    width: auto !important;
    max-height: none !important;
  }
}
/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-700) 60%, #1f4a47 100%);
  color: #fff;
  padding-block: clamp(var(--sp-20), 10vw, var(--sp-32));
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 80% 50%, rgba(55,201,175,.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; max-width: 720px; }

.hero h1 { color: #fff; margin-bottom: var(--sp-6); }
.hero .lead {
  font-size: clamp(1.05rem, 2.2vw, var(--text-xl));
  color: rgba(255,255,255,.8);
  margin-bottom: var(--sp-8);
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

/* Ajuste específico da página Gestão de POS: evita cortar tanto o vídeo de fundo (mantém a proporção original do ficheiro de vídeo) */
.hero-pos {
	  aspect-ratio: 864 / 496;
	  min-height: 400px;
}

#hero-pos-h1 span {
  display: block;
}
/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-dark);
  color: rgba(255,255,255,.75);
  padding-block: var(--sp-16) var(--sp-8);
}

.footer-grid {
  display: grid;
  gap: var(--sp-10);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer-brand p {
  color: rgba(255,255,255,.6);
  font-size: var(--text-sm);
  margin-top: var(--sp-4);
  max-width: 32ch;
}

.footer h4 {
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.footer-links a {
  color: rgba(255,255,255,.6);
  font-size: var(--text-sm);
  transition: color var(--dur-fast) var(--ease);
}
.footer-links a:hover { color: var(--color-brand); }

.footer-contact address {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  color: rgba(255,255,255,.6);
}
.footer-contact a { color: rgba(255,255,255,.6); }
.footer-contact a:hover { color: var(--color-brand); }

.footer-bottom {
  margin-top: var(--sp-12);
  padding-top: var(--sp-6);
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: rgba(255,255,255,.4);
}
.footer-bottom a { color: rgba(255,255,255,.4); }
.footer-bottom a:hover { color: var(--color-brand); }

/* ============================================================
   ACESSIBILIDADE
   ============================================================ */
.skip-link {
  position: absolute;
  left: -999px;
  top: var(--sp-4);
  z-index: 9999;
  background: var(--color-brand);
  color: var(--color-dark);
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { left: var(--sp-4); }

:focus-visible {
  outline: 3px solid var(--color-brand);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   UTILITÁRIOS
   ============================================================ */
.mt-2  { margin-top: var(--sp-2); }
.mt-4  { margin-top: var(--sp-4); }
.mt-6  { margin-top: var(--sp-6); }
.mt-8  { margin-top: var(--sp-8); }
.mt-12 { margin-top: var(--sp-12); }
.mb-4  { margin-bottom: var(--sp-4); }
.mb-8  { margin-bottom: var(--sp-8); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
.navbar-logo img,
.navbar-logo img[src] {
  height: 80px !important;
  width: auto !important;
  max-height: none !important;
}

/* =====================================================
   BLOG - Blocos de imagem intercalados (facing-module backoffice)
   ===================================================== */
.facing-img-169 {
	    max-width: 800px;
	    margin: 24px auto;
}
.facing-img-169-item {
	    width: 100%;
	    aspect-ratio: 16 / 9;
	    object-fit: cover;
	    display: block;
	    border-radius: 8px;
}
.facing-img-row-11 {
	    display: flex;
	    gap: 16px;
	    margin: 24px 0;
	    flex-wrap: wrap;
}
.facing-img-row-11 .facing-img-11-item {
	    flex: 1 1 0;
	    min-width: 120px;
	    aspect-ratio: 1 / 1;
	    object-fit: cover;
	    border-radius: 8px;
}
