/* ========================================
   MAIORCA ENGENHARIA — Design System
   Colors from logo: charcoal gradient
   Fonts: Poppins (headings) + Inter (body)
   ======================================== */

/* ---------- CSS Variables ---------- */
:root {
  --color-primary: #2D2D2D;
  --color-primary-light: #404040;
  --color-primary-dark: #1A1A1A;
  --color-accent: #4A7FB5;
  --color-accent-hover: #3B6A9C;
  --color-accent-light: #7BA3CC;
  --color-bg-light: #F3F6F9;
  --color-bg-white: #FFFFFF;
  --color-bg-dark: #1E1E1E;
  --color-bg-dark-alt: #2A2A2A;
  --color-text: #1A1A1A;
  --color-text-secondary: #5A5A5A;
  --color-text-light: #F0F0F0;
  --color-text-muted: #9A9A9A;
  --color-border: #E0E0E0;
  --color-border-dark: #3A3A3A;

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --transition: 0.25s ease;
  --transition-slow: 0.4s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

html {
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Section ---------- */
.section {
  padding: 100px 0;
}

.section-light {
  background-color: var(--color-bg-light);
}

.section-dark {
  background-color: var(--color-bg-dark);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}

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

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
}

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

.section-line {
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  margin: 0 auto 20px;
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

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

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(74, 127, 181, 0.35);
}

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

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  overflow: visible;
  transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
  box-shadow: none;
  border-bottom: none;
}

/* Gradiente estendido além da altura do navbar — elimina linha de corte */
.navbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.48) 0%, rgba(0,0,0,0.18) 45%, transparent 100%);
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled::before {
  opacity: 0;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(74, 127, 181, 0.18);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 4px 32px rgba(0,0,0,0.07);
  padding: 12px 0;
}

/* Over hero: logo branca, links brancos */
.navbar:not(.scrolled) .navbar-logo img {
  filter: brightness(0) invert(1);
  opacity: 0.96;
}

.navbar:not(.scrolled) .nav-link {
  color: rgba(255, 255, 255, 0.88);
}

.navbar:not(.scrolled) .nav-link:hover,
.navbar:not(.scrolled) .nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.navbar:not(.scrolled) .nav-link::after {
  background: rgba(255, 255, 255, 0.8);
}

.navbar:not(.scrolled) .nav-cta {
  background: var(--color-accent) !important;
  color: #fff !important;
  box-shadow: 0 2px 12px rgba(74, 127, 181, 0.45);
}

.navbar:not(.scrolled) .navbar-toggle span {
  background: #fff;
}

/* Scrolled: texto escuro no fundo branco */
.navbar.scrolled .nav-link {
  color: var(--color-primary);
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
  color: var(--color-accent);
  background: rgba(74, 127, 181, 0.08);
}

.navbar.scrolled .nav-link::after {
  background: var(--color-accent);
}

.navbar.scrolled .navbar-toggle span {
  background: var(--color-primary);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo img {
  height: 108px;
  width: auto;
  transition: height var(--transition), filter 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

.navbar.scrolled .navbar-logo img {
  height: 68px;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

.nav-cta {
  background: var(--color-accent) !important;
  color: #fff !important;
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  background: var(--color-accent-hover) !important;
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.navbar-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #1A1A1A;
}

/* --- Hero Slideshow --- */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.15);
  transition: opacity 1.2s ease, transform 6s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(20,20,20,0.97) 0%,
    rgba(26,26,26,0.92) 38%,
    rgba(26,26,26,0.72) 62%,
    rgba(20,20,20,0.30) 100%
  );
}

