/* ============================================================
   R6 S.A. CONSTRUCTORA — DESIGN SYSTEM
   Tipografia: Helvetica Neue | Cores: Azul Escuro, Preto, Branco, Amarelo
   ============================================================ */

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-dark:    #0D1F3C;
  --blue-mid:     #1A3A6B;
  --blue-light:   #1E4D8C;
  --black:        #0A0A0A;
  --surface:      #111827;
  --surface-2:    #1C2A3F;
  --white:        #FFFFFF;
  --white-90:     rgba(255,255,255,0.9);
  --white-60:     rgba(255,255,255,0.6);
  --white-20:     rgba(255,255,255,0.2);
  --white-08:     rgba(255,255,255,0.08);
  --yellow:       #F5C518;
  --yellow-dark:  #D4A80A;
  --gray-light:   #F4F6F9;
  --gray-mid:     #8A8A8A;
  --gray-border:  #E5E7EB;
  --text-dark:    #1A1A2E;
  --text-mid:     #4A5568;

  --font: "Helvetica Neue", Arial, Helvetica, sans-serif;
  --radius: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-lg: 0 24px 64px rgba(0,0,0,0.18);
  --shadow-blue: 0 8px 32px rgba(13,31,60,0.3);
  --transition: 0.35s cubic-bezier(0.4,0,0.2,1);
}

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

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

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; font-family: var(--font); }

/* --- SCROLLBAR --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--blue-mid); border-radius: 3px; }

/* --- TYPOGRAPHY --- */
.text-900 { font-weight: 900; }
.text-700 { font-weight: 700; }
.text-400 { font-weight: 400; }
.text-300 { font-weight: 300; }

h1,h2,h3,h4,h5 { line-height: 1.15; letter-spacing: -0.02em; }

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yellow);
  display: block;
  margin-bottom: 12px;
}

/* --- LAYOUT --- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.container-sm { max-width: 960px; margin: 0 auto; padding: 0 40px; }
.section { padding: 100px 0; }
.section-dark { background: var(--surface); }
.section-blue { background: var(--blue-dark); }
.section-gray { background: var(--gray-light); }

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
  background: rgba(255,255,255,0.12);
}
.btn:hover::before { opacity: 1; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--yellow);
  color: var(--black);
}
.btn-primary:hover { background: var(--yellow-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245,197,24,0.35); }

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

.btn-outline-dark {
  background: transparent;
  color: var(--blue-dark);
  border: 2px solid var(--blue-dark);
}
.btn-outline-dark:hover { background: var(--blue-dark); color: var(--white); transform: translateY(-2px); }

.btn-ghost { background: transparent; color: var(--white); padding: 14px 0; gap: 10px; }
.btn-ghost:hover { gap: 14px; }
.btn-ghost .arrow { transition: transform var(--transition); }
.btn-ghost:hover .arrow { transform: translateX(4px); }

/* --- NAVIGATION --- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0;            /* o recuo lateral vive na .nav-inner */
  height: 100px;
  display: flex;
  align-items: center;
  transition: background var(--transition), box-shadow var(--transition), height var(--transition);
}

.navbar.transparent { background: transparent; }
.navbar.scrolled {
  background: rgba(10,10,10,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08);
  height: 80px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  /* mesmo recuo do .container, para o logo cair no mesmo eixo
     vertical do titulo do hero */
  padding: 0 40px;
}

.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 64px; width: auto; max-width: 62vw; transition: height var(--transition); }
.navbar.scrolled .nav-logo img { height: 48px; }

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

.nav-links a {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-90);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

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

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  background: var(--white-08);
  border-radius: 20px;
  padding: 3px;
  border: 1px solid var(--white-20);
}
.lang-btn {
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-60);
  background: transparent;
  transition: var(--transition);
}
.lang-btn.active { background: var(--white); color: var(--blue-dark); }

/* Mobile Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu a {
  font-size: clamp(28px, 6vw, 48px);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.02em;
  transition: color var(--transition);
}
.mobile-menu a:hover { color: var(--yellow); }
.mobile-menu .mobile-lang { display: flex; gap: 12px; margin-top: 16px; }
.mobile-menu .mobile-lang button {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--white-60);
  background: none;
  padding: 8px 16px;
  border: 1px solid var(--white-20);
  border-radius: 20px;
  transition: var(--transition);
}
.mobile-menu .mobile-lang button.active { color: var(--white); border-color: var(--white); }

/* --- HERO --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.1s linear;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10,10,10,0.88) 0%,
    rgba(13,31,60,0.75) 50%,
    rgba(13,31,60,0.35) 100%
  );
}
.hero-overlay-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--black), transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding-bottom: 40px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white-08);
  border: 1px solid var(--white-20);
  border-radius: 20px;
  padding: 6px 16px;
  margin-bottom: 24px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--yellow);
}
.hero-badge-dot { width: 6px; height: 6px; background: var(--yellow); border-radius: 50%; animation: pulse-dot 2s infinite; }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.hero-title {
  font-size: clamp(42px, 6vw, 80px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero-title em {
  font-style: normal;
  color: var(--yellow);
}

.hero-subtitle {
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 300;
  color: var(--white-60);
  margin-bottom: 40px;
  max-width: 560px;
  line-height: 1.7;
}

.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero stats bar at bottom */
.hero-stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  z-index: 2;
  background: rgba(13,31,60,0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-stats-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  width: 100%;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 48px 28px 0;
  margin-right: 48px;
  border-right: 1px solid rgba(255,255,255,0.12);
  text-align: left;
}
.hero-stat:last-child { border-right: none; margin-right: 0; }
.hero-stat-number {
  font-size: 32px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1;
}
.hero-stat-number span { color: var(--yellow); }
.hero-stat-label {
  font-size: 10px;
  font-weight: 400;
  color: var(--white-60);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--white-60);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  z-index: 2;
  animation: bounce-scroll 2.5s infinite;
}
.scroll-indicator::after {
  content: '';
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--white-60), transparent);
}

