:root {
  --ink: #172238;
  --muted: #5f6c7b;
  --line: #dfe6ee;
  --paper: #ffffff;
  --soft: #f5f8fb;
  --navy: #123b68;
  --blue: #1b5da8;
  --orange: #f58a1f;
  --green: #14835f;
  --green-dark: #0d6a4d;
  --shadow: 0 18px 45px rgba(22, 34, 56, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 78px;
  padding: 10px 5vw;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(223, 230, 238, 0.7);
  backdrop-filter: blur(12px);
}

.site-header.scrolled {
  box-shadow: 0 10px 30px rgba(18, 59, 104, 0.12);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 235px;
}

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

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--navy);
  font-size: 1.1rem;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 0.82rem;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: #27364b;
  font-weight: 650;
  font-size: 0.96rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: #edf5ff;
  color: var(--blue);
  outline: none;
}

.header-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 14px;
  color: var(--paper);
  background: var(--green);
  border-radius: 8px;
  font-weight: 700;
  white-space: nowrap;
}

.header-call svg,
.btn svg,
.whatsapp-float svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: 0 0 auto;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 76vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--paper);
}

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

.hero-media {
  background: url("../images/site/hero-consulting.jpg") center / cover no-repeat;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(18, 33, 54, 0.86), rgba(18, 59, 104, 0.55) 55%, rgba(20, 131, 95, 0.18)),
    linear-gradient(0deg, rgba(12, 19, 31, 0.18), rgba(12, 19, 31, 0.18));
}

.hero-content {
  position: relative;
  width: min(760px, 90vw);
  margin-left: 5vw;
  padding: 96px 0 64px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1,
.section h2 {
  margin: 0;
  line-height: 1.08;
}

.hero h1 {
  max-width: 760px;
  font-size: 4rem;
}

.hero-copy {
  max-width: 640px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.24rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  text-align: center;
}

.btn.primary {
  color: var(--paper);
  background: var(--green);
}

.btn.primary:hover,
.btn.primary:focus-visible,
.header-call:hover,
.header-call:focus-visible {
  background: var(--green-dark);
  outline: none;
}

.btn.secondary {
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
}

.btn.secondary:hover,
.btn.secondary:focus-visible {
  border-color: var(--paper);
  background: rgba(255, 255, 255, 0.22);
  outline: none;
}

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

.hero-stats span {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 11px 13px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}

.hero-stats strong {
  color: var(--orange);
  font-size: 1.35rem;
}

.process-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: var(--orange);
  color: #1d2530;
  font-weight: 900;
  text-align: center;
}

.process-strip span {
  padding: 18px 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.42);
}

.section {
  padding: 86px 5vw;
}

.section-heading {
  max-width: 800px;
  margin-bottom: 34px;
}

.section h2 {
  max-width: 860px;
  font-size: 2.4rem;
}

.section-heading p:not(.eyebrow),
.section-copy p,
.contact-copy p {
  color: var(--muted);
  font-size: 1.04rem;
}

.intro,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 48px;
  align-items: center;
}

.section-copy {
  max-width: 720px;
}

.image-panel {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: var(--soft);
}

.image-panel img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.image-panel figcaption {
  padding: 16px 18px;
  color: var(--navy);
  font-weight: 800;
}

.services {
  background: var(--soft);
}

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

.service-card,
.project-card,
.workflow-grid article,
.contact-details article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 32px rgba(22, 34, 56, 0.06);
}

.service-card {
  padding: 24px;
}

.service-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  color: var(--paper);
  background: var(--blue);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 900;
}

.service-card h3,
.project-card h3,
.workflow-grid h3,
.contact-details h3,
.solution-list h3 {
  margin: 0 0 10px;
  line-height: 1.25;
}

.service-card p,
.project-card p,
.workflow-grid p,
.contact-details p,
.solution-list p {
  margin: 0;
  color: var(--muted);
}

.solution-layout {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 38px;
  align-items: stretch;
}

.solution-list {
  display: grid;
  gap: 16px;
}

