:root {
  --isar-blue: #2b5ec7;
  --isar-blue-dark: #173d8f;
  --ink: #162033;
  --muted: #607086;
  --line: #dfe5ee;
  --surface: #f5f7fb;
  --surface-strong: #eef2f7;
  --white: #ffffff;
  --charcoal: #111827;
  --steel: #313d4f;
  --amber: #c9842b;
  --green: #3f7d6b;
  --shadow: 0 18px 50px rgba(22, 32, 51, 0.1);
  --shadow-strong: 0 28px 70px rgba(22, 32, 51, 0.18);
  --radius: 8px;
  --radius-sm: 6px;
  --container: min(1180px, calc(100% - 2rem));
  --header-height: 78px;
  --font-sans: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

section[id] {
  scroll-margin-top: calc(var(--header-height) + 22px);
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 2000;
  transform: translateY(-160%);
  background: var(--charcoal);
  color: var(--white);
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: var(--container);
  margin-inline: auto;
  min-width: 0;
}

.section {
  padding: clamp(4rem, 7vw, 6.5rem) 0;
}

.section-muted {
  background: var(--surface);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 2.1rem;
}

.section-heading h2,
.contact-copy h2 {
  margin: 0.8rem 0 0;
  font-size: clamp(1.8rem, 3.2vw, 2.65rem);
  line-height: 1.12;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.section-heading p:not(.eyebrow),
.contact-copy p {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  overflow-wrap: anywhere;
}

.eyebrow {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--isar-blue-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 2.15rem;
  height: 2px;
  background: var(--amber);
}

.eyebrow-dark {
  color: #dbe8ff;
}

.btn {
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.76rem 1.08rem;
  font-weight: 800;
  font-size: 0.93rem;
  line-height: 1.15;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--isar-blue);
  color: var(--white);
  box-shadow: 0 14px 30px rgba(43, 94, 199, 0.27);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--isar-blue-dark);
  box-shadow: 0 18px 38px rgba(43, 94, 199, 0.34);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--white);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(223, 229, 238, 0.82);
  backdrop-filter: blur(14px);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 35px rgba(22, 32, 51, 0.09);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  width: 174px;
  height: auto;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.05rem;
}

.site-nav a {
  color: #2c394b;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--isar-blue-dark);
}

.header-cta {
  margin-left: 0.3rem;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  margin-left: auto;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.menu-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: min(820px, 88vh);
  padding: calc(var(--header-height) + clamp(3rem, 8vw, 5.5rem)) 0 clamp(3.5rem, 8vw, 5.8rem);
  overflow: hidden;
  display: grid;
  align-items: center;
  color: var(--white);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(10, 17, 31, 0.9) 0%, rgba(10, 17, 31, 0.73) 42%, rgba(10, 17, 31, 0.28) 100%),
    linear-gradient(180deg, rgba(10, 17, 31, 0.18) 0%, rgba(10, 17, 31, 0.72) 100%);
}

.hero-content {
  position: relative;
  max-width: 790px;
  margin-left: max((100vw - 1180px) / 2, 1rem);
  margin-right: auto;
}

.hero .eyebrow {
  color: #e8efff;
}

.hero h1 {
  margin: 1rem 0 0;
  max-width: 15.7ch;
  font-size: clamp(2.35rem, 6vw, 5.1rem);
  line-height: 0.98;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.hero-lead {
  margin: 1.25rem 0 0;
  max-width: 68ch;
  color: #e5edf9;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.hero-highlights {
  list-style: none;
  padding: 0;
  margin: 1.8rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-highlights li {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-sm);
  padding: 0.58rem 0.78rem;
  color: #f5f8ff;
  font-weight: 750;
  font-size: 0.9rem;
}

.proof-strip {
  padding: 1.4rem 0;
  background: var(--charcoal);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.proof-grid article {
  background: var(--charcoal);
  padding: 1.35rem;
}

.proof-grid strong {
  display: block;
  color: var(--white);
  font-size: 1.25rem;
  line-height: 1.2;
}

.proof-grid span {
  display: block;
  margin-top: 0.35rem;
  color: #b7c2d2;
  font-size: 0.93rem;
  overflow-wrap: anywhere;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(22, 32, 51, 0.06);
  min-width: 0;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.solution-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.card-media,
.service-media {
  width: 100%;
  aspect-ratio: 1.45;
  object-fit: cover;
}

.solution-card .card-body,
.service-body {
  padding: 1.12rem;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: var(--radius-sm);
  color: var(--isar-blue-dark);
  background: #eaf0ff;
  font-weight: 900;
  font-size: 0.78rem;
  margin-bottom: 0.82rem;
}

.card h3,
.process-list h3,
.service-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.28;
  letter-spacing: 0;
}

.card p,
.process-list p {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.section-dark {
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.96), rgba(36, 48, 66, 0.94)),
    url("assets/heavy-mechanical-engineering.webp") center / cover;
  color: var(--white);
}

.section-dark .section-heading h2,
.section-dark .section-heading p {
  color: var(--white);
}

.section-dark .section-heading p:not(.eyebrow) {
  color: #cdd7e5;
}

.experience-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.experience-panel {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  padding: clamp(1.2rem, 3vw, 1.7rem);
}

.experience-panel ul,
.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.experience-panel li {
  position: relative;
  padding-left: 1.4rem;
  color: #e5edf9;
  overflow-wrap: anywhere;
}

.experience-panel li + li {
  margin-top: 0.85rem;
}

.experience-panel li::before,
.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.48rem;
  height: 0.48rem;
  background: var(--amber);
  border-radius: 50%;
}