@keyframes bounce-scroll {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* --- STATS BAND --- */
.stats-band {
  background: 
    linear-gradient(rgba(13, 31, 60, 0.92), rgba(13, 31, 60, 0.92)),
    url('../assets/patternr6.svg') repeat center center;
  background-size: auto, 400px;
  padding: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.stats-band-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid rgba(255,255,255,0.08);
}
.stat-card {
  padding: 48px 40px;
  border-right: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  transition: background var(--transition);
}
.stat-card:hover { background: var(--white-08); }
.stat-number {
  font-size: clamp(40px, 4vw, 60px);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.04em;
  line-height: 1;
  display: block;
  white-space: nowrap;
}
.stat-number .plus { color: var(--yellow); }
.stat-unit { color: var(--yellow); font-weight: 900; }
.stat-desc {
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 8px;
}
.stat-icon {
  width: 32px;
  height: 32px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yellow);
  opacity: 0.85;
}

/* --- SECTION HEADERS --- */
.section-header {
  margin-bottom: 64px;
}
.section-header.center { text-align: center; }
.section-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900;
  color: var(--text-dark);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.section-title.white { color: var(--white); }
.section-subtitle {
  font-size: 17px;
  font-weight: 300;
  color: var(--text-mid);
  margin-top: 16px;
  max-width: 600px;
  line-height: 1.7;
}
.section-subtitle.white { color: var(--white-60); }
.section-header.center .section-subtitle { margin: 16px auto 0; }

/* Divider */
.divider {
  width: 48px;
  height: 3px;
  background: var(--yellow);
  margin: 20px 0;
  border-radius: 2px;
}
.section-header.center .divider { margin: 20px auto; }

/* --- SERVICES GRID --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--gray-border);
  max-width: 1280px;
  margin: 0 auto;
  border-top: 1px solid var(--gray-border); border-bottom: 1px solid var(--gray-border);
  box-sizing: border-box;
}

.service-card {
  background: var(--white);
  padding: 40px 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--yellow);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); z-index: 1; }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--blue-dark);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 24px;
  transition: var(--transition);
}
.service-card:hover .service-icon { background: var(--yellow); }

.service-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  line-height: 1.3;
}
.service-desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.6;
}
.service-tag {
  display: inline-block;
  margin-top: 16px;
  padding: 4px 10px;
  background: var(--blue-dark);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
}
.service-tag.highlight { background: var(--yellow); color: var(--black); }

/* --- WHY R6 / DIFERENTIALS --- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 560px;
}
.why-image {
  position: relative;
  overflow: hidden;
}
.why-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s ease;
}
.why-image:hover img { transform: scale(1.04); }
.why-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,31,60,0.7), transparent);
}

.why-content {
  background: var(--blue-dark);
  padding: 80px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.differential-list { margin-top: 40px; display: flex; flex-direction: column; gap: 28px; }
.differential-item { display: flex; gap: 20px; align-items: flex-start; }
.diff-number {
  font-size: 11px;
  font-weight: 900;
  color: var(--yellow);
  letter-spacing: 0.1em;
  min-width: 24px;
  padding-top: 4px;
}
.diff-title { font-size: 17px; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.diff-desc { font-size: 14px; font-weight: 300; color: var(--white-60); line-height: 1.6; }

/* --- PROCESS STEPS --- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(to right, var(--yellow), var(--blue-light));
  z-index: 0;
}
.step {
  text-align: center;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
.step-num {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--blue-dark);
  color: var(--white);
  font-size: 24px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  border: 3px solid var(--yellow);
  transition: var(--transition);
}
.step:hover .step-num { background: var(--yellow); color: var(--black); transform: scale(1.1); }
.step-title { font-size: 15px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.step-desc { font-size: 13px; font-weight: 300; color: var(--text-mid); line-height: 1.6; }

/* --- PORTFOLIO PREVIEW --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 280px);
  gap: 3px;
}
.portfolio-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  /* No index o card e um <a> que leva ao portafolio filtrado */
  display: block;
  text-decoration: none;
  color: inherit;
}
.portfolio-item:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}
.portfolio-item:first-child {
  grid-column: span 2;
  grid-row: span 1;
}
.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.portfolio-item:hover img { transform: scale(1.06); }

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,31,60,0.92) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 6px;
}
.portfolio-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}

