:root {
   --main-header-height: 83px;
   --container: min(1200px, 92%);
   --text: #232323;
   --muted: #666;
   --brand: #f58220;
   --bg-soft: #f8f6f3;
}

* {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
}

html {
   scroll-behavior: smooth;
}

body {
   font-family: 'Montserrat', sans-serif;
   color: var(--text);
   background: #fff;
   line-height: 1.6;
   overflow-x: hidden;
}

.split-header {
   display: flex;
   height: 120px;
   width: 100%;
   margin-top: var(--main-header-height);
}

.header-dark {
   background-color: #2d3e4a;
   width: 45%;
   display: flex;
   align-items: center;
   justify-content: flex-end;
   padding-right: 40px;
   position: relative;
}

.header-content {
   display: flex;
   align-items: center;
   gap: 20px;
}

.header-dark h2 {
   color: #fff;
   font-weight: 400;
   font-size: 1.2rem;
   text-transform: none;
   white-space: nowrap;
}

.header-line {
   width: 150px;
   height: 1px;
   background-color: #ff8c31;
}

.header-orange {
   background-color: #ff8c31;
   flex: 1;
}

.content-spacer {
   min-height: 400px;
   background-color: #fff;
}

.section-heading {
   width: var(--container);
   margin: 0 auto 48px;
}

.section-heading.center {
   text-align: center;
}

.section-heading h2 {
   font-size: clamp(1.6rem, 2.4vw, 2.2rem);
   color: var(--text);
   line-height: 1.2;
   font-weight: 800;
}

.section-heading p {
   max-width: 760px;
   margin: 12px auto 0;
   color: var(--muted);
}

.section-tag {
   display: inline-block;
   margin-bottom: 14px;
   color: var(--brand);
   font-size: 0.8rem;
   font-weight: 700;
   letter-spacing: 2px;
}

.service-hero-full {
   position: relative;
   width: 100%;
   min-height: clamp(420px, 84vh, 780px);
   background: url('../assets/images/locacao-equipamentos.jpg') center/cover no-repeat;
   display: flex;
   align-items: center;
}

.hero-overlay {
   position: absolute;
   inset: 0;
   background: rgba(0, 0, 0, 0.45);
}

.hero-content {
   position: relative;
   z-index: 2;
   width: var(--container);
   margin: 0 auto;
   color: #fff;
}

.hero-content h1 {
   font-size: clamp(1.7rem, 4.3vw, 3.5rem);
   line-height: 1.1;
   font-weight: 800;
   margin-bottom: 20px;
   max-width: 760px;
   text-wrap: balance;
}

.hero-content p {
   font-size: clamp(0.95rem, 1.4vw, 1.1rem);
   max-width: 620px;
   color: rgba(255, 255, 255, 0.86);
}

.operation-highlight {
   width: var(--container);
   margin: 0 auto;
   padding: 90px 0 70px;
}

.operation-header {
   max-width: 780px;
   margin-bottom: 42px;
}

.operation-header h2 {
   font-size: clamp(1.5rem, 2.6vw, 2rem);
   line-height: 1.2;
   color: var(--text);
   font-weight: 800;
   margin-bottom: 12px;
}

.operation-header p {
   font-size: 1rem;
   color: var(--muted);
}

.operation-text h3 {
   font-size: clamp(1.2rem, 2.2vw, 2rem);
   font-weight: 500;
   color: var(--text);
   margin-bottom: 10px;
}

.operation-line {
   width: min(100%, 420px);
   height: 2px;
   background: var(--brand);
   margin-bottom: 24px;
}

.operation-text p {
   font-size: clamp(0.95rem, 1.4vw, 1.05rem);
   color: var(--text);
   line-height: 1.6;
   max-width: 880px;
}

.quick-highlights {
   padding-bottom: 24px;
}

.quick-container {
   width: var(--container);
   margin: 0 auto 50px;
   display: grid;
   grid-template-columns: repeat(4, minmax(0, 1fr));
   gap: 20px;
}

.highlight-card {
   background: #fff;
   border-radius: 16px;
   padding: 24px;
   text-align: center;
   border: 1px solid #eee;
   transition: transform 0.3s ease;
}

.highlight-card:hover {
   transform: translateY(-4px);
}

.highlight-card h3 {
   font-size: 1.1rem;
   color: var(--text);
   margin-bottom: 8px;
}

.highlight-card p {
   font-size: 0.9rem;
   color: var(--muted);
}

.equipment-carousel-section {
   padding: 90px 0;
   background: var(--bg-soft);
}

