/*
Theme Name: KP Quality Costing
Theme URI: https://kpqualitycosting.co.ug/
Author: K.P. Intergrated Quality Costing Ltd
Description: A modern, responsive portfolio theme for K.P. Intergrated Quality Costing Ltd.
Version: 1.1.0
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: kp-quality-costing
*/

:root {
  --navy-950: #061426;
  --navy-900: #0a1f38;
  --navy-800: #0e2d4d;
  --navy-700: #17456f;
  --blue-500: #09a8ce;
  --blue-400: #2fc2df;
  --orange-500: #f2a128;
  --orange-400: #ffb742;
  --ink: #152233;
  --muted: #5f6d7d;
  --line: #dce3ea;
  --surface: #ffffff;
  --surface-alt: #f4f7fa;
  --success: #167b52;
  --danger: #b42318;
  --shadow-sm: 0 10px 30px rgba(6, 20, 38, 0.08);
  --shadow-lg: 0 24px 60px rgba(6, 20, 38, 0.16);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --container: 1180px;
  --header-height: 86px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: "Aptos", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--orange-400);
  outline-offset: 3px;
}

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

.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 99999;
  width: auto;
  height: auto;
  padding: 10px 16px;
  margin: 0;
  color: var(--navy-950);
  background: var(--orange-400);
  clip: auto;
  border-radius: 8px;
  font-weight: 800;
}

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

.section {
  padding: 110px 0;
}

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

.section--dark {
  color: #fff;
  background: var(--navy-950);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--blue-500);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 2px;
  content: "";
  background: currentColor;
}

.section--dark .eyebrow,
.cta-band .eyebrow {
  color: var(--orange-400);
}

.section-title {
  max-width: 780px;
  margin: 0;
  color: var(--navy-950);
  font-size: clamp(2.15rem, 5vw, 4rem);
  font-weight: 780;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.section--dark .section-title {
  color: #fff;
}

.section-lead {
  max-width: 700px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.2rem);
}

.section--dark .section-lead {
  color: #b9c7d6;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 54px;
}

.section-heading__copy {
  max-width: 760px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 23px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 800;
  line-height: 1.2;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

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

.button--primary {
  color: var(--navy-950);
  background: var(--orange-400);
  box-shadow: 0 12px 24px rgba(242, 161, 40, 0.25);
}

.button--primary:hover {
  background: #ffc05a;
  box-shadow: 0 16px 32px rgba(242, 161, 40, 0.34);
}

.button--outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
}

.button--outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.13);
}

.button--dark {
  color: #fff;
  background: var(--navy-950);
}

.button--dark:hover {
  background: var(--navy-800);
}

.button svg {
  width: 19px;
  height: 19px;
}

.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  left: 0;
  color: #fff;
  transition:
    background-color 220ms ease,
    box-shadow 220ms ease,
    color 220ms ease;
}

.admin-bar .site-header {
  top: 32px;
}

