/* ===================================================================
   RETÍFICA SÃO JOSÉ - DESIGN SYSTEM & STYLESHEET
   Tangará da Serra, MT
   =================================================================== */

/* ---------- CSS Reset & Base Variables ---------- */
:root {
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Color Palette matching exact design */
  --bg-cream: #f5f4ef;
  --bg-cream-alt: #f0efe9;
  --bg-dark-pine: #1b3024;
  --bg-dark-pine-deep: #14241b;
  --bg-hero: #0e1410;
  
  --text-dark: #121714;
  --text-muted: #535b55;
  --text-light: #ffffff;
  --text-light-muted: #b5c2ba;
  --text-title-muted: #91a396;
  
  --accent-olive: #36533f;
  --accent-olive-hover: #40634b;
  --accent-dark-green: #1d3326;
  --accent-dark-green-hover: #264332;
  
  --border-light: rgba(18, 23, 20, 0.12);
  --border-dark: rgba(255, 255, 255, 0.22);
  
  --container-max-width: 1220px;
  --transition-smooth: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-cream);
  color: var(--text-dark);
  line-height: 1.5;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
}

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

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

ul {
  list-style: none;
}

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

/* ---------- Typography & Utility Styles ---------- */
.overline {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.overline-line {
  display: inline-block;
  width: 36px;
  height: 1px;
}

.overline-light {
  color: var(--text-light-muted);
}
.overline-light .overline-line {
  background-color: rgba(181, 194, 186, 0.65);
}

.overline-dark {
  color: #555e57;
}
.overline-dark .overline-line {
  background-color: rgba(18, 23, 20, 0.35);
}

.overline-sage {
  color: #9cb1a4;
}
.overline-sage .overline-line {
  background-color: rgba(156, 177, 164, 0.5);
}

/* ---------- Buttons & CTAs ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  padding: 10px 20px;
  white-space: nowrap;
  position: relative;
  text-decoration: none;
}

.btn .arrow-icon {
  transition: transform 0.25s ease;
}

.btn:hover .arrow-icon {
  transform: translateX(3px);
}

.btn-header {
  background-color: var(--accent-dark-green);
  color: #f2f5f3;
  padding: 9px 18px;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-header:hover {
  background-color: var(--accent-dark-green-hover);
  color: #ffffff;
}

.btn-olive {
  background-color: var(--accent-olive);
  color: #f5f4ef;
  padding: 12px 24px;
  font-size: 13.5px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-olive:hover {
  background-color: var(--accent-olive-hover);
  color: #ffffff;
}

.btn-outline {
  background-color: rgba(22, 40, 30, 0.6);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 11px 22px;
  font-size: 13px;
  backdrop-filter: blur(4px);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-whatsapp {
  background-color: #25d366;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background-color: #20bd5a;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.btn-block {
  width: 100%;
}

/* ---------- Brand Logo with Favicon ---------- */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-dark);
  text-decoration: none;
  user-select: none;
}

.brand-logo-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
  display: block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.08) rotate(3deg);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
}

.brand-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  font-weight: 800;
}

.brand-logo .logo-top {
  font-size: 15.5px;
  letter-spacing: 0.04em;
}

.brand-logo .logo-bottom {
  font-size: 15.5px;
  letter-spacing: 0.04em;
}

/* ================= NAVBAR ================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-cream);
  border-bottom: 1px solid rgba(18, 23, 20, 0.06);
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.navbar-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Center navigation links */
.nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-size: 13.5px;
  font-weight: 500;
  color: #3b423d;
  padding: 6px 0;
  position: relative;
  display: inline-block;
}

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

/* Active bottom underline bar */
.nav-link.active {
  color: var(--text-dark);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background-color: var(--text-dark);
  border-radius: 2px;
}

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

/* Mobile Toggle Hamburger */
.mobile-toggle {
  display: none;
  background: transparent;
  width: 28px;
  height: 24px;
  flex-direction: column;
  justify-content: space-between;
  padding: 2px;
}

.mobile-toggle .bar {
  width: 100%;
  height: 2px;
  background-color: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  width: 100%;
  background-color: var(--bg-cream);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  padding: 24px 32px;
  z-index: 99;
}

.mobile-drawer.active {
  display: block;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 24px;
}

.mobile-nav-link {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
}

/* ================= HERO SECTION ================= */
.hero-section {
  position: relative;
  background-color: var(--bg-hero);
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 0.95;
}

