:root {
  --brand: #163f75;
  --brand-dark: #0b264c;
  --ink: #122033;
  --muted: #637083;
  --line: #dbe3ee;
  --paper: #f7f9fc;
  --white: #ffffff;
  --teal: #0f8b8d;
  --amber: #f4a340;
  --shadow: 0 20px 60px rgba(11, 38, 76, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 10px clamp(18px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(219, 227, 238, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: min(240px, 54vw);
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 30px);
  color: var(--brand-dark);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover {
  border-color: var(--teal);
}

.header-whatsapp {
  min-height: 38px;
  padding: 8px 14px !important;
  color: var(--white);
  border: 0 !important;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 8px 20px rgba(15, 139, 141, 0.22);
}

.header-whatsapp:hover {
  background: #0a7476;
}

.hero {
  position: relative;
  min-height: calc(88svh - 76px);
  display: grid;
  align-items: center;
  padding: clamp(64px, 10vw, 112px) clamp(18px, 5vw, 64px);
  overflow: hidden;
  color: var(--white);
  background-image: url("assets/hero-tech.jpg");
  background-image: image-set(
    url("assets/hero-tech.webp") type("image/webp"),
    url("assets/hero-tech.jpg") type("image/jpeg")
  );
  background-position: center right;
  background-size: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 27, 54, 0.9) 0%, rgba(8, 27, 54, 0.72) 42%, rgba(8, 27, 54, 0.26) 100%),
    linear-gradient(0deg, rgba(8, 27, 54, 0.32), rgba(8, 27, 54, 0.12));
}

.hero-content {
  position: relative;
  width: min(700px, 100%);
}

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

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 9vw, 6.7rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  color: var(--brand-dark);
  background: var(--amber);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.08);
}

.button:hover {
  transform: translateY(-1px);
}

.services,
.process,
.contact {
  padding: clamp(56px, 8vw, 96px) clamp(18px, 5vw, 64px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(280px, 1fr);
  gap: 24px;
  align-items: end;
  max-width: 1180px;
  margin: 0 auto 28px;
}

.section-heading h2,
.process h2,
.contact h2 {
  margin: 0;
  color: var(--brand-dark);
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
}

.service-card {
  min-height: 260px;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(18, 32, 51, 0.06);
}

.service-card.accent {
  color: var(--white);
  background: var(--teal);
  border-color: var(--teal);
}

.service-card picture {
  display: block;
}

.service-media {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--line);
}

.service-body {
  padding: 22px;
}

.card-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-weight: 800;
}

.service-card h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
  letter-spacing: 0;
}

.service-card p,
.process p,
.contact p {
  margin: 0;
  color: var(--muted);
}

.service-list {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

.service-list li::marker {
  color: var(--teal);
}

.service-card.accent p {
  color: rgba(255, 255, 255, 0.86);
}

.process {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
  background: var(--white);
}

.process-copy {
  max-width: 560px;
}

.process-copy p:last-child {
  margin-top: 18px;
}

.timeline {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.timeline strong {
  color: var(--brand);
}

.timeline span {
  color: var(--muted);
}

.contact {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
  background: var(--paper);
}

.contact-panel {
  padding-top: 12px;
}

.contact-panel p:last-child {
  margin-top: 18px;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 7px;
  color: var(--brand-dark);
  font-size: 0.92rem;
  font-weight: 800;
}

.form-status {
  min-height: 1.2em;
  font-size: 0.9rem;
  font-weight: 700;
}

.form-status.success {
  color: var(--teal, #0f8b8d);
}

.form-status.error {
  color: #b3261e;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(15, 139, 141, 0.2);
  border-color: var(--teal);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px clamp(18px, 5vw, 64px);
  color: rgba(255, 255, 255, 0.82);
  background: var(--brand-dark);
}

.site-footer div {
  display: grid;
  gap: 4px;
}

.site-footer a {
  color: inherit;
  font-weight: 800;
}

.footer-contact {
  text-align: right;
}

.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 92px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  color: var(--white);
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 16px 34px rgba(37, 211, 102, 0.34);
  animation: whatsapp-shake 3.8s ease-in-out infinite;
}

.floating-whatsapp svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

.floating-whatsapp::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 2px solid rgba(37, 211, 102, 0.3);
  border-radius: inherit;
}

.floating-whatsapp:hover {
  background: #20bd5a;
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .floating-whatsapp {
    animation: none;
  }
}

@keyframes whatsapp-shake {
  0%, 78%, 100% {
    transform: rotate(0deg) scale(1);
  }
  82% {
    transform: rotate(-8deg) scale(1.04);
  }
  86% {
    transform: rotate(8deg) scale(1.04);
  }
  90% {
    transform: rotate(-6deg) scale(1.02);
  }
  94% {
    transform: rotate(6deg) scale(1.02);
  }
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: 76svh;
    background-position: 62% center;
  }

  .section-heading,
  .process,
  .contact {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .brand {
    width: min(210px, 70vw);
  }

  .nav {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 4px;
  }

  .header-whatsapp {
    white-space: nowrap;
  }

  .hero {
    min-height: 72svh;
    padding-top: 52px;
    background-position: 68% center;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 220px;
  }

  .service-media {
    aspect-ratio: 16 / 10;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .contact-form {
    padding: 18px;
  }

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

  .footer-contact {
    text-align: left;
  }

  .floating-whatsapp {
    right: 16px;
    bottom: 96px;
    width: 54px;
    height: 54px;
  }

  .floating-whatsapp svg {
    width: 31px;
    height: 31px;
  }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(11, 38, 76, 0.55);
  z-index: 100;
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  width: 100%;
  max-width: 420px;
  padding: 28px;
  border-radius: 10px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.modal h3 {
  margin: 0 0 10px;
  color: var(--brand-dark);
}

.modal p {
  margin: 0 0 20px;
  color: var(--ink);
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.modal-actions .button.secondary {
  color: var(--brand-dark);
  border-color: var(--line);
  background: var(--paper);
}