/* --- TESTIMONIALS --- */
.testimonials-wrap {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}
.testimonial-track { overflow: hidden; }
.testimonial-slides { display: flex; transition: transform 0.5s cubic-bezier(0.4,0,0.2,1); }
.testimonial-slide { min-width: 100%; padding: 0 20px; }
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 56px;
  position: relative;
  box-shadow: var(--shadow-md);
}
.testimonial-quote {
  font-size: 72px;
  line-height: 0.5;
  font-weight: 900;
  color: var(--yellow);
  margin-bottom: 20px;
  display: block;
}
.testimonial-text {
  font-size: 19px;
  font-weight: 300;
  color: var(--text-dark);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 32px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}
.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  color: var(--white);
  flex-shrink: 0;
}
.testimonial-name { font-size: 15px; font-weight: 700; color: var(--text-dark); }
.testimonial-company { font-size: 13px; color: var(--text-mid); }
.testimonial-stars { color: var(--yellow); font-size: 14px; margin-bottom: 4px; }

.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 40px; }
.carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white-08);
  border: 1px solid var(--white-20);
  color: var(--white);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.carousel-btn:hover { background: var(--yellow); border-color: var(--yellow); color: var(--black); }

.carousel-dots { display: flex; gap: 8px; }
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: var(--white-20);
  border: none;
  transition: all var(--transition);
  cursor: pointer;
}
.carousel-dot.active { background: var(--yellow); width: 24px; }

/* --- CTA BANNER --- */
.cta-banner {
  background: #020C21; /* Azul extremamente escuro e intenso */
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('../assets/PATTERN_R6.svg') repeat center center;
  background-size: 300px;
  opacity: 0.04; /* Marca d'água sutíl no fundo */
  pointer-events: none;
  z-index: 0;
}
.cta-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}
.cta-text .cta-title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.cta-text .cta-desc {
  font-size: 16px;
  font-weight: 300;
  color: var(--white-60);
}
.cta-actions { display: flex; gap: 16px; flex-shrink: 0; flex-wrap: wrap; }

/* Botão WhatsApp */
.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: var(--transition);
}
.btn-whatsapp:hover { background: #1da851; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,0.35); }

/* --- FOOTER --- */
footer {
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-main { padding: 72px 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 64px;
}
.footer-brand img { height: 40px; margin-bottom: 20px; }
.footer-brand p {
  font-size: 14px;
  font-weight: 300;
  color: var(--white-60);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 280px;
}
.footer-socials { display: flex; gap: 12px; }
.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white-08);
  border: 1px solid var(--white-20);
  color: var(--white-60);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition);
  text-decoration: none;
}
.social-btn:hover { background: var(--yellow); border-color: var(--yellow); color: var(--black); }

.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white-60);
  margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 14px;
  font-weight: 300;
  color: var(--white-60);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.contact-icon { font-size: 16px; flex-shrink: 0; margin-top: 2px; color: var(--white-90); }
.contact-label { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white-60); display: block; }
.contact-value { font-size: 14px; color: var(--white); font-weight: 300; }
.contact-value a { color: var(--yellow); }
.contact-value a:hover { text-decoration: underline; }

.footer-bottom {
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom p {
  font-size: 12px;
  color: var(--white-60);
  font-weight: 300;
}

/* --- WHATSAPP FLOAT --- */
.whatsapp-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.whatsapp-float.visible { opacity: 1; transform: translateY(0); }

.whatsapp-tooltip {
  background: var(--white);
  color: var(--text-dark);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: var(--transition);
  pointer-events: none;
}
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; transform: translateX(0); }

.whatsapp-btn {
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,0.4);
  transition: var(--transition);
  animation: pulse-wa 3s infinite;
}
.whatsapp-btn:hover { transform: scale(1.12); animation: none; box-shadow: 0 12px 32px rgba(37,211,102,0.5); }
.whatsapp-btn svg { width: 30px; height: 30px; }

@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 8px 24px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 8px 24px rgba(37,211,102,0.4), 0 0 0 12px rgba(37,211,102,0.12); }
}

/* --- PAGE HERO (interno) --- */
.page-hero {
  height: 400px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding-bottom: 60px;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,10,10,0.85) 0%, rgba(13,31,60,0.65) 100%);
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 12px;
  display: block;
}
.page-hero-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.0;
}
.breadcrumb {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--white-60);
}
.breadcrumb a { color: var(--yellow); }
.breadcrumb span { color: var(--white-60); }

