/*
Theme Name: SOS Pneus (Versão C)
Theme URI: https://www.daxdro.com/presenca-digital
Author: Daxdro - Presença Digital
Author URI: https://www.daxdro.com/presenca-digital
Description: Versão C — Landing page WordPress com blocos Gutenberg nativos editáveis pelo cliente. Cada secção é um bloco arrastável com campos visuais. Suporte completo a mobile-first, RGPD, e integração com plugins (Polylang, Spectra, Elementor).
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sos-pneus
Tags: landing-page, mobile-first, seo, conversao
*/

/* =========================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ========================================= */
:root {
  /* Cores */
  --color-primary:     #E63329;   /* Vermelho urgência */
  --color-primary-dk:  #B8221A;   /* Vermelho escuro hover */
  --color-secondary:   #1A1A2E;   /* Azul muito escuro / quase preto */
  --color-accent:      #F5A623;   /* Âmbar / amarelo alerta */
  --color-white:       #FFFFFF;
  --color-light:       #F7F7F7;
  --color-gray:        #6B7280;
  --color-gray-light:  #E5E7EB;
  --color-text:        #1F2937;
  --color-whatsapp:    #25D366;
  --color-whatsapp-dk: #1DA851;

  /* Tipografia */
  --font-heading: 'Barlow Condensed', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* Espaçamentos */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;

  /* Raios */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 999px;

  /* Sombras */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.15);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.20);
  --shadow-cta: 0 6px 24px rgba(230,51,41,.40);
  --shadow-wa:  0 6px 24px rgba(37,211,102,.40);

  /* Transições */
  --transition: all 0.22s ease;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* =========================================
   TIPOGRAFIA
   ========================================= */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4rem);  }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }

p  { font-size: 1rem; line-height: 1.7; color: var(--color-gray); }

/* =========================================
   UTILITÁRIOS
   ========================================= */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section-padding {
  padding: var(--space-xl) 0;
}

.text-center { text-align: center; }
.text-white  { color: var(--color-white) !important; }
.text-white p { color: rgba(255,255,255,.80) !important; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(245,166,35,.15);
  color: var(--color-accent);
  border: 1px solid rgba(245,166,35,.30);
  border-radius: var(--radius-full);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  margin-bottom: var(--space-sm);
}

/* =========================================
   BOTÕES
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-full);
  padding: .85rem 2rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  min-height: 52px;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-cta);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-primary-dk);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(230,51,41,.50);
}

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: var(--color-white);
  box-shadow: var(--shadow-wa);
}
.btn-whatsapp:hover, .btn-whatsapp:focus {
  background: var(--color-whatsapp-dk);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37,211,102,.50);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,.50);
}
.btn-outline:hover {
  background: rgba(255,255,255,.10);
  border-color: var(--color-white);
}

.btn-lg {
  font-size: 1.1rem;
  padding: 1rem 2.4rem;
  min-height: 58px;
}

.btn-full { width: 100%; }

.btn svg, .btn img { width: 20px; height: 20px; flex-shrink: 0; }

/* =========================================
   HEADER / NAV
   ========================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-secondary);
  box-shadow: 0 2px 12px rgba(0,0,0,.30);
  padding: .75rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Logo placeholder */
.site-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  width: 52px;
  height: 52px;
  min-width: 52px;
  background: var(--color-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: white;
  letter-spacing: -.02em;
  /* Área reservada — substituir pela logomarca do cliente */
  overflow: hidden;
  position: relative;
}

.logo-mark .logo-placeholder-text {
  font-size: .55rem;
  text-align: center;
  line-height: 1.2;
  opacity: .9;
}

.logo-text {
  display: flex;
  flex-direction: column;
}
.logo-text strong {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -.01em;
  line-height: 1;
}
.logo-text span {
  font-size: .7rem;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* Layout do header:
   Desktop: [LOGO] ......... [Botões] [Menu idiomas]
   Mobile:  [LOGO] ......... [Botões] [≡]
   margin-left:auto no .header-cta empurra tudo para a direita do logo. */
.header-cta {
  display: flex;
  gap: .5rem;
  flex-shrink: 0;
  margin-left: auto;
}

.header-btn {
  padding: .55rem 1rem;
  font-size: .875rem;
  min-height: 40px;
  gap: .4rem;
  white-space: nowrap;
}

/* Desktop — texto completo nos botões */
.btn-text-full  { display: inline; }
.btn-text-short { display: none; }

/* =========================================
   HERO
   ========================================= */
.hero {
  background: var(--color-secondary);
  background-image:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(230,51,41,.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 10% 80%, rgba(245,166,35,.08) 0%, transparent 50%);
  padding: var(--space-xl) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content { }

.hero h1 {
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.hero h1 span {
  color: var(--color-primary);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,.70);
  margin-bottom: var(--space-md);
  font-weight: 400;
}

.hero-info {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: var(--space-lg);
}

.hero-info-item {
  display: flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-full);
  padding: .35rem .9rem;
  font-size: .85rem;
  color: rgba(255,255,255,.85);
}

.hero-info-item svg { width: 14px; height: 14px; color: var(--color-accent); flex-shrink:0; }

.hero-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

/* Visual lado direito */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  backdrop-filter: blur(10px);
  width: 100%;
  max-width: 340px;
}

