:root {
  --ink: #10141c;
  --graphite: #242a33;
  --muted: #6d737c;
  --line: #dce1e7;
  --paper: #f4f6f8;
  --white: #ffffff;
  --navy: #0b355c;
  --navy-strong: #061b35;
  --navy-deep: #03111f;
  --gold: #c89216;
  --gold-strong: #e4b321;
  --gold-soft: #f7e2a3;
  --success: #12815d;
  --shadow: 0 28px 80px rgba(3, 17, 31, 0.16);
  --soft-shadow: 0 16px 40px rgba(3, 17, 31, 0.1);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

body.menu-open {
  overflow: hidden;
}

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

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Sora", "Inter", sans-serif;
}

h1 {
  max-width: 920px;
  margin-bottom: 22px;
  font-size: clamp(2.55rem, 5.7vw, 5.1rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.85rem, 3.8vw, 3.7rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  line-height: 1.22;
}

p {
  color: var(--muted);
  line-height: 1.72;
}

.page {
  min-height: 100vh;
  overflow: clip;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(22px, 3.4vw, 48px);
  padding: 12px clamp(18px, 5vw, 72px);
  color: var(--white);
  background: linear-gradient(180deg, rgba(3, 17, 31, 0.66), rgba(3, 17, 31, 0.12));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.site-header.scrolled,
.site-header.open {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(11, 53, 92, 0.08);
  box-shadow: 0 14px 38px rgba(3, 17, 31, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: clamp(174px, 14.2vw, 218px);
  line-height: 0;
}

.brand-logo {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.site-header.scrolled .brand,
.site-header.open .brand {
  width: clamp(164px, 13vw, 198px);
}

.site-header.scrolled .brand-logo,
.site-header.open .brand-logo {
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2vw, 30px);
  font-size: 0.9rem;
  font-weight: 800;
}

.main-nav a {
  position: relative;
  opacity: 0.88;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  opacity: 1;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--gold-strong);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 160ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-whatsapp,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 8px;
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.header-whatsapp {
  padding: 0 18px;
  color: var(--white);
  background: var(--success);
  box-shadow: 0 12px 26px rgba(15, 139, 95, 0.22);
}

.button {
  min-height: 54px;
  padding: 0 22px;
}

.button:hover,
.header-whatsapp:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--navy-deep);
  background: linear-gradient(135deg, var(--gold-strong), var(--gold-soft));
  box-shadow: 0 18px 34px rgba(200, 146, 22, 0.24);
}

.button.secondary {
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--navy-strong));
  box-shadow: 0 16px 32px rgba(3, 17, 31, 0.16);
}

.button.ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.08);
}

.button.large {
  min-height: 62px;
  padding: 0 28px;
}

.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid currentColor;
  border-radius: 8px;
  color: inherit;
  background: transparent;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  padding: 142px clamp(20px, 7vw, 96px) 104px;
  color: var(--white);
  isolation: isolate;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  z-index: -2;
  object-fit: cover;
}

.hero-overlay {
  z-index: -1;
  background:
    radial-gradient(circle at 72% 38%, rgba(228, 179, 33, 0.13), transparent 32%),
    linear-gradient(90deg, rgba(3, 17, 31, 0.95) 0%, rgba(6, 27, 53, 0.82) 45%, rgba(6, 27, 53, 0.25) 100%),
    linear-gradient(0deg, rgba(3, 17, 31, 0.8) 0%, rgba(3, 17, 31, 0) 50%);
}