/* --- NOSOTROS TIMELINE --- */
.timeline { position: relative; padding-left: 48px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--yellow), var(--blue-light));
}
.timeline-item { position: relative; margin-bottom: 48px; }
.timeline-dot {
  position: absolute;
  left: -54px;
  top: 6px;
  width: 14px;
  height: 14px;
  background: var(--yellow);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--yellow);
}
.timeline-year {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.15em;
  color: var(--yellow);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.timeline-title { font-size: 20px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.timeline-desc { font-size: 15px; font-weight: 300; color: var(--text-mid); line-height: 1.7; }

/* --- VALUES --- */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.value-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: var(--blue-dark);
  transition: width var(--transition);
}
.value-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.value-card:hover::after { width: 100%; opacity: 0.03; }
.value-icon { font-size: 32px; margin-bottom: 16px; }
.value-title { font-size: 18px; font-weight: 700; color: var(--text-dark); margin-bottom: 10px; }
.value-desc { font-size: 14px; font-weight: 300; color: var(--text-mid); line-height: 1.7; }

/* --- SERVICES PAGE --- */
.service-detail-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 3px;
}
.service-detail-card.reverse { direction: rtl; }
.service-detail-card.reverse > * { direction: ltr; }
.service-detail-img { overflow: hidden; min-height: 360px; }
.service-detail-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.service-detail-card:hover .service-detail-img img { transform: scale(1.04); }
.service-detail-body {
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.service-detail-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--blue-dark);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  margin-bottom: 20px;
}
.service-detail-tag.primary { background: var(--yellow); color: var(--black); }
.service-detail-title { font-size: 28px; font-weight: 900; color: var(--text-dark); margin-bottom: 16px; line-height: 1.2; }
.service-detail-desc { font-size: 15px; font-weight: 300; color: var(--text-mid); line-height: 1.75; margin-bottom: 28px; }
.service-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.service-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-mid);
}
.feature-check { color: var(--yellow); font-size: 16px; flex-shrink: 0; font-weight: 700; }

/* --- FAQ --- */
.faq-list { display: flex; flex-direction: column; gap: 2px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.faq-item.open { border-color: var(--blue-dark); }
.faq-question {
  width: 100%;
  text-align: left;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  background: none;
  transition: color var(--transition);
}
.faq-item.open .faq-question { color: var(--blue-dark); }
.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: var(--transition);
  color: var(--text-mid);
}
.faq-item.open .faq-icon { background: var(--yellow); color: var(--black); transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 28px;
}
.faq-item.open .faq-answer { max-height: 400px; padding-bottom: 24px; }
.faq-answer p { font-size: 15px; font-weight: 300; color: var(--text-mid); line-height: 1.75; }

/* --- PREFAB vs CONVENCIONAL --- */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.compare-col {
  padding: 48px 40px;
}
.compare-col.prefab { background: var(--blue-dark); }
.compare-col.conv { background: var(--gray-light); }
.compare-title {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 2px solid;
}
.compare-col.prefab .compare-title { color: var(--white); border-color: var(--yellow); }
.compare-col.conv .compare-title { color: var(--text-dark); border-color: var(--gray-border); }
.compare-list { display: flex; flex-direction: column; gap: 14px; }
.compare-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
}
.compare-col.prefab .compare-item { color: var(--white-90); }
.compare-col.conv .compare-item { color: var(--text-mid); }
.cmp-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }

/* --- NOT DOING --- */
.not-doing {
  background: var(--gray-light);
  border: 2px solid var(--gray-border);
  border-left: 4px solid var(--yellow);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.not-doing-icon { font-size: 24px; flex-shrink: 0; }
.not-doing-text { font-size: 14px; color: var(--text-mid); line-height: 1.6; }
.not-doing-title { font-size: 15px; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; }

/* --- PORTFOLIO FILTER --- */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-btn {
  padding: 8px 20px;
  border: 1px solid var(--gray-border);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mid);
  background: var(--white);
  transition: var(--transition);
}
.filter-btn.active, .filter-btn:hover {
  background: var(--blue-dark);
  color: var(--white);
  border-color: var(--blue-dark);
}

.masonry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}
.masonry-item {
  overflow: hidden;
  position: relative;
  cursor: pointer;
  aspect-ratio: 4/3;
}
.masonry-item.tall { grid-row: span 2; aspect-ratio: unset; min-height: 500px; }
.masonry-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.masonry-item:hover img { transform: scale(1.06); }
.masonry-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,31,60,0.9) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}
.masonry-item:hover .masonry-overlay { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius); object-fit: contain; }
.lightbox-close {
  position: absolute;
  top: 24px; right: 24px;
  width: 48px; height: 48px;
  background: var(--white-08);
  border: 1px solid var(--white-20);
  border-radius: 50%;
  color: var(--white);
  font-size: 24px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.lightbox-close:hover { background: var(--white); color: var(--black); }
.lightbox-caption {
  position: absolute;
  bottom: 32px;
  text-align: center;
  color: var(--white-60);
  font-size: 13px;
  font-weight: 300;
}

/* --- CONTACT PAGE --- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: start; }

.contact-form-wrap { }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; display: flex; flex-direction: column; }
.form-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 8px;
}
.form-input, .form-select, .form-textarea {
  padding: 14px 16px;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 15px;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--blue-dark);
  box-shadow: 0 0 0 3px rgba(13,31,60,0.1);
}
.form-textarea { resize: vertical; min-height: 140px; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A8A8A' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }

.form-submit {
  width: 100%;
  padding: 16px;
  background: var(--blue-dark);
  color: var(--white);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.form-submit:hover { background: var(--yellow); color: var(--black); transform: translateY(-2px); box-shadow: var(--shadow-blue); }

.contact-info-wrap { }
.contact-card {
  background: var(--blue-dark);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  margin-bottom: 24px;
}
.contact-card .contact-item { margin-bottom: 28px; display: flex; gap: 16px; align-items: flex-start; }
.ci-icon {
  width: 44px; height: 44px;
  background: var(--white-08);
  border: 1px solid var(--white-20);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  color: var(--white-90);
}
.ci-label { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white-60); display: block; margin-bottom: 4px; }
.ci-value { font-size: 15px; color: var(--white); font-weight: 400; }
.ci-value a { color: var(--yellow); }

.map-embed { border-radius: var(--radius-lg); overflow: hidden; height: 280px; }
.map-embed iframe { width: 100%; height: 100%; border: none; }

/* --- ANIMATIONS --- */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-left.visible { opacity: 1; transform: translateX(0); }

.fade-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-right.visible { opacity: 1; transform: translateX(0); }

.fade-in {
  opacity: 0;
  transition: opacity 0.8s ease;
}
.fade-in.visible { opacity: 1; }

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }
.delay-7 { transition-delay: 0.7s; }
.delay-8 { transition-delay: 0.8s; }

