/* ==========================================================================
   PCSTART DIGITAL - MODERN DESIGN SYSTEM & PREMIUM STYLESHEET
   ========================================================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700;800;900&family=Maven+Pro:wght@500;700;800;900&display=swap');

/* CSS Variables & Theme Setup */
:root {
  /* Color Palette - HSL Tailored Colors */
  --clr-primary: hsl(201, 100%, 40%);        /* #0087cc - PCstart Blue */
  --clr-secondary: hsl(195, 100%, 46%);      /* #00aeea - Light Blue */
  --clr-accent: hsl(164, 100%, 48%);         /* #00f7b5 - Neon Green Highlight */
  
  --clr-bg-dark: hsl(201, 62%, 15%);         /* #0f2e3f - Deep Ocean Dark */
  --clr-bg-dark-rgb: 15, 46, 63;
  --clr-bg-black: hsl(200, 50%, 8%);         /* #040c11 - Darker shade for contrast */
  
  --clr-text-dark: hsl(210, 15%, 25%);       /* #3d3d3d */
  --clr-text-light: hsl(210, 10%, 60%);      /* #8e9ca6 */
  --clr-text-white: hsl(0, 0%, 100%);
  
  --clr-bg-light: hsl(0, 0%, 97%);           /* #f7f7f7 */
  --clr-bg-white: hsl(0, 0%, 100%);
  
  /* Fonts */
  --ff-headings: 'Maven Pro', 'Montserrat', sans-serif;
  --ff-body: 'Inter', sans-serif;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Shadows & Glassmorphism */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.12);
}

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

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

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

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

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

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

li {
  list-style: none;
}

/* Typography Utility Classes */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-headings);
  font-weight: 700;
  line-height: 1.2;
}

.title-giant {
  font-family: var(--ff-headings);
  font-size: clamp(3.5rem, 10vw, 9.5rem);
  font-weight: 900;
  color: var(--clr-bg-light);
  text-transform: lowercase;
  user-select: none;
  line-height: 0.8;
  letter-spacing: -2px;
}

.title-xl {
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--clr-text-dark);
  margin-bottom: 1rem;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--clr-text-light);
  max-width: 600px;
  margin-bottom: 2rem;
  font-weight: 300;
}

.badge {
  display: inline-block;
  color: var(--clr-primary);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 1.5rem;
}

.badge::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 2px;
  background-color: var(--clr-primary);
}

/* Layout Utilities */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section {
  padding: 8rem 0;
  position: relative;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
  align-items: center;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 4px;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.btn-primary {
  background-color: var(--clr-primary);
  color: var(--clr-text-white);
}

.btn-primary:hover {
  background-color: var(--clr-secondary);
  box-shadow: 0 10px 20px rgba(0, 134, 205, 0.25);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background-color: var(--clr-primary);
  color: var(--clr-text-white);
  border-color: var(--clr-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-outline-white:hover {
  background-color: var(--clr-text-white);
  color: var(--clr-bg-dark);
  transform: translateY(-2px);
}

/* HEADER & NAVIGATION */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: all var(--transition-normal);
  padding: 0.875rem 0;
}

.site-header.transparent {
  background-color: transparent;
}

.site-header.scrolled {
  background-color: rgba(0, 96, 156, 0.9) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.625rem 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header.scrolled .nav-link {
  color: var(--clr-text-white);
}

.site-header.scrolled .nav-link:hover {
  color: var(--clr-accent) !important;
}

.site-header.solid-colored {
  background-color: rgba(0, 96, 156, 0.9) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.625rem 0;
}

.site-header.solid-colored .nav-link {
  color: var(--clr-text-white) !important;
}

.site-header.solid-colored .nav-link:hover {
  color: var(--clr-accent) !important;
}

.site-header.solid-colored .logo-text {
  color: var(--clr-text-white) !important;
}

.site-header.solid-colored .logo-text span {
  color: var(--clr-accent) !important;
}

.site-header.solid-colored .menu-toggle span {
  background-color: var(--clr-text-white) !important;
}

.site-header.scrolled .logo-white {
  display: none;
}

.site-header.scrolled .logo-color {
  display: block;
}

.site-header.transparent .logo-white {
  display: block;
}

.site-header.transparent .logo-color {
  display: none;
}

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

.header-container .main-nav {
  margin-left: auto;
}

.logo-wrap {
  width: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  transition: transform var(--transition-fast);
}

.site-logo:hover {
  transform: scale(1.03);
}

.site-logo img {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
}

.logo-wrap .site-logo img {
  width: 225px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.site-logo-footer {
  margin-bottom: 1.5rem;
}

.site-logo-footer img {
  width: 240px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.logo-wrap img {
  width: auto;
  transition: transform var(--transition-normal);
}

.logo-wrap:hover img {
  transform: scale(1.03);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-family: var(--ff-headings);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--clr-text-white);
  padding: 0.5rem 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--clr-secondary);
  transition: width var(--transition-normal);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active::after {
  width: 100% !important;
  background-color: var(--clr-accent) !important;
}

.nav-link.active {
  color: var(--clr-text-white) !important;
}

/* Dropdown Menu styling */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: -20px;
  background-color: var(--clr-bg-white);
  border-radius: 8px;
  padding: 1rem 0;
  width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 0.6rem 1.8rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--clr-text-dark);
  transition: all var(--transition-fast);
}

.dropdown-link:hover {
  background-color: var(--clr-bg-light);
  color: var(--clr-primary);
  padding-left: 2.2rem;
}

/* Menu Toggle Button (Mobile) */
.menu-toggle {
  display: none;
  background: transparent;
  cursor: pointer;
  z-index: 110;
  flex-direction: column;
  gap: 6px;
  width: 30px;
  height: 20px;
  justify-content: space-between;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--clr-text-white);
  transition: all var(--transition-normal);
}

.site-header.scrolled .menu-toggle span {
  background-color: var(--clr-text-white) !important;
}

/* Mobile Overlay Menu */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--clr-bg-dark);
  z-index: 105;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.mobile-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-overlay .main-nav {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  text-align: center;
}

