/* Rodtech corporate stylesheet & design system */

:root {
  /* Colors - Light Theme (Default) */
  --primary: #1C4856;            /* Azul Profundo Corporativo */
  --primary-hover: #153641;      /* Azul Profundo mais escuro */
  --secondary: #248B9B;          /* Ciano Conectividade */
  --accent: #3BBCCB;             /* Azul Claro Tech */
  --accent-hover: #2ba2b0;       /* Azul Claro Tech mais escuro */
  --bg-primary: #F4F8F9;         /* Cinza Fundo Digital (Fundo claro) */
  --bg-secondary: #FFFFFF;       /* Branco Puro */
  --bg-card: #FFFFFF;            /* Cards brancos */
  --text-main: #222831;          /* Grafite Escuro */
  --text-muted: #555D6B;         /* Grafite Suave */
  --border-color: #E2E8F0;       /* Borda clara suave */

  /* Typography */
  --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-title: 'Montserrat', sans-serif;

  /* Spacing & Layout */
  --container-max-width: 1200px;
  --header-height: 80px;
  --section-padding: 4rem 0;
  --container-padding: 0 1.5rem;

  /* Fluid Typography */
  --font-hero-title: 2.25rem;
  --font-section-title: 1.75rem;

  /* Shadow & Transitions */
  --shadow-lg: 0 10px 15px -3px rgba(34, 40, 49, 0.06), 0 4px 6px -2px rgba(34, 40, 49, 0.04);
  --shadow-hover: 0 20px 40px -8px rgba(34, 40, 49, 0.14), 0 8px 16px -4px rgba(34, 40, 49, 0.08);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 12px;

  /* Animation System (Spec 012) */
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.4, 0, 1, 1);
  --duration-fast: 0.25s;
  --duration-base: 0.45s;
  --duration-slow: 0.65s;
}

html.dark-mode {
  /* Colors - Dark Theme (Override) */
  --bg-primary: #0b0f19;
  --bg-secondary: #111827;
  --bg-card: #1f2937;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --accent: #10b981;             /* WhatsApp Green */
  --accent-hover: #059669;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --border-color: #374151;
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.15);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title) !important;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Page Entry and Exit Animations (RF-03) */
html.js-enabled body {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

html.js-enabled body.page-loaded {
  opacity: 1;
  transform: translateY(0);
}

html.js-enabled body.page-leaving {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.4s var(--ease-in), transform 0.4s var(--ease-in);
}

/* RF-05: Color theme transition — applied to body to cascade to all elements */
body {
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

a {
  color: inherit;
  text-decoration: none;
}

li {
  list-style: none;
}

/* Utility Components */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(28, 72, 86, 0.35);
}

.btn-whatsapp {
  background-color: var(--accent);
  color: var(--primary);
  font-weight: 700;
}

html.dark-mode .btn-whatsapp {
  color: #ffffff;
}

.btn-whatsapp:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(59, 188, 203, 0.4);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* Header & Navigation */
header {
  height: var(--header-height);
  background-color: rgba(244, 248, 249, 0.9);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
}

html.dark-mode header {
  background-color: rgba(11, 15, 25, 0.9);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-title);
}

html.dark-mode .logo {
  color: #ffffff;
}

.logo span {
  color: var(--secondary);
}

/* Mobile-First Navigation & Menu Toggle */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}

.hamburger-bar {
  width: 100%;
  height: 3px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

html.dark-mode .hamburger-bar {
  background-color: #ffffff;
}

.menu-toggle.active .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .hamburger-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-menu {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 0 1.5rem;
  gap: 0;
  align-items: stretch;
  z-index: 99;
  box-shadow: var(--shadow-lg);
  /* RF-04: animate with max-height + opacity instead of display toggle */
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(-12px);
  transition:
    max-height 0.28s var(--ease-out),
    opacity    0.22s var(--ease-out),
    transform  0.25s var(--ease-spring);
}

html.dark-mode .nav-menu {
  background-color: var(--bg-secondary);
}

.nav-menu.active {
  max-height: 420px;
  opacity: 1;
  overflow: visible;
  pointer-events: auto;
  transform: translateY(0);
  padding: 2rem 1.5rem;
  gap: 1.5rem;
  transition:
    max-height 0.32s var(--ease-spring),
    opacity    0.25s var(--ease-out),
    transform  0.28s var(--ease-spring);
}

.nav-link {
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
  width: 100%;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link--active {
  color: var(--primary);
  font-weight: 700;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 2px;
}

html.dark-mode .nav-link:hover {
  color: #ffffff;
}

.nav-menu .btn {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}

/* Hero Section (Mobile-First Default) */
.hero {
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 4rem;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  min-height: auto;
  position: relative;
  overflow: hidden;
}

/* Animated background orbs */
.hero-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.hero-bg-orb--1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(36, 139, 155, 0.18) 0%, transparent 70%);
  top: -120px;
  right: -100px;
  animation: orb-drift-1 12s ease-in-out infinite alternate;
}

