/* FMIT - Facility Management Solutions */
/* Custom CSS to complement Tailwind CSS */

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

/* ============================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================ */
:root {
  --color-primary: #041D38;
  --color-primary-dark: #021428;
  --color-primary-light: #0a2d52;
  --color-accent: #9AC33C;
  --color-accent-dark: #7a9c2f;
  --color-accent-light: #afd44f;
  --color-neutral-50: #f8fafc;
  --color-neutral-100: #f1f5f9;
  --color-neutral-200: #e2e8f0;
  --color-neutral-300: #cbd5e1;
  --color-neutral-400: #94a3b8;
  --color-neutral-500: #64748b;
  --color-neutral-600: #475569;
  --color-neutral-700: #334155;
  --color-neutral-800: #1e293b;
  --color-neutral-900: #0f172a;
  --font-heading: 'Poppins', system-ui, sans-serif;
  --font-body: 'Roboto', system-ui, sans-serif;
  --transition-base: all 0.3s ease;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.15);
}

/* ============================================
   BASE STYLES
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  color: var(--color-neutral-800);
  background-color: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 700;
}

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

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

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-primary { color: var(--color-primary); }
.text-accent { color: var(--color-accent); }
.bg-primary { background-color: var(--color-primary); }
.bg-accent { background-color: var(--color-accent); }

.font-heading { font-family: var(--font-heading); }
.font-body { font-family: var(--font-body); }

/* ============================================
   NAVIGATION
   ============================================ */
#navbar {
  transition: all 0.4s ease;
  backdrop-filter: blur(0px);
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(10px);
}

.nav-link {
  position: relative;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: var(--transition-base);
  padding: 0.25rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width 0.3s ease;
}

.nav-link:hover {
  --tw-text-opacity: 1;
    color: rgb(154 195 60 / var(--tw-text-opacity, 1));
}

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

.nav-link.active {
  --tw-text-opacity: 1;
    color: rgb(154 195 60 / var(--tw-text-opacity, 1));
}

.fmit-c1 {
  background-color: #9ac33c;
}

/* Dropdown */
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  transform: translateX(-50%);
  background-color: #ffffff;
  
  box-shadow: var(--shadow-xl);
  min-width: 240px;
  z-index: 100;
  overflow: hidden;
  border-top: 3px solid var(--color-accent);
}

.dropdown-menu.show {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  color: var(--color-neutral-700);
  font-weight: 500;
  transition: var(--transition-base);
  border-bottom: 1px solid var(--color-neutral-100);
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background-color: var(--color-neutral-50);
  color: var(--color-primary);
  padding-left: 1.5rem;
}

/* Mobile Menu */
#mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-primary);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

#mobile-menu.open {
  display: flex;
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: var(--transition-base);
}

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

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-base);
  border: 2px solid transparent;
}

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

.btn-primary:hover {
  background-color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(154, 195, 60, 0.35);
}

.btn-outline {
  background-color: transparent;
  color: #ffffff;
  border-color: rgba(255,255,255,0.6);
}

.btn-outline:hover {
  background-color: rgba(255,255,255,0.1);
  border-color: #ffffff;
  transform: translateY(-1px);
}

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

.btn-outline-dark:hover {
  background-color: var(--color-primary);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-outline-accent {
  background-color: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn-outline-accent:hover {
  background-color: var(--color-accent);
  color: #ffffff;
  transform: translateY(-1px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  min-height: 100vh;
  background-color: var(--color-primary);
  position: relative;
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 58, 74, 0.90) 0%,
    rgba(26, 58, 74, 0.65) 50%,
    rgba(26, 58, 74, 0.42) 100%
  );
  z-index: 1;
}

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

.hero-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 700;
  line-height: 1.1;
  color: #ffffff;
}

.hero-title .accent {
  color: var(--color-accent);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.8);
  max-width: 520px;
  line-height: 1.7;
}

/* Stats bar */
.stats-bar {
  background-color: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  
}

.stat-item {
  text-align: center;
  padding: 1.25rem 1.5rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
}

/* Hero image grid */
.hero-image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.5rem;
  height: 480px;
}

.hero-img-item {
  position: relative;
  overflow: hidden;
  
}

.hero-img-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-img-item:hover img {
  transform: scale(1.05);
}

