/* ========================================
   TEMA ETHOS — design system
   As cores, as fontes e as medidas vêm do painel
   "Ethos — Identidade" (Personalizar) como variáveis
   em :root. Não escreva cor fixa aqui: use var(--...).
   ======================================== */



/* ── Reset & Base ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--fonte-corpo);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

/* clip corta o que vaza para os lados sem transformar html/body em caixa de
   rolagem (com hidden, position: sticky deixa de funcionar na página). */
@supports (overflow-x: clip) {
  html,
  body { overflow-x: clip; }
  body.error-page { overflow: clip; } /* vence o .error-page { overflow: hidden } mais abaixo */
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
  transition: var(--transition);
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--fonte-corpo);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: 3.2rem; letter-spacing: -0.02em; }
h2 { font-size: 2.6rem; letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

.display-font {
  font-family: var(--fonte-titulo);
}

/* ── Layout ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

section {
  padding: 100px 0;
  position: relative;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  font-size: 17px;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(21, 34, 77, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 25px rgba(21, 34, 77, 0.4);
  transform: translateY(-2px);
}

.btn-primary i {
  transition: transform 0.3s ease;
}

.btn-primary:hover i {
  transform: translateX(4px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

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

.btn-white {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn-white:hover {
  background: var(--primary-lighter);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

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

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

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: #1fba59;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
}

.btn-sm {
  padding: 12px 24px;
  font-size: 15px;
}


/* ── Section Headers ── */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--primary-lighter);
  color: var(--primary);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.section-tag i {
  font-size: 16px;
}

.section-title {
  margin-bottom: 20px;
  max-width: 600px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 18px;
  max-width: 550px;
  line-height: 1.7;
}

/* ========================================
   1. HEADER
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.4s ease;
}

.header.scrolled {
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.08);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1001;
}

.header-logo-icon {
  width: 44px;
  height: 44px;
  background: var(--primary);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 22px;
  transition: var(--transition);
}

.header-logo:hover .header-logo-icon {
  transform: rotate(-8deg) scale(1.05);
}

.header-logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
}

.header-logo-text span {
  color: var(--accent);
  font-weight: 400;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-nav a {
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 4px;
  transition: var(--transition);
  position: relative;
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--primary);
}

.header-nav a:hover::after,
.header-nav a.active::after {
  transform: scaleX(1);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-cta .btn {
  padding: 12px 28px;
  font-size: 15px;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  padding: 8px;
  z-index: 1001;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--primary-dark);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Nav */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: -360px;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  height: 100dvh;
  background: var(--white);
  z-index: 1000;
  padding: 26px 20px 28px;
  box-shadow: var(--shadow-xl);
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav-logo {
  display: block;
  padding: 4px 4px 20px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.mobile-nav-logo img { height: 38px; width: auto; }

.mobile-nav a:not(.btn):not(.mobile-nav-logo) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.mobile-nav a:not(.btn):not(.mobile-nav-logo) + a:not(.btn):not(.mobile-nav-logo) { margin-top: 2px; }

.mobile-nav a:not(.btn):not(.mobile-nav-logo):hover {
  background: var(--bg-light);
  color: var(--primary);
}

.mobile-nav a:not(.btn).active {
  background: var(--primary-lighter);
  color: var(--primary);
}

.mobile-nav .btn {
  width: 100%;
  justify-content: center;
  margin-top: 24px;
  color: var(--white);
}

/* Botão de fechar (X) dentro do menu mobile */
.mobile-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 24px;
  z-index: 3;
  transition: var(--transition);
}
.mobile-close:hover { background: var(--primary-lighter); color: var(--primary); }

/* Acordeão de Serviços no menu mobile */
.mobile-group-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  background: none;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.mobile-group-toggle:hover,
.mobile-group.open .mobile-group-toggle { color: var(--primary); }
.mobile-group-toggle i { font-size: 14px; transition: transform 0.3s ease; }
.mobile-group.open .mobile-group-toggle i { transform: rotate(180deg); }

.mobile-submenu {
  max-height: 0;
  overflow: hidden;
  margin: 2px 0 2px 14px;
  border-left: 2px solid var(--border);
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-group.open .mobile-submenu { max-height: 360px; }
.mobile-nav .mobile-submenu a:not(.btn) {
  font-size: 14px;
  font-weight: 500;
  padding: 11px 14px;
  color: var(--text-secondary);
}
.mobile-nav .mobile-submenu a:not(.btn):hover { color: var(--primary); }

/* ========================================
   2. HERO SECTION
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  background: linear-gradient(165deg, var(--white) 0%, var(--primary-lighter) 50%, #D8F1FC 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(21, 34, 77, 0.04) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--white), transparent);
  z-index: 2;
}

/* Decorative grid pattern */
.hero-pattern {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  opacity: 0.03;
  background-image:
    linear-gradient(var(--primary) 1px, transparent 1px),
    linear-gradient(90deg, var(--primary) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 3;
}

.hero-content {
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--white);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
  border: 1px solid var(--border);
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--whatsapp);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero h1 {
  font-size: 3.4rem;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
  color: var(--primary-dark);
}

.hero h1 em {
  font-style: normal;
  color: var(--primary-light);
  position: relative;
}

.hero h1 em::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 8px;
  background: rgba(21, 34, 77, 0.12);
  border-radius: 4px;
  z-index: -1;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 32px;
}

.hero-stat {
  text-align: center;
  position: relative;
}

.hero-stat::after {
  content: '';
  position: absolute;
  right: -16px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 40px;
  background: var(--border);
}

.hero-stat:last-child::after {
  display: none;
}

.hero-stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
  font-family: var(--fonte-corpo);
}

.hero-stat-label {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hero Image */
.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image {
  width: 480px;
  height: 580px;
  background: linear-gradient(145deg, var(--primary-light), var(--primary-dark));
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(21, 34, 77, 0.25);
}

.hero-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(21, 34, 77, 0.3));
  z-index: 1;
}

.hero-image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.2);
  font-size: 120px;
}

.hero-image-placeholder span {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Nametag */
.hero-nametag {
  position: absolute;
  bottom: 60px;
  left: -30px;
  background: var(--white);
  padding: 16px 24px;
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 5;
  animation: float 4s ease-in-out infinite;
}

.hero-nametag-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 20px;
}

.hero-nametag-info h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.hero-nametag-info span {
  font-size: 13px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 4px;
}

.hero-nametag-info .verified {
  color: #1DA1F2;
  font-size: 15px;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: bounce 2.5s infinite;
}

.scroll-indicator-mouse {
  width: 28px;
  height: 44px;
  border: 2px solid var(--accent);
  border-radius: 4px;
  position: relative;
}

.scroll-indicator-mouse::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 10px;
  background: var(--accent);
  border-radius: 4px;
  animation: scrollWheel 2s infinite;
}

.scroll-indicator span {
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
}

/* ========================================
   3. MARQUEE
   ======================================== */