.hero-card-icon {
  width: 80px;
  height: 80px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-sm);
  box-shadow: 0 0 0 12px rgba(230,51,41,.15);
}
.hero-card-icon svg { width: 40px; height: 40px; color: white; }

.hero-card h3 { color: var(--color-white); margin-bottom: .5rem; font-size: 1.3rem; }
.hero-card p  { color: rgba(255,255,255,.65); font-size: .9rem; }

.hero-card-hours {
  background: rgba(245,166,35,.15);
  border: 1px solid rgba(245,166,35,.30);
  border-radius: var(--radius-md);
  padding: .75rem 1rem;
  margin-top: var(--space-sm);
  font-size: .85rem;
  color: var(--color-accent);
  font-weight: 600;
}

/* =========================================
   BARRA DE CONFIANÇA
   ========================================= */
.trust-bar {
  background: var(--color-primary);
  padding: .85rem 0;
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: .4rem;
  color: var(--color-white);
  font-size: .875rem;
  font-weight: 600;
}

.trust-item svg { width: 16px; height: 16px; flex-shrink: 0; }

/* =========================================
   SERVIÇOS
   ========================================= */
.services {
  background: var(--color-light);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-header h2 { color: var(--color-secondary); margin-bottom: .5rem; }
.section-header p  { max-width: 520px; margin: 0 auto; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-sm);
}

.service-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  border: 1px solid var(--color-gray-light);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.service-card:hover::after { transform: scaleX(1); }

.service-icon {
  width: 64px;
  height: 64px;
  background: rgba(230,51,41,.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-sm);
  transition: var(--transition);
}
.service-card:hover .service-icon { background: rgba(230,51,41,.15); }
.service-icon svg { width: 30px; height: 30px; color: var(--color-primary); }

.service-card h3 { color: var(--color-secondary); margin-bottom: .4rem; font-size: 1.1rem; }
.service-card p  { font-size: .875rem; }

/* =========================================
   COMO FUNCIONA
   ========================================= */
.how-it-works {
  background: var(--color-white);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-sm);
  position: relative;
}

.step-card {
  text-align: center;
  padding: var(--space-md);
}

.step-number {
  width: 52px;
  height: 52px;
  background: var(--color-secondary);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 auto var(--space-sm);
}

.step-card h3 { color: var(--color-secondary); margin-bottom: .4rem; }
.step-card p  { font-size: .875rem; }

/* =========================================
   CTA CENTRAL
   ========================================= */
.cta-section {
  background: var(--color-secondary);
  background-image: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(230,51,41,.20) 0%, transparent 70%);
  text-align: center;
}

.cta-section h2 { color: var(--color-white); margin-bottom: var(--space-sm); }
.cta-section p  { color: rgba(255,255,255,.70); margin-bottom: var(--space-lg); max-width: 500px; margin-left: auto; margin-right: auto; }

.cta-actions {
  display: flex;
  gap: .75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================================
   MAPA / LOCALIZAÇÃO
   ========================================= */
.location-section {
  background: var(--color-light);
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.location-info h2 { color: var(--color-secondary); margin-bottom: var(--space-sm); }

.location-details {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin: var(--space-md) 0;
}

.location-detail-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}

.location-detail-item .detail-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: rgba(230,51,41,.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.location-detail-item .detail-icon svg { width: 18px; height: 18px; color: var(--color-primary); }

.location-detail-item .detail-text strong {
  display: block;
  font-size: .875rem;
  font-weight: 700;
  color: var(--color-secondary);
}
.location-detail-item .detail-text span {
  font-size: .875rem;
  color: var(--color-gray);
}

.map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 3px solid var(--color-white);
}

.map-container iframe {
  width: 100%;
  height: 380px;
  display: block;
  border: none;
}

/* =========================================
   PORQUÊ ESCOLHER-NOS
   ========================================= */
.why-us {
  background: var(--color-white);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-sm);
}