.mobile-overlay .nav-link {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--clr-text-white);
}

.mobile-overlay .nav-dropdown {
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  background-color: transparent;
  box-shadow: none;
  border: none;
  text-align: center;
  padding: 0.5rem 0 0 0;
  display: none;
  width: 100%;
}

.mobile-overlay .nav-item.active .nav-dropdown {
  display: block;
}

.mobile-overlay .dropdown-link {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
}

.mobile-overlay .dropdown-link:hover {
  background-color: transparent;
  color: var(--clr-secondary);
}

/* HERO SLIDER SECTION */
.hero-video {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: var(--clr-bg-black);
}

.hero-video video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  will-change: transform;
}

.hero-video .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  text-align: right;
  color: var(--clr-text-white);
  max-width: 800px;
  margin-left: auto;
}

.hero-content h1 {
  font-size: clamp(1.8rem, 4.2vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-content h1 span {
  color: var(--clr-secondary);
}

.hero-content p {
  font-size: clamp(0.85rem, 1.3vw, 1.05rem);
  font-weight: 400;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
}

.hero-btn-group {
  display: flex;
  gap: 1.5rem;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mouse-icon {
  width: 26px;
  height: 42px;
  border: 2px solid var(--clr-text-white);
  border-radius: 15px;
  position: relative;
  opacity: 0.8;
  transition: opacity var(--transition-fast);
}

.mouse-icon:hover {
  opacity: 1;
}

.mouse-icon .wheel {
  width: 4px;
  height: 8px;
  background-color: var(--clr-accent);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 1.6s ease-in-out infinite;
}

@keyframes scrollWheel {
  0% {
    top: 6px;
    opacity: 1;
  }
  50% {
    top: 18px;
    opacity: 0;
  }
  100% {
    top: 6px;
    opacity: 0;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content h1 {
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  animation-delay: 0.2s;
}

.hero-content p {
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  animation-delay: 0.4s;
}

.hero-btn-group {
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  animation-delay: 0.6s;
}

/* SECTION: SOBRE */
.about-section {
  background-color: var(--clr-bg-white);
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.015) 1px, transparent 1px);
  background-size: 30px 30px;
  background-position: center center;
  z-index: 0;
  pointer-events: none;
}

.about-section .container {
  position: relative;
  z-index: 2;
}

.about-image-wrap {
  position: relative;
  overflow: hidden;
}

.about-image {
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: transform var(--transition-slow);
}

.about-image:hover {
  transform: translateY(-5px);
}

.about-floating-card {
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  background-color: var(--clr-primary);
  color: var(--clr-text-white);
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  max-width: 280px;
}

.about-floating-card h3 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.about-floating-card p {
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.9;
}

/* SECTION: SERVICES (O QUE FAZEMOS) */
.services-section {
  background-color: var(--clr-bg-light);
}

.services-intro {
  margin-bottom: 4rem;
}

.services-grid-wrapper {
  margin-top: 2rem;
}

.service-card {
  background-color: var(--clr-bg-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.service-card:hover {
  transform: translate3d(0, -8px, 0);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 134, 205, 0.2);
}

.service-img-container {
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 10;
}

.service-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.service-card:hover .service-img-container img {
  transform: scale(1.06) rotate(1deg);
}

.service-content {
  padding: 2.5rem;
}

.service-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--clr-text-dark);
  margin-bottom: 1rem;
}

.service-title a:hover {
  color: var(--clr-primary);
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.service-tag {
  background-color: var(--clr-bg-light);
  color: var(--clr-text-light);
  padding: 0.4rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.service-tag::before {
  content: '#';
  color: var(--clr-primary);
  margin-right: 2px;
}

.service-card:hover .service-tag {
  background-color: rgba(0, 134, 205, 0.05);
  color: var(--clr-primary);
}

/* BACKGROUND TEXT EFFECT ROW */
.bg-title-row {
  background-color: var(--clr-bg-white);
  padding: 3rem 0;
  overflow: hidden;
  display: flex;
  justify-content: flex-end;
  width: 100%;
  max-width: 100%;
}

/* PORTFOLIO SECTION */
.portfolio-section {
  background-color: var(--clr-bg-dark);
  color: var(--clr-text-white);
}

.portfolio-header {
  margin-bottom: 5rem;
}

.portfolio-header .badge {
  color: var(--clr-secondary);
}

.portfolio-header .badge::before {
  background-color: var(--clr-secondary);
}

.portfolio-header .title-xl {
  color: var(--clr-text-white);
}

/* Custom Slider styling for Portfolio */
.portfolio-carousel-wrapper {
  position: relative;
  margin: 0 -5vw;
  padding: 0 5vw;
}

.portfolio-carousel {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 3rem;
  scrollbar-width: none; /* Firefox */
}

.portfolio-carousel::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.portfolio-slide {
  flex: 0 0 calc(25% - 1.5rem); /* 4 columns */
  scroll-snap-align: start;
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all var(--transition-normal);
  position: relative;
  aspect-ratio: 1 / 1;
}

.portfolio-slide:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.06);
}

.portfolio-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: transform var(--transition-slow), opacity var(--transition-normal);
}

.portfolio-slide:hover .portfolio-slide-img {
  transform: scale(1.05);
  opacity: 0.95;
}

.portfolio-slide-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  background: linear-gradient(to top, rgba(15, 46, 63, 0.95) 0%, rgba(15, 46, 63, 0.5) 60%, rgba(15, 46, 63, 0) 100%);
  z-index: 2;
  transform: translateY(10px);
  transition: transform var(--transition-normal);
}

