/*
Theme Name: Perfisa Eletrocalhas
Theme URI: https://perfisa.com.br
Author: Perfisa
Author URI: https://perfisa.com.br
Description: Tema corporativo premium para Perfisa — indústria de eletrocalhas e perfilados. Design moderno, responsivo, otimizado para conversão e SEO. Com Custom Post Types para produtos dinâmicos.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: perfisa
Tags: corporate, business, custom-post-types, full-site-editing, responsive-layout
*/

/* ============================================
   PERFISA THEME — MAIN STYLESHEET
   Fontes: Poppins (headings) + Inter (body)
   Paleta: Azul industrial + Cinza + Branco
============================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

/* ─── CSS VARIABLES ─────────────────────────── */
:root {
  /* Cores da marca */
  --color-primary:        #1B3A6B;   /* Azul profundo */
  --color-primary-dark:   #0F2449;
  --color-primary-light:  #2952A3;
  --color-accent:         #2563EB;   /* Azul vibrante */
  --color-accent-hover:   #1D4ED8;

  --color-steel:          #374151;   /* Cinza aço */
  --color-steel-mid:      #6B7280;
  --color-steel-light:    #D1D5DB;
  --color-bg:             #F8FAFC;
  --color-bg-alt:         #EEF2F7;
  --color-white:          #FFFFFF;
  --color-dark:           #0B1829;

  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Spacing */
  --section-py:   100px;
  --container:    1240px;
  --radius:       8px;
  --radius-lg:    16px;
  --shadow-card:  0 4px 24px rgba(27,58,107,0.10);
  --shadow-hover: 0 12px 40px rgba(27,58,107,0.20);

  /* Transitions */
  --ease: cubic-bezier(0.4,0,0.2,1);
}

/* ─── RESET & BASE ───────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }

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

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s var(--ease); }
ul { list-style: none; }

/* ─── TYPOGRAPHY ─────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { font-size: 1rem; line-height: 1.75; color: var(--color-steel-mid); }

/* ─── LAYOUT UTILITIES ───────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section-py { padding: var(--section-py) 0; }
.section-py-sm { padding: 60px 0; }

.text-center { text-align: center; }
.text-white { color: var(--color-white) !important; }
.text-accent { color: var(--color-accent); }
.text-primary { color: var(--color-primary); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

/* ─── SECTION LABELS ─────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-accent);
}

.section-heading { margin-bottom: 16px; }
.section-subtext { font-size: 1.05rem; max-width: 580px; }
.section-subtext.center { margin: 0 auto; }

/* ─── BUTTONS ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,99,235,0.35);
  color: var(--color-white);
}

.btn-outline-white {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--color-white);
  color: var(--color-white);
  transform: translateY(-2px);
}

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

.btn-lg { padding: 17px 36px; font-size: 0.95rem; }
.btn-sm { padding: 10px 20px; font-size: 0.8rem; }

/* ─── HEADER / NAV ──────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s var(--ease);
  padding: 0;
}

.site-header.transparent {
  background: transparent;
}
.site-header.scrolled {
  background: var(--color-primary-dark);
  box-shadow: 0 4px 30px rgba(0,0,0,0.25);
}

.site-header.solid {
  background: var(--color-primary-dark);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

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

/* Logo sizing — força tamanho independente do markup gerado pelo WP */
a.site-logo,
a.site-logo * {
  line-height: 0;
}
a.site-logo img,
a.site-logo figure img,
a.site-logo .custom-logo,
a.site-logo .custom-logo-link img,
.nav-inner a.site-logo img,
.nav-inner img {
  height: 80px !important;
  max-height: 80px !important;
  width: auto !important;
  max-width: 320px !important;
  display: block !important;
  object-fit: contain !important;
}
.logo-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -0.03em;
}
.logo-text span { color: var(--color-accent); }

.primary-nav { display: flex; align-items: center; gap: 4px; }

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.2s;
  letter-spacing: 0.01em;
}
.nav-link:hover, .nav-link.active {
  color: var(--color-white);
  background: rgba(255,255,255,0.1);
}

