:root {
  --orange: #f17e18;
  --lavender: #7678ed;
  --yellow: #f7b801;
  --purple: #4124c4;
  --white: #ffffff;
  --ink: #0b132b;
  --charcoal: #27282a;
  --muted: #606674;
  --soft: rgba(11, 19, 43, 0.04);
  --shadow: 0 15px 70px -10px rgba(0, 0, 0, .15);
  --radius-xl: 40px;
  --container: 1180px;
  --header-height: 94px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--white);
  font-family: "Mulish", Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 1rem;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.2;
}
h1 { font-size: clamp(3.2rem, 7vw, 5.5rem); line-height: 1.26; }
h2 { font-size: clamp(2.25rem, 4.2vw, 3rem); line-height: 1.14; }
h3 { font-size: 1.8rem; line-height: 1.25; }
p { margin: 0 0 1rem; color: #191d2a; font-weight: 300; line-height: 1.4; }
ul { padding-left: 1.3rem; }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.narrow-container { width: min(calc(100% - 40px), 930px); margin-inline: auto; }
.section { padding: 100px 0; }
.lead { font-size: 1.2rem; line-height: 1.5; font-weight: 400; color: var(--ink); }
.centered { text-align: center; }
.centered-text { text-align: center; }
.soft-bg-section { background: var(--soft); }
.soft-bg { background: var(--soft); }

.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 9999;
  background: #fff;
  color: #111;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0,0,0,.18);
}
.skip-link:focus { top: 12px; }

/* Transparent header that becomes solid while scrolling. */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  transition: background-color .25s ease, box-shadow .25s ease;
}
.nav-shell {
  width: min(calc(100% - 40px), var(--container));
  min-height: var(--header-height);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 20px 0;
  transition: min-height .25s ease, padding .25s ease;
}
.brand {
  position: relative;
  z-index: 3;
  color: var(--white);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color .25s ease;
}
.primary-nav { display: flex; align-items: center; gap: 42px; }
.primary-nav a {
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  transition: color .2s ease;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 2px;
  background: var(--orange);
  transition: right .2s ease;
}
.primary-nav a:hover::after,
.primary-nav a.active::after { right: 0; }
.site-header.is-scrolled {
  background: var(--white);
  box-shadow: 0 4px 20px rgba(23, 25, 39, .10);
}
.site-header.is-scrolled .nav-shell { min-height: 72px; padding: 12px 0; }
.site-header.is-scrolled .brand,
.site-header.is-scrolled .primary-nav a { color: var(--ink); }
.menu-toggle {
  display: none;
  position: relative;
  z-index: 3;
  width: 40px;
  height: 40px;
  padding: 7px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 6px 0;
  background: var(--white);
  transition: transform .2s ease, opacity .2s ease, background .2s ease;
}
.site-header.is-scrolled .menu-toggle span { background: var(--ink); }

/* Home hero */
.hero {
  min-height: 760px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom-right-radius: 150px;
  isolation: isolate;
}
.hero-slide {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 1.2s ease, transform 7s linear;
}
.hero-slide.is-active { opacity: 1; transform: scale(1.07); }
.hero-overlay { position: absolute; inset: 0; z-index: -2; background: rgba(17, 18, 26, .40); }
.hero-content { color: var(--white); padding-top: 110px; padding-bottom: 200px; }
.hero-content h1 { color: var(--white); max-width: 850px; }
.hero-content p { max-width: 680px; margin: 20px 0 34px; font-size: 1.24rem; color: rgba(255,255,255,.95); }

