/* ==========================================================================
   MSK BROTHERS CONSULTING — public site stylesheet
   ========================================================================== */

/* --------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------- */
:root {
  --navy-900: #05173d;
  --navy-800: #0a2456;
  --navy-700: #0b2a6e;
  --navy-600: #14397f;
  --green-600: #1c8449;
  --green-500: #229a56;
  --green-400: #34b86c;
  --ink: #10192e;
  --body: #55617a;
  --muted: #8b95a9;
  --line: #e5e9f0;
  --surface: #ffffff;
  --surface-2: #f5f7fb;
  --surface-3: #eef2f8;

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;
  --shadow-s: 0 2px 8px rgba(10, 36, 86, .06);
  --shadow-m: 0 12px 32px -12px rgba(10, 36, 86, .18);
  --shadow-l: 0 30px 70px -28px rgba(10, 36, 86, .35);

  --sans: "Plus Jakarta Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Fraunces", Georgia, serif;

  --shell: 1200px;
  --gutter: 24px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* --------------------------------------------------------------
   2. BASE
   -------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--body);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

h1,
h2,
h3,
h4,
h5 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.02em;
}

h1 {
  font-size: clamp(2.3rem, 5vw, 3.9rem);
  letter-spacing: -.035em;
}

h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.8rem);
  letter-spacing: -.03em;
}

h3 {
  font-size: 1.24rem;
}

h4 {
  font-size: 1.05rem;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 32px 0;
}

::selection {
  background: rgba(34, 154, 86, .2);
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.shell-narrow {
  max-width: 860px;
}

.section {
  padding: clamp(68px, 8.5vw, 112px) 0;
}

.section-sm {
  padding: clamp(48px, 6vw, 76px) 0;
}

.bg-soft {
  background: var(--surface-2);
}

.text-center {
  text-align: center;
}

.mt-0 {
  margin-top: 0 !important;
}

.mt-3 {
  margin-top: 18px;
}

.mt-4 {
  margin-top: 28px;
}

.mb-0 {
  margin-bottom: 0 !important;
}

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

/* --------------------------------------------------------------
   3. SHARED PIECES
   -------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--green-500);
}

.eyebrow.on-dark {
  color: var(--green-400);
}

.eyebrow.on-dark::before {
  background: var(--green-400);
}

.lede {
  font-size: 1.06rem;
  max-width: 62ch;
}

.section-head {
  max-width: 660px;
  margin-bottom: 54px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head.center .eyebrow::before {
  display: none;
}

.section-head.center .lede {
  margin-inline: auto;
}

.section-head h2 + p {
  margin-top: 18px;
}

.accent {
  color: var(--green-500);
}

.head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
  margin-bottom: 46px;
}

.head-row .section-head {
  margin-bottom: 0;
}

/* --------------------------------------------------------------
   4. BUTTONS
   -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: -.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
    background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}

.btn svg {
  width: 17px;
  height: 17px;
  flex: none;
  transition: transform .25s var(--ease);
}

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

.btn:hover svg {
  transform: translateX(3px);
}

.btn:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--green-500);
  color: #fff;
  box-shadow: 0 12px 26px -12px rgba(34, 154, 86, .85);
}

.btn-primary:hover {
  background: var(--green-600);
  box-shadow: 0 18px 34px -12px rgba(34, 154, 86, .9);
}

.btn-navy {
  background: var(--navy-700);
  color: #fff;
  box-shadow: 0 12px 26px -14px rgba(11, 42, 110, .9);
}

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

.btn-ghost {
  border-color: rgba(255, 255, 255, .38);
  color: #fff;
  backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, .07);
}

.btn-ghost:hover {
  background: #fff;
  color: var(--navy-700);
  border-color: #fff;
}

.btn-outline {
  border-color: var(--line);
  color: var(--ink);
  background: #fff;
}

.btn-outline:hover {
  border-color: var(--navy-700);
  color: var(--navy-700);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 17px 34px;
  font-size: 1rem;
}

.btn-sm {
  padding: 11px 22px;
  font-size: .87rem;
}

/* --------------------------------------------------------------
   5. HEADER
   -------------------------------------------------------------- */
.topbar {
  background: var(--navy-900);
  color: rgba(255, 255, 255, .78);
  font-size: .82rem;
}

.topbar .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 44px;
}