.hero-bg-orb--2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(28, 72, 86, 0.12) 0%, transparent 70%);
  bottom: -80px;
  left: -60px;
  animation: orb-drift-2 15s ease-in-out infinite alternate;
}

html.dark-mode .hero-bg-orb--1 {
  background: radial-gradient(circle, rgba(37, 99, 235, 0.22) 0%, transparent 70%);
}

html.dark-mode .hero-bg-orb--2 {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
}

@keyframes orb-drift-1 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-40px, 30px) scale(1.1); }
}

@keyframes orb-drift-2 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, -20px) scale(0.95); }
}

/* Subtle tech dot-grid overlay */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(36, 139, 155, 0.18) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
  opacity: 0.5;
}

html.dark-mode .hero-bg-grid {
  background-image: radial-gradient(circle, rgba(37, 99, 235, 0.25) 1px, transparent 1px);
  opacity: 0.4;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 700px;
}

/* Rotating text typewriter */
.hero-rotate-wrapper {
  display: inline-block;
  color: var(--secondary);
  white-space: nowrap;
}

.hero-rotate-text {
  display: inline;
}

.hero-cursor {
  display: inline-block;
  color: var(--secondary);
  animation: blink-cursor 0.75s step-end infinite;
  margin-left: 1px;
  font-weight: 300;
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Service pill badges */
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  background-color: rgba(36, 139, 155, 0.08);
  border: 1px solid rgba(36, 139, 155, 0.25);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  opacity: 0;
  transform: translateY(12px);
  animation: pill-enter 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

html.dark-mode .hero-pill {
  background-color: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.3);
  color: #93c5fd;
}

.hero-pill:nth-child(1) { animation-delay: 0.9s; }
.hero-pill:nth-child(2) { animation-delay: 1.1s; }
.hero-pill:nth-child(3) { animation-delay: 1.3s; }
.hero-pill:nth-child(4) { animation-delay: 1.5s; }

.hero-pill svg {
  flex-shrink: 0;
  opacity: 0.75;
}

@keyframes pill-enter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-tagline {
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* RF-01: Hero sequential stagger entrance */
@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-tagline,
.hero-title,
.hero-description,
.hero-ctas {
  opacity: 0;
  animation: hero-enter var(--duration-slow) var(--ease-spring) forwards;
}

.hero-tagline,
.anim-hero-first { animation-delay: 0.05s; }
.hero-title       { animation-delay: 0.17s; }
.hero-description { animation-delay: 0.29s; }
.hero-ctas        { animation-delay: 0.41s; }

/* .anim-hero-first: generic first-slot stagger for non-tagline hero elements */
.anim-hero-first {
  opacity: 0;
  animation: hero-enter var(--duration-slow) var(--ease-spring) forwards;
}

.hero-title {
  font-size: var(--font-hero-title);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* RF-06: Consistent button hover */
.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Footer Section */
footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer-brand p {
  margin-top: 1rem;
  max-width: 300px;
}

.footer-nav h4 {
  color: var(--text-main);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

html.dark-mode .footer-nav h4 {
  color: #ffffff;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-nav a:hover {
  color: var(--primary);
}

html.dark-mode .footer-nav a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  text-align: center;
}

/* Services and Products Section Common Styles */
.section {
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}

.section-tagline {
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: var(--font-section-title);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
}

.section-description {
  color: var(--text-muted);
}

/* Services Grid (IT Support) */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.service-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 1.75rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
}

.service-icon-wrapper {
  width: 50px;
  height: 50px;
  background-color: rgba(37, 99, 235, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.service-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.service-card-description {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
  flex-grow: 1;
}

/* Products Grid (Access Control) */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.product-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
}

.product-image-placeholder {
  height: 180px;
  background-color: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.product-image {
  position: absolute;
  max-width: 100%;
  max-height: 100%;
  padding: 1.5rem;
  object-fit: contain;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-image.front {
  opacity: 1;
  transform: scale(1);
}

.product-image.side {
  opacity: 0;
  transform: scale(0.9) rotate(-3deg);
}

.product-card:hover .product-image.front {
  opacity: 0;
  transform: scale(0.9) rotate(3deg);
}

.product-card:hover .product-image.side {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--primary);
  color: #ffffff;
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 30px;
  letter-spacing: 1px;
}

.product-info {
  padding: 1.5rem 0 0 0;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--text-main);
}

.product-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.product-spec-list {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-spec-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.product-spec-item svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* Floating WhatsApp Widget */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--accent);
  color: var(--primary);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4), 0 0 0 0px rgba(16, 185, 129, 0.4);
  z-index: 999;
  transition: var(--transition);
  animation: pulse-ring 2s infinite;
}