/* Blueprint grid pattern overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(74,127,181,0.10) 1px, transparent 1px);
  background-size: 36px 36px;
  z-index: 1;
  pointer-events: none;
  mask-image: linear-gradient(105deg, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.4) 35%, rgba(0,0,0,0.7) 70%, rgba(0,0,0,0.2) 100%);
  -webkit-mask-image: linear-gradient(105deg, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.4) 35%, rgba(0,0,0,0.7) 70%, rgba(0,0,0,0.2) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 100px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #c8dff0;
  background: rgba(74, 127, 181, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(138, 180, 216, 0.45);
  padding: 8px 20px 8px 14px;
  border-radius: 50px;
  margin-bottom: 28px;
}

.hero-badge::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  min-width: 7px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.7);
  animation: heroBadgePulse 2.2s ease-in-out infinite;
}

@keyframes heroBadgePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(74, 222, 128, 0.7); }
  50% { opacity: 0.55; box-shadow: 0 0 3px rgba(74, 222, 128, 0.3); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-highlight {
  background: linear-gradient(120deg, #5b9bd5 0%, #7ec8e3 55%, #a8d8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding-right: 40px;
}

.hero-stat + .hero-stat {
  padding-left: 40px;
  border-left: 1px solid rgba(255,255,255,0.1);
}

.hero-stat-top {
  display: flex;
  align-items: baseline;
}

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

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

.hero-stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-top: 8px;
  white-space: nowrap;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.4);
  animation: bounce 2s infinite;
}

.hero-scroll svg {
  width: 28px;
  height: 28px;
}

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

/* ---------- ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-lead {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 16px;
  color: var(--color-text);
}

.about-text p {
  color: var(--color-text-secondary);
  margin-bottom: 16px;
  line-height: 1.75;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-primary);
}

.about-feature svg {
  width: 22px;
  height: 22px;
  color: var(--color-accent);
  flex-shrink: 0;
}

/* --- About: Photo Grid --- */
.about-photo-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.photo-card-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.photo-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  flex: 1;
}

.photo-card--featured {
  border-radius: var(--radius-lg);
  height: 340px;
}

.photo-card-stack {
  flex-direction: row;
  height: 200px;
}

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

.photo-card:hover img {
  transform: scale(1.06);
}

.photo-card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 14px 12px;
  background: linear-gradient(transparent, rgba(10, 20, 40, 0.78));
  color: #fff;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.photo-bank-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.photo-bank-tag {
  font-size: 0.68rem;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.about-image-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  padding: 10px 16px;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

.about-badge-number {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
}

.about-badge-text {
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.25;
  opacity: 0.88;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- SERVICES ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.service-card {
  background: var(--color-bg-dark-alt);
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-dark);
  transition: all var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
  box-shadow: 0 8px 32px rgba(74, 127, 181, 0.15);
}

/* service-card-featured removed - all cards equal */

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(74, 127, 181, 0.12);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

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

.service-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-light);
  margin-bottom: 12px;
}

.service-desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 20px;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-list li {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  padding-left: 16px;
  position: relative;
}

.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  transform: translateY(-50%);
}

.services-extras {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.services-extra-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--color-bg-dark-alt);
  border: 1px solid var(--color-border-dark);
  border-radius: 50px;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: default;
  user-select: none;
}

.services-extra-item svg {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
}

/* ---------- OBRAS ---------- */
.obras-filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 10px 24px;
  border-radius: 50px;
  color: var(--color-text-secondary);
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

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

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

.obras-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  min-width: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.obra-card {
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid var(--color-border);
}

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

.obra-card.hidden {
  display: none;
}

.obra-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

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

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

.obra-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,26,26,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

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

.obra-view-btn {
  width: 48px;
  height: 48px;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
}

.obra-view-btn:hover {
  transform: scale(1.1);
}

.obra-view-btn svg {
  width: 20px;
  height: 20px;
}

.obra-info {
  padding: 20px 24px 24px;
}

.obra-category {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-accent);
}

.obra-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 6px 0 8px;
}

.obra-desc {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}

.obra-meta {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.obra-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.obra-meta svg {
  width: 14px;
  height: 14px;
}

/* ---------- OBRAS SLIDER ---------- */
.obras-slider-wrap {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

/* Pin nav buttons at the vertical center of the photo area (220px / 2 - 44px / 2 = 88px) */
.obras-nav {
  margin-top: 88px;
}

.obras-nav {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
  color: var(--color-text);
}

.obras-nav:hover:not(:disabled) {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
  transform: scale(1.08);
}

.obras-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.obras-nav svg {
  width: 20px;
  height: 20px;
}

.obras-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  min-height: 36px;
}

.obras-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  cursor: pointer;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.25s ease,
              border-radius 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.2s ease,
              opacity 0.2s ease;
  border: none;
  padding: 0;
  transform: scale(1);
}