.marquee-section {
  padding: 24px 0;
  background: var(--primary-lighter);
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.marquee-track {
  display: flex;
  animation: marqueeScroll 45s linear infinite;
  width: max-content;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 40px;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.marquee-item i {
  font-size: 20px;
  color: var(--accent);
}

.marquee-item .dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-left: 30px;
}

/* ========================================
   4. ABOUT
   ======================================== */
.about {
  background: var(--white);
}

.about .container {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image-main {
  width: 100%;
  height: 550px;
  background: linear-gradient(135deg, var(--primary-lighter) 0%, #BFE4F5 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.about-image-main::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(21, 34, 77, 0.05), rgba(21, 34, 77, 0.15));
}

.about-image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 80px;
  opacity: 0.3;
}

.about-image-placeholder span {
  font-size: 13px;
  font-weight: 600;
  margin-top: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about-image-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 200px;
  height: 200px;
  border: 3px solid var(--primary-lighter);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.about-image-badge {
  position: absolute;
  top: 30px;
  right: -30px;
  background: var(--white);
  padding: 20px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: float 5s ease-in-out infinite;
}

.about-image-badge i {
  font-size: 28px;
  color: var(--gold);
  margin-bottom: 4px;
}

.about-image-badge .number {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  display: block;
  line-height: 1;
}

.about-image-badge span {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.about-content .section-tag {
  margin-bottom: 16px;
}

.about-content h2 {
  margin-bottom: 24px;
  max-width: 500px;
}

.about-text {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.about-highlight {
  text-align: center;
}

.about-highlight-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-lighter);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 32px;
  color: var(--primary);
  transition: var(--transition);
}

.about-highlight:hover .about-highlight-icon {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(21, 34, 77, 0.25);
}

.about-highlight h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.about-mobile-cta {
  display: none;
  margin-top: 32px;
}

/* ========================================
   5. SERVICES
   ======================================== */
.services {
  background: var(--primary-dark);
  position: relative;
  overflow: hidden;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 18% 40%, rgba(0, 173, 238, 0.28) 0%, transparent 55%),
    linear-gradient(160deg, rgba(21, 34, 77, 0.93) 0%, rgba(21, 34, 77, 0.86) 45%, rgba(14, 24, 54, 0.93) 100%);
  pointer-events: none;
}

.services .section-tag {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

.services .section-title {
  color: var(--white);
}

.services .section-subtitle {
  color: rgba(255, 255, 255, 0.6);
}

.services-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.services-header .section-title,
.services-header .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
  z-index: 1;
}

.service-card {
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card-light {
  background: var(--white);
}

.service-card-dark {
  background: var(--secondary);
}

.service-card-dark .service-card-title {
  color: var(--white);
}

.service-card-dark .service-card-desc {
  color: rgba(255, 255, 255, 0.65);
}

.service-card-dark .service-card-icon {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card-light:hover .service-card-icon {
  background: var(--primary);
  color: var(--white);
}

.service-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 24px;
  background: var(--primary-lighter);
  color: var(--primary);
  transition: var(--transition);
}

.service-card-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  transition: var(--transition);
}

.service-card-desc {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  transition: var(--transition);
}

/* ========================================
   6. TESTIMONIALS
   ======================================== */
.testimonials {
  background: linear-gradient(180deg, var(--primary-dark) 0%, #101B3E 100%);
  overflow: hidden;
}

.testimonials .section-tag {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
}

.testimonials-header {
  text-align: center;
  margin-bottom: 60px;
}

.testimonials-header .section-title {
  color: var(--white);
  margin-left: auto;
  margin-right: auto;
}

.testimonials-header .section-subtitle {
  color: rgba(255, 255, 255, 0.5);
  margin-left: auto;
  margin-right: auto;
}

.testimonials-track-wrapper {
  overflow: hidden;
  padding: 20px 0;
}

.testimonials-track {
  display: flex;
  gap: 28px;
  animation: testimonialScroll 40s linear infinite;
  width: max-content;
}

.testimonials-track:hover {
  animation-play-state: paused;
}

.testimonial-card {
  width: 380px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: var(--transition);
}

.testimonial-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
}

.testimonial-stars i {
  color: var(--gold-light);
  font-size: 18px;
}

.testimonial-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 28px;
  font-style: italic;
}

.testimonial-text::before {
  content: '\201C';
  font-size: 48px;
  font-family: var(--fonte-titulo);
  color: rgba(255, 255, 255, 0.15);
  display: block;
  line-height: 0.5;
  margin-bottom: 12px;
}

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

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 18px;
}

.testimonial-author-info h4 {
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2px;
}

.testimonial-author-info span {
  color: rgba(255, 255, 255, 0.45);
  font-size: 14px;
}

/* ========================================
   7. BLOG
   ======================================== */
.blog {
  background: var(--bg-light);
}

.blog-header {
  text-align: center;
  margin-bottom: 60px;
}

.blog-header .section-title,
.blog-header .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto auto;
  gap: 28px;
}

.blog-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.blog-card-image {
  width: 100%;
  height: 280px;
  position: relative;
  overflow: hidden;
}

.blog-card-large .blog-card-image {
  height: 340px;
}

.blog-card-image-bg {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  transition: transform 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card:hover .blog-card-image-bg {
  transform: scale(1.08);
}

.blog-card-image-bg i {
  font-size: 60px;
  color: rgba(255, 255, 255, 0.15);
}

.blog-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
}

.blog-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px;
  z-index: 1;
}

.blog-card-tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.blog-card-title {
  color: var(--white);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 8px;
}

.blog-card-large .blog-card-title {
  font-size: 24px;
}

.blog-card-date {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Bottom row: 3 columns */
.blog-grid-bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 0;
  grid-column: 1 / -1;
}

/* ========================================
   8. FAQ
   ======================================== */
.faq {
  background: var(--white);
}

.faq .container {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 80px;
  align-items: start;
}

.faq-sidebar {
  position: sticky;
  top: 120px;
}

.faq-sidebar .section-tag {
  margin-bottom: 16px;
}

.faq-sidebar h2 {
  margin-bottom: 20px;
}

.faq-sidebar p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(21, 34, 77, 0.1);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  background: var(--white);
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  gap: 16px;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-item.active .faq-question {
  background: var(--primary);
  color: var(--white);
}

.faq-question-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: var(--primary-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--primary);
  transition: all 0.3s ease;
}

.faq-item.active .faq-question-icon {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-inner {
  padding: 24px 28px;
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 16px;
}

/* ========================================
   9. CTA SECTION
   ======================================== */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #101B3E 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 173, 238, 0.15) 0%, transparent 60%);
  border-radius: 50%;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 173, 238, 0.1) 0%, transparent 60%);
  border-radius: 50%;
}

.cta-section .container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  color: var(--white);
  font-size: 2.8rem;
  margin-bottom: 20px;
  line-height: 1.15;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  margin-bottom: 36px;
  line-height: 1.7;
  max-width: 500px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.cta-image-circle {
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.cta-image-circle::before {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.08);
}

.cta-image-circle i {
  font-size: 100px;
  color: rgba(255, 255, 255, 0.12);
}

/* ========================================
   10. LOCATION / CONTACT
   ======================================== */
.contact {
  background: var(--bg-light);
}

.contact-header {
  text-align: center;
  margin-bottom: 60px;
}

.contact-header .section-title,
.contact-header .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 450px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
  justify-content: center;
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.contact-info-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.contact-info-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 4px;
  background: var(--primary-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--primary);
}

.contact-info-text h4 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}

.contact-info-text p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.contact-whatsapp {
  margin-top: 8px;
}