html.dark-mode .whatsapp-float {
  color: #ffffff;
}

.whatsapp-float:hover {
  background-color: var(--accent-hover);
  transform: scale(1.1);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5);
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4), 0 0 0 0px rgba(16, 185, 129, 0.6);
  }
  70% {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4), 0 0 0 0px rgba(16, 185, 129, 0);
  }
}
/* Branding and Partnership Logos */
.logo-img {
  max-height: 40px;
  width: auto;
  object-fit: contain;
}

.footer-brand .logo-img {
  max-height: 35px;
}

.partners-section {
  padding: 3rem 0;
  background-color: var(--primary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

html.dark-mode .partners-section {
  background-color: var(--bg-secondary);
}

.partners-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

html.dark-mode .partners-title {
  color: var(--text-muted);
}

.partners-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.partner-logo {
  max-height: 40px;
  width: auto;
  opacity: 0.8;
  filter: none;
  transition: var(--transition);
}

html.dark-mode .partner-logo {
  opacity: 0.7;
  filter: grayscale(100%);
}

.partner-logo:hover {
  opacity: 1;
}

html.dark-mode .partner-logo:hover {
  filter: grayscale(0%);
}

/* Service Card Highlight */
.service-card.highlight {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.15);
  position: relative;
}

.service-card.highlight::after {
  content: 'Especialidade';
  position: absolute;
  top: -12px;
  right: 20px;
  background-color: var(--primary);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 30px;
  letter-spacing: 1px;
}

/* Services Page Styles */
.services-hero {
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: 5rem;
  background: radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.12) 0%, transparent 60%), 
              radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.08) 0%, transparent 60%),
              var(--bg-primary);
  display: flex;
  align-items: center;
  min-height: auto;
  text-align: center;
}

.services-hero-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.go-safe-badge {
  background-color: rgba(36, 139, 155, 0.1);
  border: 1px solid rgba(36, 139, 155, 0.3);
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 2rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--primary);
}

html.dark-mode .go-safe-badge {
  background-color: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.3);
  color: #ffffff;
}

.go-safe-badge-logo {
  max-height: 20px;
  width: auto;
}

.segmentation-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.segment-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 1.75rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.segment-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
}

.segment-card.highlight {
  border-color: var(--primary);
  box-shadow: 0 4px 25px rgba(37, 99, 235, 0.15);
}