.topbar-list {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.topbar-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar svg {
  width: 14px;
  height: 14px;
  color: var(--green-400);
  flex: none;
}

.topbar a:hover {
  color: #fff;
}

.topbar-social {
  display: flex;
  gap: 6px;
}

.topbar-social a {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  transition: background .2s;
}

.topbar-social a:hover {
  background: var(--green-500);
}

.topbar-social svg {
  color: #fff;
  width: 13px;
  height: 13px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease);
}

.nav.is-stuck {
  box-shadow: var(--shadow-m);
}

.nav .shell {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 78px;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.nav-links a {
  position: relative;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink);
  transition: color .2s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--green-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--navy-700);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.burger {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  padding: 0;
  place-items: center;
}

.burger span {
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy-700);
  transition: transform .3s var(--ease), opacity .2s;
}

.burger span + span {
  margin-top: 5px;
}

.burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
  opacity: 0;
}

.burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 12px var(--gutter) 26px;
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 13px 4px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--surface-3);
}

.mobile-menu .btn {
  margin-top: 18px;
}

/* --------------------------------------------------------------
   6. HERO (home)
   -------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  color: #fff;
  padding: clamp(80px, 11vw, 140px) 0 clamp(64px, 8vw, 104px);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 12% 10%, rgba(11, 42, 110, .93) 0%, rgba(5, 23, 61, .9) 45%, rgba(5, 23, 61, .82) 100%),
    linear-gradient(105deg, rgba(28, 132, 73, .38) 0%, rgba(5, 23, 61, 0) 62%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(40px, 5vw, 74px);
  align-items: center;
}

.hero h1 {
  color: #fff;
  max-width: 15ch;
}

.hero h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  color: var(--green-400);
}

.hero p {
  color: rgba(255, 255, 255, .84);
  font-size: 1.12rem;
  max-width: 52ch;
  margin: 24px 0 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 8px;
  margin-bottom: 26px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(8px);
  font-size: .82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .9);
}

.hero-badge b {
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--green-500);
  color: #fff;
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.trustbar {
  margin-top: clamp(48px, 6vw, 74px);
  padding-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.trustbar div {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, .85);
  font-size: .92rem;
  font-weight: 600;
}

.trustbar svg {
  width: 22px;
  height: 22px;
  color: var(--green-400);
  flex: none;
}

/* --------------------------------------------------------------
   7. PAGE HERO (inner pages)
   -------------------------------------------------------------- */
.page-hero {
  position: relative;
  isolation: isolate;
  color: #fff;
  padding: clamp(64px, 8vw, 104px) 0 clamp(56px, 7vw, 88px);
  overflow: hidden;
  background: var(--navy-800);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(5, 23, 61, .95) 0%, rgba(11, 42, 110, .88) 55%, rgba(28, 132, 73, .55) 130%);
}

.page-hero h1 {
  color: #fff;
  max-width: 20ch;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
}

.page-hero p {
  color: rgba(255, 255, 255, .82);
  max-width: 58ch;
  margin-top: 16px;
}

.crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  font-size: .85rem;
  color: rgba(255, 255, 255, .68);
}

.crumbs a:hover {
  color: #fff;
}

.crumbs span.sep {
  opacity: .5;
}

.crumbs .current {
  color: var(--green-400);
  font-weight: 600;
}

/* --------------------------------------------------------------
   8. QUICK ENQUIRY CARD
   -------------------------------------------------------------- */
.quick-card {
  background: rgba(255, 255, 255, .97);
  border-radius: var(--radius-l);
  padding: 32px;
  box-shadow: var(--shadow-l);
  color: var(--body);
}

.quick-card h3 {
  font-size: 1.32rem;
}

.quick-card > p {
  font-size: .93rem;
  margin: 8px 0 22px;
}

.quick-card .fineprint {
  margin-top: 14px;
  font-size: .78rem;
  color: var(--muted);
  text-align: center;
}

/* --------------------------------------------------------------
   9. FORMS
   -------------------------------------------------------------- */