/* ========================================
   11. FOOTER
   ======================================== */
.footer {
  background: var(--primary-dark);
  padding: 80px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand p {
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
  max-width: 280px;
}

.footer-brand .header-logo {
  margin-bottom: 4px;
}

.footer-brand .header-logo-icon {
  background: rgba(255, 255, 255, 0.1);
}

.footer-brand .header-logo-text {
  color: var(--white);
}

.footer-brand .header-logo-text span {
  color: rgba(255, 255, 255, 0.5);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary-light);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-col h4 {
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col a {
  display: block;
  padding: 6px 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.5);
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--white);
  padding-left: 6px;
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.35);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
}

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

.footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.footer-credit a {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.5);
}
.footer-credit a:hover { color: var(--white); }
.footer-credit-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.footer-credit a:hover .footer-credit-logo { transform: scale(1.25); }

/* ========================================
   13. MODAL
   ======================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
}

.modal-overlay.hidden {
  display: none;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal-icon {
  width: 72px;
  height: 72px;
  background: var(--primary-lighter);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 32px;
  color: var(--primary);
}

.modal h3 {
  font-size: 24px;
  margin-bottom: 12px;
  color: var(--primary-dark);
}

.modal p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.modal .btn {
  width: 100%;
  justify-content: center;
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
  h1 { font-size: 2.6rem; }
  h2 { font-size: 2.2rem; }
  section { padding: 80px 0; }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-subtitle { margin: 0 auto 36px; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }

  .hero-image-wrapper {
    order: -1;
  }

  .hero-image {
    width: 360px;
    height: 440px;
  }

  .hero-nametag {
    left: 50%;
    transform: translateX(-50%);
    bottom: 40px;
  }

  .about .container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  /* Centraliza o conteúdo do "Sobre" quando empilha, como as demais seções */
  .about-content { text-align: center; }
  .about-content .section-tag,
  .about-content h2,
  .about-content .about-text { margin-left: auto; margin-right: auto; }

  .about-image-main { height: 400px; }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-grid-bottom {
    grid-template-columns: repeat(2, 1fr);
  }

  .faq .container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .faq-sidebar {
    position: static;
    text-align: center;
  }

  .cta-section .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cta-content p { margin: 0 auto 36px; }
  .cta-buttons { justify-content: center; }
  .cta-image { display: none; }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {
  body { font-size: 16px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.8rem; }
  h3 { font-size: 1.25rem; }
  section { padding: 60px 0; }
  .container { padding: 0 20px; }

  .header-nav { display: none; }
  .header-cta .btn { display: none; }
  .hamburger { display: flex; }
  .mobile-overlay { display: block; }
  .mobile-nav { display: block; }

  .hero { padding-top: 80px; min-height: auto; padding-bottom: 80px; }
  .hero h1 { font-size: 2rem; }

  .hero-image {
    width: 280px;
    height: 340px;
  }

  .hero-nametag {
    display: none;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .hero-stat::after { display: none; }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn { width: 100%; justify-content: center; }

  .about-highlights {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
  .about-highlight-icon { width: 60px; height: 60px; font-size: 26px; }
  .about-highlight h4 { font-size: 13px; }
  .about-image-badge { right: 8px; top: 12px; }

  .about-mobile-cta { display: block; }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card { width: 300px; }

  .blog-grid-bottom {
    grid-template-columns: 1fr;
  }

  .faq-question {
    padding: 18px 20px;
    font-size: 15px;
  }

  .faq-answer-inner { padding: 20px; }

  .cta-content h2 { font-size: 2rem; }

  .contact-map { height: 300px; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .modal {
    padding: 32px 24px;
  }


  .scroll-indicator { display: none; }
}

/* Small */
@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  section { padding: 48px 0; }

  .hero-image {
    width: 240px;
    height: 300px;
    border-radius: 4px;
  }

  .btn {
    padding: 14px 28px;
    font-size: 15px;
  }

  .service-card { padding: 28px 24px; }

  .testimonial-card {
    width: 270px;
    padding: 24px;
  }

  .blog-card-image { height: 220px; }
  .blog-card-large .blog-card-image { height: 260px; }
}

/* ========================================
   MED LIGHT - COMPONENTES INSTITUCIONAIS
   ======================================== */

/* ── Logo em imagem ── */
.header-logo-img {
  height: 52px;
  width: auto;
  display: block;
  transition: var(--transition);
}
.header-logo:hover .header-logo-img { transform: scale(1.03); }
.footer-brand .header-logo-img { height: 58px; }

/* Ícones Phosphor: a folha e a fonte chegam depois do primeiro paint (script
   assíncrono do CDN). Cada ícone já ocupa a caixa final, 1em x 1em (os glifos
   são quadrados), para nada na página "andar" quando eles aparecem. */
i.ph,
i.ph-fill { display: inline-block; width: 1em; height: 1em; line-height: 1; flex: none; }
/* Exceções que mantêm a caixa de antes */
.logi-card i.ph { display: block; width: auto; }
/* Estes eram inline: a margem não contava, e o glifo desce 2px da linha de
   base. overflow fixa a linha de base na borda de baixo, com ou sem glifo. */
.stat-block i.ph,
.about-image-badge i.ph-fill { margin-bottom: 0; overflow: hidden; vertical-align: -2px; }
.section-tag { vertical-align: top; }

/* ── Preloader ── */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: linear-gradient(150deg, var(--primary-dark) 0%, var(--primary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  /* Fallback: some sozinho mesmo se o JS não rodar (some por volta de 3,5s) */
  animation: preloaderAutohide 0.6s ease 3s forwards;
}
.preloader.loaded { opacity: 0; visibility: hidden; }
@keyframes preloaderAutohide { to { opacity: 0; visibility: hidden; } }
.preloader-inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.preloader-logo { height: 56px; width: auto; animation: preloaderPulse 1.6s ease-in-out infinite; }
.preloader-bar { width: 150px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.15); overflow: hidden; }
.preloader-bar span { display: block; height: 100%; width: 40%; background: var(--white); border-radius: 2px; animation: preloaderBar 1.15s ease-in-out infinite; }
@keyframes preloaderPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.55; transform: scale(0.95); } }
@keyframes preloaderBar { 0% { transform: translateX(-130%); } 100% { transform: translateX(380%); } }
@media (max-width: 768px) { .preloader-logo { height: 44px; } }

/* ── Hero com imagem de fundo (home) ── */
.hero-bg {
  background-color: var(--primary-dark);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 100vh;
  padding-top: 160px;
  padding-bottom: 100px;
}
/* Parallax sutil do fundo (transição suave aplicada via JS) */
.hero-bg,
.page-hero.has-image { transition: background-position 0.35s ease-out; }
.hero-bg::before,
.hero-bg::after { display: none; }
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(21, 34, 77, 0.70) 0%, rgba(21, 34, 77, 0) 22%),
    linear-gradient(105deg, rgba(21, 34, 77, 0.86) 0%, rgba(21, 34, 77, 0.68) 42%, rgba(21, 34, 77, 0.34) 100%);
}
.hero-bg .container {
  position: relative;
  z-index: 2;
  display: block;
}
.hero-bg .hero-content { max-width: 680px; }
/* Arte vertical (celular e tablet, até 1024px): aparece inteira, alinhada no
   topo; o resto do fundo segue na cor da borda de baixo da arte (calculada
   pelo widget). No tablet, a arte larga cortaria o lado escuro e o texto
   ficaria em cima dos focos. */