.segment-icon-wrapper {
  width: 56px;
  height: 56px;
  background-color: rgba(28, 72, 86, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  color: var(--primary);
}

html.dark-mode .segment-icon-wrapper {
  background-color: rgba(37, 99, 235, 0.1);
}

.segment-card.highlight .segment-icon-wrapper {
  background-color: rgba(28, 72, 86, 0.2);
  color: var(--primary);
}

html.dark-mode .segment-card.highlight .segment-icon-wrapper {
  background-color: rgba(37, 99, 235, 0.2);
  color: #ffffff;
}

.segment-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.segment-subtitle {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.segment-description {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.segment-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
}

.segment-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.segment-list li svg {
  color: var(--primary);
  flex-shrink: 0;
}

.partnership-badge-container {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 2rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.partnership-badge-image {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #0f172a; /* Slate 900 para contraste com logo branca em ambos os temas */
  border-radius: var(--border-radius);
  padding: 3rem 2rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.partnership-gosafe-logo {
  max-width: 250px;
  height: auto;
}

/* Control iD CTA Banner on Home */
.controlid-cta-banner {
  background-color: var(--primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 2.5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

html.dark-mode .controlid-cta-banner {
  background-color: var(--bg-secondary);
}

.controlid-cta-banner:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 25px rgba(59, 188, 203, 0.15);
}

.controlid-cta-content {
  max-width: 750px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.controlid-cta-banner .go-safe-badge {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.controlid-cta-title {
  font-size: var(--font-section-title);
  font-weight: 800;
  color: #ffffff;
  margin-top: 1rem;
  margin-bottom: 1.25rem;
}

.controlid-cta-description {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

html.dark-mode .controlid-cta-description {
  color: var(--text-muted);
}

.controlid-cta-buttons {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

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

/* Responsive adjustments (Mobile-First) */
@media (min-width: 768px) {
  :root {
    --section-padding: 8rem 0;
    --container-padding: 0 2rem;
    --font-hero-title: 3rem;
    --font-section-title: 2.25rem;
  }

  .menu-toggle {
    display: none;
  }

  .nav-menu {
    display: flex;
    flex-direction: row;
    position: static;
    background-color: transparent;
    border-bottom: none;
    padding: 0;
    gap: 2rem;
    align-items: center;
    box-shadow: none;
  }

  .nav-link {
    padding: 0;
    border-bottom: none;
    width: auto;
  }

  .nav-link--active {
    border-bottom: 2px solid var(--primary);
    padding-bottom: 2px;
  }

  .nav-menu .btn {
    width: auto;
    margin-top: 0;
  }

  .nav-menu .theme-toggle {
    margin-left: 1rem;
    align-self: center;
  }

  .hero {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 6rem;
    min-height: 80vh;
  }

  .hero-description {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
  }

  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
  }

  .service-card {
    padding: 2.5rem;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
  }

  .product-image-placeholder {
    height: 220px;
  }

  .product-info {
    padding: 2rem;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
  }

  .services-hero {
    padding-top: calc(var(--header-height) + 5rem);
    padding-bottom: 7rem;
    min-height: 70vh;
  }

  .segmentation-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }

  .partnership-badge-container {
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    padding: 4rem 2rem;
    text-align: left;
  }

  .partnership-badge-info .section-title,
  .partnership-badge-info .section-description {
    text-align: left !important;
  }

  .partnership-gosafe-logo {
    max-width: 250px;
  }

  .controlid-cta-banner {
    padding: 4rem;
  }

  .controlid-cta-title {
    font-size: 2rem;
  }

  .controlid-cta-description {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
  }

  .controlid-cta-buttons {
    flex-direction: row;
    width: auto;
    max-width: none;
    margin: 0;
    gap: 1.5rem;
  }

  .controlid-cta-buttons .btn {
    width: auto;
  }

  .segment-card {
    padding: 3rem;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .whatsapp-float {
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
  }
}

/* Theme Toggle Button */
.theme-toggle {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  transition: var(--transition);
  border: 1px solid var(--border-color);
  margin-left: 1rem;
}

.theme-toggle:hover {
  background-color: var(--border-color);
  color: var(--primary);
}

html.dark-mode .theme-toggle:hover {
  color: #ffffff;
}

/* Toggle SVG icon states (RF-05: rotation animation on switch) */
.theme-icon {
  transition: transform 0.3s var(--ease-spring), opacity 0.2s ease;
}

.theme-icon.sun-icon {
  display: none;
}

.theme-icon.moon-icon {
  display: block;
}

html.dark-mode .theme-icon.sun-icon {
  display: block;
}

html.dark-mode .theme-icon.moon-icon {
  display: none;
}

/* RF-05: Transition key structural elements for smooth theme switching */
header,
.service-card,
.product-card,
.segment-card,
.nav-menu,
.footer-nav a,
.section-title,
.section-tagline {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

/* Scroll Reveal Classes (RF-02: spring easing, fixed bottom-up entry) */
.reveal,
.reveal-slide-up,
.reveal-fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration-slow) var(--ease-spring),
              transform var(--duration-slow) var(--ease-spring);
  will-change: opacity, transform;
}

/* Reveal Active State */
.active-reveal {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Accessibility: Reduced Motion Preference (RF-08) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: scroll !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
  .reveal, .reveal-slide-up, .reveal-fade-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  html.js-enabled body {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  /* Hero stagger overrides */
  .hero-tagline,
  .anim-hero-first,
  .hero-title,
  .hero-description,
  .hero-ctas {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  /* Background animation overrides */
  .hero-bg-orb { animation: none !important; }
  .hero-pill   { opacity: 1 !important; transform: none !important; animation: none !important; }
  .hero-cursor { animation: none !important; }
}

/* Centered single-card layout helper */
.services-grid.single-card {
  grid-template-columns: 1fr;
  max-width: 600px;
  margin: 0 auto;
}

/* Service Card Bullet Lists */
.service-spec-list {
  margin-top: 1rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-align: left;
  flex-grow: 1;
}

.service-spec-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.service-spec-item svg {
  color: var(--secondary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* 4-column layout exclusively for controlid services section */
@media (min-width: 1024px) {
  .services-grid--four-col {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}