/* nav-cta margin gerenciado pelo nav-right-group (gap: 12px) */

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 90px;
  left: 0;
  right: 0;
  background: var(--color-primary-dark);
  padding: 24px;
  transform: translateY(-10px);
  opacity: 0;
  transition: all 0.3s;
  z-index: 999;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.mobile-nav.open { display: block; transform: translateY(0); opacity: 1; }
.mobile-nav a {
  display: block;
  color: rgba(255,255,255,0.85);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav .btn { margin-top: 20px; width: 100%; justify-content: center; }

/* ─── HERO ───────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: var(--hero-bg-url, url('assets/images/hero-bg.jpg'));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 0.3s;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(11,24,41,0.88) 0%,
    rgba(15,36,73,0.75) 50%,
    rgba(11,24,41,0.60) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding-top: 140px;
  padding-bottom: 100px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37,99,235,0.2);
  border: 1px solid rgba(37,99,235,0.4);
  color: #93C5FD;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}
.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #60A5FA;
  border-radius: 50%;
}

.hero-title {
  color: var(--color-white);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}
.hero-title em {
  font-style: normal;
  color: #60A5FA;
  display: block;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.80);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 600px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.hero-stat-num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-white);
  line-height: 1;
  display: block;
}
.hero-stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
  display: block;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  font-family: var(--font-heading);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ─── SEGMENTS ───────────────────────────────── */
.segments {
  background: var(--color-bg);
  background-image: radial-gradient(circle, rgba(37,99,235,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
}

.segments-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 56px; }

.segment-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-steel-light);
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.segment-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}
.segment-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(37,99,235,0.2);
}
.segment-card:hover::before { transform: scaleX(1); }

.segment-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(37,99,235,0.08);
  border: 1.5px solid rgba(37,99,235,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--color-accent);
}
.segment-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-accent);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.segment-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 8px;
}
.segment-text {
  font-size: 0.875rem;
  color: var(--color-steel-mid);
  line-height: 1.6;
}

/* ─── PRODUCTS ───────────────────────────────── */
.products { background: var(--color-white); }
.products-alt { background: var(--color-bg); }

.products-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 32px;
  margin-bottom: 48px;
}

.product-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.product-tab {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 100px;
  border: 2px solid var(--color-steel-light);
  color: var(--color-steel-mid);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.01em;
}
.product-tab.active,
.product-tab:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.product-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-steel-light);
  transition: all 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.product-card-thumb {
  aspect-ratio: 16/10;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.product-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.product-card:hover .product-card-thumb img { transform: scale(1.05); }

.product-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #EEF2F7, #E2E8F0);
  font-size: 3rem;
}

.product-card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 4px;
}

.product-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 8px;
}
.product-card-desc {
  font-size: 0.875rem;
  color: var(--color-steel-mid);
  line-height: 1.6;
  flex: 1;
}
.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--color-steel-light);
}
.product-card-code {
  font-size: 0.75rem;
  color: var(--color-steel-mid);
  font-family: var(--font-body);
}
.product-card-link {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}
.product-card-link:hover { gap: 8px; }

.products-cta-wrap { text-align: center; margin-top: 48px; }

/* ─── DIFFERENTIALS ──────────────────────────── */
.differentials {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  position: relative;
  overflow: hidden;
}
.differentials::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 56px;
}

.diff-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.diff-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}
.diff-icon svg {
  width: 24px !important;
  height: 24px !important;
  stroke: #ffffff !important;
  fill: none !important;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}
.diff-icon svg *:not([fill="currentColor"]) {
  stroke: #ffffff !important;
}
.diff-title {
  color: var(--color-white);
  font-size: 1rem;
  font-weight: 700;
}
.diff-text {
  color: rgba(255,255,255,0.65);
  font-size: 0.875rem;
  line-height: 1.65;
}