.site-header.is-scrolled,
.site-header.is-open,
body:not(.home) .site-header {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 9px 30px rgba(6, 20, 38, 0.11);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

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

.brand__logo {
  width: 92px;
  height: 62px;
  padding: 4px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
}

.brand__text {
  display: grid;
  max-width: 210px;
  line-height: 1.1;
}

.brand__name {
  font-size: 0.86rem;
  font-weight: 850;
  letter-spacing: -0.015em;
}

.brand__tagline {
  margin-top: 5px;
  color: var(--orange-400);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-nav a:not(.button) {
  position: relative;
  display: inline-flex;
  padding: 8px 0;
  font-size: 0.9rem;
  font-weight: 700;
}

.primary-nav a:not(.button)::after {
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--orange-400);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.primary-nav a:not(.button):hover::after,
.primary-nav a:not(.button):focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 50%;
  cursor: pointer;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

.hero {
  position: relative;
  min-height: min(860px, 100vh);
  display: flex;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: var(--navy-950);
}

.hero__media,
.hero__media::before,
.hero__media::after {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 43%;
  animation: hero-drift 16s ease-out both;
}

.hero__media::before {
  z-index: 1;
  content: "";
  background:
    linear-gradient(90deg, rgba(4, 16, 31, 0.94) 0%, rgba(4, 16, 31, 0.77) 42%, rgba(4, 16, 31, 0.25) 78%, rgba(4, 16, 31, 0.48) 100%),
    linear-gradient(0deg, rgba(4, 16, 31, 0.9) 0%, transparent 42%);
}

.hero__media::after {
  z-index: 1;
  width: 60%;
  left: auto;
  content: "";
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to left, #000, transparent);
}

@keyframes hero-drift {
  from {
    transform: scale(1.05);
  }
  to {
    transform: scale(1);
  }
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 80px;
  align-items: end;
  padding-top: calc(var(--header-height) + 70px);
  padding-bottom: 70px;
}

.hero__content {
  max-width: 790px;
}

.hero .eyebrow {
  color: var(--orange-400);
}

.hero h1 {
  max-width: 860px;
  margin: 0;
  color: #fff;
  font-size: clamp(3.25rem, 8vw, 7.2rem);
  font-weight: 780;
  letter-spacing: -0.065em;
  line-height: 0.91;
}

.hero h1 span {
  display: block;
  color: var(--blue-400);
}

.hero__lead {
  max-width: 690px;
  margin: 30px 0 0;
  color: #d8e1eb;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 34px;
}

.hero__aside {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(8, 31, 56, 0.7);
  backdrop-filter: blur(14px);
  border-radius: var(--radius-md);
}

.hero__aside-label {
  margin: 0 0 20px;
  color: var(--orange-400);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero__aside dl {
  display: grid;
  gap: 20px;
  margin: 0;
}

.hero__aside div {
  padding-bottom: 17px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.hero__aside div:last-child {
  padding-bottom: 0;
  border: 0;
}

.hero__aside dt {
  color: #98abc0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero__aside dd {
  margin: 3px 0 0;
  color: #fff;
  font-size: 1.03rem;
  font-weight: 750;
  line-height: 1.35;
}

.trust-strip {
  position: relative;
  z-index: 3;
  margin-top: -1px;
  color: #fff;
  background: var(--navy-900);
}

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

.trust-item {
  min-height: 122px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 26px 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.11);
}

.trust-item:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.11);
}

.trust-item__icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  margin: 0;
  line-height: 0;
  color: var(--orange-400);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.trust-item__icon svg {
  width: 21px;
  height: 21px;
}

.trust-item strong {
  display: block;
  color: #fff;
  font-size: 1rem;
  line-height: 1.2;
}

.trust-item > div > span {
  display: block;
  margin-top: 4px;
  color: #9db0c2;
  font-size: 0.79rem;
  line-height: 1.3;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 90px;
  align-items: center;
}

.about-visual {
  position: relative;
  min-height: 610px;
}

.about-visual__main {
  position: absolute;
  inset: 0 50px 55px 0;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
}

.about-visual__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-visual__card {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(330px, 78%);
  padding: 28px;
  color: #fff;
  background: var(--navy-900);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
}

.about-visual__number {
  display: block;
  color: var(--orange-400);
  font-size: 2.85rem;
  font-weight: 820;
  letter-spacing: -0.05em;
  line-height: 1;
}

.about-visual__card p {
  margin: 10px 0 0;
  color: #c5d1dd;
  font-size: 0.93rem;
}

.about-copy p {
  color: var(--muted);
}

.about-copy .section-lead {
  margin-bottom: 25px;
}

.about-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 17px;
  padding: 0;
  margin: 34px 0;
  list-style: none;
}

.about-points li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.35;
}

.check-icon {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  display: grid;
  place-items: center;
  color: var(--success);
  background: #def4e9;
  border-radius: 50%;
}

.check-icon svg {
  width: 14px;
  height: 14px;
}

.director-note {
  padding: 20px 22px;
  margin-top: 28px;
  border-left: 4px solid var(--blue-500);
  color: var(--navy-800);
  background: #edf8fb;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.director-note strong {
  display: block;
  color: var(--navy-950);
}

.director-note span {
  color: var(--muted);
  font-size: 0.88rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.service-card {
  position: relative;
  min-height: 350px;
  padding: 36px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-md);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.service-card::after {
  position: absolute;
  right: -45px;
  bottom: -45px;
  width: 150px;
  height: 150px;
  content: "";
  opacity: 0;
  background: var(--blue-500);
  border-radius: 50%;
  transition: opacity 220ms ease;
}

.service-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.service-card:hover::after {
  opacity: 0.07;
}

.service-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.service-card__number {
  color: #9aa7b4;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.service-card__icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--navy-900);
  border-radius: 17px;
}

.service-card__icon svg {
  width: 28px;
  height: 28px;
}

.service-card h3 {
  max-width: 500px;
  margin: 52px 0 14px;
  color: var(--navy-950);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 25px;
  color: var(--navy-800);
  font-size: 0.86rem;
  font-weight: 800;
}

.service-card__link svg {
  width: 17px;
  height: 17px;
  transition: transform 180ms ease;
}

.service-card:hover .service-card__link svg {
  transform: translateX(4px);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 54px;
}

.process-step {
  position: relative;
  padding: 27px 22px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-sm);
}