.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--surface-2);
  font: inherit;
  font-size: .95rem;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}

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

.field input::placeholder,
.field textarea::placeholder {
  color: #a9b2c4;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--green-500);
  box-shadow: 0 0 0 4px rgba(34, 154, 86, .13);
}

.field.has-error input,
.field.has-error textarea,
.field.has-error select {
  border-color: #d96262;
  background: #fffafa;
}

.field .err {
  display: block;
  margin-top: 6px;
  font-size: .8rem;
  color: #c33;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-card {
  padding: clamp(26px, 3.4vw, 42px);
  border-radius: var(--radius-l);
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.form-card .field input,
.form-card .field select,
.form-card .field textarea {
  background: #fff;
}

.form-note {
  margin-top: 16px;
  font-size: .82rem;
  color: var(--muted);
}

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

.alert {
  padding: 14px 18px;
  border-radius: var(--radius-s);
  font-size: .92rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.alert-ok {
  background: rgba(34, 154, 86, .12);
  color: var(--green-600);
}

.alert-err {
  background: rgba(214, 69, 69, .1);
  color: #c33;
}

/* --------------------------------------------------------------
   10. CARDS (services / projects / posts)
   -------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

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

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}

.card:hover {
  transform: translateY(-7px);
  border-color: transparent;
  box-shadow: var(--shadow-l);
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-3);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.card:hover .card-media img {
  transform: scale(1.06);
}

.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 23, 61, 0) 40%, rgba(5, 23, 61, .55) 100%);
}

.card-no {
  position: absolute;
  z-index: 2;
  left: 20px;
  bottom: 14px;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: rgba(255, 255, 255, .85);
}

.card-tag {
  position: absolute;
  z-index: 2;
  left: 18px;
  top: 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .93);
  color: var(--navy-700);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.card-body {
  padding: 26px 26px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 13px;
  background: rgba(34, 154, 86, .1);
  color: var(--green-600);
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  margin-bottom: 10px;
}

.card h3 a:hover {
  color: var(--green-600);
}

.card p {
  font-size: .95rem;
  flex: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: .88rem;
  font-weight: 700;
  color: var(--navy-700);
}

.card-link svg {
  width: 15px;
  height: 15px;
  transition: transform .25s var(--ease);
}

.card:hover .card-link {
  color: var(--green-600);
}

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

.card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  font-size: .8rem;
  color: var(--muted);
  font-weight: 600;
}

.card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-meta svg {
  width: 14px;
  height: 14px;
  color: var(--green-500);
}

/* wide highlight card */
.card-wide {
  grid-column: span 2;
  flex-direction: row;
  background: var(--navy-700);
  border-color: transparent;
  color: rgba(255, 255, 255, .8);
}

.card-wide .card-media {
  flex: 0 0 44%;
  aspect-ratio: auto;
}

.card-wide .card-media::after {
  background: linear-gradient(90deg, rgba(11, 42, 110, 0) 40%, rgba(11, 42, 110, .95) 100%);
}

.card-wide .card-body {
  justify-content: center;
  padding: 34px 34px 34px 6px;
}

.card-wide h3 {
  color: #fff;
  font-size: 1.45rem;
}

.card-wide h3 a:hover {
  color: var(--green-400);
}

.card-wide .card-icon {
  background: rgba(52, 184, 108, .18);
  color: var(--green-400);
}

.card-wide .card-link {
  color: var(--green-400);
}

/* --------------------------------------------------------------
   11. ABOUT / STATS
   -------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.about-visual {
  position: relative;
  padding-bottom: 54px;
  padding-right: 42px;
}

.about-visual > img {
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-l);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}

.about-chip {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 210px;
  padding: 24px;
  border-radius: var(--radius-m);
  background: var(--navy-700);
  color: #fff;
  box-shadow: var(--shadow-l);
}

.about-chip strong {
  display: block;
  font-size: 2.5rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.03em;
}

.about-chip span {
  display: block;
  margin-top: 8px;
  font-size: .84rem;
  color: rgba(255, 255, 255, .72);
}

.checklist {
  display: grid;
  gap: 14px;
  margin: 28px 0 34px;
}

.checklist li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  font-size: .98rem;
  color: var(--ink);
  font-weight: 500;
}

.checklist svg {
  width: 21px;
  height: 21px;
  flex: none;
  margin-top: 2px;
  color: var(--green-500);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.stats strong {
  display: block;
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -.035em;
  color: var(--navy-700);
  line-height: 1;
}

.stats span {
  display: block;
  margin-top: 8px;
  font-size: .85rem;
  color: var(--muted);
  font-weight: 600;
}

/* --------------------------------------------------------------
   12. PROCESS
   -------------------------------------------------------------- */
.process {
  background: var(--navy-900);
  color: rgba(255, 255, 255, .72);
  position: relative;
  overflow: hidden;
}

.process::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -140px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 154, 86, .28) 0%, rgba(34, 154, 86, 0) 68%);
}