.obras-dot:hover:not(.active) {
  background: var(--color-accent-light);
  transform: scale(1.3);
}

.obras-dot.active {
  background: var(--color-accent);
  width: 24px;
  border-radius: 4px;
  transform: scale(1.1);
}

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

/* ---------- CLIENTES CAROUSEL ---------- */
.carousel-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
  padding: 0 0 28px;
}

.carousel-wrapper::before,
.carousel-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.carousel-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--color-bg-dark), transparent);
}

.carousel-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--color-bg-dark), transparent);
}

.carousel-track {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 6px 24px 12px;
  animation: scroll-carousel 52s linear infinite;
  width: max-content;
}

/* hover pause handled by JS */

.carousel-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(190px, 17vw, 228px);
  min-width: clamp(190px, 17vw, 228px);
  height: 126px;
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(242, 246, 250, 0.96) 100%);
  border: 1px solid rgba(123, 163, 204, 0.18);
  border-radius: 18px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.carousel-logo::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.carousel-logo--inverse {
  background: linear-gradient(135deg, #315e3b 0%, #17311e 100%);
  border-color: rgba(149, 201, 153, 0.32);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.carousel-logo--inverse::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
}

.carousel-logo:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(247, 250, 252, 0.98) 100%);
  transform: translateY(-6px);
  border-color: rgba(123, 163, 204, 0.34);
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(123, 163, 204, 0.12);
}

.carousel-logo--inverse:hover {
  background: linear-gradient(135deg, #3f7549 0%, #1d3d26 100%);
  border-color: rgba(170, 226, 176, 0.42);
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(170, 226, 176, 0.12);
}

.carousel-logo img {
  --logo-max-height: 78px;
  --logo-max-width: 100%;
  --logo-scale: 1;
  --logo-render-height: 78px;
  --logo-box-width: auto;
  --logo-box-height: auto;
  --logo-fit: contain;
  --logo-position: center;
  --logo-shift-x: 0px;
  --logo-shift-y: 0px;
  --logo-filter: none;
  position: relative;
  z-index: 1;
  max-height: min(var(--logo-max-height), var(--logo-render-height));
  max-width: min(100%, var(--logo-max-width));
  width: var(--logo-box-width);
  height: var(--logo-box-height);
  object-fit: var(--logo-fit);
  object-position: var(--logo-position);
  /* Grayscale by default — logo's white bg merges with pill card;
     on hover full brand colors are revealed */
  opacity: 1;
  filter: var(--logo-filter);
  transform: translate(var(--logo-shift-x), var(--logo-shift-y)) scale(var(--logo-scale));
  transform-origin: center;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.carousel-logo:hover img {
  transform: translate(var(--logo-shift-x), var(--logo-shift-y)) scale(calc(var(--logo-scale) + 0.04));
}

.carousel-logo img[src*="bradesco.svg"],
.carousel-logo img[src*="itau.svg"] {
  --logo-max-height: 92px;
}

.carousel-logo img[src*="santander1.svg"] {
  --logo-max-height: 82px;
  --logo-max-width: 210px;
}

.carousel-logo img[src*="pepsico-logo.svg"] {
  --logo-max-height: 70px;
}

.carousel-logo img[src*="Mondelez_International.svg"],
.carousel-logo img[src*="Iron_Mountain_(logo).svg"] {
  --logo-max-height: 78px;
  --logo-scale: 1.1;
}

.carousel-logo img[src*="Logo_unimed1.svg"] {
  --logo-max-height: 74px;
  --logo-scale: 1.08;
}

.carousel-logo img[src*="Pestana_Group_logo.svg"] {
  --logo-max-height: 82px;
  --logo-scale: 1.1;
}

.carousel-logo img[src*="O%20Boticario.svg"] {
  --logo-max-height: 82px;
  --logo-render-height: 82px;
  --logo-box-width: 100%;
  --logo-box-height: 82px;
  --logo-fit: cover;
  --logo-position: center;
  --logo-scale: 1.08;
}

.carousel-logo img[src*="Logo_VIVO.svg"],
.carousel-logo img[src*="LEAX_idUx-PwlCg_2.svg"] {
  --logo-max-height: 74px;
  --logo-scale: 1.08;
}

.carousel-logo img[src*="banco-do-brasil.svg"] {
  --logo-max-height: 76px;
  --logo-max-width: 192px;
}

.carousel-logo img[src*="ibema.png"] {
  --logo-max-height: 72px;
  --logo-scale: 1.08;
}

.carousel-logo img.client-logo--copagaz {
  --logo-max-height: 86px;
  --logo-render-height: 86px;
  --logo-box-width: 100%;
  --logo-box-height: 86px;
  --logo-fit: cover;
  --logo-position: center 58%;
  --logo-scale: 1.1;
  --logo-shift-y: 0px;
}

.carousel-logo img.client-logo--ibema {
  --logo-max-height: 82px;
  --logo-scale: 1.34;
  --logo-filter: brightness(0) saturate(100%) invert(26%) sepia(33%) saturate(669%) hue-rotate(94deg) brightness(87%) contrast(89%);
}

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

/* ---------- CONTATO ---------- */
.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 48px;
  align-items: stretch;
}

.contato-map-full {
  display: flex;
  flex-direction: column;
}

.contato-map-full iframe {
  flex: 1;
  min-height: 460px;
  width: 100%;
  border: 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.contato-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contato-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contato-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(74, 127, 181, 0.1);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.contato-icon svg {
  width: 22px;
  height: 22px;
  color: var(--color-accent);
}

.contato-info-item h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.contato-info-item a,
.contato-info-item p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}

.contato-info-item a:hover {
  color: var(--color-accent);
}

.contato-map {
  margin-top: 8px;
}

.contato-map iframe {
  width: 100%;
  box-shadow: var(--shadow-sm);
}

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-accent) !important;
  transition: all var(--transition);
}

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