.process-step__number {
  display: block;
  margin-bottom: 27px;
  color: var(--orange-400);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.process-step h3 {
  margin: 0;
  color: #fff;
  font-size: 1.12rem;
}

.process-step p {
  margin: 10px 0 0;
  color: #9fb0c2;
  font-size: 0.87rem;
  line-height: 1.55;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.project-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  color: #fff;
  background: var(--navy-900);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.project-card:nth-child(1),
.project-card:nth-child(4) {
  grid-column: span 7;
}

.project-card:nth-child(2),
.project-card:nth-child(3) {
  grid-column: span 5;
}

.project-card:nth-child(5),
.project-card:nth-child(6) {
  grid-column: span 6;
}

.project-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.project-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(3, 14, 27, 0.94) 0%, rgba(3, 14, 27, 0.1) 70%);
}

.project-card:hover img {
  transform: scale(1.045);
}

.project-card__content {
  position: absolute;
  z-index: 2;
  right: 28px;
  bottom: 28px;
  left: 28px;
}

.project-card__meta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
  color: var(--orange-400);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.project-card__meta::before {
  width: 20px;
  height: 2px;
  content: "";
  background: currentColor;
}

.project-card h3 {
  max-width: 550px;
  margin: 0;
  color: #fff;
  font-size: clamp(1.25rem, 2.6vw, 2rem);
  letter-spacing: -0.025em;
  line-height: 1.13;
}

.project-card p {
  margin: 8px 0 0;
  color: #c4d0dd;
  font-size: 0.87rem;
}

.why-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 90px;
  align-items: center;
}

.why-copy .section-lead {
  margin-bottom: 35px;
}

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

.why-list li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 15px;
  align-items: start;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.why-list__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--blue-500);
  background: #e8f8fb;
  border-radius: 14px;
}

.why-list__icon svg {
  width: 22px;
  height: 22px;
}

.why-list strong {
  display: block;
  color: var(--navy-950);
}

.why-list span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.9rem;
}

.why-visual {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: var(--navy-900);
  border-radius: var(--radius-lg);
}

.why-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.why-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(6, 20, 38, 0.72), transparent 55%);
}

.why-visual__label {
  position: absolute;
  z-index: 2;
  right: 30px;
  bottom: 30px;
  left: 30px;
  color: #fff;
}