/* Smooth rich overlay gradient: darker on left to ensure high readability, revealing engine on right */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg, 
    rgba(12, 18, 14, 0.98) 0%, 
    rgba(12, 18, 14, 0.92) 40%, 
    rgba(12, 18, 14, 0.6) 65%, 
    rgba(12, 18, 14, 0.2) 100%
  );
}

.hero-container {
  position: relative;
  z-index: 2;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 100px 32px;
  width: 100%;
}

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

.hero-title {
  font-size: clamp(2.5rem, 4.3vw, 4rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-top: 24px;
  margin-bottom: 20px;
}

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

.hero-subtitle {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-light-muted);
  margin-bottom: 32px;
  letter-spacing: -0.005em;
}

/* ================= SOBRE SECTION ================= */
.about-section {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-cream);
  padding: 95px 0 100px 0;
}

.about-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 60px;
}

.about-title {
  font-size: clamp(2.1rem, 3.2vw, 2.85rem);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  margin-top: 18px;
  margin-bottom: 24px;
}

.about-description {
  font-size: 14.5px;
  line-height: 1.68;
  color: var(--text-muted);
  max-width: 480px;
}

.image-frame {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.14);
}

.about-img, .services-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-frame:hover .about-img,
.image-frame:hover .services-img {
  transform: scale(1.02);
}

/* ================= SERVIÇOS SECTION ================= */
.services-section {
  background-color: var(--bg-dark-pine);
  padding: 95px 0 100px 0;
  color: #ffffff;
}

.services-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: 70px;
}

.services-content {
  padding-left: 10px;
}

.services-title {
  font-size: clamp(2.1rem, 3.2vw, 2.85rem);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-top: 18px;
  margin-bottom: 22px;
}

.services-description {
  font-size: 14.5px;
  line-height: 1.68;
  color: #bac8bf;
  max-width: 490px;
  margin-bottom: 30px;
}

/* ================= COMO ENTRAR EM CONTATO SECTION ================= */
.steps-section {
  background-color: var(--bg-cream);
  padding: 95px 0 110px 0;
}

.steps-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.steps-header {
  margin-bottom: 50px;
}

.steps-title {
  font-size: clamp(2.1rem, 3.2vw, 2.85rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  margin-top: 18px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: flex-start;
}

.step-card {
  padding: 0 40px;
}

/* First step has no left padding */
.step-card:first-child {
  padding-left: 0;
}

/* Second and third steps have thin left border divider */
.step-card:nth-child(2),
.step-card:nth-child(3) {
  border-left: 1px solid rgba(18, 23, 20, 0.16);
}

.step-card:last-child {
  padding-right: 0;
}

.step-number {
  font-size: 42px;
  font-weight: 400;
  line-height: 1;
  color: var(--text-dark);
  margin-bottom: 22px;
  letter-spacing: -0.03em;
}

.step-heading {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.step-text {
  font-size: 13.5px;
  line-height: 1.62;
  color: var(--text-muted);
}

/* ================= LOCALIZAÇÃO & CONTATO DIRETO SECTION ================= */
.location-section {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-cream-alt);
  padding: 100px 0 110px 0;
  border-top: 1px solid rgba(18, 23, 20, 0.08);
  border-bottom: 1px solid rgba(18, 23, 20, 0.08);
}

.location-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.location-header {
  margin-bottom: 50px;
  max-width: 680px;
}

.location-title {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.18;
  color: var(--text-dark);
  margin-top: 16px;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.location-subtitle {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

.location-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 36px;
  align-items: stretch;
}

/* Contact Cards List */
.location-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 24px;
  background-color: #ffffff;
  border: 1px solid rgba(18, 23, 20, 0.08);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.07);
  border-color: rgba(54, 83, 63, 0.25);
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: transparent;
  transition: var(--transition-smooth);
}

.contact-card-whatsapp::before {
  background-color: #25D366;
}