.hero-img-item.accent-block {
  background-color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img-item.primary-block {
  background-color: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   SECTION STYLES
   ============================================ */
.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
}

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

.section-title.light {
  color: #ffffff;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--color-neutral-500);
  max-width: 600px;
  line-height: 1.7;
}

.section-subtitle.light {
  color: rgba(255,255,255,0.75);
}

/* ============================================
   AUDIENCE CARDS (Para quem trabalhamos)
   ============================================ */
.audience-card {
  background-color: #ffffff;
  border: 1px solid var(--color-neutral-200);
  
  padding: 2rem;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.audience-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--color-accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s ease;
}

.audience-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.audience-card:hover::before {
  transform: scaleY(1);
}

.audience-icon {
  width: 56px;
  height: 56px;
  background-color: var(--color-neutral-100);
  
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: var(--transition-base);
}

.audience-card:hover .audience-icon {
  background-color: var(--color-accent);
}

.audience-card:hover .audience-icon svg {
  color: #ffffff;
}

.audience-icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-primary);
  transition: var(--transition-base);
}

/* ============================================
   CLIENT LOGOS
   ============================================ */
.clients-section {
  background-color: var(--color-neutral-50);
}

.client-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 2rem;
  
}


.client-logo-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.client-logo-badge .abbr {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary);
}

.client-logo-badge .name {
  font-size: 0.7rem;
  color: var(--color-neutral-500);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   WHY FMIT SECTION
   ============================================ */
.why-section {
  background-color: var(--color-primary);
}

.why-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.75rem 0;
}

.why-feature-icon {
  width: 24px;
  height: 24px;
  background-color: var(--color-accent);
  
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.why-feature-icon svg {
  width: 14px;
  height: 14px;
  color: #ffffff;
}

.why-feature-text {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
}

.testimonial-card {
  background-color: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  
  padding: 2rem;
  position: relative;
}

.testimonial-quote {
  font-size: 4rem;
  line-height: 0.5;
  color: var(--color-accent);
  font-family: Georgia, serif;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  font-style: italic;
}

.testimonial-author {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  
  background-color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: #ffffff;
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 600;
  color: #ffffff;
  font-size: 0.9375rem;
}

.testimonial-role {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
}

/* ============================================
   TESTIMONIAL SLIDER
   ============================================ */
.testimonial-slider {
  position: relative;
  overflow: hidden;
}

.testimonial-slide {
  display: none;
  animation: fadeInSlide 0.5s ease;
}

.testimonial-slide.active {
  display: block;
}

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

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  background: rgba(255,255,255,0.25);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.testimonial-dot.active {
  background: var(--color-accent);
  width: 24px;
}

.testimonial-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
}

.testimonial-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.testimonial-btn:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
}

.testimonial-prev,
.testimonial-next {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.testimonial-prev:hover,
.testimonial-next:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.service-card {
  position: relative;
  
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-base);
}

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

.service-card-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.service-card:hover .service-card-img {
  transform: scale(1.05);
}

.service-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(4, 29, 56, 0.97) 0%, rgba(4, 29, 56, 0.7) 60%, transparent 100%);
  padding: 2rem 1.5rem 1.5rem;
  transition: var(--transition-base);
}

.service-card:hover .service-card-overlay {
  background: linear-gradient(to top, rgba(4, 29, 56, 1) 0%, rgba(4, 29, 56, 0.85) 60%, rgba(4, 29, 56, 0.3) 100%);
}

.service-card-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.service-card-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.service-card-desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
}

.service-card:hover .service-card-desc {
  max-height: 100px;
  opacity: 1;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.75rem;
  transition: var(--transition-base);
}

.service-card-link:hover {
  gap: 0.625rem;
}

/* ============================================
   PORTFOLIO / CASES
   ============================================ */
.filter-btn {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  
  border: 1px solid var(--color-neutral-300);
  color: var(--color-neutral-600);
  background-color: transparent;
  cursor: pointer;
  transition: var(--transition-base);
  white-space: nowrap;
}

.filter-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

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

.portfolio-card {
  position: relative;
  overflow: hidden;
  background-color: var(--color-neutral-100);
  transition: var(--transition-base);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.portfolio-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-card-img {
  transform: scale(1.05);
}

.portfolio-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.portfolio-card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  background-color: rgba(140, 183, 61, 0.1);
  padding: 0.25rem 0.625rem;
  
  margin-bottom: 0.625rem;
}

.portfolio-card-title {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.4;
  margin-bottom: 0.375rem;
}

.portfolio-card-location {
  font-size: 0.8125rem;
  color: var(--color-neutral-500);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Portfolio overlay style */
.portfolio-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4,29,56,0.95) 0%, rgba(4,29,56,0.6) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-card:hover .portfolio-card-overlay {
  opacity: 1;
}

/* ============================================
   KEEPFOLIO SECTION
   ============================================ */
.keepfolio-section {
  background-color: var(--color-neutral-50);
}

.keepfolio-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.keepfolio-feature-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-accent);
  
  flex-shrink: 0;
}

.keepfolio-feature-text {
  font-size: 0.9375rem;
  color: var(--color-neutral-700);
}