.portfolio-slide:hover .portfolio-slide-info {
  transform: translateY(0);
}

.portfolio-slide-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--clr-text-white);
  margin-bottom: 0.3rem;
}

.portfolio-slide-cat {
  font-size: 0.8rem;
  color: var(--clr-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.portfolio-nav-btns {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
}

.portfolio-nav-btn {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--clr-text-white);
  width: 50px;
  height: 50px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.portfolio-nav-btn:hover {
  background-color: var(--clr-primary);
  border-color: var(--clr-primary);
}

.portfolio-nav-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* PAGE HEADER (SUBPAGES) */
.page-hero {
  padding-top: 12rem;
  padding-bottom: 6rem;
  background: linear-gradient(135deg, #00609c 0%, hsl(200, 50%, 8%) 100%);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  background-position: center center;
  z-index: 1;
}


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

.page-hero .title-xl {
  margin-bottom: 0.5rem;
  color: var(--clr-text-white);
}

.page-hero .subtitle {
  margin-bottom: 0;
  font-size: 1.25rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
}

.page-hero .badge {
  color: var(--clr-accent);
}

.page-hero .badge::before {
  background-color: var(--clr-accent);
}

/* INSTITUTIONAL VIDEO & HISTORY (SOBRE NOS) */
.video-section {
  padding: 0;
  background-color: var(--clr-bg-black);
  height: 70vh;
  position: relative;
  overflow: hidden;
}

.video-section video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 1 / 1;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.08) rotate(1deg);
}

/* Timeline/History styling */
.history-section {
  background-color: var(--clr-bg-dark);
  color: var(--clr-text-white);
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 4rem auto 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.1);
}

.timeline-item {
  position: relative;
  margin-bottom: 4rem;
  width: 50%;
  padding: 0 3rem;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-badge {
  position: absolute;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--clr-primary);
  color: var(--clr-text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  z-index: 5;
  box-shadow: 0 0 0 6px rgba(15, 46, 63, 1), 0 0 20px rgba(0, 134, 205, 0.4);
}

.timeline-item:nth-child(odd) .timeline-badge {
  right: -20px;
}

.timeline-item:nth-child(even) .timeline-badge {
  left: -20px;
}

.timeline-year {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--clr-secondary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.timeline-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--clr-text-white);
  margin-bottom: 1rem;
}

.timeline-content {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}

/* REPARAÇÕES PAGE SPECIFICS */
.rep-intro-section {
  background-color: var(--clr-bg-white);
}

.features-highlight {
  background-color: var(--clr-bg-dark);
  color: var(--clr-text-white);
  padding: 5rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  text-align: center;
}

.feature-box img {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem auto;
}

.feature-box h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  letter-spacing: 1px;
}

.feature-box p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* CONTACTOS PAGE SPECIFICS */
.contacts-section {
  background-color: var(--clr-bg-white);
}

.contacts-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 6rem;
}

.info-card {
  background-color: var(--clr-bg-light);
  padding: 3rem 2.5rem;
  border-radius: 8px;
  text-align: center;
  transition: transform var(--transition-normal);
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.info-card:hover {
  transform: translateY(-5px);
}

.info-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem auto;
}

.info-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  color: var(--clr-text-dark);
}

.info-card p {
  font-size: 0.95rem;
  color: var(--clr-text-light);
  line-height: 1.6;
}

.info-card a:hover {
  color: var(--clr-primary);
}

.map-wrapper {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 6rem;
  height: 450px;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
}

/* Contact Form styling */
.contact-form-container {
  max-width: 800px;
  margin: 0;
}