.contact-card-instagram::before {
  background: linear-gradient(180deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.contact-card-address::before {
  background-color: var(--accent-olive);
}

.contact-card-hours::before {
  background-color: #717d75;
}

.contact-card-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.icon-whatsapp {
  background-color: #e8f8ed;
  color: #25D366;
}

.contact-card-whatsapp:hover .icon-whatsapp {
  background-color: #25D366;
  color: #ffffff;
}

.icon-instagram {
  background-color: #fcebf3;
  color: #d62976;
}

.contact-card-instagram:hover .icon-instagram {
  background: linear-gradient(135deg, #f09433, #dc2743, #bc1888);
  color: #ffffff;
}

.icon-address {
  background-color: #e9efe9;
  color: var(--accent-dark-green);
}

.contact-card-address:hover .icon-address {
  background-color: var(--accent-dark-green);
  color: #ffffff;
}

.icon-clock {
  background-color: #f0efe9;
  color: #535b55;
}

.contact-card-body {
  flex: 1;
}

.contact-card-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7c8880;
  margin-bottom: 4px;
}

.contact-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.contact-card-detail {
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.contact-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-olive);
  transition: var(--transition-smooth);
}

.contact-card:hover .contact-card-cta {
  color: var(--accent-olive-hover);
  transform: translateX(3px);
}

.contact-card-subtext {
  font-size: 12px;
  color: #8c9690;
  font-style: italic;
}

/* Map Column & Card */
.location-map-column {
  display: flex;
  flex-direction: column;
}

.map-card-container {
  background-color: #ffffff;
  border: 1px solid rgba(18, 23, 20, 0.08);
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.map-card-header {
  padding: 18px 24px;
  background-color: #ffffff;
  border-bottom: 1px solid rgba(18, 23, 20, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.map-card-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-indicator-dot {
  width: 10px;
  height: 10px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
  flex-shrink: 0;
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
  }
  50% {
    transform: scale(1.15);
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.1);
  }
}

.map-box-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
}

.map-box-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}

.btn-map-route {
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 6px;
  border-color: rgba(18, 23, 20, 0.2);
  gap: 8px;
}

.btn-map-route:hover {
  background-color: var(--accent-olive);
  border-color: var(--accent-olive);
  color: #ffffff;
}

.map-embed-wrapper {
  position: relative;
  flex: 1;
  min-height: 400px;
  background-color: #e5e3df;
}

.map-embed-wrapper iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  display: block;
}

.map-card-footer {
  padding: 14px 24px;
  background-color: #fafaf7;
  border-top: 1px solid rgba(18, 23, 20, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
}

.map-pin-info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-weight: 500;
}

.map-pin-info svg {
  color: var(--accent-olive);
  flex-shrink: 0;
}

.map-link-external {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-olive);
  font-weight: 700;
  transition: var(--transition-smooth);
}

.map-link-external:hover {
  color: var(--accent-olive-hover);
  text-decoration: underline;
}

/* ================= CTA BANNER SECTION ================= */
.cta-banner-section {
  position: relative;
  background-color: var(--bg-hero);
  min-height: 380px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.cta-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.cta-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 0.9;
}

.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg, 
    rgba(13, 19, 15, 0.98) 0%, 
    rgba(13, 19, 15, 0.92) 42%, 
    rgba(13, 19, 15, 0.5) 75%, 
    rgba(13, 19, 15, 0.25) 100%
  );
}

.cta-container {
  position: relative;
  z-index: 2;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 85px 32px;
  width: 100%;
}

.cta-content {
  max-width: 580px;
}

.cta-title {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-top: 18px;
  margin-bottom: 10px;
}

.cta-subtitle {
  font-size: 14.5px;
  color: var(--text-light-muted);
  margin-bottom: 26px;
}

/* ================= FOOTER ================= */
.footer {
  position: relative;
  background-color: var(--color-bg-warm, #f5f4ef);
  border-top: 1px solid rgba(18, 23, 20, 0.08);
  padding: 42px 0 36px 0;
  z-index: 10;
}

.footer-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-brand-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  max-width: 260px;
  line-height: 1.45;
}

.footer-list {
  display: flex;
  align-items: center;
  gap: 28px;
}

.footer-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
}

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