.why-card {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-gray-light);
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.why-icon {
  width: 44px;
  height: 44px;
  background: rgba(245,166,35,.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-icon svg { width: 22px; height: 22px; color: var(--color-accent); }
.why-card h3 { color: var(--color-secondary); font-size: 1rem; }
.why-card p  { font-size: .875rem; }

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  background: var(--color-secondary);
  padding: var(--space-lg) 0 var(--space-sm);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(255,255,255,.10);
  margin-bottom: var(--space-md);
}

.footer-brand .logo-mark { margin-bottom: .75rem; }
.footer-brand p { font-size: .875rem; color: rgba(255,255,255,.55); margin-top: .5rem; max-width: 220px; }

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-white);
  margin-bottom: .75rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.footer-col ul li {
  margin-bottom: .4rem;
}

.footer-col ul li a {
  font-size: .875rem;
  color: rgba(255,255,255,.55);
  transition: color .2s;
}
.footer-col ul li a:hover { color: var(--color-white); }

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  color: rgba(255,255,255,.55);
  margin-bottom: .5rem;
}
.footer-contact-item svg { width: 14px; height: 14px; color: var(--color-accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}

.footer-bottom p {
  font-size: .78rem;
  color: rgba(255,255,255,.35);
}

.footer-legal a {
  font-size: .78rem;
  color: rgba(255,255,255,.40);
  margin-left: var(--space-sm);
  transition: color .2s;
}
.footer-legal a:hover { color: rgba(255,255,255,.80); }

/* Menu rodapé gerado pelo wp_nav_menu() — itens lado a lado */
.footer-legal ul,
.footer-legal .footer-legal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}
.footer-legal ul li,
.footer-legal .footer-legal-list li { display: inline-flex; }

/* =========================================
   FLOATING CTA (MOBILE)
   ========================================= */
.floating-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--color-white);
  box-shadow: 0 -4px 20px rgba(0,0,0,.18);
  padding: .75rem var(--space-sm);
  gap: .5rem;
}

.floating-cta .btn {
  flex: 1;
  font-size: .9rem;
  padding: .85rem 1rem;
}

/* =========================================
   BANNER DE COOKIES (RGPD)
   ========================================= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--color-secondary);
  border-top: 3px solid var(--color-primary);
  padding: var(--space-md);
  box-shadow: 0 -4px 30px rgba(0,0,0,.25);
  transform: translateY(100%);
  transition: transform .4s ease;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.cookie-banner-text { flex: 1; min-width: 260px; }
.cookie-banner-text p { font-size: .875rem; color: rgba(255,255,255,.80); margin: 0; }
.cookie-banner-text a { color: var(--color-accent); text-decoration: underline; }

.cookie-banner-actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.cookie-banner-actions .btn {
  padding: .6rem 1.4rem;
  font-size: .875rem;
  min-height: 40px;
}

.btn-cookie-accept {
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.btn-cookie-reject {
  background: transparent;
  color: rgba(255,255,255,.70);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius-full);
  font-weight: 600;
}


/* =========================================
   SEO TEXT (visível mas secundário)
   ========================================= */
.seo-section {
  background: var(--color-light);
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--color-gray-light);
}
.seo-section p {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  font-size: .875rem;
  color: var(--color-gray);
}


/* =========================================
   HEADER — MENU DE NAVEGAÇÃO / IDIOMAS (DESKTOP)
   Posicionado à direita, depois dos botões.
   ========================================= */
.header-nav {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: .5rem;
}

.header-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: .25rem;
}

.header-menu li { position: relative; }

.header-menu a {
  display: block;
  padding: .5rem .75rem;
  font-size: .875rem;
  font-weight: 600;
  color: rgba(255,255,255,.80);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
  white-space: nowrap;
}

.header-menu a:hover,
.header-menu .current-menu-item > a,
.header-menu .current_page_item > a {
  color: #FFFFFF;
  background: rgba(255,255,255,.10);
}

/* Sub-menus dropdown (nível 2) */
.header-menu .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 180px;
  list-style: none;
  margin: 0;
  padding: .4rem 0;
  background: #1A1A2E;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0,0,0,.30);
  z-index: 200;
}

.header-menu li:hover > .sub-menu,
.header-menu li:focus-within > .sub-menu { display: block; }

.header-menu .sub-menu a {
  padding: .45rem 1rem;
  font-size: .825rem;
  border-radius: 0;
}

/* Polylang / WPML — seletor de idiomas */
.header-menu .lang-item a,
.header-menu .pll-parent-menu-item a {
  display: flex;
  align-items: center;
  gap: .35rem;
}
.header-menu .lang-item img,
.header-menu .pll-parent-menu-item img {
  width: 16px;
  height: 12px;
  border-radius: 2px;
  vertical-align: middle;
}