.process h2,
.process h3 {
  color: #fff;
}

.process .shell {
  position: relative;
  z-index: 1;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.step {
  position: relative;
  padding: 30px 26px 32px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-l);
  background: rgba(255, 255, 255, .035);
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}

.step:hover {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(52, 184, 108, .45);
  transform: translateY(-5px);
}

.step-no {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: rgba(52, 184, 108, .16);
  color: var(--green-400);
  font-weight: 800;
  font-size: .95rem;
}

.step h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.step p {
  font-size: .92rem;
}

/* --------------------------------------------------------------
   13. TESTIMONIALS
   -------------------------------------------------------------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.quote {
  padding: 34px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}

.quote:hover {
  box-shadow: var(--shadow-m);
  transform: translateY(-4px);
}

.stars {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
  color: #f0a832;
}

.stars svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  stroke: none;
}

.stars svg.off {
  color: #dfe4ec;
}

.quote p {
  font-size: 1rem;
  color: var(--ink);
  flex: 1;
}

.quote-by {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.quote-by img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.quote-by .initials {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy-700);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  flex: none;
}

.quote-by strong {
  display: block;
  font-size: .95rem;
  color: var(--ink);
}

.quote-by span {
  font-size: .82rem;
  color: var(--muted);
}

/* --------------------------------------------------------------
   14. CTA BAND
   -------------------------------------------------------------- */
.cta-inner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius-l);
  padding: clamp(42px, 6vw, 68px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  flex-wrap: wrap;
  background: linear-gradient(115deg, var(--navy-700) 0%, var(--navy-900) 58%, var(--green-600) 190%);
  box-shadow: var(--shadow-l);
}

.cta-inner::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -90px;
  top: -90px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  border: 60px solid rgba(255, 255, 255, .05);
}

.cta-inner h2 {
  color: #fff;
  max-width: 18ch;
}

.cta-inner p {
  margin-top: 14px;
  color: rgba(255, 255, 255, .8);
  max-width: 48ch;
}

/* --------------------------------------------------------------
   15. CONTACT
   -------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(40px, 5vw, 68px);
}

.info-list {
  display: grid;
  gap: 16px;
  margin-top: 34px;
}

.info-item {
  display: flex;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: #fff;
  transition: border-color .25s, box-shadow .25s, transform .25s var(--ease);
}

.info-item:hover {
  border-color: transparent;
  box-shadow: var(--shadow-m);
  transform: translateX(4px);
}

.info-item .ic {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(11, 42, 110, .07);
  color: var(--navy-700);
}

.info-item svg {
  width: 20px;
  height: 20px;
}

.info-item strong {
  display: block;
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.info-item p {
  color: var(--ink);
  font-weight: 600;
  font-size: .98rem;
}

.map-wrap {
  margin-top: 40px;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--line);
  line-height: 0;
}

.map-wrap iframe {
  width: 100%;
  height: 380px;
  border: 0;
}

/* --------------------------------------------------------------
   16. ARTICLE / DETAIL PAGES
   -------------------------------------------------------------- */
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(36px, 4.5vw, 60px);
  align-items: start;
}

.prose {
  font-size: 1.03rem;
  color: var(--body);
}