/* --- AWARD BADGE --- */
.award-badge {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: var(--yellow);
  padding: 16px 24px;
  border-radius: var(--radius-md);
}
.award-icon { font-size: 32px; }
.award-text strong { font-size: 14px; font-weight: 900; color: var(--black); display: block; }
.award-text span { font-size: 12px; color: rgba(0,0,0,0.6); font-weight: 300; }

/* --- RESPONSIVE --- */
@media (max-width: 1100px) {
  .container, .nav-inner { padding: 0 28px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .hero-stats-inner { padding: 0 28px; }
  .hero-stats { right: 40px; gap: 24px; }
  .hero-stat { padding-right: 24px; }
  .stats-band-inner { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  .portfolio-item:first-child { grid-column: span 1; }
}

@media (max-width: 900px) {
  .section { padding: 72px 0; }
  .why-grid { grid-template-columns: 1fr; }
  .why-image { min-height: 300px; }
  .why-content { padding: 56px 40px; }
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 48px; }
  .process-steps::before { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .service-detail-card { grid-template-columns: 1fr; }
  .service-detail-card.reverse { direction: ltr; }
  .compare-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-content { flex-direction: column; text-align: center; }
  .masonry-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .container, .nav-inner { padding: 0 20px; }
  .container-sm { padding: 0 20px; }
  /* o recuo esta na .nav-inner, junto com o do .container */
  .nav-links { display: none; }
  .nav-right .btn { display: none; }
  .hamburger { display: flex; }

  .hero { padding-top: 80px; padding-bottom: 60px; }
  .hero-stats { display: none; }
  .hero-title { font-size: clamp(32px, 8vw, 54px); }

  .stats-band-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-card { padding: 36px 24px; }

  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .masonry-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .testimonial-card { padding: 32px 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .section-title { font-size: clamp(26px, 7vw, 36px); }
  .whatsapp-float { bottom: 20px; right: 20px; }
}

/* ─── CLIENTS LOGOS SECTION ─────────────────────────────── */
.clients-section {
  padding: 64px 0;
  background: var(--gray-light);
  overflow: hidden;
}
.clients-section .section-label { display: block; text-align: center; margin-bottom: 40px; }

.clients-track-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.clients-track {
  display: flex;
  gap: 64px;
  align-items: center;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.clients-track:hover { animation-play-state: paused; }

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 100px;
  filter: grayscale(1) opacity(0.55);
  transition: filter 0.35s ease;
}
/* Sem hover aqui de proposito: logo sem obra nao reage.
   O efeito vive em .client-logo-link, mais abaixo. */
.client-logo img {
  /* Todos os logos tem a mesma caixa. Com width/height auto o
     elemento encolhe ate o conteudo, entao o espaco entre eles
     fica uniforme. Os SVG foram recortados ao desenho, e os PNG
     tambem, senao uns apareceriam maiores que os outros.
     A caixa e larga (4,6:1) porque ha desde marca quase quadrada
     (Full Telecom, 1,09:1) ate assinatura longa (Movelmax, 6,4:1). */
  width: auto;
  height: auto;
  max-width: 260px;
  max-height: 56px;
  object-fit: contain;
}

/* ─── SERVICE ICON (SVG version — no emoji) ─────────────── */
.service-icon svg {
  width: 26px;
  height: 26px;
  color: var(--white);
  transition: color var(--transition);
}
.service-card:hover .service-icon svg { color: var(--black); }


/* FAQ title single line fix */
@media (min-width: 992px) {
  .faq-title-single {
    white-space: nowrap;
    font-size: 38px !important;
  }
}

/* --- ARCHITECTURAL BACKGROUND --- */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    linear-gradient(var(--gray-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--gray-border) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center center;
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
}

/* Add a subtle fade out at the edges for premium feel */
body::after {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at center, transparent 0%, var(--bg-light) 100%);
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
}

/* Subtle placeholder */
.form-input::placeholder, .form-textarea::placeholder {
  color: #C5CBD3;
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════════
   TELEFONES PEQUENOS (375px: iPhone SE, 8, 12 mini)
   O bloco de 768px ja reduz o padding para 20px; aqui tratamos
   o que ainda aperta ou estoura abaixo de 480px.
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .container,
  .container-sm,
  .nav-inner { padding: 0 16px; }
  /* o recuo esta na .nav-inner, junto com o do .container */

  .section { padding: 60px 0; }

  .hero { padding-top: 72px; padding-bottom: 48px; }
  .hero-title { font-size: clamp(28px, 9vw, 40px); }
  .hero-subtitle { font-size: 15px; }
  .hero-ctas { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-ctas .btn { width: 100%; justify-content: center; }

  /* Dois cards de estatistica lado a lado nao cabem em 375px */
  .stats-band-inner { grid-template-columns: 1fr; }
  .stat-card { padding: 28px 20px; }

  .section-title { font-size: clamp(24px, 8vw, 30px); }
  .section-subtitle { font-size: 15px; }
  .page-hero-title { font-size: clamp(26px, 8vw, 34px); }

  /* Barra de filtros: cabe em duas linhas sem estourar */
  .filter-bar { gap: 6px; }
  .filter-btn { padding: 9px 14px; font-size: 11px; }

  .testimonial-card { padding: 24px 20px; }

  /* 16px evita o zoom automatico do Safari no iOS ao focar o campo */
  .form-input,
  .form-select,
  .form-textarea { font-size: 16px; }

  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { width: 100%; justify-content: center; }

  .breadcrumb { font-size: 12px; }
  .whatsapp-float { bottom: 16px; right: 16px; }
  .lightbox-close { top: 16px; right: 16px; }
}

/* ═══════════════════════════════════════════════════════════
   PORTAFOLIO CONECTADO
   Logos clicaveis, chip de filtro e lightbox de galeria.
   ═══════════════════════════════════════════════════════════ */

/* ── Logo do cliente: so reage se o cliente tem obra ──────── */
.client-logo-link {
  position: relative;
  cursor: pointer;
  text-decoration: none;
  transition: filter 0.35s ease, transform var(--transition);
}
.client-logo-link:hover,
.client-logo-link:focus-visible {
  filter: grayscale(0) opacity(1);
  transform: translateY(-4px);
}
.client-logo-link:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 6px;
}

/* Rotulo "Ver obras" que aparece no hover */
.client-logo-ver {
  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translate(-50%, 6px);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--blue-dark);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}
.client-logo-link:hover .client-logo-ver,
.client-logo-link:focus-visible .client-logo-ver {
  opacity: 1;
  transform: translate(-50%, 0);
}
.client-logo-ver svg { width: 10px; height: 10px; }

/* O carrossel anda sozinho; para no hover para dar tempo de clicar */
.clients-track-wrap:hover .clients-track { animation-play-state: paused; }

/* ── Contador de fotos no card ────────────────────────────── */
.portfolio-count {
  display: inline-block;
  margin-top: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-60);
}