@media (max-width: 1024px) {
  .hero-bg.tem-img-m,
  .hero-bg.tem-img-m > .hero-parallax {
    background-image: var(--hero-img-m) !important;
    background-size: 100% auto;
    background-position: center top !important;
    background-color: var(--hero-cor-m, var(--primary-dark));
  }
}
.hero-bg h1 { color: var(--white); }
.hero-bg h1 em { color: #6FD4F7; }
.hero-bg h1 em::after { display: none; }
.hero-bg .hero-subtitle { color: rgba(255, 255, 255, 0.82); max-width: 560px; }

/* ── Header transparente sobre o hero escuro (somente home) ── */
body:not(.inner-page) .header .logo-dark { display: none; }
body:not(.inner-page) .header.scrolled .logo-light { display: none; }
body:not(.inner-page) .header.scrolled .logo-dark { display: block; }
body:not(.inner-page) .header:not(.scrolled) .header-nav > a,
body:not(.inner-page) .header:not(.scrolled) .header-nav > .has-dropdown > a {
  color: rgba(255, 255, 255, 0.85);
}
body:not(.inner-page) .header:not(.scrolled) .header-nav > a:hover,
body:not(.inner-page) .header:not(.scrolled) .header-nav > a.active,
body:not(.inner-page) .header:not(.scrolled) .header-nav > .has-dropdown > a:hover {
  color: var(--white);
}
body:not(.inner-page) .header:not(.scrolled) .header-nav > a::after,
body:not(.inner-page) .header:not(.scrolled) .header-nav > .has-dropdown > a::after {
  background: var(--white);
}
body:not(.inner-page) .header:not(.scrolled) .hamburger span { background: var(--white); }
body:not(.inner-page) .header:not(.scrolled) .hamburger.active span { background: var(--primary-dark); }
body:not(.inner-page) .header:not(.scrolled) .header-cta .btn-primary {
  background: var(--white);
  color: var(--primary);
  box-shadow: none;
}
body:not(.inner-page) .header:not(.scrolled) .header-cta .btn-primary:hover {
  background: var(--primary-lighter);
  transform: translateY(-2px);
}

/* ── Foto real na seção Sobre ── */
.about-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Formulário de contato/lead ── */
.contact-grid { align-items: stretch; }

.contact-aside { display: flex; flex-direction: column; gap: 18px; }
.contact-aside .contact-map { flex: 1 1 auto; height: auto; min-height: 280px; }

/* ── Página 404 ── */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-light) 135%);
}
.error-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image:
    linear-gradient(var(--white) 1px, transparent 1px),
    linear-gradient(90deg, var(--white) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.error-page::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(0, 173, 238, 0.14) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.error-inner { position: relative; z-index: 1; max-width: 580px; }
.error-logo { height: 54px; width: auto; margin: 0 auto 36px; display: block; }
.error-code {
  font-size: clamp(110px, 20vw, 190px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: 12px;
}
.error-code span { color: var(--accent); }
.error-inner h1 { color: var(--white); font-size: 2rem; margin-bottom: 14px; }
.error-inner p { color: rgba(255, 255, 255, 0.75); font-size: 18px; line-height: 1.7; margin-bottom: 36px; }
.error-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 480px) {
  .error-actions .btn { width: 100%; justify-content: center; }
}

/* ── Header sólido nas páginas internas ── */
body.inner-page .header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 30px rgba(21, 34, 77, 0.08);
  padding: 12px 0;
}

/* ── Dropdown de Serviços ── */
.has-dropdown { position: relative; }
.has-dropdown > a { display: inline-flex; align-items: center; gap: 6px; }
.has-dropdown > a .ph-caret-down { font-size: 13px; transition: transform 0.3s ease; }
.has-dropdown:hover > a .ph-caret-down { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 260px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1002;
}
.dropdown-menu::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: 14px;
}
.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}
.dropdown-menu a i { font-size: 18px; color: var(--primary); min-width: 18px; }
.dropdown-menu a::after { display: none; }
.dropdown-menu a:hover {
  background: var(--primary-lighter);
  color: var(--primary);
}

/* ── Page Hero (páginas internas) ── */
.page-hero {
  background: linear-gradient(150deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-light) 130%);
  color: var(--white);
  padding: 150px 0 90px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(0, 173, 238, 0.12) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.page-hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(var(--white) 1px, transparent 1px),
    linear-gradient(90deg, var(--white) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; max-width: 820px; }

/* Page hero com imagem de fundo (mantém a grade de quadradinhos por cima) */
.page-hero.has-image {
  background-color: var(--primary-dark);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}
.page-hero.has-image::before {
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  z-index: 1;
  background: linear-gradient(150deg, rgba(21, 34, 77, 0.82) 0%, rgba(21, 34, 77, 0.66) 50%, rgba(21, 34, 77, 0.40) 130%);
}
.page-hero.has-image .page-hero-pattern { opacity: 0.07; z-index: 2; }
.page-hero.has-image .container { z-index: 3; }

/* Camada de imagem para o parallax. Vem pronta no HTML; o zoom (que garante
   sobra dos lados) só existe onde há mouse, já no primeiro paint, para não
   dar o "tranco" de 12% quando o JS entra. Sem mouse, é igual ao fundo. */
.hero-parallax {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 0;
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .hero-parallax {
    transform: scale(1.12);
    transition: transform 0.45s ease-out;
    will-change: transform;
  }
}
.page-hero .section-tag {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
}
.page-hero h1 {
  color: var(--white);
  font-size: 3rem;
  line-height: 1.12;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.page-hero h1 em { font-style: normal; color: var(--accent); }
.page-hero p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 19px;
  max-width: 640px;
  line-height: 1.7;
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 24px;
}
.breadcrumb a { color: rgba(255, 255, 255, 0.7); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb i { font-size: 12px; }
.breadcrumb span { color: var(--white); font-weight: 500; }

/* ── Numbers / Stats band ── */
.stats-band { background: var(--white); }
.stats-band .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.stats-band.stats-3 .container {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1000px;
}
.stat-block {
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius-lg);
  background: var(--bg-light);
  transition: var(--transition);
}
.stat-block:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); background: var(--white); }
.stat-block i { font-size: 34px; color: var(--primary); margin-bottom: 12px; }
.stat-block .stat-number {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-block .stat-label {
  font-size: 14px;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Mission / Vision / Values ── */
.mvv { background: var(--bg-light); }
.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.mvv-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--primary);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mvv-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.mvv-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 4px;
  background: var(--primary-lighter);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin-bottom: 20px;
}
.mvv-card h3 { margin-bottom: 12px; }
.mvv-card p { color: var(--text-secondary); font-size: 16px; line-height: 1.75; }
.mvv-card ul { display: flex; flex-direction: column; gap: 10px; }
.mvv-card ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 15px;
}
.mvv-card ul li i { color: var(--primary); font-size: 18px; margin-top: 3px; }

/* ── Timeline ── */
.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 36px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}
.timeline.visible::before { transform: scaleY(1); }
.timeline-item { position: relative; padding-bottom: 40px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -36px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--primary);
  transform: scale(0);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}