.form-title {
  text-align: center;
  margin-bottom: 3rem;
}

.form-title-left {
  text-align: left;
}

.form-title-left .subtitle {
  margin: 0;
  max-width: 640px;
}

.form-submit-wrap {
  text-align: left;
}

.form-submit-wrap .btn {
  padding: 1rem 3rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  position: relative;
}

.form-group-full {
  grid-column: span 2;
}

.form-input {
  width: 100%;
  padding: 1rem 1.5rem;
  background-color: var(--clr-bg-white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  font-size: 0.95rem;
  color: var(--clr-text-dark);
  transition: all var(--transition-fast);
}

.form-input:focus {
  background-color: var(--clr-bg-white);
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(0, 96, 156, 0.15);
}

textarea.form-input {
  height: 150px;
  resize: none;
}

.form-checkbox-wrapper {
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.form-checkbox-wrapper input[type="checkbox"] {
  margin-top: 0.3rem;
  cursor: pointer;
}

.form-checkbox-label {
  font-size: 0.85rem;
  color: var(--clr-text-light);
  line-height: 1.5;
}

.form-checkbox-label a {
  color: var(--clr-text-dark);
  font-weight: 600;
}

.form-checkbox-label a:hover {
  color: var(--clr-primary);
}

.form-recaptcha-text {
  font-size: 0.8rem;
  color: var(--clr-text-light);
  margin-bottom: 2rem;
}

/* FOOTER SECTION */
.custom-footer {
  background-color: var(--clr-bg-dark);
  color: var(--clr-text-white);
  padding: 6rem 0 3rem 0;
  position: relative;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 5rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
  width: 200px;
  margin-bottom: 2rem;
}

.footer-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
}

.footer-heading {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--clr-secondary);
  margin-bottom: 1.8rem;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transition-fast);
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--clr-secondary);
  transition: width var(--transition-normal);
}

.footer-links a:hover {
  color: var(--clr-text-white);
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-contacts p {
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-contacts .phone-note {
  font-size: 0.72rem;
  font-style: italic;
  color: var(--clr-text-light);
  opacity: 0.6;
  display: block;
  margin-top: -0.6rem;
  margin-bottom: 0.8rem;
  padding-left: 1.7rem;
}

.footer-contacts a:hover {
  color: var(--clr-secondary);
}

/* Newsletter Form inside footer */
.footer-newsletter-wrap {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 2rem 2.5rem;
  margin: 3rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.footer-newsletter-wrap:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.newsletter-info h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--clr-text-white);
  margin-bottom: 0;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 50%;
  max-width: 500px;
}

.newsletter-input-group {
  display: flex;
  gap: 1rem;
  width: 100%;
}

.newsletter-input {
  flex: 1;
  padding: 0.9rem 1.5rem;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--clr-text-white);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.newsletter-input:focus {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--clr-text-white);
  border-color: var(--clr-secondary);
  box-shadow: 0 0 15px rgba(0, 174, 234, 0.25);
}

.newsletter-privacy-note {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  text-align: left;
  margin-top: 0.2rem;
  line-height: 1.4;
}

.footer-socials {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.social-title {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--clr-secondary);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(255, 255, 255, 0.03);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  transition: all var(--transition-fast);
}