.map-link svg {
  width: 16px;
  height: 16px;
}

.contato-form {
  background: var(--color-bg-white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(74, 127, 181, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-muted);
}

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

/* ---------- FOOTER ---------- */
.footer {
  background: var(--color-primary-dark);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--color-border-dark);
}

.footer-logo {
  height: 50px;
  margin-bottom: 12px;
  filter: brightness(1.5);
}

.footer-brand p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.footer-desc {
  margin-top: 12px;
  line-height: 1.6;
}

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-light);
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a,
.footer-links li {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--color-accent-light);
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.footer-contact svg {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  text-align: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  margin: 0 auto;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  color: #fff;
  padding: 12px;
  border-radius: 50%;
  transition: all var(--transition);
  z-index: 10;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.15);
}

.lightbox-close {
  top: 20px;
  right: 20px;
}

.lightbox-close svg {
  width: 28px;
  height: 28px;
}

.lightbox-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev svg,
.lightbox-next svg {
  width: 32px;
  height: 32px;
}

.lightbox-caption {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-top: 16px;
}

.lightbox-counter {
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
  margin-top: 8px;
}

/* ---------- WHATSAPP FLOAT ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  z-index: 999;
  transition: all var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,0.5);
}

/* ---------- ANIMATIONS ---------- */