.timeline-item.visible::before {
  transform: scale(1);
  box-shadow: 0 0 0 6px rgba(21, 34, 77, 0.06);
}
.timeline-year {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.timeline-item h4 { margin-bottom: 8px; }
.timeline-item p { color: var(--text-secondary); font-size: 16px; line-height: 1.7; }

/* ── Team ── */
.team { background: var(--white); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.team-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.team-photo {
  height: 320px;
  background: linear-gradient(145deg, var(--primary-light), var(--primary-dark));
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.25);
}
.team-photo i { font-size: 96px; }
.team-photo span {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 8px;
}
.team-info { padding: 24px 28px 28px; }
.team-info h3 { font-size: 20px; margin-bottom: 4px; }
.team-role {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.team-info p { color: var(--text-secondary); font-size: 15px; line-height: 1.7; }
.team-socials { display: flex; gap: 10px; margin-top: 16px; }
.team-socials a {
  width: 38px;
  height: 38px;
  border-radius: 4px;
  background: var(--primary-lighter);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.team-socials a:hover { background: var(--primary); color: var(--white); }

/* ── Partners ── */
.partners { background: var(--bg-light); }
.partner-card {
  display: grid;
  grid-template-columns: 1.15fr 1.1fr;
  gap: 48px;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
}
.partner-visual {
  height: 320px;
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--primary), var(--primary-dark));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  padding: 24px;
}
.partner-visual i { font-size: 72px; margin-bottom: 16px; color: rgba(255,255,255,0.9); }
.partner-visual .partner-name { font-size: 26px; font-weight: 700; color: var(--white); }
.partner-visual .partner-tagline { font-size: 14px; color: rgba(255,255,255,0.6); margin-top: 14px; }
.partner-logo-img { width: 100%; max-width: 520px; height: auto; display: block; }


/* ── Service Tabs (subabas) ── */
.service-tabs { background: var(--white); }
.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 48px;
}
.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 4px;
  background: var(--bg-light);
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.tab-btn i { font-size: 18px; }
.tab-btn:hover { color: var(--primary); border-color: var(--primary); }
.tab-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 6px 20px rgba(21, 34, 77, 0.25);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeTab 0.5s ease; }
@keyframes fadeTab { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.tab-panel-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.tab-panel-head h2 { margin-bottom: 14px; }
.tab-panel-head p { color: var(--text-secondary); font-size: 17px; line-height: 1.7; }

.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.service-item {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.35s ease;
}
.service-item:hover { border-color: transparent; box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.service-item-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 4px;
  background: var(--primary-lighter);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  transition: var(--transition);
}
.service-item:hover .service-item-icon { background: var(--primary); color: var(--white); }
.service-item h3 { font-size: 18px; margin-bottom: 8px; }
.service-item p { color: var(--text-secondary); font-size: 15px; line-height: 1.7; }

/* ── Process Steps (importações) ── */
.process { background: var(--bg-light); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.process-step {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.process-step:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.process-step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}
.process-step h4 { margin-bottom: 10px; }
.process-step p { color: var(--text-secondary); font-size: 15px; line-height: 1.7; }

/* ── Prose / content blocks (páginas internas) ── */
.content-section { background: var(--white); }
.content-narrow { max-width: 820px; margin: 0 auto; }
.prose p { color: var(--text-secondary); font-size: 17px; line-height: 1.85; margin-bottom: 20px; }
.prose h2 { margin: 40px 0 18px; }
.prose h3 { margin: 28px 0 12px; }
.prose strong { color: var(--text); font-weight: 600; }

/* ── Two-column feature (texto + destaques) ── */
.feature-split { background: var(--white); }
.feature-split .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.feature-visual {
  height: 460px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--primary-lighter), #BFE4F5);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.feature-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-visual i { font-size: 88px; opacity: 0.4; }
.feature-visual span { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 10px; font-weight: 600; }
.feature-list { display: flex; flex-direction: column; gap: 18px; margin-top: 28px; }
.feature-list-item { display: flex; gap: 16px; align-items: flex-start; }
.feature-list-item .fli-icon {
  width: 48px; height: 48px; min-width: 48px;
  border-radius: 4px;
  background: var(--primary-lighter);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.feature-list-item h4 { font-size: 17px; margin-bottom: 4px; }
.feature-list-item p { color: var(--text-secondary); font-size: 15px; line-height: 1.6; }


/* ── Simple CTA band (sem imagem) ── */
.cta-band {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  text-align: center;
}
.cta-band .container { max-width: 720px; }
.cta-band h2 { color: var(--white); font-size: 2.4rem; margin-bottom: 16px; }
.cta-band p { color: rgba(255, 255, 255, 0.72); font-size: 18px; margin-bottom: 32px; }
.cta-band .cta-buttons { justify-content: center; }

/* ── Responsivo dos novos componentes ── */
@media (max-width: 1024px) {
  .stats-band .container { grid-template-columns: repeat(2, 1fr); }
  .mvv-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-card { grid-template-columns: 1fr; gap: 32px; padding: 36px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-split .container { grid-template-columns: 1fr; gap: 40px; }
  .feature-visual { height: 360px; }
  .page-hero h1 { font-size: 2.4rem; }
}

@media (max-width: 768px) {
  .header-logo-img { height: 42px; }
  .hero-bg { min-height: 80vh; padding: 120px 0 70px; }
  .hero-bg .hero-overlay {
    background: linear-gradient(180deg, rgba(21, 34, 77, 0.82) 0%, rgba(21, 34, 77, 0.6) 45%, rgba(21, 34, 77, 0.78) 100%);
  }
  .page-hero { padding: 120px 0 56px; min-height: 88vh; }
  .page-hero h1 { font-size: 2rem; }
  .page-hero p { font-size: 17px; }
  .stats-band .container { grid-template-columns: 1fr; gap: 16px; }
  .stats-band.stats-3 .container { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .service-list { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .tabs-nav { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
  .tab-btn { white-space: nowrap; }
  .partner-card { padding: 28px; }
  .cta-band h2 { font-size: 1.8rem; }
  .cta-buttons { flex-direction: column; align-items: stretch; width: 100%; }
  .hero-buttons,
  .error-actions { flex-direction: column; align-items: stretch; }
  /* Todos os botões ocupam a largura total do container no mobile */
  .btn { width: 100%; justify-content: center; }
}

/* ========================================
   MED LIGHT — CAMADA DA MARCA
   Tudo abaixo é específico da Med Light: cor de marca (#00ADEE),
   logo em máscara, contraste entre seções e os componentes das LPs.
   ======================================== */


/* ── Azul da marca nos pontos de destaque ── */
.section-tag { background: var(--primary-lighter); color: #0B6E93; }
.section-tag i { color: var(--accent); }
.stat-block i,
.about-highlight-icon i,
.service-card-light .service-card-icon i,
.contact-info-icon i,
.mvv-card-icon i,
.timeline-year,
.feature-list-item i,
.partner-feature i { color: var(--accent); }
.stat-block .stat-number { color: var(--accent); }
.btn-accent {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(0, 173, 238, 0.32);
}
.btn-accent:hover {
  background: var(--accent-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 173, 238, 0.42);
}
.btn-accent i { transition: transform 0.3s ease; }
.btn-accent:hover i { transform: translateX(4px); }

/* linha de acento no topo dos cards claros */
.service-card-light, .mvv-card { position: relative; overflow: hidden; }
.service-card-light::after,
.mvv-card::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.service-card-light:hover::after,
.mvv-card:hover::after { transform: scaleX(1); }

/* ── Hero: as fotos da Med Light são claras, o véu do North não segurava o texto ── */
.hero-overlay {
  background:
    linear-gradient(180deg, rgba(14, 24, 54, 0.80) 0%, rgba(14, 24, 54, 0.15) 26%),
    linear-gradient(105deg, rgba(14, 24, 54, 0.92) 0%, rgba(21, 34, 77, 0.80) 45%, rgba(21, 34, 77, 0.48) 100%);
}
.hero-bg h1 em { color: #6FD4F7; font-style: normal; }

/* ── Contraste entre seções (pedido do cliente) ──
   Alterna branco → azul claro → marinho. */
.sec-alt { background: var(--bg-light); }
.sec-white { background: var(--white); }
.sec-dark {
  background: linear-gradient(140deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: rgba(255, 255, 255, 0.86);
}
.sec-dark .section-title,
.sec-dark h2, .sec-dark h3, .sec-dark h4 { color: var(--white); }
.sec-dark .section-subtitle { color: rgba(255, 255, 255, 0.72); }
.sec-dark .section-tag { background: rgba(0, 173, 238, 0.16); color: #8BDCF9; }
.sec-dark .section-tag i { color: #8BDCF9; }

/* ════════════════════════════════════════
   CATÁLOGO DE PRODUTOS (home + /produtos)
   ════════════════════════════════════════ */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.product-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-light);
  overflow: hidden;
}
.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover .product-card-media img { transform: scale(1.06); }
.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--accent);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 3px;
}
.product-card-body {
  padding: 26px 26px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-cat {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.product-card h3 {
  font-size: 1.28rem;
  color: var(--primary);
  margin-bottom: 12px;
  line-height: 1.3;
}
.product-card p {
  color: var(--text-secondary);
  font-size: 15.5px;
  line-height: 1.65;
  margin-bottom: 20px;
}
.product-card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.product-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--primary);
}
.product-link i { transition: transform 0.3s ease; color: var(--accent); }
.product-card:hover .product-link { color: var(--accent); }
.product-card:hover .product-link i { transform: translateX(4px); }

/* ════════════════════════════════════════
   LP DE PRODUTO
   ════════════════════════════════════════ */
.pd-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: start;
}

/* galeria */
.pd-gallery-main {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.pd-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pd-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.pd-thumb {
  aspect-ratio: 1 / 1;
  border: 2px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-light);
  padding: 0;
  transition: border-color 0.25s ease;
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
/* Vídeo na galeria: toca no quadro principal; a miniatura leva o play */
.pd-gallery-main img[hidden] { display: none; }
.pd-gallery-main .pd-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0b1020;
}
.pd-thumb-video { position: relative; background: var(--primary-dark); }
.pd-thumb-video::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42%;
  max-width: 40px;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(14, 24, 54, 0.72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5v14l11-7z'/%3E%3C/svg%3E") 58% 50% / 52% no-repeat;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
  pointer-events: none;
}
/* Galeria de quadro quadrado (fotos em pé): quando a galeria é mais alta que
   o texto, a caixa de ação acompanha a rolagem; em coluna única (tablet) o
   quadro não passa de 560px, para o nome e o botão não irem para longe. */
@media (min-width: 1025px) {
  .pd-quadrada > .pd-info { position: sticky; top: 110px; }
}
@media (max-width: 1024px) {
  .pd-quadrada > * { width: 100%; max-width: 560px; margin-inline: auto; }
}
.pd-thumb:hover,
.pd-thumb.active { border-color: var(--accent); }

/* coluna de informação */
.pd-info .product-cat { font-size: 14px; }
.pd-info h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 18px;
  line-height: 1.18;
}
.pd-lead {
  font-size: 18.5px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
}
.pd-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.pd-note { font-size: 14.5px; color: var(--text-light); margin-bottom: 30px; }
.pd-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}
.pd-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 18px 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 3px;
}
.pd-badge i { font-size: 26px; color: var(--accent); }
.pd-badge span { font-size: 14px; font-weight: 600; color: var(--primary); }

/* diferenciais */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.diff-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 26px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.diff-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.diff-card i {
  flex-shrink: 0;
  font-size: 24px;
  color: var(--accent);
  margin-top: 2px;
}
.diff-card p { font-size: 16px; color: var(--text); line-height: 1.6; margin: 0; }

/* especificações */
.spec-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.spec-table { border-top: 2px solid var(--primary); }
.spec-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 15px 4px;
  border-bottom: 1px solid var(--border);
}
.spec-row dt { font-weight: 600; color: var(--primary); font-size: 16px; }
.spec-row dd { color: var(--text-secondary); font-size: 16px; text-align: right; }
.spec-text p { color: var(--text-secondary); font-size: 17px; line-height: 1.75; margin-bottom: 18px; }
/* Sem o botão de documento, o texto termina no parágrafo: a margem dele não
   vira espaço extra antes da ficha quando as colunas empilham. */
.spec-text > p:last-child { margin-bottom: 0; }
.spec-doc {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 14px 22px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-weight: 600;
  font-size: 15px;
  color: var(--primary);
  background: var(--white);
  transition: var(--transition);
}
.spec-doc i { font-size: 20px; color: var(--accent); }
.spec-doc:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* logística */
.logi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.logi-card {
  padding: 30px 26px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
  transition: var(--transition);
}
.logi-card:hover { background: rgba(255, 255, 255, 0.10); transform: translateY(-4px); }
.logi-card i { font-size: 32px; color: #6FD4F7; margin-bottom: 16px; display: block; }
.logi-card h3 { font-size: 1.15rem; color: var(--white); margin-bottom: 10px; }
.logi-card p { font-size: 15.5px; color: rgba(255, 255, 255, 0.72); line-height: 1.65; margin: 0; }

/* ════════════════════════════════════════
   SEÇÃO DE ORÇAMENTO (#orcamento)
   A mesma seção existe em todas as páginas. O formulário é o modelo do
   Elementor escolhido no widget: edita o modelo, muda em todas.
   ════════════════════════════════════════ */
.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: start;
}
.quote-aside h2 { color: var(--primary); margin-bottom: 18px; }
.quote-aside > p { color: var(--text-secondary); font-size: 17.5px; line-height: 1.75; margin-bottom: 30px; }
.quote-contacts { display: flex; flex-direction: column; gap: 16px; }
/* Celular e tablet: o formulário vem logo depois do título e do texto, e os
   contatos (e-mail, licitações, fábrica) descem para baixo dele. Quem toca em
   "Solicitar orçamento" cai direto no formulário. */
@media (max-width: 1024px) {
  .container > .quote-grid { display: flex; flex-direction: column; gap: 0; } /* vence o gap: 40px do bloco de 1024px mais abaixo */
  .quote-aside { display: contents; }
  .quote-aside > .section-tag { align-self: flex-start; }
  .quote-grid > .ethos-form { order: 1; }
  .quote-aside > .quote-contacts { order: 2; margin-top: 40px; }
}
.quote-contact {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 3px;
  transition: var(--transition);
}
.quote-contact:hover { border-color: var(--accent); transform: translateX(4px); }
.quote-contact i { font-size: 24px; color: var(--accent); }
.quote-contact div { display: flex; flex-direction: column; }
.quote-contact strong { font-size: 13px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-light); font-weight: 600; }
.quote-contact span { font-size: 16.5px; color: var(--primary); font-weight: 600; }


/* ── FAQ com a cor da marca ── */
.faq-question i { color: var(--accent); }

/* ════════════════════════════════════════
   RESPONSIVO DA CAMADA MED LIGHT
   ════════════════════════════════════════ */
/* Logo do cabeçalho: 46px (no HTML esta regra vem depois da de 768px) */
.header-logo-img { height: 46px; }
.footer-brand .header-logo-img { height: 54px; }

@media (max-width: 1024px) {
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .pd-grid, .spec-split, .quote-grid { grid-template-columns: 1fr; gap: 40px; }
  .logi-grid { grid-template-columns: repeat(2, 1fr); }
  .diff-grid { grid-template-columns: repeat(2, 1fr); }
  .pd-info h2 { font-size: 2.1rem; }
}

@media (max-width: 767px) {
  .catalog-grid { grid-template-columns: 1fr; gap: 22px; }
  .diff-grid, .logi-grid { grid-template-columns: 1fr; }
  .pd-badges { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .pd-badge { padding: 14px 6px; }
  .pd-badge span { font-size: 12.5px; }
  .pd-badge i { font-size: 22px; }
  .pd-thumbs { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .pd-info h2 { font-size: 1.85rem; }
  .pd-lead { font-size: 17px; }
  .pd-actions .btn { width: 100%; justify-content: center; }
  .spec-row { grid-template-columns: 1fr; gap: 4px; }
  .spec-row dd { text-align: left; }
  .header-logo-img { height: 38px; }
    .quote-contact { padding: 15px 16px; }
}

/* ── Correções da camada Med Light ── */

/* Páginas internas: header branco desde o topo, logo escuro apenas */
body.inner-page .header .logo-light { display: none; }
body.inner-page .header .logo-dark { display: block; }
body:not(.inner-page) .header .logo-dark { display: none; }

/* Hero das internas mais curto: o produto precisa aparecer rápido */
.page-hero { min-height: 62vh; padding: 190px 0 90px; }
.page-hero h1 { font-size: 2.9rem; max-width: 900px; }
.page-hero p { max-width: 720px; }
@media (max-width: 767px) {
  .page-hero { min-height: auto; padding: 130px 0 64px; }
  .page-hero h1 { font-size: 2rem; }
}

/* Véu do hero das internas — as fotos da Med Light são claras */
.page-hero.has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(105deg, rgba(14, 24, 54, 0.94) 0%, rgba(21, 34, 77, 0.84) 46%, rgba(21, 34, 77, 0.55) 100%);
}
.page-hero.has-image .container { position: relative; z-index: 2; }
.page-hero.has-image .page-hero-pattern { z-index: 1; }

/* O <h1> visual da LP é o da coluna de informação; o do hero manda no SEO */
.pd-info h2 { font-weight: 600; }

/* ── Categorias em 4 colunas (as 4 linhas de produto na mesma faixa) ── */
.services-grid-4 { grid-template-columns: repeat(4, 1fr); gap: 22px; }
.services-grid-4 .service-card { padding: 34px 26px; }
.services-grid-4 .service-card-title { font-size: 1.22rem; }
.services-grid-4 .service-card-desc { font-size: 15.5px; }

@media (max-width: 1100px) {
  .services-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .services-grid-4 { grid-template-columns: 1fr; }
}

/* ── Foto dentro do círculo do CTA ── */
.cta-image-circle { overflow: visible; }
.cta-image-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  /* a foto é clara demais para o fundo marinho da seção */
  filter: saturate(1.05) brightness(0.92);
}
.cta-image-circle::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(150deg, rgba(0, 173, 238, 0.16), rgba(14, 24, 54, 0.42));
  pointer-events: none;
}

/* ── Números técnicos dentro do hero (referência do cliente) ── */
.hero-bg .hero-buttons { margin-bottom: 60px; }
.hero-bg .hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 640px;
}
.hero-bg .hero-stat {
  text-align: left;
  padding: 20px 22px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-bg .hero-stat::after { display: none; }
.hero-bg .hero-stat-number {
  color: #6FD4F7;
  font-size: 1.7rem;
  margin-bottom: 6px;
  white-space: nowrap;
}
.hero-bg .hero-stat-label {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

@media (max-width: 991px) {
  .hero-bg .hero-stats { max-width: 100%; }
}
@media (max-width: 767px) {
  /* três colunas continuam, mas compactas — empilhar jogaria a dobra longe demais */
  .hero-bg .hero-buttons { margin-bottom: 36px; }
  .hero-bg .hero-stats { gap: 10px; }
  .hero-bg .hero-stat { padding: 14px 12px; text-align: center; }
  .hero-bg .hero-stat-number { font-size: 1.05rem; margin-bottom: 4px; }
  .hero-bg .hero-stat-label { font-size: 10.5px; letter-spacing: 0.02em; }
}

/* ── Hero das internas na mesma largura das demais seções ──
   A base vinha com o container em 820px, então o texto começava
   ~190px mais para dentro que o resto do site. */
.page-hero .container { max-width: 1200px; }


/* ════════════════════════════════════════════════════════
   TEMA ETHOS — utilidades
   O que existe por causa do WordPress e do editor, e não
   fazia parte do design system original.
   ════════════════════════════════════════════════════════ */

/* Seção que escapa do container do Elementor e ocupa a tela inteira.
   O conteúdo continua centralizado na largura do tema. */
.ethos-full {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.ethos-secao { position: relative; }
/* Âncoras (#orcamento, #modelos, #especificacoes...): abrindo pelo link,
   a seção para abaixo do cabeçalho fixo, sem esconder o título. */
.elementor-element[id],
section[id] { scroll-margin-top: 90px; }

/* Pular para o conteúdo (teclado e leitor de tela) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 100000;
  padding: 12px 22px;
  background: var(--white);
  color: var(--primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  font-weight: 600;
}

/* Logo: imagem, texto ou máscara pintada com a cor do tema */
.header-logo img,
.mobile-nav-logo img,
.footer-brand img { height: 46px; width: auto; display: block; }
.footer-brand img { height: 54px; }
/* no rodapé o logo vem dentro de um span: ele acompanha a imagem, sem altura própria */
.footer-brand span.header-logo-img { height: auto; }
/* No layout aprovado o menu do celular não mostra a logo: só o espaço do topo. */
.mobile-nav-logo > * { display: none !important; }
.ethos-logo-texto {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: currentColor;
}
.ethos-logo-mask {
  display: block;
  height: 46px;
  width: calc(46px * var(--logo-ar, 3));
  background-color: var(--primary);
  -webkit-mask-size: contain;
          mask-size: contain;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: left center;
          mask-position: left center;
}
.footer .ethos-logo-mask,
.header:not(.scrolled) .logo-light .ethos-logo-mask { background-color: var(--white); }

/* Aviso mostrado só dentro do editor */
.ethos-aviso {
  padding: 28px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-light);
  text-align: center;
}

/* Cabeçalho de seção alinhado à esquerda */
.ethos-header-esquerda { text-align: left; }
.ethos-header-esquerda .section-title,
.ethos-header-esquerda .section-subtitle { margin-left: 0; margin-right: 0; }

/* Variações de coluna pedidas pelos widgets */
.services-grid-2 { grid-template-columns: repeat(2, 1fr); }
.services-grid-4 { grid-template-columns: repeat(4, 1fr); gap: 22px; }
.services-grid-4 .service-card { padding: 34px 26px; }
.services-grid-4 .service-card-title { font-size: 1.22rem; }
.services-grid-4 .service-card-desc { font-size: 15.5px; }

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

.diff-grid-2 { grid-template-columns: repeat(2, 1fr); }

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

/* Inversões de lado */
.about-invertido .about-image { order: 2; }
.about-invertido .about-content { order: 1; }
.quote-grid-invertido { grid-template-columns: 1.05fr 1fr; }

/* Paginação das listagens */
.pagina-links,
.navigation.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 48px;
}
.navigation.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--primary);
  font-weight: 600;
}
.navigation.pagination .page-numbers.current,
.navigation.pagination .page-numbers:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-texto);
}