.prose > img,
.detail-cover {
  width: 100%;
  border-radius: var(--radius-l);
  margin-bottom: 34px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.prose h2 {
  font-size: 1.7rem;
  margin: 38px 0 14px;
}

.prose h3 {
  font-size: 1.3rem;
  margin: 30px 0 12px;
}

.prose p {
  margin-bottom: 1.15rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1.3rem;
  padding-left: 22px;
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-bottom: 9px;
}

.prose a {
  color: var(--green-600);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose blockquote {
  margin: 30px 0;
  padding: 22px 26px;
  border-left: 3px solid var(--green-500);
  background: var(--surface-2);
  border-radius: 0 var(--radius-m) var(--radius-m) 0;
  font-size: 1.08rem;
  color: var(--ink);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.3rem;
  font-size: .95rem;
}

.prose th,
.prose td {
  padding: 11px 14px;
  border: 1px solid var(--line);
  text-align: left;
}

.prose th {
  background: var(--surface-2);
  color: var(--ink);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  font-size: .88rem;
  color: var(--muted);
  font-weight: 600;
}

.post-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.post-meta svg {
  width: 15px;
  height: 15px;
  color: var(--green-500);
}

/* sidebar */
.sidebar {
  display: grid;
  gap: 26px;
  position: sticky;
  top: 100px;
}

.widget {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: #fff;
}

.widget h4 {
  font-size: .82rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.widget-list li + li {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--surface-3);
}

.widget-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: .94rem;
  font-weight: 600;
  color: var(--ink);
  transition: color .2s;
}

.widget-list a:hover {
  color: var(--green-600);
}

.widget-list a.is-active {
  color: var(--green-600);
}

.widget-list .count {
  font-size: .78rem;
  color: var(--muted);
  font-weight: 700;
  background: var(--surface-2);
  padding: 2px 9px;
  border-radius: 999px;
}

.mini-post {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}

.mini-post + .mini-post {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--surface-3);
}

.mini-post img {
  width: 62px;
  height: 62px;
  border-radius: 12px;
  object-fit: cover;
  flex: none;
}

.mini-post strong {
  display: block;
  font-size: .9rem;
  line-height: 1.4;
  color: var(--ink);
  font-weight: 600;
}

.mini-post span {
  font-size: .78rem;
  color: var(--muted);
}

.mini-post:hover strong {
  color: var(--green-600);
}

.widget-cta {
  background: linear-gradient(150deg, var(--navy-700), var(--navy-900));
  border-color: transparent;
  color: rgba(255, 255, 255, .8);
}

.widget-cta h4 {
  color: var(--green-400);
}

.widget-cta p {
  color: rgba(255, 255, 255, .78);
  font-size: .94rem;
  margin-bottom: 20px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags a,
.tags span {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: .82rem;
  font-weight: 600;
  color: var(--body);
  transition: all .2s;
}

.tags a:hover {
  background: var(--green-500);
  border-color: var(--green-500);
  color: #fff;
}

/* fact table on project detail */
.facts {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
}

.facts div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 20px;
  font-size: .93rem;
}

.facts div + div {
  border-top: 1px solid var(--line);
}

.facts div:nth-child(odd) {
  background: var(--surface-2);
}

.facts dt,
.facts .k {
  color: var(--muted);
  font-weight: 600;
}

.facts .v {
  color: var(--ink);
  font-weight: 700;
  text-align: right;
}

/* gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 34px;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-m);
  transition: transform .35s var(--ease);
}

.gallery a:hover img {
  transform: scale(1.03);
}

/* --------------------------------------------------------------
   17. PAGINATION / EMPTY
   -------------------------------------------------------------- */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 52px;
}

.pager-btn {
  min-width: 44px;
  height: 44px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: .92rem;
  font-weight: 700;
  color: var(--ink);
  transition: all .2s;
}

.pager-btn:hover {
  border-color: var(--navy-700);
  color: var(--navy-700);
}

.pager-btn.is-current {
  background: var(--navy-700);
  border-color: var(--navy-700);
  color: #fff;
}

.pager-gap {
  color: var(--muted);
  padding: 0 4px;
}

.empty {
  text-align: center;
  padding: 70px 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-l);
  background: var(--surface-2);
}