.social-link:hover {
  background-color: var(--clr-primary);
  border-color: var(--clr-primary);
  color: var(--clr-text-white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.5rem;
}

.footer-copyright {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-legal .footer-copyright {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}

.footer-copyright a {
  color: var(--clr-text-white);
  font-weight: 600;
}

.social-link svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.footer-seals {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.footer-seal-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.footer-seals img,
.footer-seal-livro {
  display: block;
  height: 45px;
  width: auto;
  max-width: none;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity var(--transition-fast);
}

.footer-seals img:hover,
.footer-seal-livro:hover {
  opacity: 1;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

@media (max-width: 1024px) {
  .logo-wrap .site-logo img {
    width: 210px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  
  .footer-top .footer-info-col {
    grid-column: span 2;
  }
  
  .footer-newsletter-wrap {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 1.5rem;
  }
  
  .newsletter-form {
    width: 100%;
    max-width: none;
  }

  .newsletter-privacy-note {
    text-align: center;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .portfolio-slide {
    flex: 0 0 calc(33.333% - 1.33rem);
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .contacts-info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 5rem 0;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .header-container > .main-nav {
    display: none;
  }
  
  .logo-wrap {
    max-width: none;
  }

  .logo-wrap .site-logo img {
    width: 200px;
  }

  .site-logo-footer img {
    width: 200px;
  }
  
  .hero-content h1 {
    font-size: 2.8rem;
  }
  
  .hero-btn-group {
    flex-direction: column;
    gap: 1rem;
  }
  
  .about-floating-card {
    position: static;
    margin-top: 2rem;
    max-width: none;
  }
  
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .portfolio-slide {
    flex: 0 0 calc(50% - 1rem);
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 0;
    text-align: left !important;
  }
  
  .timeline-item:nth-child(even) {
    left: 0;
  }
  
  .timeline-badge {
    left: 0 !important;
    right: auto !important;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .form-group-full {
    grid-column: span 1;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
  }
  
  .footer-top .footer-info-col {
    grid-column: span 1;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  
  .footer-seals {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
  }

  .footer-developed {
    white-space: normal;
    width: 100%;
  }

  .footer-legal-links {
    width: 100%;
    justify-content: flex-end;
    text-align: right;
    margin-left: 0;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .portfolio-slide {
    flex: 0 0 100%;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* Brand Typography & Logo Overrides */
.logo-text {
  font-family: var(--ff-headings);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  transition: transform var(--transition-fast);
}

.logo-text:hover {
  transform: scale(1.03);
}

.transparent .logo-text {
  color: var(--clr-text-white);
}

.scrolled .logo-text {
  color: var(--clr-text-white);
}

.logo-text span {
  font-weight: 300;
  opacity: 0.8;
  margin-left: 3px;
}

.transparent .logo-text span {
  color: rgba(255, 255, 255, 0.75);
}

.scrolled .logo-text span {
  color: var(--clr-accent);
}

.footer-logo-text {
  color: var(--clr-text-white) !important;
  margin-bottom: 1.5rem;
}

.footer-logo-text span {
  color: var(--clr-secondary) !important;
  font-weight: 300;
  opacity: 0.85;
}

.brand-digital {
  font-weight: 300;
  opacity: 0.85;
  color: var(--clr-secondary);
}

/* PROJECT & DEMO CARDS */
.project-grid {
  margin-top: 3rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  padding: 0 !important; /* Override standard card-premium padding */
  border-radius: 12px;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  background-color: var(--clr-bg-white);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.project-card:hover {
  transform: translate3d(0, -8px, 0);
  box-shadow: var(--shadow-lg);
}

.project-card-header {
  height: 180px;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.project-card-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.4) 0%, transparent 100%);
  z-index: 1;
}

.project-card-header .project-badge {
  position: relative;
  z-index: 2;
  background-color: var(--clr-primary);
  color: var(--clr-text-white);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.project-card-body {
  padding: 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-card-body h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--clr-text-dark);
}

.project-card-body p {
  font-size: 0.95rem;
  color: var(--clr-text-light);
  line-height: 1.6;
}

.demo-card-color-box {
  height: 160px;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-headings);
  font-weight: 700;
  color: var(--clr-text-white);
  font-size: 1.15rem;
  transition: transform var(--transition-normal);
}

.demo-card:hover .demo-card-color-box {
  transform: scale(1.02);
}

/* Premium Icon-based Service Card */
.service-card-icon {
  background-color: var(--clr-bg-white);
  border-radius: 12px;
  padding: 3rem 2.2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card-icon:hover {
  transform: translate3d(0, -8px, 0);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 96, 156, 0.15);
}

.service-icon-box {
  width: 54px;
  height: 54px;
  background-color: rgba(0, 96, 156, 0.06);
  color: var(--clr-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-normal);
}

.service-card-icon:hover .service-icon-box {
  background-color: var(--clr-primary);
  color: var(--clr-text-white);
  transform: scale(1.05);
}

.service-icon-box svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card-icon h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--clr-text-dark);
  margin-bottom: 1rem;
}

.service-card-icon p {
  font-size: 0.95rem;
  color: var(--clr-text-light);
  line-height: 1.6;
}

.service-card-icon ul {
  margin-top: 1.5rem;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  list-style: none;
  text-align: left;
}

.service-card-icon li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--clr-text-dark);
}

.service-card-icon li svg {
  width: 16px;
  height: 16px;
  color: var(--clr-accent);
  flex-shrink: 0;
  margin-top: 4px;
}


/* Process Section Styles */
.process-section {
  background-color: var(--clr-bg-white);
  position: relative;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 4rem;
}

@media (max-width: 1024px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
}

.process-step-card {
  background-color: var(--clr-bg-light);
  border-radius: 12px;
  padding: 2.5rem;
  border: 1px solid rgba(0, 0, 0, 0.03);
  box-shadow: none;
  position: relative;
  transition: transform var(--transition-normal), border-color var(--transition-normal), background-color var(--transition-normal), box-shadow var(--transition-normal);
}

.process-step-card:hover {
  transform: translate3d(0, -5px, 0);
  border-color: rgba(0, 96, 156, 0.15);
  background-color: var(--clr-bg-white);
  box-shadow: var(--shadow-md);
}

.process-number {
  font-family: var(--ff-headings);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--clr-secondary);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: 0.8rem;
  transition: opacity var(--transition-fast);
}

.process-step-card:hover .process-number {
  opacity: 0.35;
}

.process-step-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--clr-text-dark);
  margin-bottom: 0.75rem;
}

.process-step-card p {
  font-size: 0.95rem;
  color: var(--clr-text-light);
  line-height: 1.6;
}

/* SECTION: TESTIMONIALS */
.testimonials-section {
  display: none;
  background-color: var(--clr-bg-light);
}

.testimonials-slider-wrapper {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.testimonials-slider {
  position: relative;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-slide {
  position: absolute;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.testimonial-slide.active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.testimonial-quote {
  font-family: var(--ff-headings);
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--clr-text-dark);
  font-style: italic;
  margin-bottom: 2.5rem;
  letter-spacing: -0.5px;
}

@media (max-width: 768px) {
  .testimonial-quote {
    font-size: 1.4rem;
  }
}

.testimonial-client {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
}

.client-avatar {
  width: 50px;
  height: 50px;
  background-color: var(--clr-primary);
  color: var(--clr-text-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-headings);
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(0, 96, 156, 0.25);
}

.client-info h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clr-text-dark);
  margin-bottom: 0.15rem;
}

.client-info p {
  font-size: 0.88rem;
  color: var(--clr-text-light);
}

.testimonials-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 3.5rem;
}

.testimonial-nav-btn {
  background: var(--clr-bg-white);
  border: 1px solid rgba(0, 0, 0, 0.05);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.testimonial-nav-btn:hover {
  transform: scale(1.05);
  border-color: var(--clr-primary);
  box-shadow: var(--shadow-md);
}

.testimonial-nav-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--clr-text-dark);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.testimonials-dots {
  display: flex;
  gap: 0.6rem;
}

.testimonials-dots .dot {
  width: 8px;
  height: 8px;
  background-color: rgba(0, 0, 0, 0.12);
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.testimonials-dots .dot.active {
  background-color: var(--clr-primary);
  transform: scale(1.2);
}

/* SECTION: CTA BANNER */
.cta-banner-section {
  background: linear-gradient(135deg, #00609c 0%, hsl(200, 50%, 8%) 100%);
  position: relative;
  overflow: hidden;
  padding: 8rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cta-banner-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 30px 30px;
  background-position: center center;
  z-index: 1;
  pointer-events: none;
}

.cta-banner-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.cta-banner-content .badge {
  color: var(--clr-accent);
  margin-bottom: 2rem;
}

.cta-banner-content .badge::before {
  background-color: var(--clr-accent);
}

.cta-banner-content h2 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--clr-text-white);
  margin-bottom: 2rem;
  letter-spacing: -1.5px;
}

.cta-banner-content h2 span {
  color: var(--clr-accent);
}

@media (max-width: 768px) {
  .cta-banner-content h2 {
    font-size: 2.2rem;
  }
}

.cta-banner-content p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 3.5rem;
}

@media (max-width: 768px) {
  .cta-banner-content p {
    font-size: 1rem;
    margin-bottom: 2.5rem;
  }
}

.cta-btn-group {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

@media (max-width: 480px) {
  .cta-btn-group {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Footer Capital do Móvel Logo */
.footer-capital-logo {
  margin-top: 1.2rem;
  display: inline-block;
  padding: 0.5rem 0; /* Margem de segurança conforme as regras do manual de normas */
}

.footer-capital-logo img {
  height: 100px; /* Altura do logótipo duplicada para 100px conforme solicitado */
  width: auto;
  opacity: 0.85;
  transition: opacity var(--transition-fast);
}

.footer-capital-logo img:hover {
  opacity: 1;
}

/* ==========================================================================
   BACK TO TOP BUTTON (PREMIUM GLASSMORPHISM & PROGRESS RING)
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.5); /* Vidro escuro semi-transparente premium para contraste equilibrado em fundos claros */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--clr-text-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.9);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  border-color: var(--clr-accent);
  box-shadow: 0 0 25px rgba(0, 230, 118, 0.4), 
              0 0 45px rgba(0, 96, 156, 0.3),
              0 10px 30px rgba(0, 0, 0, 0.4);
}

.back-to-top:hover .arrow-icon {
  color: var(--clr-accent);
  transform: translate3d(0, -3px, 0);
}

/* Progress Ring SVG */
.progress-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  width: 56px;
  height: 56px;
  pointer-events: none;
}

.progress-ring__circle-bg {
  stroke: rgba(255, 255, 255, 0.08);
}

.progress-ring__circle {
  stroke: var(--clr-accent);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.1s linear;
}

/* Arrow Icon Container */
.arrow-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.3s ease;
}

