:root {
   --main-header-height: 83px;
   --container: min(1200px, 92%);
   --text: #232323;
   --muted: #666;
   --brand: #f58220;
}

* {
   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-dark h2 {
   color: #fff;
   font-weight: 400;
   font-size: 1.2rem;
   text-transform: none;
   white-space: nowrap;
}

.header-content {
   display: flex;
   align-items: center;
   gap: 20px;
}

.header-line {
   width: 150px;
   height: 1px;
   background-color: #ff8c31;
}

.header-orange {
   background-color: #ff8c31;
   flex: 1;
}

.content-spacer {
   min-height: 400px;
   background-color: #fff;
}

.service-hero-full {
   position: relative;
   width: 100%;
   min-height: clamp(420px, 84vh, 760px);
   background: url('../assets/images/obra-civil.webp') 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;
}

.section-tag {
   display: inline-block;
   margin-bottom: 14px;
   color: var(--brand);
   font-size: 0.8rem;
   font-weight: 700;
   letter-spacing: 2px;
}

.hero-content h1 {
   font-size: clamp(1.7rem, 4.2vw, 3.5rem);
   line-height: 1.1;
   font-weight: 800;
   margin-bottom: 20px;
   max-width: 780px;
   text-wrap: balance;
}

.hero-content p {
   font-size: clamp(0.95rem, 1.4vw, 1.1rem);
   max-width: 680px;
   color: rgba(255, 255, 255, 0.86);
}

.operation-highlight {
   width: var(--container);
   margin: 0 auto;
   padding: 90px 0 70px;
}

.operation-header {
   max-width: 820px;
   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: 960px;
}

.feature-split {
   background: #d9d9d9;
   padding: 80px 0;
}

.feature-split.reverse {
   background: #fff;
}

.feature-split-container {
   width: var(--container);
   margin: 0 auto;
   display: grid;
   grid-template-columns: 1fr 1.2fr;
   align-items: center;
   gap: clamp(24px, 5vw, 80px);
}

.feature-split.reverse .feature-split-container {
   grid-template-columns: 1.2fr 1fr;
}

.feature-split.reverse .feature-text {
   order: 2;
}

.feature-split.reverse .feature-image {
   order: 1;
}

.feature-text {
   max-width: 500px;
   margin-left: clamp(0px, 3vw, 40px);
}

.feature-icon {
   margin-bottom: 20px;
}

.feature-icon img {
   width: 42px;
   height: 42px;
   object-fit: contain;
   display: block;
}

.feature-text h3 {
   font-size: clamp(1.4rem, 2.2vw, 2rem);
   font-weight: 800;
   color: #23384d;
   margin-bottom: 14px;
   line-height: 1.2;
}

.feature-text p {
   font-size: clamp(0.95rem, 1.4vw, 1.08rem);
   line-height: 1.7;
   color: #2f4357;
}

.feature-image img {
   width: 100%;
   max-width: 760px;
   height: clamp(260px, 36vw, 410px);
   object-fit: cover;
   display: block;
}

.service-section {
   width: 100%;
   padding: 90px 0;
}

.related-services {
   background: #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.5vw, 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);
}

.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;
   text-decoration: none;
}

.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) {
   .feature-split-container,
   .feature-split.reverse .feature-split-container {
      grid-template-columns: 1fr;
   }

   .feature-split.reverse .feature-text,
   .feature-split.reverse .feature-image {
      order: initial;
   }

   .feature-text {
      margin-left: 0;
      max-width: 100%;
   }

   .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;
   }

   .feature-split,
   .service-section {
      padding: 64px 0;
   }

   .feature-text p {
      line-height: 1.65;
   }
}

@media (max-width: 560px) {
   .hero-content {
      width: min(1200px, 94%);
   }

   .gallery-grid {
      grid-template-columns: 1fr;
   }

   .gallery-card,
   .gallery-card img {
      min-height: 220px;
   }
}