.footer-actions-col {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 8px;
  background-color: #ffffff;
  color: var(--text-dark);
  border: 1px solid rgba(18, 23, 20, 0.1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: var(--transition-smooth);
}

.footer-social-btn:hover {
  background-color: var(--text-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.footer-social-btn svg {
  transition: transform 0.2s ease;
}

.footer-social-btn:hover svg {
  transform: scale(1.1);
}

.footer-location {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

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

.footer-location .location-pin {
  color: var(--accent-olive);
  flex-shrink: 0;
}

/* ================= MODAL DIALOG ================= */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 15, 12, 0.7);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background-color: #ffffff;
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  padding: 34px 32px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
}

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

.modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 26px;
  line-height: 1;
  background: transparent;
  color: #8c9690;
  padding: 4px;
}

.modal-close:hover {
  color: var(--text-dark);
}

.modal-badge {
  display: inline-block;
  background-color: #e9efe9;
  color: var(--accent-dark-green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.modal-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.modal-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 22px;
  line-height: 1.5;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: inherit;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid #d8dfda;
  background-color: #fafbfc;
  color: var(--text-dark);
  transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-olive);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(54, 83, 63, 0.12);
}

.modal-footer-info {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #edf1ee;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  color: #717d75;
  text-align: center;
}

/* ================= FLOATING WHATSAPP BUTTON ================= */
.whatsapp-floating-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 998;
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #25D366;
  color: #ffffff;
  padding: 8px 18px 8px 10px;
  border-radius: 50px;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.38), 0 2px 6px rgba(0,0,0,0.08);
  text-decoration: none;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.whatsapp-floating-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 34px rgba(37, 211, 102, 0.5);
  color: #ffffff;
}

.whatsapp-btn-icon {
  width: 44px;
  height: 44px;
  background-color: rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.whatsapp-btn-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50px;
  border: 2px solid #25D366;
  animation: pulse-ring 2.2s infinite ease-out;
  pointer-events: none;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.96);
    opacity: 0.85;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

.whatsapp-btn-text {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* ===================================================================
   MODERN MOTION & SCROLL REVEAL ANIMATIONS
   =================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

/* Directional Modifiers */
.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger Delay Utility Classes */
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }
.delay-5 { transition-delay: 0.40s; }

/* Micro-interaction: Subtle interactive light shine across buttons on hover */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.26) 50%,
    transparent 100%
  );
  transform: rotate(25deg);
  pointer-events: none;
  opacity: 0;
  transition: none;
}

.btn:hover::before {
  opacity: 1;
  left: 125%;
  transition: left 0.75s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

/* ===================================================================
   ROTATING MECHANICAL ENGINEERING GEARS & TECH BADGE
   =================================================================== */
@keyframes rotateGearCw {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes rotateGearCcw {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-360deg);
  }
}

.gear-spin-cw {
  animation: rotateGearCw 24s linear infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.gear-spin-ccw {
  animation: rotateGearCcw 15.4s linear infinite;
  transform-box: fill-box;
  transform-origin: center;
}

/* Hero Tech Badge */
.hero-tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: rgba(14, 20, 16, 0.68);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 8px 18px 8px 12px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.04);
  margin-top: 24px;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.hero-tech-badge:hover {
  transform: translateY(-2px);
  border-color: rgba(165, 214, 167, 0.38);
}

.badge-gears-cluster {
  position: relative;
  width: 44px;
  height: 38px;
  flex-shrink: 0;
}

.badge-gear-main {
  width: 32px;
  height: 32px;
  color: #a5d6a7;
  animation: rotateGearCw 18s linear infinite;
  position: absolute;
  left: 0;
  top: 3px;
  transform-origin: center;
}

.badge-gear-sub {
  width: 20px;
  height: 20px;
  color: #81c784;
  animation: rotateGearCcw 11.2s linear infinite;
  position: absolute;
  right: 0;
  bottom: 2px;
  transform-origin: center;
}

.badge-text-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.badge-text-title {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
}

.badge-text-sub {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 400;
}