.keepfolio-mockup {
  background-color: var(--color-primary);
  
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.keepfolio-mockup-header {
  background-color: rgba(255,255,255,0.08);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.keepfolio-mockup-dot {
  width: 10px;
  height: 10px;
  
}

.keepfolio-stat-card {
  background-color: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  
  padding: 1rem;
  text-align: center;
}

.keepfolio-stat-number {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
}

.keepfolio-stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-section {
  background-color: #ffffff;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-neutral-700);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-neutral-200);
  
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-neutral-800);
  background-color: var(--color-neutral-50);
  transition: var(--transition-base);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(4, 29, 56, 0.08);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-neutral-400);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2364748b'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.25rem;
  padding-right: 2.5rem;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background-color: var(--color-primary);
}

.footer-bottom {
  background-color: var(--color-primary-dark);
}

.footer-link {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition-base);
}

.footer-link:hover {
  color: var(--color-accent);
}

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */
.page-hero {
  background-color: var(--color-primary);
  padding: 8rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  
  background: radial-gradient(circle, rgba(154, 195, 60, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* ============================================
   SERVICE DETAIL PAGE
   ============================================ */
.service-detail-icon {
  width: 80px;
  height: 80px;
  background-color: rgba(154, 195, 60, 0.15);
  
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-detail-icon svg {
  width: 40px;
  height: 40px;
  color: var(--color-accent);
}

.service-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-neutral-100);
}

.service-feature-item:last-child {
  border-bottom: none;
}

.service-feature-number {
  width: 32px;
  height: 32px;
  background-color: var(--color-primary);
  color: #ffffff;
  
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in {
  animation: fadeIn 0.6s ease forwards;
}

.animate-slide-in-left {
  animation: slideInLeft 0.6s ease forwards;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   COOKIE BANNER
   ============================================ */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-primary-dark);
  color: rgba(255,255,255,0.85);
  padding: 1rem 2rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.2);
}

#cookie-banner a {
  color: var(--color-accent);
  text-decoration: underline;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .hero-image-grid {
    height: 300px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
}

@media (max-width: 640px) {
  .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.8125rem;
  }
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-neutral-100);
}

::-webkit-scrollbar-thumb {
  background: var(--color-neutral-400);
  
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* ============================================
   ACTIVE PAGE INDICATOR
   ============================================ */
.page-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--color-neutral-500);
  margin-bottom: 1rem;
}

.page-indicator a {
  color: var(--color-neutral-500);
}

.page-indicator a:hover {
  color: var(--color-primary);
}

.page-indicator span {
  color: var(--color-neutral-300);
}

/* ============================================
   BACK TO TOP
   ============================================ */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background-color: var(--color-primary);
  color: #ffffff;
  
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition-base);
  z-index: 100;
  box-shadow: var(--shadow-md);
  border: none;
}

#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

#back-to-top:hover {
  background-color: var(--color-accent);
}

/* Rounded corners restored — only .btn has explicit border-radius: 4px */


/* Design FMIT: páginas de serviço em linguagem editorial, com azul-marinho institucional, verde-lima de decisão e geometria técnica sem ornamento excessivo. */

body.service-v2 {
  background: #ffffff;
  color: #334155;
}

body.service-v2 > section {
  position: relative;
}

body.service-v2 > section:first-of-type {
  height: min(760px, 100svh) !important;
  min-height: 600px !important;
  isolation: isolate;
}