/* ─── SOCIAL PROOF ───────────────────────────── */
.social-proof { background: var(--color-bg); }

.proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-top: 56px;
}

.proof-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.proof-stat-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-steel-light);
  text-align: center;
}
.proof-stat-num {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--color-primary);
  display: block;
  line-height: 1;
}
.proof-stat-plus { color: var(--color-accent); }
.proof-stat-label {
  font-size: 0.82rem;
  color: var(--color-steel-mid);
  margin-top: 8px;
  display: block;
}


.proof-left-col {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.proof-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--color-steel-light);
}
.proof-video {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #000;
  box-shadow: var(--shadow-card);
}
.proof-video iframe, .proof-video video {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}
.proof-video-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  border-radius: var(--radius-lg);
}

.proof-content h2 { margin-bottom: 20px; }
.proof-content p { margin-bottom: 16px; }

.proof-logos {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--color-steel-light);
}
.proof-logos-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-steel-mid);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-family: var(--font-heading);
}
.proof-logos-row {
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
}
.proof-logo-item {
  height: 28px;
  opacity: 0.4;
  filter: grayscale(1);
  transition: all 0.2s;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--color-steel);
  letter-spacing: -0.02em;
}
.proof-logo-item:hover { opacity: 0.8; filter: grayscale(0); }

/* ─── CTA FINAL ──────────────────────────────── */
.cta-final {
  background: var(--color-dark);
  position: relative;
  overflow: hidden;
}
.cta-final-bg {
  position: absolute;
  inset: 0;
  background-image: var(--cta-bg-url);
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  z-index: 0;
}
.cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37,99,235,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.cta-final-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}
.cta-final-inner h2 { color: var(--color-white); margin-bottom: 16px; }
.cta-final-inner p { color: rgba(255,255,255,0.65); margin-bottom: 40px; font-size: 1.05rem; }
.cta-final-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ─── FOOTER ─────────────────────────────────── */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 72px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand .logo-text { color: var(--color-white); margin-bottom: 16px; display: block; }
.footer-logo-img { height: 36px; width: auto; margin-bottom: 16px; display: block; }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; max-width: 280px; }

.footer-col h4 {
  color: var(--color-white);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  font-family: var(--font-heading);
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--color-white); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.875rem;
}
.footer-contact-icon { font-size: 1rem; margin-top: 1px; flex-shrink: 0; color: #ffffff !important; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: rgba(255,255,255,0.5); }
.footer-bottom-links a:hover { color: var(--color-white); }

/* ─── CATEGORY PAGE ──────────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--color-white);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.page-header-content { position: relative; z-index: 1; }
.page-header h1 { color: var(--color-white); margin-bottom: 16px; }
.page-header p { color: rgba(255,255,255,0.75); font-size: 1.1rem; max-width: 560px; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 20px;
  font-family: var(--font-heading);
}
.breadcrumb a { color: rgba(255,255,255,0.55); }
.breadcrumb a:hover { color: var(--color-white); }
.breadcrumb-sep { font-size: 0.65rem; }

/* Products Archive Filter */
.archive-filter {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-steel-light);
  position: sticky;
  top: 90px;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.archive-filter-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.archive-filter-inner::-webkit-scrollbar { display: none; }

.filter-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-steel-mid);
  white-space: nowrap;
  margin-right: 8px;
  font-family: var(--font-heading);
}

/* Category info block */
.category-info {
  background: var(--color-bg);
  padding: 60px 0;
}
.category-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.category-info-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--color-bg-alt);
}
.category-info-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Single product page */
.product-single { padding: 80px 0; }
.product-single-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.product-gallery {
  position: static;
}
.product-gallery-main {
  aspect-ratio: 1;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid var(--color-steel-light);
}
.product-gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 20px; }
@media (max-width: 768px) {
  .product-gallery-main {
    aspect-ratio: unset;
    height: 280px;
  }
}

.product-info-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(37,99,235,0.08);
  color: var(--color-accent);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
  font-family: var(--font-heading);
}