/* Responsivo das grades novas */
@media (max-width: 1100px) {
  .services-grid-4,
  .catalog-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .logi-grid-3,
  .logi-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .catalog-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .quote-grid-invertido { grid-template-columns: 1fr; }
  .diff-grid-2 { grid-template-columns: 1fr; }
  .about-invertido .about-image,
  .about-invertido .about-content { order: initial; }
}
@media (max-width: 767px) {
  .services-grid-2,
  .services-grid-4,
  .catalog-grid-2,
  .catalog-grid-3,
  .catalog-grid-4,
  .logi-grid-2,
  .logi-grid-3,
  .logi-grid-4 { grid-template-columns: 1fr; }
  .ethos-logo-mask { height: 38px; width: calc(38px * var(--logo-ar, 3)); }
  .header .header-logo img, .mobile-nav-logo img { height: 38px; }
}

/* ── Imagem de fundo por baixo do véu das seções escuras ── */
.ethos-fundo-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  pointer-events: none;
}
.services .ethos-fundo-img { z-index: 0; }
.services::before { z-index: 0; }
.services > .container { position: relative; z-index: 1; }

/* ── Cards de ícone em fundo claro ── */
.services-claro { position: relative; }

/* ── Foto inteira, sem corte (catálogo e galeria) ── */
.ajuste-inteira .product-card-media,
.ajuste-inteira .pd-gallery-main { background: var(--bg-light); }
.ajuste-inteira .product-card-media img,
.ajuste-inteira .pd-gallery-main img,
.elementor .ajuste-inteira .product-card-media img,
.elementor .ajuste-inteira .pd-gallery-main img { object-fit: contain; }
.ajuste-inteira .product-card:hover .product-card-media img { transform: scale(1.03); }