/* ── Chip do filtro por cliente ───────────────────────────── */
.filtro-chip-wrap { margin: -16px 0 28px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 16px;
  background: var(--blue-dark);
  color: var(--white);
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
}
.chip-label strong { font-weight: 700; }
.chip-close {
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  border: 0;
  border-radius: 50%;
  background: var(--white-20);
  color: var(--white);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.chip-close:hover { background: var(--yellow); color: var(--blue-dark); }
.chip-close:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }

.sin-resultados {
  padding: 48px 0;
  text-align: center;
  color: var(--text-mid);
  font-size: 16px;
}

/* ── Lightbox de galeria ──────────────────────────────────── */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border: 1px solid var(--white-20);
  border-radius: 50%;
  background: rgba(0,0,0,0.4);
  color: var(--white);
  cursor: pointer;
  z-index: 2;
  transition: background var(--transition), border-color var(--transition);
}
.lightbox-nav:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--blue-dark);
}
.lightbox-nav:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-nav[hidden] { display: none; }

.lightbox-info {
  position: absolute;
  left: 0; right: 0; bottom: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 80px;
  pointer-events: none;
}
.lightbox-counter {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--white-60);
  font-variant-numeric: tabular-nums;
}
.lightbox-counter[hidden] { display: none; }

/* Enquanto a versao de 1600px nao chegou */
.lightbox img { transition: opacity 0.25s ease; }
.lightbox img.cargando { opacity: 0.35; }

/* ── Telefones ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .lightbox-nav { width: 44px; height: 44px; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-info { padding: 0 24px; bottom: 20px; }
  .lightbox img { max-width: 94vw; max-height: 72vh; }
}
@media (max-width: 480px) {
  .filtro-chip-wrap { margin: -8px 0 20px; }
  .chip { font-size: 12px; padding: 7px 7px 7px 14px; }
  /* Em tela pequena o swipe resolve: as setas so atrapalham */
  .lightbox-nav { display: none; }
  .lightbox-info { padding: 0 16px; }
  .lightbox img { max-width: 100vw; max-height: 70vh; border-radius: 0; }
}

/* ═══════════════════════════════════════════════════════════
   FOTOS REAIS DOS HEROS
   Mobile primeiro: carrega a versao de 960px. Acima de 768px
   troca para a de 1920px. Antes eram imagens 1024x1024 geradas
   por IA, aplicadas por style inline.
   ═══════════════════════════════════════════════════════════ */