.arrow-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

/* ==========================================================================
   WHATSAPP PREMIUM BUTTON (GLASSMORPHISM, HOVER GLOW & PULSE)
   ========================================================================== */
.whatsapp-btn {
  position: fixed;
  bottom: 6.5rem; /* Posição acima do botão Voltar ao Início */
  right: 2rem;
  z-index: 999;
  background: rgba(15, 23, 42, 0.5); /* Vidro escuro semi-transparente premium com destaque verde para contraste equilibrado em fundos claros */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(37, 211, 102, 0.4);
  border-radius: 30px;
  color: var(--clr-text-white);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
  overflow: visible;
}

.whatsapp-btn-content {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.4rem;
}

.whatsapp-icon {
  color: #25d366; /* Verde oficial WhatsApp */
  display: block;
  animation: whatsapp-pulse 2s infinite ease-in-out;
  transition: transform 0.3s ease;
}

.whatsapp-text {
  font-family: var(--ff-headings);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* Hover glow effect */
.whatsapp-btn:hover {
  border-color: #25d366;
  background: rgba(37, 211, 102, 0.2);
  transform: translate3d(0, -4px, 0) scale(1.02);
  box-shadow: 0 0 25px rgba(37, 211, 102, 0.45), 
              0 0 45px rgba(0, 96, 156, 0.25),
              0 15px 35px rgba(0, 0, 0, 0.35);
}

.whatsapp-btn:hover .whatsapp-icon {
  transform: scale(1.1);
}

/* Tooltip */
.whatsapp-tooltip {
  position: absolute;
  right: calc(100% + 1rem);
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background: rgba(0, 96, 156, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--clr-text-white);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.whatsapp-btn:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Pulse animation for WhatsApp Icon */
@keyframes whatsapp-pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
    filter: drop-shadow(0 0 5px rgba(37, 211, 102, 0.6));
  }
  100% {
    transform: scale(1);
  }
}