/* --- Scroll Progress Bar --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
  z-index: 1001;
  width: 0%;
  transition: none;
}

/* --- Hero Entrance Animations --- */
.hero-content > * {
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-content > :nth-child(1) { animation-delay: 0.3s; }
.hero-content > :nth-child(2) { animation-delay: 0.5s; }
.hero-content > :nth-child(3) { animation-delay: 0.7s; }
.hero-content > :nth-child(4) { animation-delay: 0.9s; }
.hero-content > :nth-child(5) { animation-delay: 1.1s; }

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Fade-in Base --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Directional Fade-in Variants --- */
.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.fade-in-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* --- Section Line Animate --- */
.section-line {
  transform: scaleX(0);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-line.visible {
  transform: scaleX(1);
}

/* --- Stagger Delays --- */
.stagger-1 { transition-delay: 0.05s !important; }
.stagger-2 { transition-delay: 0.1s !important; }
.stagger-3 { transition-delay: 0.15s !important; }
.stagger-4 { transition-delay: 0.2s !important; }
.stagger-5 { transition-delay: 0.25s !important; }
.stagger-6 { transition-delay: 0.3s !important; }
.stagger-7 { transition-delay: 0.35s !important; }
.stagger-8 { transition-delay: 0.4s !important; }
.stagger-9 { transition-delay: 0.45s !important; }
.stagger-10 { transition-delay: 0.5s !important; }
.stagger-11 { transition-delay: 0.55s !important; }
.stagger-12 { transition-delay: 0.6s !important; }

/* --- Enhanced Service Card Hover --- */
.service-icon svg {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-icon svg {
  transform: scale(1.2) rotate(5deg);
}

.service-card:hover .service-title {
  color: var(--color-accent-light);
  transition: color 0.3s ease;
}

/* --- Enhanced Obra Card Hover --- */
.obra-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(74, 127, 181, 0.18);
}

/* --- Button Ripple Effect --- */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease, opacity 0.5s ease;
  opacity: 0;
}

.btn-primary:active::after {
  width: 300px;
  height: 300px;
  opacity: 1;
}

/* --- Services Extra Item Hover --- */
.services-extra-item {
  transition: all var(--transition);
}

.services-extra-item:hover {
  border-color: var(--color-accent);
  background: rgba(74, 127, 181, 0.08);
  transform: translateY(-2px);
  color: var(--color-accent-light);
}

/* --- WhatsApp Pulse --- */
.whatsapp-float {
  animation: whatsappPulse 2.5s ease-in-out infinite;
}

@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 24px rgba(37,211,102,0.6), 0 0 0 8px rgba(37,211,102,0.08); }
}

/* --- Lightbox Image Entrance --- */
.lightbox.active .lightbox-content img {
  animation: lightboxZoomIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes lightboxZoomIn {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* --- About Badge Float --- */
.about-image-badge {
  animation: badgeFloat 5s ease-in-out infinite;
}

@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

/* --- Filter Button Enhanced --- */
.filter-btn:active {
  transform: scale(0.96);
}

/* --- Contato Icon Hover --- */
.contato-info-item:hover .contato-icon {
  background: rgba(74, 127, 181, 0.18);
  transform: scale(1.08);
  transition: all 0.3s ease;
}

.contato-icon {
  transition: all 0.3s ease;
}

/* --- Navbar Link Underline Animation --- */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--color-accent-light);
  transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 1px;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

/* ========================================
   VISUAL ENHANCEMENTS — Modern Sections
   ======================================== */

/* — About: feature mini-cards with left accent — */
.about-features {
  gap: 12px;
}

.about-feature {
  background: rgba(74, 127, 181, 0.055);
  border: 1px solid rgba(74, 127, 181, 0.14);
  border-left: 3px solid var(--color-accent);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), transform var(--transition);
}

.about-feature:hover {
  background: rgba(74, 127, 181, 0.1);
  transform: translateX(4px);
}

/* — Services: inset top accent line + icon glow on hover — */
.service-card:hover {
  box-shadow: inset 0 2px 0 var(--color-accent), 0 8px 32px rgba(74, 127, 181, 0.15);
}

.service-icon {
  transition: background var(--transition), box-shadow var(--transition);
}

.service-card:hover .service-icon {
  background: rgba(74, 127, 181, 0.22);
  box-shadow: 0 0 16px rgba(74, 127, 181, 0.22);
}

/* — Obras: category tag as pill badge — */
.obra-category {
  display: inline-block;
  background: rgba(74, 127, 181, 0.08);
  padding: 3px 10px;
  border-radius: 50px;
  border: 1px solid rgba(74, 127, 181, 0.22);
  margin-bottom: 4px;
}