/* ── Rodapé ── */
.footer-credit { display: inline-flex; align-items: center; gap: 7px; }
.footer-credit-logo { width: auto !important; height: 26px !important; object-fit: contain; }

/* Parágrafos dentro dos blocos de texto dos widgets (no HTML eram <p> soltos) */
.about-text p { margin-bottom: 16px; }
.about-text p:last-child { margin-bottom: 0; }
.spec-text p { margin-bottom: 18px; }

/* Preloader com logo em <img> ou máscara */
.preloader-logo img, .preloader-logo .ethos-logo-mask { height: 56px; width: auto; display: block; }
.preloader-logo .ethos-logo-mask { width: calc(56px * var(--logo-ar, 3)); background-color: var(--white); }

/* ── Modelos: foto + ficha técnica de cada modelo, um abaixo do outro ── */
.modelo {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 64px;
  align-items: start;
}
.modelo + .modelo { margin-top: 72px; padding-top: 72px; border-top: 1px solid var(--border); }
.modelo-invertido { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.modelo-invertido .modelo-foto { order: 2; }
.modelo-sem-foto { grid-template-columns: minmax(0, 1fr); }
.modelo-foto {
  position: sticky;
  top: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Mesma altura para todas as molduras (foto em pé, quadrada ou deitada):
     a foto fica centralizada e o fundo preenche o resto. */
  min-height: min(696px, calc(100vh - 144px));
  padding: 28px;
  border-radius: var(--radius);
  overflow: hidden;
}
.modelo-foto-escuro { background: #000; }
.modelo-foto-claro { background: var(--bg-light); border: 1px solid var(--border); }
.modelo-foto.modelo-foto-nenhum { min-height: 0; padding: 0; }
.modelo-foto img,
.elementor .modelo-foto img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(640px, calc(100vh - 200px));
  object-fit: contain;
  border-radius: 0;
}
.modelo-etiqueta {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.modelo-nome { font-size: 2.1rem; font-weight: 600; line-height: 1.18; color: var(--primary); margin-bottom: 18px; }
.modelo-descricao p,
.modelo-descricao li { color: var(--text-secondary); font-size: 17px; line-height: 1.75; }
.modelo-descricao p { margin-bottom: 16px; }
.modelo-descricao ul,
.modelo-descricao ol { margin: 0 0 16px; padding: 0; list-style: none; }
.modelo-descricao li { position: relative; padding-left: 24px; margin-bottom: 8px; }
.modelo-descricao li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.modelo-descricao > :last-child { margin-bottom: 0; }
.modelo-ficha-titulo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary);
  margin: 34px 0 14px;
}
.modelo-ficha-titulo i { font-size: 22px; color: var(--accent); }
.modelo .spec-doc { margin-top: 26px; }
/* Ficha dos modelos: o item tem mais espaço que o valor, e os dois ficam na
   mesma linha até no celular (a ficha é longa; empilhar dobraria a altura). */
