:root {
  --blue-950: #071b34;
  --blue-900: #0a2746;
  --blue-700: #164f86;
  --blue-500: #2578bd;
  --grey-900: #18202a;
  --grey-700: #4b5968;
  --grey-200: #dbe2ea;
  --grey-100: #f4f7fa;
  --white: #ffffff;
  --shadow: 0 18px 48px rgba(7, 27, 52, 0.14);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--grey-900);
  background: var(--white);
  line-height: 1.6;
}

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

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

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.topbar {
  background: var(--blue-950);
  color: var(--white);
  font-size: 0.9rem;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  flex-wrap: wrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--grey-200);
  backdrop-filter: blur(10px);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.brand strong {
  display: block;
  color: var(--blue-950);
  font-size: 1rem;
  line-height: 1.15;
}

.brand span {
  color: var(--grey-700);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--grey-200);
  background: var(--white);
  border-radius: var(--radius);
  color: var(--blue-950);
  font-size: 0.86rem;
  font-weight: 900;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-links a {
  padding: 9px 11px;
  color: var(--grey-700);
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.93rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue-950);
  background: var(--grey-100);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 6px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.btn-primary {
  background: var(--blue-500);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(37, 120, 189, 0.28);
}

.btn-primary:hover {
  background: var(--blue-700);
}

.btn-outline {
  color: var(--blue-950);
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.9);
}

.btn-light {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.12);
}

.hero {
  min-height: 680px;
  color: var(--white);
  display: grid;
  align-items: end;
  background:
    linear-gradient(90deg, rgba(7, 27, 52, 0.88), rgba(7, 27, 52, 0.55), rgba(7, 27, 52, 0.24)),
    var(--hero-image) center / cover no-repeat;
}

.hero .container {
  padding: 96px 0 74px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-500);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 12px;
}

.hero .eyebrow {
  color: #9fd0ff;
}

h1,
h2,
h3 {
  line-height: 1.12;
  margin: 0 0 14px;
  color: var(--blue-950);
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.55rem, 7vw, 5.7rem);
  max-width: 850px;
  letter-spacing: 0;
}

.hero p {
  max-width: 680px;
  font-size: clamp(1.05rem, 2.3vw, 1.35rem);
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 28px;
}

.hero-actions,
.section-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(100%, 760px);
  margin-top: 58px;
  background: rgba(255, 255, 255, 0.22);
}

.hero-stat {
  padding: 20px;
  background: rgba(7, 27, 52, 0.74);
}

.hero-stat strong {
  display: block;
  font-size: 1.8rem;
  line-height: 1;
}

.section {
  padding: 86px 0;
}

.section-alt {
  background: var(--grey-100);
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-head h2,
.page-intro h1 {
  font-size: clamp(2rem, 4vw, 3.35rem);
}

.section-head p,
.page-intro p,
.lead {
  color: var(--grey-700);
  font-size: 1.05rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 38px;
  align-items: center;
}

.grid-3,
.grid-4 {
  display: grid;
  gap: 22px;
}

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

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

.card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(7, 27, 52, 0.07);
}

.card-body {
  padding: 24px;
}

.card img,
.service-media img,
.project-card img,
.about-photo img {
  width: 100%;
  height: 245px;
  object-fit: cover;
}

.service-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #e9f3fc;
  color: var(--blue-700);
  font-size: 0.72rem;
  font-weight: 900;
  margin-bottom: 16px;
}

.list {
  padding-left: 20px;
  color: var(--grey-700);
}

.split-panel {
  background: var(--blue-950);
  color: var(--white);
  padding: 38px;
  border-radius: var(--radius);
}

.split-panel h2,
.split-panel h3 {
  color: var(--white);
}

.split-panel p,
.split-panel li {
  color: rgba(255, 255, 255, 0.82);
}

.page-hero {
  min-height: 430px;
  display: grid;
  align-items: end;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(7, 27, 52, 0.9), rgba(7, 27, 52, 0.42)),
    var(--page-image) center / cover no-repeat;
}

.page-intro {
  max-width: 800px;
  padding: 92px 0 58px;
}

.page-intro h1,
.page-intro p {
  color: var(--white);
}

.process {
  counter-reset: step;
  display: grid;
  gap: 14px;
}

.process li {
  list-style: none;
  position: relative;
  padding: 16px 16px 16px 58px;
  background: var(--grey-100);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
}

.process li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-700);
  color: var(--white);
  font-weight: 900;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.pill {
  padding: 5px 9px;
  border-radius: 999px;
  background: #edf4fb;
  color: var(--blue-900);
  font-weight: 800;
  font-size: 0.78rem;
}

.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.before-after figure {
  margin: 0;
  position: relative;
}

.before-after img {
  height: 230px;
  object-fit: cover;
  width: 100%;
}

.before-after figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(7, 27, 52, 0.86);
  color: var(--white);
  padding: 4px 9px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 800;
}

.stars {
  color: #f6b21a;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
}

.testimonial {
  min-height: 100%;
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.review-block {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 30px;
  align-items: start;
}

.review-form {
  box-shadow: var(--shadow);
}

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  align-items: start;
}

.form {
  display: grid;
  gap: 16px;
}

.form label {
  display: grid;
  gap: 7px;
  color: var(--blue-950);
  font-weight: 800;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  border: 1px solid var(--grey-200);
  border-radius: 6px;
  padding: 13px 14px;
  font: inherit;
  color: var(--grey-900);
  background: var(--white);
}

.form textarea {
  min-height: 138px;
  resize: vertical;
}

.map {
  width: 100%;
  min-height: 340px;
  border: 0;
  border-radius: var(--radius);
}

.footer {
  background: var(--blue-950);
  color: rgba(255, 255, 255, 0.82);
  padding: 58px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr;
  gap: 28px;
}

.footer h3,
.footer strong {
  color: var(--white);
}

.footer a {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  margin: 8px 0;
}

.footer span {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  margin: 8px 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 34px;
  padding-top: 18px;
  font-size: 0.9rem;
}

.whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #18b35b;
  color: var(--white);
  font-size: 1.65rem;
  box-shadow: var(--shadow);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.quote-strip {
  background: var(--blue-900);
  color: var(--white);
  padding: 42px 0;
}

.quote-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
}

.quote-strip h2 {
  color: var(--white);
  margin-bottom: 6px;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 18px;
    background: var(--white);
    border-bottom: 1px solid var(--grey-200);
    box-shadow: var(--shadow);
  }

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

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

  .hero {
    min-height: 590px;
  }

  .grid-4,
  .grid-3,
  .grid-2,
  .review-block,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 768px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .quote-strip .container {
    flex-direction: column;
    text-align: center;
  }

  .hero {
    min-height: 520px;
  }

  .section {
    padding: 72px 0;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 24px, var(--max));
  }

  .topbar .container {
    display: block;
  }

  .topbar span {
    display: block;
    margin: 2px 0;
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: 50px;
    height: 50px;
  }

  .brand strong {
    font-size: 0.9rem;
  }

  .hero .container,
  .page-intro {
    padding: 72px 0 44px;
  }

  .hero-stats,
  .grid-4,
  .grid-3,
  .grid-2,
  .review-block,
  .contact-grid,
  .footer-grid,
  .before-after {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 62px 0;
  }

  .card-body,
  .split-panel {
    padding: 20px;
  }

  .hero-actions .btn,
  .section-actions .btn,
  .quote-strip .btn {
    width: 100%;
  }

  .whatsapp {
    width: 54px;
    height: 54px;
  }
}