/* Responsive Styles for WhatsApp Button */
@media (max-width: 768px) {
  .whatsapp-btn {
    border-radius: 50%;
    width: 56px;
    height: 56px;
    bottom: 6.5rem; /* Fica alinhado verticalmente acima do botão Voltar ao Início */
    right: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .whatsapp-btn-content {
    padding: 0;
    justify-content: center;
  }
  
  .whatsapp-text {
    display: none; /* Ocultar o texto no mobile */
  }
}

/* ==========================================================================
   TRAJECTORY ITEMS HOVER EFFECTS (ABOUT US PAGE)
   ========================================================================== */
.trajectory-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  transition: transform var(--transition-normal);
}

.trajectory-item span {
  color: var(--clr-primary);
  font-weight: 800;
  font-family: var(--ff-headings);
  font-size: 1.25rem;
  min-width: 60px;
  padding-top: 2px;
  transition: color var(--transition-fast);
}

.trajectory-item h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--clr-bg-dark);
  font-family: var(--ff-headings);
}

.trajectory-item p {
  color: var(--clr-text-light);
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.trajectory-item:hover {
  transform: translate3d(5px, 0, 0);
}

.trajectory-item:hover span {
  color: var(--clr-accent) !important; /* Transição para o verde neon oficial */
}

/* About Image Card Premium Glow (About Us Page) */
.about-image-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.04);
  background: var(--clr-bg-white);
  padding: 0.5rem;
  transition: border-color var(--transition-normal),
              box-shadow var(--transition-normal);
}

.about-image-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-image-card:hover {
  border-color: rgba(0, 96, 156, 0.25);
  box-shadow: 0 10px 30px rgba(0, 96, 156, 0.1), 
              0 0 20px rgba(0, 96, 156, 0.05);
}

.about-image-card:hover img {
  transform: scale(1.03) translate3d(0, 0, 0);
}

/* Project Card Mini Mockups styling */
.project-card-header {
  position: relative;
  height: 180px;
  display: flex;
  align-items: flex-end;
  padding: 1.2rem;
  overflow: hidden;
}

.project-card-header .project-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 5;
  background-color: var(--clr-bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--clr-text-white);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Mini Mockup Window */
.mini-window {
  width: 90%;
  height: 120px;
  background-color: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: transform var(--transition-normal);
  transform: translateY(10px);
}

.project-card:hover .mini-window {
  transform: translateY(0) scale(1.02);
}

.mini-window-header {
  height: 20px;
  background-color: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  padding: 0 8px;
  gap: 4px;
}

.dots {
  display: flex;
  gap: 3px;
}

.dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
}