.why-visual__label span {
  display: block;
  color: var(--orange-400);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.why-visual__label strong {
  display: block;
  max-width: 500px;
  margin-top: 7px;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  line-height: 1.15;
}

.cta-band {
  position: relative;
  overflow: hidden;
  padding: 85px 0;
  color: #fff;
  background: var(--blue-500);
}

.cta-band::before {
  position: absolute;
  inset: -80% -5% -80% auto;
  width: 48%;
  content: "";
  opacity: 0.12;
  background:
    repeating-linear-gradient(90deg, #fff 0, #fff 1px, transparent 1px, transparent 42px),
    repeating-linear-gradient(0deg, #fff 0, #fff 1px, transparent 1px, transparent 42px);
  transform: rotate(15deg);
}

.cta-band__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.cta-band h2 {
  max-width: 800px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.1rem, 5vw, 4rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.cta-band p {
  max-width: 650px;
  margin: 18px 0 0;
  color: #e7fbff;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 70px;
  align-items: start;
}

.contact-copy {
  position: sticky;
  top: calc(var(--header-height) + 30px);
}

.contact-details {
  display: grid;
  gap: 18px;
  margin-top: 36px;
}

.contact-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 15px;
  align-items: start;
}

.contact-item__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin: 0;
  line-height: 0;
  color: var(--blue-500);
  background: #e7f7fb;
  border-radius: 14px;
}

.contact-item__icon svg {
  width: 21px;
  height: 21px;
}

.contact-item strong {
  display: block;
  color: var(--navy-950);
  font-size: 0.84rem;
}

.contact-item > div span,
.contact-item > div a {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.contact-item a:hover {
  color: var(--blue-500);
}

.contact-form-wrap {
  padding: 42px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
}

.contact-form-wrap h3 {
  margin: 0;
  color: var(--navy-950);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.025em;
}

.contact-form-wrap > p {
  margin: 9px 0 28px;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label {
  color: var(--navy-900);
  font-size: 0.81rem;
  font-weight: 800;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 15px;
  color: var(--ink);
  background: #f9fbfc;
  border: 1px solid #ccd6df;
  border-radius: 10px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

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

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 0;
  background: #fff;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(9, 168, 206, 0.13);
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.form-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
}

.form-submit small {
  max-width: 290px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

.form-alert {
  padding: 13px 15px;
  margin: 0 0 22px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
}

.form-alert--success {
  color: #0f5b3c;
  background: #def4e9;
  border: 1px solid #a7ddc3;
}

.form-alert--error {
  color: #8b1c13;
  background: #fee4e2;
  border: 1px solid #f6b8b3;
}

.site-footer {
  padding: 74px 0 24px;
  color: #c3cfdb;
  background: var(--navy-950);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.7fr 1fr;
  gap: 70px;
}

.footer-brand .brand__name {
  color: #fff;
}

.footer-brand p {
  max-width: 440px;
  margin: 23px 0 0;
  color: #9fb0c1;
  font-size: 0.9rem;
}

.footer-title {
  margin: 0 0 19px;
  color: #fff;
  font-size: 0.83rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-links,
.footer-contact {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-links a,
.footer-contact a {
  color: #aebdca;
  font-size: 0.88rem;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--orange-400);
}

.footer-contact li {
  color: #aebdca;
  font-size: 0.88rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  margin-top: 55px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  color: #8295a8;
  font-size: 0.77rem;
}

.footer-legal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.footer-legal a {
  color: #aebdca;
  text-decoration: none;
  transition: color 180ms ease;
}

.footer-legal a:hover {
  color: var(--orange-400);
}

.floating-actions {
  position: fixed;
  z-index: 800;
  right: 20px;
  bottom: 20px;
  display: grid;
  gap: 10px;
}

.floating-action {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #1e9d62;
  box-shadow: 0 12px 28px rgba(6, 20, 38, 0.2);
  border-radius: 50%;
  transition: transform 180ms ease;
}

.floating-action--phone {
  background: var(--navy-800);
}

.floating-action:hover {
  transform: translateY(-3px) scale(1.03);
}

.floating-action svg {
  width: 24px;
  height: 24px;
}

.entry-page {
  padding: calc(var(--header-height) + 80px) 0 100px;
}

.entry-page h1 {
  color: var(--navy-950);
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  letter-spacing: -0.045em;
}

.entry-content {
  max-width: 860px;
}

.entry-content a {
  color: var(--blue-500);
  text-decoration: underline;
}

.entry-content img {
  height: auto;
  border-radius: var(--radius-sm);
}

.legal-page {
  background:
    radial-gradient(circle at 90% 5%, rgba(25, 159, 191, 0.1), transparent 32%),
    var(--surface);
}

.legal-page__intro {
  max-width: 760px;
  margin: 18px 0 42px;
  color: var(--muted);
  font-size: 1.06rem;
}

.legal-page__updated {
  display: inline-flex;
  margin-top: 18px;
  padding: 7px 11px;
  color: var(--navy-800);
  background: #e7f7fb;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 64px;
  align-items: start;
}

.legal-content {
  max-width: 820px;
}

.legal-section {
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.legal-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.legal-section h2 {
  margin-bottom: 12px;
  color: var(--navy-950);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  letter-spacing: -0.02em;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
}

.legal-section ul {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding-left: 20px;
}

.legal-section a {
  color: var(--blue-500);
  text-decoration: underline;
}

.legal-summary {
  position: sticky;
  top: calc(var(--header-height) + 28px);
  padding: 24px;
  color: #d7e2eb;
  background: var(--navy-900);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.legal-summary strong {
  display: block;
  margin-bottom: 10px;
  color: #fff;
}

.legal-summary p {
  margin: 0;
  color: #aebdca;
  font-size: 0.88rem;
}

.legal-summary a {
  color: var(--orange-400);
}

@media (max-width: 1080px) {
  .primary-nav {
    gap: 18px;
  }

  .primary-nav ul {
    gap: 17px;
  }

  .primary-nav .button {
    padding-inline: 17px;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 45px;
  }

  .about-grid,
  .why-grid {
    gap: 55px;
  }

  .about-visual {
    min-height: 530px;
  }

  .contact-grid {
    gap: 45px;
  }

  .legal-layout {
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 40px;
  }
}

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

  .admin-bar .site-header {
    top: 46px;
  }

  .brand__logo {
    width: 78px;
    height: 53px;
  }

  .brand__text {
    max-width: 190px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-header.is-open {
    background: #fff;
    backdrop-filter: none;
  }

  .primary-nav {
    position: fixed;
    inset: var(--header-height) 0 0 0;
    display: grid;
    align-content: start;
    gap: 30px;
    padding: 35px max(24px, calc((100vw - var(--container)) / 2));
    color: var(--ink);
    background: #fff;
    transform: translateX(105%);
    visibility: hidden;
    transition:
      transform 240ms ease,
      visibility 240ms ease;
  }

  .admin-bar .primary-nav {
    inset-block-start: calc(var(--header-height) + 46px);
  }

  .site-header.is-open .primary-nav {
    transform: translateX(0);
    visibility: visible;
  }

  .primary-nav ul {
    display: grid;
    gap: 0;
  }

  .primary-nav li {
    border-bottom: 1px solid var(--line);
  }

  .primary-nav a:not(.button) {
    display: block;
    padding: 15px 0;
    font-size: 1.1rem;
  }

  .primary-nav a:not(.button)::after {
    display: none;
  }

  .primary-nav .button {
    justify-self: start;
  }

  .hero {
    min-height: 850px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-bottom: 50px;
  }

  .hero__aside {
    max-width: 680px;
  }

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

  .hero__aside div {
    padding: 0 18px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 0;
  }

  .hero__aside div:first-child {
    padding-left: 0;
  }

  .hero__aside div:last-child {
    padding-right: 0;
    border-right: 0;
  }

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

  .trust-item:nth-child(2) {
    border-right: 1px solid rgba(255, 255, 255, 0.11);
  }

  .trust-item:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  }

  .about-grid,
  .why-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-visual {
    max-width: 700px;
  }

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

  .project-card,
  .project-card:nth-child(n) {
    grid-column: span 6;
  }

  .why-visual {
    min-height: 520px;
    grid-row: 1;
  }

  .contact-copy {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1.25fr 0.75fr;
  }

  .footer-grid > :last-child {
    grid-column: 1 / -1;
  }
}

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

  .section {
    padding: 78px 0;
  }

  .section-heading {
    display: block;
    margin-bottom: 36px;
  }

  .section-heading .button {
    margin-top: 25px;
  }

  .brand__text {
    display: none;
  }

  .hero {
    min-height: 860px;
  }

  .hero__media::before {
    background:
      linear-gradient(90deg, rgba(4, 16, 31, 0.91), rgba(4, 16, 31, 0.54)),
      linear-gradient(0deg, rgba(4, 16, 31, 0.95) 0%, transparent 55%);
  }

  .hero__inner {
    padding-top: calc(var(--header-height) + 48px);
    padding-bottom: 38px;
  }

  .hero h1 {
    font-size: clamp(3.1rem, 16vw, 5rem);
  }

  .hero__lead {
    font-size: 1rem;
  }

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

  .hero__actions .button {
    width: 100%;
  }

  .hero__aside {
    padding: 22px;
  }

  .hero__aside dl {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hero__aside div,
  .hero__aside div:first-child,
  .hero__aside div:last-child {
    padding: 0 0 13px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .hero__aside div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

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

  .trust-item,
  .trust-item:nth-child(n) {
    min-height: 98px;
    padding: 20px 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.11);
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  }

  .about-visual {
    min-height: 460px;
  }

  .about-visual__main {
    inset: 0 25px 68px 0;
  }

  .about-visual__card {
    padding: 22px;
  }

  .about-points,
  .services-grid,
  .process-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
    padding: 28px;
  }

  .service-card h3 {
    margin-top: 36px;
  }

  .project-card,
  .project-card:nth-child(n) {
    min-height: 400px;
    grid-column: 1 / -1;
  }

  .why-visual {
    min-height: 450px;
  }

  .cta-band {
    padding: 70px 0;
  }

  .cta-band__inner {
    display: block;
  }

  .cta-band .button {
    width: 100%;
    margin-top: 30px;
  }

  .contact-form-wrap {
    padding: 28px 22px;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-summary {
    position: static;
    max-width: 620px;
  }

  .form-submit {
    display: grid;
  }

  .form-submit .button {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-grid > :last-child {
    grid-column: auto;
  }

  .footer-bottom {
    display: grid;
  }

  .footer-legal {
    justify-content: start;
  }

  .floating-actions {
    right: 14px;
    bottom: 14px;
  }

  .floating-action {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

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