.hero-content {
  max-width: 1060px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.02rem, 1.55vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-proof {
  position: absolute;
  right: clamp(20px, 5vw, 72px);
  bottom: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  max-width: 620px;
}

.hero-proof span {
  padding: 10px 14px;
  border: 1px solid rgba(228, 179, 33, 0.34);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(3, 17, 31, 0.36);
  font-size: 0.85rem;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.trust {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.trust article {
  min-height: 126px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  background: var(--white);
}

.trust strong {
  color: var(--gold);
  font-size: 0.82rem;
}

.trust span {
  color: var(--graphite);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.35;
}

.section {
  padding: 82px clamp(20px, 6vw, 86px);
}

.section-kicker,
.section-heading {
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) minmax(280px, 1fr);
  gap: 46px;
  align-items: start;
}

.section-heading {
  align-items: end;
  margin-bottom: 34px;
}

.section-heading > p {
  max-width: 620px;
}

.about {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  background:
    linear-gradient(135deg, rgba(11, 53, 92, 0.06), rgba(200, 146, 22, 0.08)),
    var(--paper);
}

.about-panel {
  max-width: 980px;
  padding: clamp(24px, 4vw, 42px);
  border-left: 6px solid var(--gold);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.about-panel .button {
  margin-top: 8px;
}

.about-panel p:last-child {
  margin-bottom: 0;
}

.works {
  background:
    linear-gradient(180deg, #ffffff 0%, #f7f8fa 100%);
}

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

.work-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(3, 17, 31, 0.1);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 22px 54px rgba(3, 17, 31, 0.09);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 70px rgba(3, 17, 31, 0.14);
}

.featured-work {
  grid-column: span 2;
}

.featured-work .work-image {
  min-height: 420px;
}

.featured-work .work-content {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(220px, 0.75fr);
  gap: 26px;
  align-items: start;
}

.featured-work .work-content p {
  margin-bottom: 0;
}

.work-image {
  position: relative;
  min-height: 300px;
  background-image:
    linear-gradient(135deg, rgba(3, 17, 31, 0.74), rgba(228, 179, 33, 0.16)),
    url("assets/hero-engineering.png");
  background-size: cover;
}

.work-image::after {
  content: "";
  position: absolute;
  inset: auto 22px 0 22px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.work-image span {
  position: absolute;
  left: 20px;
  top: 20px;
  padding: 9px 12px;
  border: 1px solid rgba(228, 179, 33, 0.62);
  border-radius: 999px;
  color: #fff6dc;
  background: rgba(3, 17, 31, 0.68);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.work-image-1 {
  background-position: center;
}

.work-image-2 {
  background-position: 70% center;
  filter: saturate(0.92);
}

.work-image-3 {
  background-position: 35% center;
}

.work-image-4 {
  background-position: right center;
  filter: contrast(1.05);
}

.work-content {
  padding: 28px;
}

.work-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.work-meta span {
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--navy-strong);
  background: #f3ead0;
  font-size: 0.78rem;
  font-weight: 900;
}

.work-content strong {
  display: block;
  margin-top: 18px;
  color: var(--navy-strong);
  line-height: 1.5;
  padding-top: 18px;
  border-top: 1px solid rgba(3, 17, 31, 0.1);
}

.work-cta,
.section-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  padding: 22px;
  border-radius: 8px;
}

.work-cta {
  border: 1px solid rgba(11, 53, 92, 0.1);
  background: var(--paper);
}

.work-cta p,
.section-cta span {
  margin: 0;
  color: var(--graphite);
  font-weight: 900;
  line-height: 1.45;
}

.services {
  color: var(--white);
  background:
    radial-gradient(circle at 20% 10%, rgba(228, 179, 33, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(3, 17, 31, 0.98), rgba(11, 53, 92, 0.94)),
    var(--navy-deep);
}

.services p,
.services .section-heading > p {
  color: rgba(255, 255, 255, 0.72);
}

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

.service-grid article {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid rgba(228, 179, 33, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.075);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.service-grid article:hover {
  transform: translateY(-3px);
  border-color: rgba(228, 179, 33, 0.38);
  background: rgba(255, 255, 255, 0.1);
}

.service-grid span {
  color: var(--gold-strong);
  font-weight: 900;
}

.service-grid p {
  margin-bottom: 0;
}

.section-cta {
  border: 1px solid rgba(228, 179, 33, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.section-cta span {
  color: rgba(255, 255, 255, 0.86);
}

.differentials {
  background: var(--paper);
}

.differential-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 36px;
}

.differential-list span {
  display: flex;
  align-items: center;
  min-height: 76px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--graphite);
  background: var(--white);
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(9, 29, 51, 0.06);
}

.differential-list span::before {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-right: 12px;
  border-radius: 50%;
  background: var(--gold-strong);
  box-shadow: 0 0 0 6px rgba(228, 179, 33, 0.16);
}

.cta {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 72px clamp(20px, 6vw, 86px);
  color: var(--white);
  background:
    radial-gradient(circle at 82% 30%, rgba(228, 179, 33, 0.16), transparent 30%),
    linear-gradient(90deg, rgba(3, 17, 31, 0.97), rgba(11, 53, 92, 0.9)),
    url("assets/hero-engineering.png") center / cover;
}

.cta h2 {
  max-width: 900px;
}

.contact {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 36px;
}

.contact-grid a,
.contact-grid div {
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.contact-grid small {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.contact-grid strong {
  color: var(--navy);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(20px, 6vw, 86px);
  color: rgba(255, 255, 255, 0.78);
  background:
    linear-gradient(135deg, var(--navy-deep), var(--navy-strong));
}

.footer-brand,
.site-footer span {
  display: block;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-logo {
  width: 190px;
  height: auto;
  object-fit: contain;
}

.site-footer span {
  max-width: 360px;
}

.site-footer a {
  color: var(--gold-strong);
  font-weight: 900;
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: auto auto;
    gap: 18px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .menu-button {
    display: block;
    justify-self: end;
  }

  .main-nav {
    position: fixed;
    top: 96px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    color: var(--ink);
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    position: static;
    padding: 16px;
    border-radius: 6px;
  }

  .main-nav a::after {
    display: none;
  }

  .main-nav a:hover {
    background: var(--paper);
  }

  .header-whatsapp {
    display: none;
  }

  .trust,
  .service-grid,
  .contact-grid,
  .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust article:last-child,
  .featured-work {
    grid-column: span 2;
  }

  .featured-work .work-content {
    grid-template-columns: 1fr;
  }

  .section-kicker,
  .section-heading,
  .cta {
    grid-template-columns: 1fr;
  }

  .cta .button {
    justify-self: start;
  }
}

@media (max-width: 720px) {
  h1 {
    font-size: 2.36rem;
  }

  h2 {
    font-size: 2rem;
  }

  .brand {
    width: 164px;
  }

  .brand-logo {
    width: 100%;
    height: auto;
  }

  .hero {
    min-height: 90vh;
    padding-top: 124px;
    padding-bottom: 136px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(3, 17, 31, 0.95), rgba(6, 27, 53, 0.74)),
      linear-gradient(0deg, rgba(3, 17, 31, 0.82), rgba(3, 17, 31, 0.1));
  }

  .hero-actions,
  .site-footer,
  .footer-brand,
  .work-cta,
  .section-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
    text-align: center;
  }

  .hero-proof {
    left: 18px;
    right: 18px;
    justify-content: flex-start;
    bottom: 24px;
  }

  .trust,
  .works-grid,
  .service-grid,
  .differential-list,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .trust article:last-child,
  .featured-work {
    grid-column: auto;
  }

  .section,
  .cta {
    padding-left: 18px;
    padding-right: 18px;
  }

  .work-image {
    min-height: 230px;
  }

  .service-grid article {
    min-height: 190px;
  }
}

@media (max-width: 420px) {
  .site-header {
    padding-left: 14px;
    padding-right: 14px;
    gap: 12px;
  }

  .brand {
    width: 148px;
  }

  .brand-logo {
    width: 100%;
    height: auto;
  }

  .hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  h1 {
    font-size: 2.18rem;
  }
}