.differential-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.differential-grid .card {
  padding: 1.16rem;
  border-top: 4px solid var(--isar-blue);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}

.process-list article {
  position: relative;
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 1.1rem;
  box-shadow: 0 10px 28px rgba(22, 32, 51, 0.06);
}

.process-list span {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 1.2rem;
  border-radius: var(--radius-sm);
  background: var(--charcoal);
  color: var(--white);
  font-weight: 900;
}

.process-media-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.process-media-grid img {
  width: 100%;
  aspect-ratio: 1.55;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(22, 32, 51, 0.08);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  overflow: hidden;
}

.service-card ul {
  display: grid;
  gap: 0.52rem;
  margin-top: 1rem;
}

.service-card li {
  position: relative;
  padding-left: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.contact-section {
  background: linear-gradient(135deg, #244fb0, #111827 72%);
  color: var(--white);
}

.contact-section .eyebrow {
  color: #dbe8ff;
}

.contact-section .contact-copy p {
  color: #dbe5f4;
  max-width: 64ch;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(280px, 0.7fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.contact-copy {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
  max-width: 680px;
}

.contact-panel {
  padding: 0;
}

.contact-methods {
  display: grid;
  gap: 0.85rem;
}

.btn-whatsapp {
  gap: 0.55rem;
  width: 100%;
  background: #1f9d61;
  color: var(--white);
  box-shadow: 0 14px 30px rgba(31, 157, 97, 0.22);
}

.btn-whatsapp:hover,
.btn-whatsapp:focus-visible {
  background: #178651;
  box-shadow: 0 18px 38px rgba(31, 157, 97, 0.3);
}

.btn-whatsapp svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex: 0 0 auto;
}

.contact-link {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.12);
}

.contact-link span {
  color: #b8c9e8;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.contact-link strong {
  color: var(--white);
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.site-footer {
  background: #0f1724;
  color: #d8e2ef;
  padding: clamp(2.8rem, 4.5vw, 3.8rem) 0 1.45rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(420px, 1fr);
  gap: clamp(2rem, 7vw, 5.5rem);
  align-items: start;
}

.footer-brand img {
  width: 180px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  max-width: 50ch;
  color: #b9c7d8;
  margin: 1rem 0 0;
}

.footer-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  justify-self: end;
  width: min(100%, 560px);
}

.footer-info div {
  min-width: 0;
  padding-top: 0.78rem;
  border-top: 1px solid rgba(216, 226, 239, 0.18);
}

.footer-info span {
  display: block;
  color: #8ea1bb;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.footer-info strong {
  display: block;
  margin-top: 0.38rem;
  color: #edf4ff;
  font-size: 0.94rem;
  line-height: 1.38;
  overflow-wrap: anywhere;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.05rem;
  border-top: 1px solid rgba(216, 226, 239, 0.18);
}

.footer-bottom p {
  margin: 0;
  color: #93a4ba;
  font-size: 0.86rem;
}

.whatsapp-float {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 1400;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border-radius: 50%;
  background: #128c4a;
  color: var(--white);
  box-shadow: 0 18px 42px rgba(18, 140, 74, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  transform: translateY(-2px);
  background: #0f7f43;
  box-shadow: 0 22px 50px rgba(18, 140, 74, 0.42);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.js-enabled [data-animate] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.js-enabled [data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .header-cta {
    display: none;
  }

  .site-nav {
    gap: 0.78rem;
  }

  .solution-grid,
  .differential-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-list,
  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  :root {
    --header-height: 72px;
  }

  .brand img {
    width: 150px;
  }

  .menu-toggle {
    display: inline-flex !important;
    position: absolute;
    right: 0;
    top: 50%;
    z-index: 3;
    transform: translateY(-50%);
    border-color: #c8d2df;
    box-shadow: 0 8px 20px rgba(22, 32, 51, 0.08);
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 1rem;
    right: 1rem;
    display: grid;
    gap: 0.2rem;
    align-items: stretch;
    margin: 0;
    padding: 0.7rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .site-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 0.72rem;
    border-radius: var(--radius-sm);
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    background: var(--surface);
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 3.2rem);
    padding-bottom: 3.2rem;
  }

  .hero-content {
    margin-inline: auto;
  }

  .hero h1 {
    max-width: 13.5ch;
  }

  .proof-grid,
  .experience-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-copy {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-info {
    justify-self: stretch;
    width: 100%;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

}

@media (max-width: 680px) {
  :root {
    --container: min(calc(100% - 1.15rem), 1180px);
  }

  .section {
    padding: 3.4rem 0;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(10, 17, 31, 0.92), rgba(10, 17, 31, 0.76)),
      linear-gradient(180deg, rgba(10, 17, 31, 0.18), rgba(10, 17, 31, 0.78));
  }

  .hero h1 {
    font-size: clamp(2.05rem, 12vw, 3.2rem);
    max-width: 12.4ch;
  }

  .section-heading h2,
  .contact-copy h2 {
    font-size: clamp(1.55rem, 8.5vw, 2.08rem);
    line-height: 1.12;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-highlights {
    display: grid;
  }

  .whatsapp-float {
    right: 0.75rem;
    bottom: 0.75rem;
    width: 52px;
    height: 52px;
  }

  .proof-grid,
  .solution-grid,
  .differential-grid,
  .process-list,
  .process-media-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .process-list article {
    min-height: auto;
  }

  .footer-info {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

}

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

  [data-animate] {
    opacity: 1;
    transform: none;
  }
}