.btn {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border-radius: 30px;
  padding: 13px 40px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-outline-light { border: 1px solid var(--white); color: var(--white); background: transparent; }
.btn-outline-light:hover { background: var(--white); color: var(--ink); }
.btn-primary { border: 1px solid var(--orange); color: var(--white); background: var(--orange); }
.btn-primary:hover { background: #d96809; border-color: #d96809; }

/* Advantage panel */
.advantages-section { position: relative; z-index: 10; margin-top: -150px; padding-bottom: 80px; }
.advantages-panel {
  margin: 0 45px;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
}
.advantage-item { text-align: center; padding: 44px 28px 40px; position: relative; }
.icon-wrap, .why-icon { color: var(--lavender); }
.icon-wrap { width: 46px; height: 46px; margin: 0 auto 12px; }
.bd-icon-svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.advantage-item h3 { font-size: 1.35rem; font-weight: 500; margin-bottom: 10px; }
.advantage-item p { color: var(--muted); font-size: .96rem; line-height: 1.58; margin: 0; }

/* Shared section heading */
.section-heading { max-width: 850px; margin: 0 auto 55px; }
.section-rule { display: block; width: 50px; height: 2px; background: var(--orange); margin: 18px 0 22px; }
.section-heading.centered .section-rule { margin-inline: auto; }
.section-heading .lead { color: var(--muted); }

/* About preview */
.about-preview { padding-top: 55px; }
.split-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 65px; align-items: stretch; }
.split-copy { align-self: center; padding: 30px 0; }
.split-copy p:last-child { font-size: 1.06rem; }
.split-image { min-height: 560px; border-radius: var(--radius-xl); background-position: center; background-size: cover; }
.about-image { background-image: url('../images/about-us.png'); background-position: 51% 0%; }

/* Portfolio */
.portfolio { padding-top: 60px; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 38px; }
.project-card { text-align: center; }
.project-image-link { display: block; border-radius: var(--radius-xl); overflow: hidden; background: #edf0f3; aspect-ratio: 1 / 1; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.project-card:hover img { transform: scale(1.035); }
.project-card h3 { font-size: 1.4rem; font-weight: 500; margin: 24px 0 13px; }
.project-card p { color: var(--muted); font-size: .98rem; line-height: 1.62; }
.text-link { color: var(--orange); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.text-link:hover { color: #9b510f; }

/* Two full-width split sections */
.full-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 660px; }
.full-split-image { min-height: 580px; background-repeat: no-repeat; background-size: cover; }
.metal-image { background-image: url('../images/metal-structure-specialists.jpeg'); background-position: 42% 91%; border-top-right-radius: var(--radius-xl); }
.quality-image { background-image: url('../images/quality-efficiency.jpeg'); background-position: 44% 100%; border-bottom-right-radius: var(--radius-xl); }
.full-split-copy { display: flex; flex-direction: column; justify-content: center; padding: 11% 9%; }
.full-split-copy .lead { font-size: 1.18rem; }
.full-split-copy p:not(.lead) { font-size: 1.05rem; color: var(--muted); }

/* Why choose us */
.why-us { padding: 110px 0 120px; }
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 52px 42px; }
.why-item { text-align: left; padding-right: 10%; }
.why-icon { width: 40px; height: 40px; margin-bottom: 16px; }
.why-item h3 { font-size: 1.34rem; font-weight: 500; }
.why-item p { margin: 0; color: var(--muted); font-size: .98rem; }

/* CTA and footer */
.contact-cta { background: var(--charcoal); padding: 82px 0; }
.contact-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.contact-cta h2 { color: var(--white); margin-bottom: 10px; }
.contact-cta p { color: rgba(255,255,255,.88); margin: 0; font-size: 1.08rem; }
.site-footer { background: var(--orange); color: var(--white); }
.footer-inner { min-height: 74px; display: flex; align-items: center; justify-content: center; text-align: center; }
.footer-inner p { margin: 0; }
.footer-inner a { color: var(--white); font-weight: 700; text-underline-offset: 3px; }

/* Inner pages */
.inner-hero {
  min-height: 415px;
  position: relative;
  display: flex;
  align-items: center;
  background: url('../images/hero-1.png') center 40% / cover no-repeat;
  border-bottom-right-radius: 150px;
  overflow: hidden;
  isolation: isolate;
}
.inner-hero-overlay { position: absolute; inset: 0; z-index: -1; background: rgba(17,18,26,.50); }
.inner-hero-content { padding-top: 105px; padding-bottom: 80px; }
.inner-hero h1 { color: var(--white); font-size: clamp(2.6rem, 5vw, 4rem); }
.content-section { padding: 95px 0; }
.content-section h2 { margin-bottom: 24px; }
.content-section h3 { margin: 28px 0 10px; font-size: 1.32rem; }
.content-section p { font-size: 1.06rem; color: #353b48; }
.about-checks { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px 36px; margin-top: 42px; text-align: left; }
.about-checks article { background: var(--white); border-radius: 24px; padding: 25px 28px; box-shadow: 0 14px 45px -28px rgba(0,0,0,.28); }
.about-checks h3 { color: var(--ink); margin: 0 0 9px; font-size: 1.08rem; }
.about-checks p { margin: 0; font-size: .97rem; }
.legal-copy h3 { margin-top: 34px; }
.archive-portfolio { padding-top: 100px; }

/* Project detail pages */
.project-detail-section { padding: 95px 0 110px; }
.project-detail-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); gap: 64px; align-items: start; }
.carousel-viewport { position: relative; overflow: hidden; border-radius: var(--radius-xl); background: #eceff2; aspect-ratio: 16 / 10; box-shadow: 0 25px 70px -45px rgba(0,0,0,.5); }
.carousel-slide { position: absolute; inset: 0; margin: 0; opacity: 0; pointer-events: none; transition: opacity .45s ease; }
.carousel-slide.is-active { opacity: 1; pointer-events: auto; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0,0,0,.15);
}
.carousel-control:hover { background: var(--white); }
.carousel-control.prev { left: 18px; }
.carousel-control.next { right: 18px; }
.carousel-control svg { width: 24px; height: 24px; fill: currentColor; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.carousel-dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: #c4c8d0; cursor: pointer; }
.carousel-dot.is-active { background: var(--orange); }
.project-copy h2 { font-size: clamp(2rem, 3vw, 2.7rem); }
.project-copy h3 { font-size: 1.28rem; margin: 28px 0 8px; }
.project-copy p, .project-copy li { color: #424956; font-size: 1rem; }
.project-copy ul { margin: 0 0 24px; }
.project-whatsapp { margin-top: 14px; }

/* Responsive */
@media (max-width: 1023px) {
  :root { --header-height: 80px; }
  .hero { min-height: 700px; }
  .hero-content { padding-bottom: 180px; }
  .advantages-panel { margin-inline: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-grid { gap: 40px; }
  .split-image { min-height: 500px; }
  .project-grid { gap: 26px; }
  .full-split { min-height: 580px; }
  .full-split-copy { padding: 11% 8%; }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-detail-grid { grid-template-columns: 1fr; gap: 42px; }
  .project-copy { max-width: 820px; }
}

@media (max-width: 767px) {
  body { font-size: 15px; }
  .container, .narrow-container { width: min(calc(100% - 30px), var(--container)); }
  .section { padding: 74px 0; }
  .site-header { transition: background .2s ease; }
  .nav-shell { width: calc(100% - 30px); min-height: 70px; padding: 15px 0; }
  .brand { font-size: 18px; letter-spacing: 1.5px; }
  .menu-toggle { display: block; }
  .primary-nav {
    position: fixed;
    inset: 0 0 auto auto;
    width: min(300px, 86vw);
    min-height: 100vh;
    padding: 104px 28px 40px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--charcoal);
    box-shadow: -12px 0 30px rgba(0,0,0,.18);
    transform: translateX(105%);
    transition: transform .28s ease;
  }
  .primary-nav.is-open { transform: translateX(0); }
  .primary-nav a, .site-header.is-scrolled .primary-nav a { color: var(--white); padding: 18px 4px; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 1.05rem; }
  .primary-nav a::after { display: none; }
  .menu-toggle.is-open span { background: var(--white); }
  .menu-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle.is-open span:nth-child(2) { opacity: 0; }
  .menu-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .hero { min-height: 680px; border-bottom-right-radius: 70px; align-items: center; }
  .hero-content { padding-top: 100px; padding-bottom: 170px; }
  .hero-content h1 { max-width: 92%; }
  .hero-content p { font-size: 1.08rem; max-width: 92%; }
  .advantages-section { margin-top: -120px; padding-bottom: 50px; }
  .advantages-panel { margin: 0; grid-template-columns: 1fr; border-radius: 30px; }
  .advantage-item { padding: 34px 25px; }
  .split-grid { grid-template-columns: 1fr; gap: 30px; }
  .split-image { min-height: 430px; order: -1; }
  .project-grid { grid-template-columns: 1fr; gap: 54px; max-width: 540px; margin-inline: auto; }
  .full-split { grid-template-columns: 1fr; min-height: 0; }
  .full-split.reverse .full-split-copy { order: 2; }
  .full-split.reverse .full-split-image { order: 1; }
  .full-split-image { min-height: 470px; border-radius: 0; }
  .metal-image { border-top-right-radius: 40px; }
  .quality-image { border-bottom-right-radius: 40px; }
  .full-split-copy { padding: 72px 28px; }
  .why-us { padding: 85px 0; }
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .why-item { padding-right: 0; }
  .contact-cta { padding: 70px 0; }
  .contact-cta-inner { flex-direction: column; align-items: flex-start; }
  .inner-hero { min-height: 330px; border-bottom-right-radius: 70px; }
  .inner-hero-content { padding-top: 100px; padding-bottom: 55px; }
  .content-section { padding: 70px 0; }
  .about-checks { grid-template-columns: 1fr; }
  .project-detail-section { padding: 70px 0 85px; }
  .carousel-viewport { aspect-ratio: 4 / 3; border-radius: 28px; }
  .carousel-control { width: 40px; height: 40px; }
  .carousel-control.prev { left: 12px; }
  .carousel-control.next { right: 12px; }
}

@media (max-width: 430px) {
  .hero { min-height: 650px; }
  .hero-content h1 { font-size: 3rem; }
  .btn { width: 100%; max-width: 260px; }
  .split-image, .full-split-image { min-height: 380px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; }
}