.empty svg {
  width: 44px;
  height: 44px;
  color: var(--muted);
  margin: 0 auto 16px;
}

.empty h3 {
  margin-bottom: 8px;
}

/* filter chips */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.filters a {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: .89rem;
  font-weight: 700;
  color: var(--body);
  transition: all .22s var(--ease);
}

.filters a:hover {
  border-color: var(--navy-700);
  color: var(--navy-700);
}

.filters a.is-active {
  background: var(--navy-700);
  border-color: var(--navy-700);
  color: #fff;
}

/* --------------------------------------------------------------
   18. FOOTER
   -------------------------------------------------------------- */
.footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, .62);
  padding: clamp(56px, 7vw, 84px) 0 0;
  font-size: .93rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 46px;
  padding-bottom: 52px;
}

.footer h4 {
  color: #fff;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-brand img {
  width: 120px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 12px;
  padding: 10px;
}

.footer-links li + li {
  margin-top: 11px;
}

.footer-links a {
  transition: color .2s, padding-left .2s;
}

.footer-links a:hover {
  color: var(--green-400);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
}

.footer-contact li + li {
  margin-top: 13px;
}

.footer-contact svg {
  width: 17px;
  height: 17px;
  color: var(--green-400);
  flex: none;
  margin-top: 4px;
}

.footer-social {
  display: flex;
  gap: 9px;
  margin-top: 22px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  color: #fff;
  transition: background .25s, transform .25s var(--ease);
}

.footer-social a:hover {
  background: var(--green-500);
  transform: translateY(-3px);
}

.footer-social svg {
  width: 16px;
  height: 16px;
}

.footer-base {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: .86rem;
}

.footer-base ul {
  display: flex;
  gap: 22px;
}

.footer-base a:hover {
  color: #fff;
}

.totop {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 70;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: var(--green-500);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--shadow-m);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: all .3s var(--ease);
}

.totop.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.totop:hover {
  background: var(--green-600);
}

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

/* --------------------------------------------------------------
   19. REVEAL
   -------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }

  * {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* --------------------------------------------------------------
   20. RESPONSIVE
   -------------------------------------------------------------- */
@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .quick-card {
    max-width: 520px;
  }

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

  .card-wide {
    grid-column: span 2;
  }

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

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

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

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

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .nav-cta .btn {
    display: none;
  }

  .burger {
    display: grid;
    margin-left: auto;
  }

  .topbar-list li:nth-child(1) {
    display: none;
  }

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

  .about-visual {
    max-width: 460px;
    padding-right: 34px;
  }

  .trustbar {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

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

@media (max-width: 700px) {
  body {
    font-size: 16px;
  }

  .cards,
  .cards-2,
  .quotes,
  .sidebar {
    grid-template-columns: 1fr;
  }

  .card-wide {
    grid-column: auto;
    flex-direction: column;
  }

  .card-wide .card-media {
    flex: none;
    aspect-ratio: 16/9;
  }

  .card-wide .card-body {
    padding: 26px;
  }

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

  .stats {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 22px;
  }

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

  .topbar-social {
    display: none;
  }

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

  .footer-base {
    justify-content: center;
    text-align: center;
  }

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

/* --------------------------------------------------------------
   21. LIVEWIRE INTERACTION
   Filters and sidebar links are <button> elements so Livewire can
   handle them without a page load; they must look identical to the
   anchors they replaced.
   -------------------------------------------------------------- */
.filters button {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
  font-size: .89rem;
  font-weight: 700;
  color: var(--body);
  cursor: pointer;
  transition: all .22s var(--ease);
}

.filters button:hover {
  border-color: var(--navy-700);
  color: var(--navy-700);
}

.filters button.is-active {
  background: var(--navy-700);
  border-color: var(--navy-700);
  color: #fff;
}

.widget-list button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: .94rem;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: color .2s;
}

.widget-list button:hover,
.widget-list button.is-active {
  color: var(--green-600);
}

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: var(--green-600);
  cursor: pointer;
}

.link-btn:hover {
  text-decoration: underline;
}

/* Dim a list while Livewire fetches the next page or filter. */
.is-busy {
  opacity: .55;
  transition: opacity .18s;
  pointer-events: none;
}