.modelo .spec-row { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
/* O traço que separa um modelo do outro já faz o papel da última linha. */
.modelo .spec-row:last-child { border-bottom: 0; }

@media (max-width: 1024px) {
  .modelo,
  .modelo-invertido { gap: 40px; }
  .modelo-foto { min-height: min(560px, calc(100vh - 160px)); padding: 20px; }
  .modelo-foto img,
  .elementor .modelo-foto img { max-height: min(520px, calc(100vh - 200px)); }
  .modelo-nome { font-size: 1.85rem; }
}

@media (max-width: 767px) {
  .modelo,
  .modelo-invertido { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .modelo-invertido .modelo-foto { order: 0; }
  .modelo-foto { position: relative; top: auto; min-height: 0; }
  .modelo-foto img,
  .elementor .modelo-foto img { max-height: 440px; }
  .modelo + .modelo { margin-top: 56px; padding-top: 56px; }
  .modelo-nome { font-size: 1.75rem; }
  .modelo-descricao p,
  .modelo-descricao li { font-size: 16px; }
  .modelo-ficha-titulo { margin-top: 28px; }
  .modelo .spec-row { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 14px; padding: 13px 2px; }
  .modelo .spec-row dt,
  .modelo .spec-row dd { font-size: 15px; }
  .modelo .spec-row dd { text-align: right; }
  .modelo .spec-doc { width: 100%; justify-content: center; }
}