.mini-window-content {
  flex-grow: 1;
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

/* Specific mockup content grids */
.mockup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.mockup-bar {
  height: 6px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.mockup-bar.short { width: 60%; }
.mockup-bar.medium { width: 80%; }
.mockup-bar.accent { background-color: var(--clr-accent); }
.mockup-bar.secondary { background-color: var(--clr-secondary); }

.mockup-box {
  height: 35px;
  background-color: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.4);
}

.mockup-box.highlight {
  border-color: rgba(0, 247, 181, 0.25);
  background-color: rgba(0, 247, 181, 0.03);
}

.mockup-wave {
  display: flex;
  align-items: flex-end;
  height: 40px;
  gap: 3px;
  justify-content: center;
}

.mockup-wave span {
  width: 3px;
  height: 10px;
  background-color: var(--clr-secondary);
  border-radius: 1.5px;
  animation: mini-wave 1.2s infinite ease-in-out alternate;
}

.mockup-wave span:nth-child(2) { height: 25px; animation-delay: 0.2s; background-color: var(--clr-accent); }
.mockup-wave span:nth-child(3) { height: 15px; animation-delay: 0.4s; }
.mockup-wave span:nth-child(4) { height: 30px; animation-delay: 0.6s; background-color: var(--clr-accent); }
.mockup-wave span:nth-child(5) { height: 18px; animation-delay: 0.8s; }

@keyframes mini-wave {
  0% { transform: scaleY(0.5); }
  100% { transform: scaleY(1.3); }
}

/* Cookie consent banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  padding: 1rem 0;
  background: rgba(15, 46, 63, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

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

.cookie-banner__inner {
  max-width: 1200px;
}

.cookie-banner__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-banner__content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 0;
  flex: 1;
  min-width: 260px;
}

.cookie-banner__content a {
  color: var(--clr-accent);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.65rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.cookie-btn-light {
  border-color: rgba(255, 255, 255, 0.35) !important;
  color: var(--clr-text-white) !important;
}

.cookie-btn-light:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}

.cookie-btn-dark {
  color: var(--clr-text-dark) !important;
}

body.cookie-modal-open {
  overflow: hidden;
}

.cookie-preferences {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.cookie-preferences.open {
  opacity: 1;
  pointer-events: auto;
}

.cookie-preferences__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 12, 17, 0.65);
}

.cookie-preferences__panel {
  position: relative;
  width: min(560px, 100%);
  max-height: min(90vh, 680px);
  background: var(--clr-bg-white);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cookie-preferences__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.cookie-preferences__header h2 {
  font-family: var(--ff-headings);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--clr-bg-dark);
  margin: 0;
}

.cookie-preferences__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--clr-bg-light);
  color: var(--clr-text-dark);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.cookie-preferences__close:hover {
  background: #eceff1;
}

.cookie-preferences__body {
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
}

.cookie-preferences__intro {
  font-size: 0.9rem;
  color: var(--clr-text-light);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.cookie-category {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.cookie-category:last-child {
  border-bottom: none;
}

.cookie-category__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-category h3 {
  font-family: var(--ff-headings);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--clr-bg-dark);
  margin-bottom: 0.35rem;
}

.cookie-category p {
  font-size: 0.85rem;
  color: var(--clr-text-light);
  line-height: 1.55;
  margin: 0;
}

.cookie-category__badge {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--clr-primary);
  background: rgba(0, 135, 204, 0.1);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
}

.cookie-toggle {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  width: 46px;
  height: 26px;
  cursor: pointer;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.cookie-toggle__slider {
  position: absolute;
  inset: 0;
  background: #cfd8dc;
  border-radius: 999px;
  transition: background var(--transition-fast);
}

.cookie-toggle__slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--transition-fast);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.cookie-toggle input:checked + .cookie-toggle__slider {
  background: var(--clr-primary);
}

.cookie-toggle input:checked + .cookie-toggle__slider::before {
  transform: translateX(20px);
}

.cookie-toggle input:focus-visible + .cookie-toggle__slider {
  outline: 2px solid var(--clr-primary);
  outline-offset: 2px;
}

.cookie-preferences__footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  padding: 1rem 1.5rem 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  flex-wrap: wrap;
}

.footer-legal {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem 2rem;
  flex-wrap: wrap;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.35rem 0.75rem;
  font-size: 0.88rem;
  line-height: 1.5;
  margin-left: auto;
  text-align: right;
}

.footer-legal-links a,
.footer-link-btn {
  color: rgba(255, 255, 255, 0.72);
  transition: color var(--transition-fast);
}

.footer-legal-links a:hover,
.footer-link-btn:hover {
  color: var(--clr-text-white);
}

.footer-legal-links .footer-sep {
  color: rgba(255, 255, 255, 0.25);
  user-select: none;
}

.footer-link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-developed {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
  flex-shrink: 0;
  text-align: left;
}

.footer-developed strong {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.legal-content h2 {
  font-family: var(--ff-headings);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--clr-bg-dark);
  margin: 2rem 0 0.85rem;
}

.legal-content p,
.legal-content li {
  color: var(--clr-text-dark);
  line-height: 1.75;
  margin-bottom: 0.85rem;
}

.legal-content ul {
  margin: 0.5rem 0 1rem 1.25rem;
}

.legal-content a {
  color: var(--clr-primary);
  text-decoration: underline;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1rem 0 1.5rem;
}

.legal-table th,
.legal-table td {
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0.75rem 0.85rem;
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: var(--clr-bg-light);
  font-weight: 600;
}

@media (max-width: 768px) {
  #main {
    max-width: 100%;
    overflow-x: clip;
  }

  .page-hero {
    padding-top: 6.5rem;
    padding-bottom: 2rem;
  }

  .page-hero .title-xl {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
  }

  .bg-title-row {
    display: none;
  }

  .legal-section.section {
    padding-top: 2rem !important;
    padding-bottom: 4rem !important;
  }

  .portfolio-carousel-wrapper {
    margin: 0;
    padding: 0;
  }

  .legal-content {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .legal-table {
    min-width: 520px;
  }

  .cookie-banner__content p {
    min-width: 0;
  }

  .hero-video video {
    display: none;
  }

  .hero-video {
    background-image: url('/images/foco-inovacao.webp'), url('/images/foco-inovacao.jpg');
    background-size: cover;
    background-position: center;
  }

  .cookie-banner__content {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner__actions {
    flex-direction: column;
  }

  .cookie-banner__actions .btn {
    width: 100%;
  }

  .cookie-preferences__footer {
    flex-direction: column;
  }

  .cookie-preferences__footer .btn {
    width: 100%;
  }
}