.hero-bg--home,
.page-hero-bg--nosotros,
.page-hero-bg--servicios,
.page-hero-bg--portafolio,
.page-hero-bg--contacto {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

/* Fachada. No celular o arquivo ja vem recortado na placa e na
   entrada, entao o enquadramento e o centro dele. */
.hero-bg--home {
  background-image: url('../assets/images/hero/home-mobile.webp');
  background-position: center center;
}
.page-hero-bg--nosotros   { background-image: url('../assets/images/hero/nosotros-mobile.webp'); }
.page-hero-bg--servicios  { background-image: url('../assets/images/hero/servicios-mobile.webp'); }
.page-hero-bg--portafolio { background-image: url('../assets/images/hero/portafolio-mobile.webp'); }
.page-hero-bg--contacto   { background-image: url('../assets/images/hero/contacto-mobile.webp'); }

@media (min-width: 769px) {
  /* 60% em vez de centro: o hero corta as laterais, e a placa R6
     esta a direita. Com 50% a placa encosta na borda do corte. */
  .hero-bg--home {
    background-image: url('../assets/images/hero/home.webp');
    background-position: 60% center;
  }
  .page-hero-bg--nosotros   { background-image: url('../assets/images/hero/nosotros.webp'); }
  .page-hero-bg--servicios  { background-image: url('../assets/images/hero/servicios.webp'); }
  .page-hero-bg--portafolio { background-image: url('../assets/images/hero/portafolio.webp'); }
  .page-hero-bg--contacto   { background-image: url('../assets/images/hero/contacto.webp'); }
}

@media (max-width: 768px) {
  .client-logo { height: 72px; }
  .client-logo img { max-width: 190px; max-height: 42px; }
}

/* ═══════════════════════════════════════════════════════════
   GRADES RESPONSIVAS
   Estas tres grades tinham grid-template-columns em style
   inline, que vence qualquer media query por especificidade.
   No celular ficavam com 3 colunas e estouravam a tela.
   ═══════════════════════════════════════════════════════════ */

/* Servicos secundarios: 3 no desktop, 2 no tablet, 1 no celular */
.services-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1024px) {
  .services-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .services-grid-3 { grid-template-columns: 1fr; }
}

/* Nosotros: linha do tempo ao lado da foto */
.about-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) {
  .about-two-col { grid-template-columns: 1fr; gap: 48px; }
}

/* Nosotros: os tres numeros */
.nosotros-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 8px;
}
@media (max-width: 900px) {
  .nosotros-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .nosotros-stats { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   ALTURA DO HERO NO DESKTOP
   A foto da fachada tem 1600x706. Com o hero em 100vh, era a
   altura da tela que mandava no cover, e em 1080px a foto era
   esticada 1,53x. Limitando a 780px, quem manda passa a ser a
   largura, e a ampliacao cai para 1,20x.
   No celular segue 100vh: la o recorte proprio ja resolve.
   ═══════════════════════════════════════════════════════════ */
@media (min-width: 769px) {
  /* min-height em vez de height: a caixa fica em 780px, que e o
     alvo, mas cresce se o texto precisar. Com height fixo e o
     overflow:hidden do .hero, um titulo de 4 linhas seria
     cortado em tela larga. */
  .hero {
    height: auto;
    min-height: min(100vh, 780px);
  }
  /* 35% na vertical: o corte sai da grama embaixo, nao do ceu
     nem da placa R6, que fica na parte de cima da foto. */
  .hero-bg--home { background-position: 60% 35%; }
}

/* ═══════════════════════════════════════════════════════════
   SELO "DESDE 1997" NO HERO
   Dois elementos, um por contexto:
   - .hero-seal--flujo  no fluxo, acima do titulo, ate 1099px
   - .hero-sello-foto   carimbado sobre a fachada, de 1100px

   O corte em 1100px nao e estetico. Abaixo disso o selo da
   direita invade o titulo: em 900px a folga chega a -3px.
   ═══════════════════════════════════════════════════════════ */

/* Carimbo sobre a foto: escondido por padrao */
.hero-sello-foto { display: none; }

/* ─────────────────────────────────────────────────────────────
   O carimbo acompanha a FOTO, nao a tela.

   Ancora em coordenadas da foto original (1600x706):
     borda direita  x = 1400  (alinhada com a placa amarela)
     topo           y = 198   (9px abaixo do "CEL. 0985-823 440")
     largura        127       (altura 54, dentro da faixa de
                               janelas, que vai de y 193 a 256)

   Como o fundo usa cover com altura fixa de 780px, ha dois
   regimes. Ate 1768px a escala e constante (780/706 = 1,1048) e
   so o recorte lateral muda, entao a posicao e linear na largura.
   De 1768px em diante quem manda e a largura, e tudo vira
   porcentagem da tela.
   ───────────────────────────────────────────────────────────── */
/* 1300px e o piso real: abaixo disso a faixa de janelas que
   serve de ancora esta fora da tela pela direita, e o carimbo
   sairia cortado. Ate la vale o selo acima do titulo. */
@media (min-width: 1300px) {
  .hero-seal--flujo { display: none; }

  .hero-sello-foto {
    display: block;
    position: absolute;
    right: calc(40vw - 486px);
    top: 219px;
    width: 140px;
    z-index: 2;
    opacity: 0.95;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.55));
    pointer-events: none;
  }
}