.equipment-carousel {
   width: var(--container);
   margin: 0 auto;
   position: relative;
}

.carousel-track-container {
   overflow: hidden;
   width: 100%;
   border-radius: 24px;
}

.carousel-track {
   display: flex;
   transition: transform 0.5s ease;
}

.carousel-slide {
   min-width: 100%;
   position: relative;
   overflow: hidden;
   border-radius: 24px;
}

.carousel-slide img {
   width: 100%;
   height: clamp(280px, 44vw, 520px);
   object-fit: cover;
   display: block;
}

.slide-caption {
   position: absolute;
   left: 40px;
   bottom: 40px;
   background: rgba(35, 35, 35, 0.72);
   color: #fff;
   padding: 24px 28px;
   border-radius: 18px;
   max-width: min(420px, calc(100% - 80px));
   backdrop-filter: blur(4px);
}

.slide-caption h3 {
   font-size: clamp(1.1rem, 2vw, 1.5rem);
   margin-bottom: 10px;
   font-weight: 800;
}

.slide-caption p {
   font-size: clamp(0.9rem, 1.35vw, 1rem);
   line-height: 1.5;
   color: rgba(255, 255, 255, 0.88);
}

.carousel-btn {
   position: absolute;
   top: 50%;
   transform: translateY(-50%);
   z-index: 2;
   width: 52px;
   height: 52px;
   border: none;
   border-radius: 50%;
   background: #232323;
   color: #fff;
   font-size: 1.4rem;
   cursor: pointer;
   transition: background 0.3s ease;
}

.carousel-btn.prev {
   left: 12px;
}

.carousel-btn.next {
   right: 12px;
}

.carousel-btn:hover {
   background: var(--brand);
}

.carousel-dots {
   display: flex;
   justify-content: center;
   gap: 10px;
   margin-top: 28px;
}

.dot {
   width: 12px;
   height: 12px;
   border-radius: 50%;
   border: none;
   background: #c7c7c7;
   cursor: pointer;
   transition: background 0.3s ease;
}

.dot.active {
   background: var(--brand);
}

.related-services {
   width: 100%;
   padding: 90px 0;
   background: #fff;
}

.services-gallery {
   width: var(--container);
   margin: 0 auto;
}

.gallery-grid {
   display: grid;
   grid-template-columns: repeat(3, minmax(0, 1fr));
   gap: 16px;
}

.gallery-card {
   position: relative;
   border-radius: 16px;
   overflow: hidden;
   min-height: 260px;
}

.gallery-card img {
   width: 100%;
   height: 100%;
   min-height: 260px;
   object-fit: cover;
   display: block;
   transition: transform 0.35s ease;
}

.gallery-card:hover img {
   transform: scale(1.04);
}

.card-overlay {
   position: absolute;
   inset: 0;
   display: flex;
   align-items: flex-end;
   padding: 20px;
   background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.15) 55%, transparent);
}

.card-overlay h3 {
   color: #fff;
   font-size: 1.08rem;
   font-weight: 700;
}

@media (max-width: 992px) {
   .quick-container {
      grid-template-columns: repeat(2, minmax(0, 1fr));
   }

   .gallery-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
   }
}

@media (max-width: 768px) {
   .split-header {
      height: 100px;
      margin-top: 60px;
   }

   .header-dark {
      width: 70%;
      padding-right: 15px;
   }

   .header-content {
      gap: 12px;
   }

   .header-line {
      width: 60px;
   }

   .header-dark h2 {
      font-size: 1rem;
   }

   .operation-highlight {
      padding: 64px 0 46px;
   }

   .equipment-carousel-section,
   .related-services {
      padding: 64px 0;
   }

   .carousel-btn {
      width: 42px;
      height: 42px;
      font-size: 1.1rem;
   }

   .carousel-btn.prev {
      left: 8px;
   }

   .carousel-btn.next {
      right: 8px;
   }

   .slide-caption {
      left: 16px;
      right: 16px;
      bottom: 16px;
      max-width: none;
      padding: 16px 18px;
   }
}

@media (max-width: 560px) {
   .hero-content {
      width: min(1200px, 94%);
   }

   .quick-container,
   .gallery-grid {
      grid-template-columns: 1fr;
   }

   .gallery-card,
   .gallery-card img {
      min-height: 220px;
   }

   .carousel-btn {
      top: auto;
      bottom: 12px;
      transform: none;
   }

   .carousel-btn.prev {
      left: 12px;
   }

   .carousel-btn.next {
      right: 12px;
   }
}