.solution-list article {
  padding: 22px 0 22px 24px;
  border-left: 4px solid var(--orange);
  background: linear-gradient(90deg, rgba(245, 138, 31, 0.08), rgba(255, 255, 255, 0));
}

.process-image {
  overflow: hidden;
  border-radius: 8px;
  min-height: 390px;
}

.process-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.projects {
  background: #fbfcfe;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
}

.filter-btn {
  min-height: 40px;
  padding: 8px 13px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.filter-btn:hover,
.filter-btn:focus-visible,
.filter-btn.active {
  color: var(--paper);
  background: var(--blue);
  border-color: var(--blue);
  outline: none;
}

.project-card {
  overflow: hidden;
}

.project-card[hidden] {
  display: none;
}

.project-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  background: #eef3f8;
}

.project-card div {
  padding: 18px;
}

.tag {
  margin-bottom: 8px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

.client-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  align-items: center;
}

.client-row img,
.client-row span {
  min-height: 86px;
  padding: 16px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--navy);
  font-weight: 800;
  text-align: center;
}

.client-row img {
  width: 100%;
  height: 86px;
  object-fit: contain;
}

.workflow {
  background: var(--soft);
}

.workflow-grid article {
  padding: 24px;
}

.workflow-grid span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--orange);
  font-size: 1.7rem;
  font-weight: 900;
}

.contact {
  grid-template-columns: 0.85fr 1fr;
  align-items: start;
  background: linear-gradient(180deg, #ffffff, #f7fafc);
}

.contact-copy {
  position: sticky;
  top: 110px;
}

.contact .btn.secondary {
  color: var(--navy);
  border-color: var(--line);
  background: var(--paper);
}

.contact .btn.secondary:hover,
.contact .btn.secondary:focus-visible {
  color: var(--paper);
  background: var(--blue);
  border-color: var(--blue);
}

.contact-details {
  display: grid;
  gap: 14px;
}

.contact-details article {
  padding: 20px;
}

.contact-details a {
  display: inline-block;
  margin-top: 10px;
  color: var(--blue);
  font-weight: 900;
}

.contact-form {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.contact-form label:nth-child(3) {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fbfdff;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(27, 93, 168, 0.14);
}

.contact-form button {
  justify-self: start;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 28px;
  align-items: center;
  padding: 36px 5vw;
  color: rgba(255, 255, 255, 0.86);
  background: #14253a;
}

.site-footer div {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-footer p {
  margin: 0;
}

.site-footer div p {
  max-width: 520px;
}

.site-footer nav {
  display: flex;
  gap: 14px;
  font-weight: 800;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--orange);
  outline: none;
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 45;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  color: var(--paper);
  background: #19b866;
  border-radius: 50%;
  box-shadow: 0 16px 34px rgba(25, 184, 102, 0.35);
}

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

@media (max-width: 1100px) {
  .header-call span {
    display: none;
  }

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

  .client-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .site-header {
    min-height: 70px;
    gap: 12px;
  }

  .brand {
    min-width: 0;
    flex: 1;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 5vw;
    right: 5vw;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    padding: 12px;
  }

  .hero {
    min-height: 70vh;
  }

  .hero-content {
    margin: 0 auto;
    padding: 72px 0 48px;
  }

  .hero h1 {
    font-size: 2.65rem;
  }

  .hero-copy {
    font-size: 1.08rem;
  }

  .process-strip {
    grid-template-columns: 1fr;
  }

  .process-strip span {
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  }

  .section {
    padding: 64px 5vw;
  }

  .section h2 {
    font-size: 2rem;
  }

  .intro,
  .contact,
  .solution-layout {
    grid-template-columns: 1fr;
  }

  .contact-copy {
    position: static;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .brand img {
    width: 48px;
  }

  .header-call {
    min-width: 42px;
    padding: 0;
    justify-content: center;
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  .hero-stats {
    display: grid;
  }

  .service-grid,
  .project-grid,
  .workflow-grid,
  .client-row {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    display: grid;
  }

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

  .site-footer nav {
    flex-wrap: wrap;
  }
}