/* Ambient Section Gears (Engine Engineering Watermark) */
.ambient-gears-wrapper {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

.about-ambient-gears {
  right: -50px;
  top: -40px;
  width: 380px;
  height: 380px;
  color: var(--accent-olive);
  opacity: 0.12;
}

.about-ambient-gears svg {
  width: 100%;
  height: 100%;
}

.cta-ambient-gears {
  right: 4%;
  bottom: -40px;
  width: 340px;
  height: 340px;
  color: #ffffff;
  opacity: 0.14;
}

.cta-ambient-gears svg {
  width: 100%;
  height: 100%;
}

/* ================= RESPONSIVE MEDIA QUERIES ================= */
@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .services-media {
    order: 2;
  }
  
  .services-content {
    order: 1;
    padding-left: 0;
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  
  .step-card {
    padding: 0;
  }
  
  .step-card:nth-child(2),
  .step-card:nth-child(3) {
    border-left: none;
    border-top: 1px solid rgba(18, 23, 20, 0.16);
    padding-top: 30px;
  }

  .location-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .map-embed-wrapper {
    min-height: 350px;
  }

  .footer-container {
    flex-direction: column;
    gap: 26px;
    text-align: center;
  }

  .footer-brand-col {
    align-items: center;
  }

  .footer-actions-col {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }
}

@media (max-width: 768px) {
  /* Navigation */
  .nav-menu {
    display: none;
  }
  
  .mobile-toggle {
    display: flex;
  }

  .navbar-container {
    padding: 13px 18px;
  }

  .brand-logo {
    gap: 8px;
  }

  .brand-logo-img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
  }

  .brand-logo .logo-top,
  .brand-logo .logo-bottom {
    font-size: 13.5px;
  }

  .btn-header {
    padding: 8px 14px;
    font-size: 12px;
    gap: 6px;
  }

  /* Prevent forced unnatural linebreaks in mobile headings */
  .hero-title br,
  .about-title br {
    display: none;
  }

  /* 1. Hero Section Compactness */
  .hero-section {
    min-height: auto;
  }

  .hero-container {
    padding: 48px 18px 52px 18px;
  }

  .hero-title {
    font-size: clamp(26px, 7.6vw, 34px);
    margin-top: 14px;
    margin-bottom: 12px;
    line-height: 1.15;
  }

  .hero-subtitle {
    font-size: 14px;
    margin-bottom: 22px;
    line-height: 1.45;
  }

  /* 2. Sobre Section */
  .about-section {
    padding: 46px 0 50px 0;
  }

  .about-container {
    padding: 0 18px;
  }

  .about-grid {
    gap: 22px;
  }

  .about-title {
    font-size: clamp(23px, 6.6vw, 28px);
    margin-top: 10px;
    margin-bottom: 12px;
    line-height: 1.2;
  }

  .about-description {
    font-size: 14px;
    line-height: 1.58;
  }

  .about-img,
  .services-img {
    max-height: 210px;
    aspect-ratio: 16 / 9;
  }

  /* 3. Serviços Section */
  .services-section {
    padding: 46px 0 50px 0;
  }

  .services-container {
    padding: 0 18px;
  }

  .services-grid {
    gap: 22px;
  }

  .services-title {
    font-size: clamp(23px, 6.6vw, 28px);
    margin-top: 10px;
    margin-bottom: 12px;
    line-height: 1.2;
  }

  .services-description {
    font-size: 14px;
    line-height: 1.58;
    margin-bottom: 20px;
  }

  /* 4. Como Entrar em Contato (Compact Stepper Cards) */
  .steps-section {
    padding: 46px 0 50px 0;
  }

  .steps-container {
    padding: 0 18px;
  }

  .steps-header {
    margin-bottom: 22px;
  }

  .steps-title {
    font-size: clamp(23px, 6.6vw, 28px);
    margin-top: 10px;
    margin-bottom: 0;
    line-height: 1.2;
  }

  .steps-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .step-card {
    display: grid;
    grid-template-columns: 34px 1fr;
    column-gap: 14px;
    row-gap: 2px;
    align-items: baseline;
    background-color: #ffffff;
    padding: 14px 16px !important;
    border: 1px solid rgba(18, 23, 20, 0.08) !important;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
  }

  .step-card:first-child,
  .step-card:nth-child(2),
  .step-card:nth-child(3),
  .step-card:last-child {
    padding: 14px 16px !important;
    border-top: 1px solid rgba(18, 23, 20, 0.08) !important;
    border-left: 1px solid rgba(18, 23, 20, 0.08) !important;
  }

  .step-number {
    grid-row: 1 / 3;
    grid-column: 1;
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-olive);
    margin-bottom: 0;
    line-height: 1;
  }

  .step-heading {
    grid-row: 1;
    grid-column: 2;
    font-size: 14.5px;
    margin-bottom: 2px;
  }

  .step-text {
    grid-row: 2;
    grid-column: 2;
    font-size: 13px;
    line-height: 1.45;
  }

  /* 5. Localização & Contatos (2-Column Grid + Compact Map) */
  .location-section {
    padding: 46px 0 50px 0;
  }

  .location-container {
    padding: 0 18px;
  }

  .location-header {
    margin-bottom: 22px;
  }

  .location-title {
    font-size: clamp(23px, 6.6vw, 28px);
    margin-top: 10px;
    margin-bottom: 8px;
    line-height: 1.2;
  }

  .location-subtitle {
    font-size: 13.5px;
    line-height: 1.5;
  }

  .location-grid {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    gap: 16px;
    min-width: 0;
  }

  .location-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .contact-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.03);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .contact-card-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    flex-shrink: 0;
  }

  .contact-card-icon-wrap svg {
    width: 20px;
    height: 20px;
  }

  .contact-card-body {
    flex: 1;
    min-width: 0;
    overflow: hidden;
  }

  .contact-card-tag {
    font-size: 9.5px;
    margin-bottom: 2px;
  }

  .contact-card-title {
    font-size: 14px;
    margin-bottom: 2px;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .contact-card-detail {
    font-size: 12.5px;
    line-height: 1.4;
    margin-bottom: 4px;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .contact-card-cta {
    font-size: 11.5px;
    gap: 5px;
  }

  .contact-card-subtext {
    font-size: 11px;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  /* Google Maps Box */
  .location-map-column {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .map-card-container {
    border-radius: 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
  }

  .map-card-header {
    padding: 10px 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
  }

  .map-card-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1 1 160px;
  }

  .status-indicator-dot {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
  }

  .map-box-title {
    font-size: 13px;
    line-height: 1.2;
  }

  .map-box-subtitle {
    font-size: 10.5px;
    line-height: 1.2;
    display: block;
    word-break: break-word;
  }

  .btn-map-route {
    padding: 6px 10px;
    font-size: 11px;
    width: auto;
    border-radius: 6px;
    gap: 5px;
    flex-shrink: 0;
    white-space: nowrap;
  }

  .map-embed-wrapper {
    min-height: 210px;
    height: 210px;
    width: 100%;
    max-width: 100%;
  }

  .map-embed-wrapper iframe {
    min-height: 210px;
    height: 210px;
    width: 100%;
    max-width: 100%;
  }

  .map-card-footer {
    padding: 10px 12px;
    font-size: 11px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
  }

  .map-pin-info {
    font-size: 11px;
    line-height: 1.35;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
  }

  .map-pin-info svg {
    flex-shrink: 0;
    margin-top: 1px;
  }

  .map-link-external {
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    align-self: flex-start;
    margin-top: 2px;
  }

  /* 6. CTA Banner */
  .cta-banner-section {
    min-height: auto;
  }

  .cta-container {
    padding: 44px 18px;
  }

  .cta-title {
    font-size: clamp(23px, 6.6vw, 28px);
    margin-top: 10px;
    margin-bottom: 8px;
    line-height: 1.2;
  }

  .cta-subtitle {
    font-size: 13.5px;
    line-height: 1.45;
    margin-bottom: 20px;
  }

  /* 7. Footer */
  .footer {
    padding: 30px 18px 84px 18px;
  }

  .footer-container {
    gap: 18px;
  }

  .footer-brand-desc {
    font-size: 12px;
    text-align: center;
  }

  .footer-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    font-size: 13px;
  }

  .footer-actions-col {
    gap: 12px;
  }

  .footer-social-links {
    gap: 8px;
  }

  .footer-social-btn {
    padding: 6px 12px;
    font-size: 11.5px;
  }

  .footer-location {
    font-size: 11.5px;
    text-align: center;
    justify-content: center;
  }

  /* 8. Floating WhatsApp Action Button (Sleek 50px FAB) */
  .whatsapp-floating-btn {
    bottom: 18px;
    right: 18px;
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
  }

  .whatsapp-btn-icon {
    width: 50px;
    height: 50px;
    background: transparent;
  }

  .whatsapp-btn-icon svg {
    width: 28px;
    height: 28px;
  }

  .whatsapp-btn-pulse {
    border-radius: 50%;
  }

  .whatsapp-btn-text {
    display: none;
  }

  .hero-tech-badge {
    margin-top: 18px;
    padding: 6px 14px 6px 10px;
    gap: 10px;
  }

  .badge-gears-cluster {
    width: 36px;
    height: 30px;
  }

  .badge-gear-main {
    width: 25px;
    height: 25px;
  }

  .badge-gear-sub {
    width: 16px;
    height: 16px;
  }

  .badge-text-title {
    font-size: 10.5px;
  }

  .badge-text-sub {
    font-size: 9.5px;
  }

  .about-ambient-gears {
    width: 230px;
    height: 230px;
    right: -70px;
    top: -20px;
    opacity: 0.08;
  }

  .cta-ambient-gears {
    width: 210px;
    height: 210px;
    right: -50px;
    bottom: -30px;
    opacity: 0.09;
  }
}