.product-specs {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 28px 0;
  border: 1px solid var(--color-steel-light);
}
.product-specs h4 { margin-bottom: 16px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-steel-mid); font-family: var(--font-heading); }
.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-steel-light);
  font-size: 0.875rem;
}
.spec-row:last-child { border-bottom: none; }
.spec-key { color: var(--color-steel-mid); }
.spec-val { font-weight: 600; color: var(--color-dark); }

.product-actions { display: flex; gap: 12px; }

/* ─── ABOUT PAGE ─────────────────────────────── */
.about-content { padding: 80px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
}
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-text h2 { margin-bottom: 20px; }
.about-text p { margin-bottom: 16px; }

/* ─── CONTACT ────────────────────────────────── */
.contact-form-wrap {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-steel-light);
}

.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 8px;
  font-family: var(--font-heading);
}
.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--color-steel-light);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-dark);
  background: var(--color-white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-control:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.form-control::placeholder { color: var(--color-steel-light); }
textarea.form-control { resize: vertical; min-height: 130px; }

/* ─── WHATSAPP FLOAT ─────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.phone-fixed-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1a3a5c;
  color: white;
  padding: 12px 18px;
  border-radius: 100px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(26,58,92,0.35);
  cursor: default;
  user-select: text;
}
.phone-fixed-icon { display: flex; align-items: center; }
.whatsapp-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: white;
  padding: 14px 20px;
  border-radius: 100px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(37,211,102,0.4);
  transition: all 0.3s;
  text-decoration: none;
}
.whatsapp-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(37,211,102,0.5);
  color: white;
}
.whatsapp-icon { font-size: 1.3rem; }

/* ─── ANIMATIONS ─────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate-fade-up { animation: fadeUp 0.7s var(--ease) both; }
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* Intersection observer reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 1100px) {
  .segments-grid { grid-template-columns: repeat(2, 1fr); }
  .diff-grid     { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid   { grid-template-columns: 1fr 1fr; gap: 40px; }
  .proof-grid    { gap: 40px; }
  .products-header { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --section-py: 64px; }

  .nav-link, .nav-cta { display: none; }
  .primary-nav { display: none; }
  .nav-right-group { display: none !important; }
  .nav-toggle { display: flex; }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }

  .hero-stats { gap: 28px; }
  .hero-stat-num { font-size: 1.8rem; }

  .segments-grid { grid-template-columns: 1fr; }
  .diff-grid     { grid-template-columns: 1fr 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .proof-grid    { grid-template-columns: 1fr; }
  .proof-stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid   { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .category-info-grid { grid-template-columns: 1fr; }
  .product-single-grid { display: block; }
  .product-gallery { margin-bottom: 32px; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 28px 20px; }
  .hero-actions { flex-direction: column; }
  .btn-lg { width: 100%; justify-content: center; }
  .cta-final-actions { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .diff-grid { grid-template-columns: 1fr; }
  .proof-stats-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
}

/* ─── WORDPRESS ADMIN BAR FIX ────────────────── */
.admin-bar .site-header { top: 32px; }
.admin-bar .archive-filter { top: calc(90px + 32px); }

/* ─── GUTENBERG BLOCKS SUPPORT ───────────────── */
.wp-block-image img { border-radius: var(--radius); }
.wp-block-quote {
  border-left: 3px solid var(--color-accent);
  padding-left: 20px;
  font-style: italic;
}

/* ─── SCREEN READER ──────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ─── CARROSSEL DE CLIENTES ──────────────────── */
.clientes-carousel-section {
  background: var(--color-surface, #f8fafc);
  padding: 48px 0;
  overflow: hidden;
}

.clientes-carousel-wrapper {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.clientes-carousel {
  display: flex;
  gap: 0;
}

.clientes-track {
  display: flex;
  align-items: center;
  gap: 40px;
  animation: clientesScroll 30s linear infinite;
  flex-shrink: 0;
}

.clientes-carousel-wrapper:hover .clientes-track {
  animation-play-state: paused;
}

@keyframes clientesScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

.cliente-slide {
  flex-shrink: 0;
}

.cliente-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 80px;
  padding: 12px 20px;
  background: #fff;
  border: 1px solid var(--color-border, #e2e8f0);
  border-radius: var(--radius, 8px);
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
}

.cliente-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.10);
  transform: translateY(-2px);
}

.cliente-logo {
  max-width: 120px;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter 0.3s, opacity 0.3s;
}

.cliente-item:hover .cliente-logo {
  filter: grayscale(0%);
  opacity: 1;
}

.cliente-nome-texto {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-muted, #64748b);
  letter-spacing: 0.05em;
  text-align: center;
}

/* ─── CUSTOM FIXES ──────────────────────────── */

/* Fix horizontal scroll */
body, html {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.container {
    max-width: 100%;
    width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* Header & GTranslate Desktop */
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

/* =========================================================
   GTranslate — Mobile Bar + Desktop Group
   ========================================================= */

/* --- Barra Mobile: escondida por padrão (desktop-first) --- */
.gtranslate-mobile-bar {
    display: none;
}

/* --- Suprimir widget global do GTranslate (injetado pelo plugin no body)
       Ele aparece em TODOS os breakpoints fora das nossas divs controladas.
       Ocultamos globalmente e re-exibimos apenas dentro das nossas wrappers. --- */
body > .gt_switcher_wrapper,
body > #gt_float_wrapper,
body > .gtranslate_wrapper,
body > [class*="gtranslate"]:not(.site-header):not(.whatsapp-float) {
    display: none !important;
}

/* --- Grupo direito do nav (GTranslate + CTA): desktop --- */
.nav-right-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-left: auto;
}

/* GTranslate Desktop */
.gtranslate-desktop {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    max-width: 160px;
}

.gtranslate-desktop > * {
    max-width: 100%;
}

.gtranslate-desktop img {
    max-height: 18px !important;
    width: auto !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

.gtranslate-desktop select,
.gtranslate-desktop a {
    vertical-align: middle;
    font-size: 0.85rem;
}

.gtranslate-desktop .gt_switcher {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    white-space: nowrap;
}

/* Botão CTA não encolhe */
.nav-right-group .nav-cta {
    flex-shrink: 0;
}

/* Esconder header-top-mobile (não usado mais) */
.header-top-mobile {
    display: none;
}

/* =========================================================
   Mobile (≤ 768px)
   ========================================================= */
@media (max-width: 768px) {

    /* Mostrar barra do GTranslate acima da logo/menu */
    .gtranslate-mobile-bar {
        display: block;
        background: rgba(11, 24, 41, 0.97);
        padding: 6px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: center;
        width: 100%;
    }

    /* Esconder grupo desktop inteiro (GTranslate + CTA) */
    .nav-right-group {
        display: none !important;
    }

    /* Nav-inner: logo à esquerda, hamburger à direita — row único */
    .nav-inner {
        height: 70px;
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    /* primary-nav já está display:none via regra acima */

    a.site-logo img {
        height: 50px !important;
    }

    /* Mobile nav abre abaixo da barra gtranslate + nav */
    .mobile-nav {
        top: calc(70px + 34px); /* nav-inner + gtranslate-mobile-bar */
    }

    .site-header {
        position: fixed;
    }

    /* Garantir que nada quebre o layout lateral */
    .hero-content, .section-heading, .segments-grid, .products-grid {
        max-width: 100vw;
        overflow-x: hidden;
    }
}

/* =========================================================
   Desktop (≥ 769px) — garantias extras
   ========================================================= */
@media (min-width: 769px) {
    .primary-nav {
        display: flex; /* garantir que volta a aparecer no desktop */
        flex-shrink: 1;
    }

    /* Barra mobile nunca aparece no desktop */
    .gtranslate-mobile-bar {
        display: none !important;
    }
}