@media (min-width: 1768px) {
  .hero-sello-foto {
    right: 12.5vw;
    top: calc(273px - 3.069vw);
    width: 7.9375vw;
  }
}

/* Selo do celular: tamanho e respiro que tinha antes */
.hero-seal--flujo img {
  height: 60px;
  width: auto;
  margin-bottom: 24px;
  opacity: 0.8;
}
@media (max-width: 480px) {
  .hero-seal--flujo img { height: 48px; margin-bottom: 18px; }
}

/* ═══════════════════════════════════════════════════════════
   CARDS DE SERVICO CLICAVEIS
   So viram link os servicos que tem obra com foto no portafolio.
   Os outros seguem sem efeito, pelo mesmo motivo dos logos sem
   obra: nao prometer o que nao existe.

   O link cobre o card por cima em vez de envolver o HTML. Tres
   cards do servicios.html tem um botao "Solicitar Cotizacion"
   dentro, e <a> dentro de <a> e invalido.
   ═══════════════════════════════════════════════════════════ */
.service-card--link { position: relative; }

.service-card-stretch {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.service-card-stretch:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: -3px;
}

/* O botao interno fica acima do link esticado e segue clicavel */
.service-card--link .btn-ghost {
  position: relative;
  z-index: 2;
}

/* Seta no hover, indicando que leva a algum lugar */
.service-card--link .service-title::after {
  content: '\2192';
  display: inline-block;
  margin-left: 8px;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity var(--transition), transform var(--transition);
  color: var(--yellow-dark);
}
.service-card--link:hover .service-title::after,
.service-card--link:focus-within .service-title::after {
  opacity: 1;
  transform: translateX(0);
}

/* ═══════════════════════════════════════════════════════════
   BRILHO DOS BOTOES
   Reflexo diagonal estreito que atravessa o botao em 0,6s e
   some, repetindo a cada 8s. Vive num ::after, so com transform
   e opacity, entao nao mexe no layout nem no texto.

   O .btn ja tem position:relative e overflow:hidden, e o
   ::before ja e usado pelo veu de hover. Por isso ::after.

   0,6s de 8s = 7,5% do ciclo. O resto do tempo fica parado
   fora do botao, invisivel.
   ═══════════════════════════════════════════════════════════ */
@keyframes r6-brillo {
  0%   { transform: translateX(-140%) skewX(-18deg); }
  7.5% { transform: translateX(260%)  skewX(-18deg); }
  100% { transform: translateX(260%)  skewX(-18deg); }
}

.btn-primary::after,
.btn-outline::after,
.btn-outline-dark::after {
  content: '';
  position: absolute;
  top: -30%;
  left: 0;
  width: 28%;
  height: 160%;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0)    0%,
    rgba(255, 255, 255, 0.28) 50%,
    rgba(255, 255, 255, 0)    100%
  );
  transform: translateX(-140%) skewX(-18deg);
}

/* Amarelo: brilha sozinho, espacado */
.btn-primary::after {
  animation: r6-brillo 8s linear infinite;
}

/* Contorno: so no hover, uma passada por vez */
.btn-outline:hover::after,
.btn-outline-dark:hover::after {
  animation: r6-brillo 8s linear infinite;
}

/* No escuro o branco puro marca demais; reduz um pouco */
.btn-outline::after {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0)    0%,
    rgba(255, 255, 255, 0.22) 50%,
    rgba(255, 255, 255, 0)    100%
  );
}
.btn-outline-dark::after {
  background: linear-gradient(
    90deg,
    rgba(13, 31, 60, 0)    0%,
    rgba(13, 31, 60, 0.14) 50%,
    rgba(13, 31, 60, 0)    100%
  );
}

/* ── Desencontro: cada botao comeca num momento ──────────────
   Sem isso todos passariam o reflexo no mesmo instante, que e
   o que denuncia o efeito como animacao. */
.hero-ctas       .btn-primary::after { animation-delay: 0s; }
.navbar          .btn-primary::after { animation-delay: 2.6s; }
.cta-actions     .btn-primary::after { animation-delay: 1.3s; }
.gracias-actions .btn-primary::after { animation-delay: 3.4s; }
.e404-actions    .btn-primary::after { animation-delay: 1.9s; }
.contact-form    .btn-primary::after,
form             .btn-primary::after { animation-delay: 4.2s; }
/* Dois botoes no mesmo grupo nao brilham juntos */
.btn-primary:nth-of-type(2)::after { animation-delay: 3.1s; }
.btn-primary:nth-of-type(3)::after { animation-delay: 6.2s; }

/* Quem pediu menos movimento no sistema nao ve o reflexo */
@media (prefers-reduced-motion: reduce) {
  .btn-primary::after,
  .btn-outline::after,
  .btn-outline-dark::after,
  .btn-outline:hover::after,
  .btn-outline-dark:hover::after {
    animation: none;
    opacity: 0;
  }
}