/* Desktop — ocultar botão sanduíche */
/* Hamburger — só aparece em mobile */
.header-hamburger { display: none; }

/* =========================================
   HEADER — BOTÃO SANDUÍCHE (HAMBURGER)
   Aparece apenas em mobile, ANTES dos botões.
   ========================================= */
.header-hamburger {
  background: transparent;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: .45rem .5rem;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  transition: background .2s, border-color .2s;
}

.header-hamburger:hover {
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.50);
}

.header-hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: #FFFFFF;
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
  transform-origin: center;
}

/* Estado aberto — animar para X */
.header-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.header-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.header-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* =========================================
   HEADER — MENU MOBILE (dropdown)
   ========================================= */
.mobile-menu {
  display: none; /* controlado por JS */
  background: #1A1A2E;
  border-top: 1px solid rgba(255,255,255,.10);
  padding: .5rem 0;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 999;
  box-shadow: 0 8px 24px rgba(0,0,0,.30);
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu-list {
  list-style: none;
  margin: 0;
  padding: .25rem 0;
}

.mobile-menu-list li { position: relative; }

.mobile-menu-list a {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  font-size: .9rem;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  transition: background .15s, color .15s;
}

.mobile-menu-list a:hover,
.mobile-menu-list .current-menu-item > a {
  background: rgba(255,255,255,.08);
  color: #FFFFFF;
}

/* Sub-menu mobile */
.mobile-menu-list .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  background: rgba(0,0,0,.20);
}

.mobile-menu-list .sub-menu a {
  padding: .6rem 1.5rem .6rem 2.5rem;
  font-size: .85rem;
  font-weight: 500;
}

/* Polylang / WPML — bandeiras no menu mobile */
.mobile-menu-list .lang-item a,
.mobile-menu-list .pll-parent-menu-item a {
  gap: .5rem;
}
.mobile-menu-list .lang-item img,
.mobile-menu-list .pll-parent-menu-item img {
  width: 18px;
  height: 13px;
  border-radius: 2px;
}

/* ── Mobile — ocultar nav desktop, mostrar hamburger ── */
@media (max-width: 900px) {
  .header-nav       { display: none; }
  .header-hamburger { display: flex; }
  /* Em mobile: [Botões] ficam com margin-left:auto do .header-cta
     e o sanduíche encosta-se a seguir */
  .logo-text strong { font-size: 1.1rem; }
  .logo-tagline     { display: none; }
}

/* =========================================
   GRELHAS DE COLUNAS — classes para JS blocks
   Usam --cols-N mas colapsam em mobile via media queries
   ========================================= */

/* Serviços */
.services-grid { grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); }
.services-grid--cols-1 { grid-template-columns: 1fr; }
.services-grid--cols-2 { grid-template-columns: repeat(2,1fr); }
.services-grid--cols-3 { grid-template-columns: repeat(3,1fr); }
.services-grid--cols-4 { grid-template-columns: repeat(4,1fr); }

/* Passos */
.steps-grid { grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); }
.steps-grid--cols-2 { grid-template-columns: repeat(2,1fr); }
.steps-grid--cols-3 { grid-template-columns: repeat(3,1fr); }
.steps-grid--cols-4 { grid-template-columns: repeat(4,1fr); }
.steps-grid--cols-5 { grid-template-columns: repeat(5,1fr); }
.steps-grid--cols-6 { grid-template-columns: repeat(6,1fr); }

/* Porquê Nós */
.why-grid { grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); }
.why-grid--cols-1 { grid-template-columns: 1fr; }
.why-grid--cols-2 { grid-template-columns: repeat(2,1fr); }
.why-grid--cols-3 { grid-template-columns: repeat(3,1fr); }
.why-grid--cols-4 { grid-template-columns: repeat(4,1fr); }

/* =========================================
   RESPONSIVO — TABLET (≤900px)
   ========================================= */
@media (max-width: 900px) {
  /* Hero */
  .hero-inner    { grid-template-columns: 1fr; }
  .hero-visual   { display: none; }

  /* Localização */
  .location-grid { grid-template-columns: 1fr; }

  /* Rodapé */
  .footer-top    { grid-template-columns: 1fr 1fr; }

  /* Grelhas — max 2 colunas em tablet */
  .services-grid,
  .services-grid--cols-3,
  .services-grid--cols-4 { grid-template-columns: repeat(2,1fr); }

  .steps-grid,
  .steps-grid--cols-4,
  .steps-grid--cols-5,
  .steps-grid--cols-6 { grid-template-columns: repeat(3,1fr); }

  .why-grid,
  .why-grid--cols-3,
  .why-grid--cols-4 { grid-template-columns: repeat(2,1fr); }
}