body.service-v2 > section:first-of-type::after {
  content: '';
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  width: min(24vw, 310px);
  height: min(18vw, 230px);
  background: rgba(154, 195, 60, 0.88);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

body.service-v2 > section:first-of-type > *:not(img) {
  z-index: 2;
}

body.service-v2 > section:first-of-type h1 {
  font-size: clamp(2.6rem, 6.8vw, 5.7rem) !important;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

body.service-v2 > section:first-of-type p {
  letter-spacing: 0.025em;
}

body.service-v2 > section:nth-of-type(2) {
  padding-top: clamp(4.5rem, 8vw, 8rem) !important;
  padding-bottom: clamp(4.5rem, 8vw, 8rem) !important;
}

body.service-v2 > section:nth-of-type(2) h2 {
  max-width: 19ch;
  letter-spacing: -0.035em;
}

body.service-v2 > section:nth-of-type(3) {
  min-height: clamp(23rem, 46vw, 34rem) !important;
  height: min(52vh, 34rem) !important;
}

body.service-v2 > section:nth-of-type(3)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 72px;
  height: 5px;
  background: #9ac33c;
  z-index: 3;
}

body.service-v2 > section:nth-of-type(3) p {
  max-width: 36ch !important;
  font-family: 'Poppins', system-ui, sans-serif;
}

body.service-v2 > section:nth-of-type(4) {
  background: #f8fafc !important;
  padding-top: clamp(4.5rem, 8vw, 7.5rem) !important;
  padding-bottom: clamp(4.5rem, 8vw, 7.5rem) !important;
}

body.service-v2 > section:nth-of-type(4) h2 {
  letter-spacing: -0.04em;
}

body.service-v2 > section:nth-of-type(4) .group {
  position: relative;
  overflow: hidden;
  border: 1px solid #e2e8f0 !important;
  border-left: 4px solid #d9eab6 !important;
  border-radius: 0 !important;
  background: #ffffff;
  box-shadow: none !important;
  transition: transform 180ms cubic-bezier(0.23, 1, 0.32, 1), border-color 180ms cubic-bezier(0.23, 1, 0.32, 1), box-shadow 180ms cubic-bezier(0.23, 1, 0.32, 1) !important;
}

body.service-v2 > section:nth-of-type(4) .group:hover {
  transform: translateY(-4px);
  border-left-color: #9ac33c !important;
  box-shadow: 0 14px 30px rgba(4, 29, 56, 0.09) !important;
}

body.service-v2 > section:nth-of-type(4) .group > div > span {
  color: rgba(154, 195, 60, 0.28) !important;
}

body.service-v2 > section:nth-of-type(4) .group h3 {
  line-height: 1.32;
}

body.service-v2 > section:nth-of-type(4) .group p {
  font-size: 0.92rem;
}

body.service-v2 > section:nth-of-type(5) {
  padding-top: clamp(4.5rem, 7vw, 6rem) !important;
  padding-bottom: clamp(4.5rem, 7vw, 6rem) !important;
}

body.service-v2 > section:nth-of-type(5) > div > div:not(:first-child) {
  border-radius: 0 !important;
  border-color: #e2e8f0 !important;
}

body.service-v2 > section:nth-of-type(6) {
  min-height: clamp(28rem, 48vw, 42rem) !important;
}

body.service-v2 > section:nth-of-type(6) h2 {
  letter-spacing: -0.045em;
}

body.service-v2 > section:nth-of-type(7) {
  padding-top: clamp(5rem, 8vw, 8rem) !important;
  padding-bottom: clamp(5rem, 8vw, 8rem) !important;
}

body.service-v2 .rounded,
body.service-v2 .rounded-xl,
body.service-v2 .rounded-2xl {
  border-radius: 0 !important;
}

body.service-v2 a[class*='bg-accent'],
body.service-v2 a[class*='bg-primary'] {
  letter-spacing: 0.08em;
  border-radius: 4px !important;
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1), background-color 160ms cubic-bezier(0.23, 1, 0.32, 1) !important;
}

body.service-v2 a[class*='bg-accent']:hover,
body.service-v2 a[class*='bg-primary']:hover {
  transform: translateY(-2px);
}

body.service-v2 a[class*='bg-accent']:active,
body.service-v2 a[class*='bg-primary']:active {
  transform: scale(0.97);
}

body.service-v2 a:focus-visible {
  outline: 3px solid #9ac33c;
  outline-offset: 4px;
}

@media (max-width: 767px) {
  body.service-v2 > section:first-of-type {
    min-height: 580px !important;
    height: 82svh !important;
  }

  body.service-v2 > section:first-of-type::after {
    width: 150px;
    height: 115px;
  }

  body.service-v2 > section:first-of-type h1 {
    font-size: clamp(2.45rem, 13vw, 3.6rem) !important;
    line-height: 0.98 !important;
  }

  body.service-v2 > section:first-of-type p {
    font-size: 0.95rem !important;
    max-width: 29ch !important;
  }

  body.service-v2 > section:nth-of-type(2) h2 {
    font-size: clamp(1.7rem, 7.8vw, 2.3rem) !important;
    line-height: 1.24 !important;
  }

  body.service-v2 > section:nth-of-type(3) {
    min-height: 24rem !important;
    height: 54svh !important;
  }

  body.service-v2 > section:nth-of-type(3) p {
    font-size: 1.1rem !important;
    padding-right: 1rem;
  }

  body.service-v2 > section:nth-of-type(4) .group {
    padding: 1.5rem !important;
  }

  body.service-v2 > section:nth-of-type(4) .group > div {
    gap: 1rem !important;
  }

  body.service-v2 > section:nth-of-type(4) .group > div > span {
    font-size: 2.5rem !important;
  }

  body.service-v2 > section:nth-of-type(5) .grid {
    gap: 0.75rem !important;
  }

  body.service-v2 > section:nth-of-type(5) > div > div:not(:first-child) {
    padding: 1.25rem 0.75rem !important;
  }

  body.service-v2 > section:nth-of-type(6) {
    min-height: 34rem !important;
  }

  body.service-v2 > section:nth-of-type(6) .flex-wrap {
    gap: 0.7rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.service-v2 *,
  body.service-v2 *::before,
  body.service-v2 *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