/* — Contact: info items as white floating cards — */
.contato-info {
  gap: 20px;
}

.contato-info-item {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.contato-info-item:hover {
  border-color: rgba(74, 127, 181, 0.3);
  box-shadow: 0 4px 20px rgba(74, 127, 181, 0.1);
  transform: translateY(-2px);
}

.contato-icon {
  border: 1px solid rgba(74, 127, 181, 0.18);
}


/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .obras-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

  .contato-map-full iframe {
    min-height: 360px;
  }

  .carousel-wrapper::before,
  .carousel-wrapper::after {
    width: 84px;
  }

  .carousel-track {
    gap: 22px;
    padding-inline: 20px;
    animation-duration: 46s;
  }

  .carousel-logo {
    width: 200px;
    min-width: 200px;
    height: 114px;
    padding: 16px 20px;
  }

  .carousel-logo img {
    --logo-render-height: 70px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  /* Navbar Mobile */
  .navbar {
    padding: 12px 0;
  }

  .navbar.scrolled {
    padding: 8px 0;
  }

  .navbar-logo img {
    height: 56px;
  }

  .navbar.scrolled .navbar-logo img {
    height: 48px;
  }

  .navbar-toggle {
    display: flex;
  }

  .navbar-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: var(--color-primary-dark);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 4px;
    transition: right var(--transition);
    box-shadow: var(--shadow-xl);
    z-index: 200;
  }

  .navbar-menu.open {
    right: 0;
  }

  .nav-link {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
  }

  /* Hero — alinha topo no mobile para respeitar a navbar */
  .hero {
    align-items: flex-start;
  }

  .hero-content {
    padding-top: 100px;
    padding-bottom: 48px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 0;
  }

  .hero-stat {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding-right: 0;
    padding-bottom: 20px;
  }

  .hero-stat + .hero-stat {
    padding-left: 0;
    padding-top: 20px;
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-photo-grid {
    order: -1;
    height: auto;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .photo-card--featured {
    height: 240px;
  }

  .photo-card-stack {
    flex-direction: row;
    height: 150px;
  }

  .about-image-badge {
    padding: 8px 12px;
  }

  /* Obras — on mobile show 1 per page */
  .obras-grid {
    grid-template-columns: 1fr;
  }

  .obras-slider-wrap {
    gap: 8px;
  }

  .obras-nav {
    width: 36px;
    height: 36px;
    margin-top: 92px; /* center of mobile image (~220px) */
  }

  /* Contato */
  .contato-map-full {
    order: -1;
  }
  .contato-map-full iframe {
    min-height: 280px;
  }

  .contato-form {
    padding: 24px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .carousel-wrapper {
    padding-bottom: 18px;
  }

  .carousel-wrapper::before,
  .carousel-wrapper::after {
    width: 56px;
  }

  .carousel-track {
    gap: 16px;
    padding-inline: 16px;
    animation-duration: 38s;
  }

  .carousel-logo {
    width: 176px;
    min-width: 176px;
    height: 100px;
    padding: 14px 16px;
    border-radius: 14px;
  }

  .carousel-logo img {
    --logo-render-height: 60px;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .obras-filters {
    gap: 6px;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  /* Services extras chips — wrap 2 per row on small screens */
  .services-extras {
    gap: 10px;
  }

  .services-extra-item {
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  /* WhatsApp — menor no mobile */
  .whatsapp-float {
    width: 48px;
    height: 48px;
    bottom: 16px;
    right: 16px;
  }

  .carousel-track {
    gap: 14px;
    padding-inline: 12px;
    animation-duration: 34s;
  }

  .carousel-logo {
    width: 158px;
    min-width: 158px;
    height: 88px;
    padding: 12px 14px;
  }

  .carousel-logo img {
    --logo-render-height: 52px;
  }
}

/* ---------- Skip Link (A11y) ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--color-accent);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  z-index: 10000;
  font-weight: 600;
}

.skip-link:focus {
  top: 16px;
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