/* =========================================
   RESPONSIVO — MOBILE (≤600px)
   ========================================= */
@media (max-width: 600px) {
  :root { --space-xl: 2.5rem; }

  /* ── Header ── */

  /* Mobile — texto curto nos botões */
  .btn-text-full  { display: none; }
  .btn-text-short { display: inline; }

  .header-btn {
    padding: .5rem .75rem;
    font-size: .8rem;
    min-height: 38px;
    gap: .3rem;
  }
  .logo-mark { width: 40px; height: 40px; min-width: 40px; }

  /* ── Hero ── */
  .hero { padding: 2.5rem 0; }
  .hero h1 { font-size: clamp(2rem, 8vw, 2.8rem); }
  .hero-subtitle { font-size: 1rem; }
  .hero-actions  { flex-direction: column; gap: .6rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-info { gap: .4rem; }
  .hero-info-item { font-size: .8rem; padding: .28rem .7rem; }

  /* ── Trust Bar ── */
  .trust-bar-inner { gap: 1rem; flex-wrap: wrap; justify-content: center; }
  .trust-item span { display: none; } /* só ícone em mobile muito pequeno */

  /* ── Grelhas — 1 coluna em mobile ── */
  .services-grid,
  .services-grid--cols-1,
  .services-grid--cols-2,
  .services-grid--cols-3,
  .services-grid--cols-4 { grid-template-columns: 1fr; }

  .steps-grid,
  .steps-grid--cols-2,
  .steps-grid--cols-3,
  .steps-grid--cols-4,
  .steps-grid--cols-5,
  .steps-grid--cols-6 { grid-template-columns: 1fr; }

  .why-grid,
  .why-grid--cols-1,
  .why-grid--cols-2,
  .why-grid--cols-3,
  .why-grid--cols-4 { grid-template-columns: 1fr; }

  /* ── Service cards em mobile — layout horizontal ── */
  .service-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
    padding: 1.25rem;
  }
  .service-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    margin: 0;
    flex-shrink: 0;
  }
  .service-card h3 { font-size: 1rem; margin-bottom: .2rem; }
  .service-card p  { font-size: .85rem; }

  /* ── Step cards em mobile — layout horizontal ── */
  .step-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
    padding: 1rem;
    background: var(--color-light);
    border-radius: var(--radius-md);
  }
  .step-number {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 1.1rem;
    flex-shrink: 0;
  }
  .step-card h3 { margin-bottom: .2rem; }

  /* ── Why cards em mobile ── */
  .why-card {
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
  }
  .why-icon { flex-shrink: 0; }

  /* ── CTA ── */
  .cta-section { padding: 2.5rem 0; }
  .cta-actions { flex-direction: column; gap: .6rem; }
  .cta-actions .btn { width: 100%; justify-content: center; }

  /* ── Localização ── */
  .location-section { padding: 2.5rem 0; }
  .map-container iframe { height: 260px; }
  .location-details { gap: .6rem; }

  /* ── Rodapé ── */
  .footer-top { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; gap: .5rem; }
  .footer-legal a { margin-left: .5rem; }

  /* ── Floating CTA ── */
  .floating-cta { display: flex; }
  body { padding-bottom: 90px; }
  /* Banner de cookies em mobile — acima do floating CTA */
  .cookie-banner {
    bottom: 0;          /* começa fora do ecrã por baixo */
    padding: 1rem;
  }
  /* Quando visível em mobile, sobe acima do floating CTA */
  .cookie-banner.visible {
    bottom: 0;
    transform: translateY(0);
    /* Empurra o conteúdo acima do floating CTA */
    margin-bottom: 76px;
  }
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: .75rem;
  }
  .cookie-banner-actions {
    justify-content: stretch;
  }
  .cookie-banner-actions .btn,
  .btn-cookie-accept,
  .btn-cookie-reject {
    flex: 1;
    text-align: center;
    padding: .65rem 1rem;
  }

  /* ── Section titles ── */
  .section-header h2 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
}

/* =========================================
   RESPONSIVO — MOBILE PEQUENO (≤400px)
   ========================================= */
@media (max-width: 400px) {
  .trust-bar-inner { gap: .6rem; }
  .hero h1 { font-size: 2rem; }
  .hero-info { display: none; } /* muito apertado em telas <400px */
}

/* =========================================
   ACESSIBILIDADE
   ========================================= */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
