:root {
  --ink: #102030;
  --muted: #5c6b76;
  --surface: #ffffff;
  --surface-soft: #f4f7f7;
  --line: #dce6e5;
  --navy: #0c2638;
  --teal: #0f766e;
  --teal-dark: #0b534e;
  --orange: #f97316;
  --amber: #f7b731;
  --shadow: 0 18px 45px rgba(16, 32, 48, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

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

.skip-link:focus {
  z-index: 1000;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  color: #fff;
  background: var(--teal);
  border-radius: 6px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(220, 230, 229, 0.9);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(1160px, calc(100% - 32px));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--orange));
  border-radius: 8px;
  font-weight: 800;
}

.brand-logo {
  width: 128px;
  height: 56px;
  display: block;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px;
}

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

.brand strong {
  font-size: 0.95rem;
  letter-spacing: 0;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #233847;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a {
  padding: 8px 0;
}

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

.nav-cta {
  padding: 10px 16px !important;
  color: #fff !important;
  background: var(--teal);
  border-radius: 6px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100vh - 82px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
}

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

.hero-media {
  background-image: url("../img/ihs-hero.png");
  background-size: cover;
  background-position: center right;
  transform: scale(1.01);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(9, 28, 42, 0.94) 0%, rgba(9, 28, 42, 0.76) 43%, rgba(9, 28, 42, 0.25) 100%),
    linear-gradient(0deg, rgba(9, 28, 42, 0.74), rgba(9, 28, 42, 0.05) 48%);
}

.hero-content {
  position: relative;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0 132px;
}

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

.tool-eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  padding: 5px;
  color: var(--teal-dark);
  background: #fff;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(16, 32, 48, 0.08);
}

.tool-eyebrow span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  background: rgba(15, 118, 110, 0.1);
  border-radius: 999px;
}

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

.hero h1 {
  max-width: 760px;
  font-size: clamp(2.5rem, 6vw, 5.8rem);
  font-weight: 800;
}

.hero-lead {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.16rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.btn.primary {
  color: #fff;
  background: var(--teal);
}

.btn.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.notice {
  max-width: 420px;
  margin-top: 20px;
  padding: 12px 14px;
  border-radius: 6px;
}

.notice.success {
  background: rgba(15, 118, 110, 0.92);
}

.hero-stats {
  position: relative;
  width: min(1160px, calc(100% - 32px));
  margin: -82px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  color: var(--ink);
  border-radius: 8px 8px 0 0;
  box-shadow: var(--shadow);
}

.hero-stats div {
  padding: 24px;
  border-right: 1px solid var(--line);
}

.hero-stats div:last-child {
  border-right: 0;
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  color: var(--teal);
  font-size: 1.8rem;
  line-height: 1;
}

.hero-stats span {
  margin-top: 6px;
  color: var(--muted);
  font-weight: 600;
}

.section {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 38px;
}

.section-lead {
  margin: 16px 0 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-heading h2,
.mission h2 {
  font-size: clamp(1.9rem, 4vw, 3.2rem);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 44px;
  align-items: start;
}

.two-column p {
  margin-top: 0;
  color: #304654;
  font-size: 1.05rem;
}

.brand-panel {
  margin: 0;
  padding: 28px;
  background: var(--surface-soft);
  border-left: 5px solid var(--orange);
  border-radius: 8px;
  color: var(--navy);
  font-weight: 700;
}

.brand-panel img {
  width: min(340px, 100%);
  margin-bottom: 22px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.brand-panel p {
  margin-bottom: 0;
}

.services-band,
.sectors-band,
.commitments-band,
.faq-band,
.team-band,
.clients,
.apps-band {
  width: 100%;
  max-width: none;
  padding-inline: max(16px, calc((100% - 1160px) / 2));
  background: var(--surface-soft);
}

.service-grid,
.portfolio-grid,
.team-grid,
.value-list,
.sector-grid,
.faq-list {
  display: grid;
  gap: 18px;
}

.section-showcase {
  position: relative;
  margin: 0 0 26px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.section-showcase img {
  width: 100%;
  aspect-ratio: 16 / 6;
  object-fit: cover;
  object-position: center;
}

.section-showcase figcaption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  max-width: 520px;
  padding: 12px 14px;
  color: #fff;
  background: rgba(8, 25, 37, 0.78);
  border-radius: 6px;
  font-weight: 800;
}

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

.diagnostic-band {
  width: 100%;
  max-width: none;
  padding-inline: max(16px, calc((100% - 1160px) / 2));
  background: #fff;
}

.diagnostic-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 24px;
  align-items: stretch;
}

.diagnostic-form,
.diagnostic-result {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(16, 32, 48, 0.08);
}

.diagnostic-form {
  display: grid;
  gap: 20px;
  padding: 28px;
  background: var(--surface-soft);
}

.diagnostic-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.diagnostic-form legend {
  margin-bottom: 14px;
  color: #263d4d;
  font-weight: 900;
}

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

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

.diagnostic-fields label {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: #263d4d;
  font-weight: 800;
}

.diagnostic-fields input,
.diagnostic-fields select {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #c8d5d4;
  border-radius: 6px;
  font: inherit;
}

.diagnostic-result {
  display: flex;
  flex-direction: column;
  padding: 30px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(12, 38, 56, 0.98), rgba(11, 83, 78, 0.98)),
    var(--navy);
}

.diagnostic-result strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.02;
}

.diagnostic-result p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.84);
}

.diagnostic-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.diagnostic-actions .btn.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.invoice-band {
  width: 100%;
  max-width: none;
  padding-inline: max(16px, calc((100% - 1160px) / 2));
  background: var(--surface-soft);
}

.invoice-tool {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 24px;
  align-items: start;
}

.invoice-form,
.invoice-preview-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(16, 32, 48, 0.08);
}

.invoice-form {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: linear-gradient(180deg, #fff, #f9fbfb);
}

.invoice-form-section {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(16, 32, 48, 0.05);
}

.invoice-form-section h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.2;
}

.invoice-form-section h3 span {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: var(--navy);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 900;
}

.invoice-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.invoice-form-grid,
.invoice-item-row {
  display: grid;
  gap: 12px;
}

.invoice-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
}

.invoice-item-row {
  grid-template-columns: minmax(0, 1.5fr) minmax(82px, 0.44fr) minmax(118px, 0.65fr) 38px;
  align-items: end;
  padding: 12px;
  background: #f9fbfb;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.invoice-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: #263d4d;
  font-weight: 800;
  font-size: 0.84rem;
}

.invoice-form input,
.invoice-form select,
.invoice-form textarea {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #c8d5d4;
  border-radius: 6px;
  font: inherit;
}

.invoice-form input[type="file"] {
  padding: 9px 10px;
}

.invoice-form textarea {
  resize: vertical;
}

.invoice-remove-line {
  width: 38px;
  height: 38px;
  min-height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  color: #9f1239;
  background: #fff;
  border: 1px solid #fecdd3;
  border-radius: 50%;
  font: inherit;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.invoice-add-line {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: var(--teal);
  border: 0;
  border-radius: 50%;
  font: inherit;
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.22);
}

.invoice-form input:focus,
.invoice-form select:focus,
.invoice-form textarea:focus {
  outline: 2px solid rgba(15, 118, 110, 0.22);
  border-color: var(--teal);
}

.invoice-add-line:hover {
  background: var(--teal-dark);
}

.invoice-remove-line:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.invoice-counter {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.invoice-counter strong {
  color: var(--teal);
}

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

.invoice-download-btn {
  color: #fff;
  background: var(--navy);
  border: 1px solid var(--navy);
}

.invoice-preview-wrap {
  display: grid;
  gap: 16px;
  padding: 20px;
  background: #fff;
  overflow: hidden;
}

.invoice-preview {
  min-height: 680px;
  padding: clamp(22px, 4vw, 42px);
  color: #172838;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.invoice-preview-header {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 2px solid var(--navy);
}

.invoice-preview-header strong,
.invoice-preview-header span,
.invoice-preview-header small {
  display: block;
}

.invoice-preview-header > div:first-child strong {
  color: var(--teal);
  font-size: 1.3rem;
}

.invoice-company-block {
  max-width: 58%;
}

.invoice-logo {
  display: none;
  width: 104px;
  max-height: 76px;
  margin-bottom: 12px;
  object-fit: contain;
  object-position: left center;
}

.invoice-logo.has-image {
  display: block;
}

.invoice-preview-header > div:first-child span,
.invoice-preview-client p {
  margin: 6px 0 0;
  color: var(--muted);
}

.invoice-preview-header > div:last-child {
  text-align: right;
}

.invoice-preview-header > div:last-child span {
  color: var(--orange);
  font-weight: 900;
  letter-spacing: 0;
}

.invoice-preview-header > div:last-child strong {
  font-size: 1.4rem;
}

.invoice-preview-client {
  margin-top: 28px;
}

.invoice-preview-client span {
  color: var(--muted);
  font-weight: 800;
}

.invoice-preview-client strong {
  display: block;
  margin-top: 4px;
  font-size: 1.12rem;
}

.invoice-preview-table {
  width: 100%;
  margin-top: 28px;
  border-collapse: collapse;
}

.invoice-preview-table th,
.invoice-preview-table td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.invoice-preview-table th {
  color: #fff;
  background: var(--navy);
  font-size: 0.86rem;
}

.invoice-preview-table th:not(:first-child),
.invoice-preview-table td:not(:first-child) {
  text-align: right;
}

.invoice-totals {
  width: min(330px, 100%);
  margin: 28px 0 0 auto;
}

.invoice-totals div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.invoice-totals dt,
.invoice-totals dd {
  margin: 0;
}

.invoice-totals dd {
  font-weight: 900;
  text-align: right;
}

.invoice-grand-total {
  color: #fff;
  background: var(--teal);
  border-bottom: 0 !important;
  border-radius: 6px;
  margin-top: 10px;
  padding: 12px !important;
}

.invoice-notes {
  margin: 36px 0 0;
  padding-top: 18px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.invoice-signature {
  width: min(220px, 100%);
  margin: 30px 0 0 auto;
  text-align: center;
}

.invoice-stamp {
  display: none;
  width: 150px;
  max-height: 120px;
  margin: 0 auto 8px;
  object-fit: contain;
}

.invoice-stamp.has-image {
  display: block;
}

.invoice-signature span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.estimator-band {
  width: 100%;
  max-width: none;
  padding-inline: max(16px, calc((100% - 1160px) / 2));
  background: #fff;
}

.estimator-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 24px;
  align-items: stretch;
}

.estimator-form,
.estimator-result {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(16, 32, 48, 0.08);
}

.estimator-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 28px;
  background: var(--surface-soft);
}

.estimator-form label {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: #263d4d;
  font-weight: 800;
}

.estimator-form input,
.estimator-form select {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #c8d5d4;
  border-radius: 6px;
  font: inherit;
}

.field-help {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
}

.estimator-options {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.check-option {
  min-height: 54px;
  grid-template-columns: auto 1fr !important;
  align-items: center;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.check-option input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  accent-color: var(--teal);
}

.estimator-result {
  display: flex;
  flex-direction: column;
  padding: 30px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.96), rgba(12, 38, 56, 0.98)),
    var(--navy);
}

.result-kicker {
  color: var(--amber);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.estimator-result strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1;
}

.estimator-result p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.84);
}

.result-breakdown {
  display: grid;
  gap: 12px;
  margin: 28px 0;
}

.result-breakdown div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.result-breakdown dt,
.result-breakdown dd {
  margin: 0;
}

.result-breakdown dt {
  color: rgba(255, 255, 255, 0.72);
}

.result-breakdown dd {
  font-weight: 900;
  text-align: right;
}

.estimator-result .btn {
  width: fit-content;
  margin-top: auto;
  color: var(--ink);
  background: #fff;
}

.service-card,
.portfolio-card,
.team-card,
.value-list article,
.method-grid article,
.sector-grid article,
.faq-list article,
.commitment-list article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(16, 32, 48, 0.07);
}

.service-card,
.sector-grid article,
.faq-list article {
  padding: 24px;
}

.service-card,
.portfolio-card,
.sector-grid article,
.faq-list article,
.method-grid article,
.value-list article,
.client-logo-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover,
.portfolio-card:hover,
.sector-grid article:hover,
.faq-list article:hover,
.method-grid article:hover,
.value-list article:hover,
.client-logo-card:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 118, 110, 0.35);
  box-shadow: 0 20px 44px rgba(16, 32, 48, 0.12);
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  color: #fff;
  background: var(--navy);
  border-radius: 6px;
  font-weight: 800;
}

.service-card h3,
.portfolio-card h3,
.team-card h3,
.value-list h3,
.sector-grid h3,
.faq-list h3 {
  margin: 0 0 10px;
  line-height: 1.22;
}

.service-card p,
.portfolio-card p,
.team-card p,
.value-list p,
.sector-grid p,
.faq-list p {
  margin: 0;
  color: var(--muted);
}

.sectors-band {
  background: #fff;
}

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

.sector-grid article {
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--teal);
}

.sector-grid span {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 6px 10px;
  color: var(--teal-dark);
  background: rgba(15, 118, 110, 0.1);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mission {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  color: #fff;
  background: var(--navy);
}

.mission > div {
  padding: clamp(36px, 6vw, 72px);
}

.mission > div:first-child {
  background: var(--teal-dark);
}

.mission p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.84);
}

.commitments-band {
  background: var(--surface-soft);
}

.commitment-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 22px;
  align-items: stretch;
}

.commitment-main {
  min-height: 100%;
  padding: clamp(26px, 4vw, 42px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(12, 38, 56, 0.98), rgba(15, 118, 110, 0.94)),
    var(--navy);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.commitment-main h3 {
  margin: 0;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1.08;
}

.commitment-main p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.05rem;
}

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

.commitment-list article {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px;
}

.commitment-list span {
  color: var(--orange);
  font-weight: 900;
  text-transform: uppercase;
}

.commitment-list p {
  margin: 0;
  color: var(--muted);
}

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

.portfolio-card {
  overflow: hidden;
}

.portfolio-card h3,
.portfolio-card p {
  padding: 0 22px;
}

.portfolio-card h3 {
  margin-top: 22px;
}

.portfolio-card p {
  margin-bottom: 24px;
}

.portfolio-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  background: var(--surface-soft);
}

.app-showcase-grid {
  display: grid;
  gap: 22px;
}

.app-showcase-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: 28px;
  align-items: center;
  padding: clamp(22px, 4vw, 38px);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.kwelya-app {
  color: #fff;
  background:
    radial-gradient(circle at 82% 12%, rgba(38, 127, 255, 0.34), transparent 34%),
    linear-gradient(135deg, #071a35, #0d2b56 58%, #071a35);
  border-color: rgba(255, 255, 255, 0.12);
}

.app-copy {
  min-width: 0;
}

.app-logo {
  width: 82px;
  height: 82px;
  object-fit: contain;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(16, 32, 48, 0.12);
}

.shop-app .app-logo {
  background: #070707;
}

.app-category {
  display: inline-block;
  margin-top: 22px;
  color: var(--orange);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.app-showcase-card h3 {
  margin: 6px 0 12px;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
}

.app-showcase-card p {
  margin: 0;
  max-width: 540px;
  color: var(--muted);
  font-size: 1.05rem;
}

.kwelya-app p {
  color: rgba(255, 255, 255, 0.82);
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.store-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 11px 16px;
  color: #fff;
  background: var(--teal);
  border-radius: 6px;
  font-weight: 900;
}

.store-button.dark {
  color: var(--ink);
  background: #fff;
}

.store-button.outline {
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.app-icon-mark {
  width: 82px;
  height: 82px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(173, 91, 107, 0.96), rgba(48, 40, 42, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(16, 32, 48, 0.12);
  font-family: Georgia, serif;
  font-size: 1.25rem;
  font-weight: 800;
}

.app-feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.app-feature-tags span {
  padding: 7px 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
}

.invitation-app {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(28, 23, 24, 0.98), rgba(65, 45, 50, 0.96) 52%, rgba(148, 77, 92, 0.95));
  border-color: rgba(255, 255, 255, 0.14);
}

.invitation-app .app-category {
  color: #f3c4cb;
}

.invitation-app p {
  color: rgba(255, 255, 255, 0.82);
}

.invitation-preview-gallery {
  display: grid;
  grid-template-columns: minmax(140px, 0.42fr) minmax(0, 0.58fr);
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.invitation-video-preview {
  position: relative;
  display: block;
  width: min(100%, 270px);
  aspect-ratio: 9 / 16;
  justify-self: center;
  overflow: hidden;
  background: #181113;
  border: 5px solid #183735;
  border-radius: 22px;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.3);
}

.invitation-video-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.34);
}

.invitation-video-preview::after {
  content: "Voir la vidéo";
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  min-height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(24, 17, 19, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 900;
}

.invitation-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 66px;
  height: 66px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.34);
}

.invitation-video-play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  width: 0;
  height: 0;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 20px solid #ad5b6b;
  transform: translate(-50%, -50%);
}

.invitation-desktop-previews {
  display: grid;
  gap: 12px;
}

.invitation-desktop-previews img,
.invitation-mobile-previews img {
  width: 100%;
  object-fit: cover;
  object-position: top center;
  background: #f5efeb;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.26);
}

.invitation-desktop-previews img {
  aspect-ratio: 16 / 7.2;
  border-radius: 8px;
}

.invitation-mobile-previews {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(72px, 1fr));
  gap: 10px;
  align-items: start;
}

.invitation-mobile-previews img {
  aspect-ratio: 9 / 18;
  border: 5px solid #183735;
  border-radius: 20px;
}

.phone-gallery,
.wide-gallery {
  display: grid;
  align-items: end;
  justify-content: center;
  gap: 16px;
}

.phone-gallery {
  grid-template-columns: repeat(2, minmax(120px, 220px));
}

.phone-gallery img {
  width: 100%;
  aspect-ratio: 9 / 18;
  object-fit: cover;
  object-position: top center;
  border: 8px solid #111827;
  border-radius: 28px;
  box-shadow: 0 22px 42px rgba(16, 32, 48, 0.2);
}

.phone-gallery img:nth-child(2) {
  transform: translateY(32px);
}

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

.wide-gallery img {
  width: 100%;
  aspect-ratio: 16 / 7.2;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.25);
}

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

.value-list article,
.method-grid article {
  padding: 24px;
}

.method-band {
  width: 100%;
  max-width: none;
  padding-inline: max(16px, calc((100% - 1160px) / 2));
  background: #fff;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.method-grid span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  color: #fff;
  background: var(--teal);
  border-radius: 6px;
  font-weight: 900;
}

.method-grid h3 {
  margin: 0 0 10px;
  line-height: 1.22;
}

.method-grid p {
  margin: 0;
  color: var(--muted);
}

.faq-band {
  background: #fff;
}

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

.faq-list article {
  border-left: 4px solid var(--orange);
}

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

.team-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(16, 32, 48, 0.14);
}

.team-photo-wrap {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy), var(--teal));
}

.team-photo-wrap::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(8, 25, 37, 0.58), rgba(8, 25, 37, 0));
  pointer-events: none;
}

.team-photo {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: center 24%;
  background: var(--surface-soft);
  transition: transform 0.35s ease;
}

.team-card:hover .team-photo {
  transform: scale(1.035);
}

.team-card:first-child .team-photo {
  object-position: center 18%;
}

.team-info {
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.team-kicker {
  display: block;
  width: fit-content;
  margin-bottom: 14px;
  padding: 6px 10px;
  color: #fff;
  background: var(--teal);
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.team-info h3 {
  margin-bottom: 8px;
  font-size: 1.18rem;
}

.team-role {
  margin: 0 0 12px;
  color: var(--teal);
  font-weight: 900;
  line-height: 1.35;
}

.team-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.team-tags span {
  padding: 7px 10px;
  color: #28404f;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
}

.team-link {
  display: inline-block;
  width: fit-content;
  margin-top: auto;
  padding-top: 18px;
  color: var(--teal);
  font-weight: 900;
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 16px;
}

.client-logo-card {
  min-height: 168px;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(16, 32, 48, 0.07);
}

.client-logo-card img {
  width: 100%;
  max-height: 88px;
  object-fit: contain;
  object-position: center;
}

.client-logo-card span {
  display: block;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.88rem;
  line-height: 1.25;
  text-align: center;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: 28px;
}

.contact-info {
  padding: 28px;
  color: #fff;
  background: var(--navy);
  border-radius: 8px;
}

.contact-logo {
  width: min(260px, 100%);
  margin-bottom: 24px;
  padding: 8px;
  background: #fff;
  border-radius: 8px;
}

.contact-info h3 {
  margin-top: 0;
}

.contact-info a {
  display: block;
  margin-top: 12px;
  color: #fff;
  font-weight: 700;
}

.whatsapp-link {
  width: fit-content;
  margin-top: 22px !important;
  padding: 10px 14px;
  background: #22c55e;
  border-radius: 6px;
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: #263d4d;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #c8d5d4;
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.form-notice {
  margin: 0;
  padding: 12px 14px;
  border-radius: 6px;
  font-weight: 800;
}

.form-notice.success {
  color: #0b534e;
  background: rgba(15, 118, 110, 0.12);
  border: 1px solid rgba(15, 118, 110, 0.24);
}

.form-notice.error {
  color: #7c2d12;
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.28);
}

.site-footer {
  padding: 52px max(16px, calc((100% - 1160px) / 2)) 24px;
  color: rgba(255, 255, 255, 0.82);
  background: #081925;
}

.site-footer p {
  margin: 6px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.footer-brand {
  max-width: 360px;
}

.footer-brand img {
  width: 164px;
  height: 72px;
  object-fit: contain;
  padding: 7px;
  background: #fff;
  border-radius: 8px;
}

.footer-brand strong {
  display: block;
  margin-top: 18px;
  color: #fff;
  font-size: 1.25rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.72);
}

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

.footer-links h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 0.86rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.footer-links a {
  display: block;
  width: fit-content;
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 700;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 42px;
  padding-top: 20px;
  color: rgba(255, 255, 255, 0.62);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.92rem;
}

.footer-bottom p {
  margin: 0;
}

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  background: #22c55e;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 900;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: pulse 2s infinite;
}

.floating-whatsapp span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: #22c55e;
  background: #fff;
  border-radius: 50%;
  font-size: 0.9rem;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 76px;
}

.legal-back {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--teal);
  font-weight: 900;
}

.legal-content {
  padding: clamp(24px, 5vw, 48px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.legal-content h1 {
  margin: 0 0 18px;
  font-size: clamp(2.1rem, 5vw, 3.8rem);
  line-height: 1.06;
}

.legal-content h2 {
  margin: 34px 0 10px;
  color: var(--navy);
  font-size: 1.28rem;
}

.legal-content p {
  margin: 0;
  color: #304654;
}

.legal-content a {
  color: var(--teal);
  font-weight: 800;
}

.legal-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  margin-top: 0;
  padding-top: 34px;
}

.legal-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  font-weight: 800;
}

.legal-footer > p {
  text-align: right;
}

@keyframes pulse {
  to {
    box-shadow: 0 0 0 18px rgba(34, 197, 94, 0);
  }
}

@media (max-width: 1040px) {
  .service-grid,
  .portfolio-grid,
  .team-grid,
  .value-list,
  .method-grid,
  .sector-grid,
  .faq-list,
  .client-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    display: none;
    padding: 18px 24px 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: grid;
    gap: 12px;
  }

  .nav-cta {
    width: fit-content;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    background-position: 66% center;
  }

  .hero-content {
    padding: 72px 0 112px;
  }

  .hero-stats,
  .two-column,
  .diagnostic-shell,
  .invoice-tool,
  .estimator-shell,
  .commitment-layout,
  .mission,
  .app-showcase-card,
  .contact-layout,
  .footer-inner,
  .legal-footer {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    margin-top: -58px;
  }

  .hero-stats div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-stats div:last-child {
    border-bottom: 0;
  }

  .site-footer,
  .legal-footer,
  .legal-footer > p {
    text-align: left;
  }

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

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

  .footer-bottom {
    display: grid;
    justify-content: start;
  }

  .phone-gallery img:nth-child(2) {
    transform: none;
  }

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

  .invitation-video-preview {
    width: min(280px, 100%);
  }
}

@media (max-width: 620px) {
  body {
    font-size: 0.96rem;
  }

  .nav-shell {
    width: min(100% - 24px, 1160px);
    min-height: 72px;
    gap: 10px;
  }

  .nav-links {
    top: 72px;
    padding: 14px 18px 18px;
  }

  .brand-logo {
    width: 104px;
    height: 48px;
  }

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

  .brand small {
    display: none;
  }

  .nav-toggle {
    flex: 0 0 auto;
  }

  .hero-media {
    background-position: 72% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(9, 28, 42, 0.95) 0%, rgba(9, 28, 42, 0.82) 62%, rgba(9, 28, 42, 0.48) 100%),
      linear-gradient(0deg, rgba(9, 28, 42, 0.82), rgba(9, 28, 42, 0.15) 50%);
  }

  .hero-content {
    width: min(100% - 28px, 1160px);
    padding: 48px 0 88px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: 2.28rem;
    line-height: 1.08;
  }

  .hero-lead {
    margin-top: 18px;
    font-size: 1rem;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .hero-actions .btn,
  .contact-form .btn {
    width: 100%;
  }

  .hero-stats {
    width: min(100% - 28px, 1160px);
    margin-top: -46px;
  }

  .hero-stats div {
    padding: 18px;
  }

  .hero-stats strong {
    font-size: 1.45rem;
  }

  .section {
    width: min(100% - 28px, 1160px);
    padding: 58px 0;
  }

  .section-heading {
    margin-bottom: 26px;
  }

  .section-heading h2,
  .mission h2 {
    font-size: 1.82rem;
    line-height: 1.12;
  }

  .section-lead,
  .two-column p,
  .app-showcase-card p {
    font-size: 0.98rem;
  }

  .section-showcase img {
    aspect-ratio: 4 / 3;
  }

  .section-showcase figcaption {
    position: static;
    max-width: none;
    color: var(--ink);
    background: #fff;
    border-radius: 0;
  }

  .services-band,
  .sectors-band,
  .diagnostic-band,
  .invoice-band,
  .estimator-band,
  .commitments-band,
  .method-band,
  .faq-band,
  .team-band,
  .clients,
  .apps-band {
    padding-inline: 14px;
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .service-grid,
  .portfolio-grid,
  .diagnostic-options,
  .diagnostic-fields,
  .invoice-form-grid,
  .invoice-item-row,
  .estimator-form,
  .team-grid,
  .value-list,
  .method-grid,
  .sector-grid,
  .faq-list {
    grid-template-columns: 1fr;
  }

  .invoice-tool {
    gap: 18px;
  }

  .invoice-actions {
    grid-template-columns: 1fr;
  }

  .invoice-actions .btn {
    width: 100%;
  }

  .invoice-form-section {
    padding: 14px;
  }

  .invoice-section-title {
    align-items: center;
  }

  .invoice-add-line {
    width: 40px;
    height: 40px;
  }

  .invoice-remove-line {
    width: 38px;
    justify-self: end;
  }

  .invoice-preview {
    min-height: 0;
    padding: 16px;
  }

  .invoice-preview-header {
    display: grid;
    gap: 14px;
    padding-bottom: 18px;
  }

  .invoice-company-block {
    max-width: none;
  }

  .invoice-preview-header > div:last-child {
    text-align: left;
  }

  .invoice-preview-table {
    display: block;
    margin-top: 20px;
    overflow: visible;
    white-space: normal;
  }

  .invoice-preview-table thead {
    display: none;
  }

  .invoice-preview-table tbody {
    display: grid;
    gap: 12px;
  }

  .invoice-preview-table tr {
    display: grid;
    gap: 8px;
    padding: 12px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
  }

  .invoice-preview-table td {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 0;
    border-bottom: 0;
    text-align: right !important;
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 0.9rem;
  }

  .invoice-preview-table td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    color: var(--muted);
    font-weight: 900;
    text-align: left;
  }

  .invoice-preview-table td:first-child {
    display: grid;
    gap: 4px;
    text-align: left !important;
  }

  .invoice-preview-table td:first-child::before {
    flex: none;
  }

  .invoice-totals {
    width: 100%;
    margin-top: 20px;
  }

  .invoice-signature {
    margin-left: 0;
  }

  .estimator-options {
    grid-template-columns: 1fr;
  }

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

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

  .footer-brand img {
    width: 142px;
    height: 64px;
  }

  .service-card,
  .sector-grid article,
  .faq-list article,
  .value-list article,
  .method-grid article,
  .commitment-main,
  .commitment-list article,
  .diagnostic-form,
  .diagnostic-result,
  .invoice-form,
  .invoice-preview-wrap,
  .estimator-form,
  .estimator-result,
  .contact-form,
  .contact-info,
  .brand-panel {
    padding: 20px;
  }

  .portfolio-card h3,
  .portfolio-card p {
    padding-inline: 18px;
  }

  .commitment-list article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .app-showcase-card {
    gap: 22px;
    padding: 20px;
  }

  .app-logo {
    width: 68px;
    height: 68px;
    border-radius: 12px;
  }

  .app-icon-mark {
    width: 68px;
    height: 68px;
    border-radius: 12px;
    font-size: 1.05rem;
  }

  .app-category {
    margin-top: 16px;
  }

  .app-showcase-card h3 {
    font-size: 2rem;
  }

  .app-actions {
    display: grid;
  }

  .store-button {
    justify-content: center;
  }

  .team-photo {
    aspect-ratio: 16 / 10;
  }

  .team-info {
    padding: 20px;
  }

  .client-logo-card {
    min-height: 126px;
    padding: 12px;
    gap: 10px;
  }

  .client-logo-card img {
    max-height: 62px;
  }

  .client-logo-card span {
    font-size: 0.78rem;
  }

  .phone-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .phone-gallery img {
    border-width: 5px;
    border-radius: 18px;
  }

  .wide-gallery img {
    aspect-ratio: 16 / 10;
  }

  .invitation-desktop-previews img {
    aspect-ratio: 16 / 9;
  }

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

  .contact-logo {
    width: min(220px, 100%);
  }

  .floating-whatsapp {
    right: 14px;
    bottom: 14px;
    min-height: 46px;
    padding: 10px 12px;
    font-size: 0.82rem;
  }

  .floating-whatsapp span {
    width: 22px;
    height: 22px;
  }

  .legal-page {
    width: min(100% - 28px, 900px);
    padding: 34px 0 54px;
  }

  .legal-content {
    padding: 22px;
  }
}

@media (max-width: 480px) {
  .brand span {
    display: none;
  }

  .brand-logo {
    width: 126px;
    height: 50px;
  }

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

  .btn {
    min-height: 44px;
    padding: 11px 14px;
  }

  .phone-gallery {
    overflow-x: auto;
    grid-template-columns: repeat(2, minmax(128px, 1fr));
    justify-content: start;
    padding-bottom: 4px;
  }

  .wide-gallery {
    gap: 10px;
  }

  .wide-gallery img {
    aspect-ratio: 4 / 3;
  }

  .invitation-mobile-previews {
    overflow-x: auto;
    grid-template-columns: repeat(4, minmax(110px, 1fr));
    justify-content: start;
    padding-bottom: 4px;
  }
}

.wedding-page {
  --wedding-ink: #30282a;
  --wedding-muted: #76696b;
  --wedding-rose: #ad5b6b;
  --wedding-line: #e8cfc9;
  --wedding-paper: #fffaf5;
  color: var(--wedding-ink);
  background: #eee7e2;
  font-family: Inter, Arial, sans-serif;
}

.wedding-page .wedding-hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: #1c1718;
}

.wedding-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.46);
  transform: scale(1.08);
}

.wedding-hero-content {
  position: relative;
  width: min(860px, calc(100% - 32px));
  padding: 80px 0;
  text-align: center;
}

.wedding-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin: 0 0 18px;
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.wedding-hero h1,
.wedding-card h2,
.wedding-guest strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  text-transform: uppercase;
}

.wedding-hero h1 {
  margin: 0;
  font-size: clamp(3.5rem, 9vw, 6.2rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
}

.wedding-date {
  margin: 16px 0 0;
  font-size: clamp(0.95rem, 2vw, 1.18rem);
  letter-spacing: 0.03em;
}

.wedding-light-button,
.wedding-button,
.wedding-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.wedding-light-button {
  margin-top: 32px;
  padding: 12px 18px;
  color: #181416;
  background: #fff;
  border-radius: 6px;
}

.wedding-invitation-wrap {
  padding: clamp(22px, 5vw, 54px) 16px;
  background: linear-gradient(90deg, #f4eee9, #fffaf5 12%, #fffaf5 88%, #f4eee9);
}

.wedding-card {
  position: relative;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 56px);
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 250, 245, 0.9), rgba(255, 250, 245, 0.93)),
    url("../img/invitation/ngala-ngoie-couple.jpg") center / cover;
  border: 1px solid var(--wedding-line);
  box-shadow: 0 24px 70px rgba(47, 34, 35, 0.08);
}

.wedding-card::before {
  content: "";
  position: absolute;
  inset: 16px;
  pointer-events: none;
  border: 1px solid var(--wedding-line);
}

.wedding-card-corners::before,
.wedding-card-corners::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  pointer-events: none;
}

.wedding-card-corners::before {
  top: 32px;
  left: 32px;
  border-top: 2px solid #2a2424;
  border-left: 2px solid #2a2424;
}

.wedding-card-corners::after {
  right: 32px;
  bottom: 32px;
  border-right: 2px solid #2a2424;
  border-bottom: 2px solid #2a2424;
}

.wedding-card-stars {
  position: relative;
  z-index: 1;
  color: #bf7a85;
  text-align: center;
  letter-spacing: 1.6rem;
}

.wedding-card-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

.wedding-card-left,
.wedding-card-right {
  min-width: 0;
}

.wedding-card-left {
  text-align: center;
}

.wedding-smallcaps {
  margin: 28px 0 0;
  color: var(--wedding-muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.wedding-script {
  margin: 6px 0 0;
  color: #c16b7d;
  font-family: Parisienne, cursive;
  font-size: clamp(2.8rem, 6vw, 4.1rem);
  line-height: 1;
}

.wedding-card h2 {
  margin: 12px auto 16px;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.95;
  border-bottom: 1px solid var(--wedding-line);
  padding-bottom: 18px;
}

.wedding-guest {
  display: grid;
  gap: 10px;
  padding: 20px 16px;
  border-bottom: 1px solid var(--wedding-line);
}

.wedding-guest span,
.wedding-guest small,
.wedding-qr span {
  color: #9d4f5d;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.wedding-guest strong {
  overflow-wrap: anywhere;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 0.9;
}

.wedding-photo-frame {
  margin: 18px 0 0;
  padding: 8px 8px 14px;
  background: #fff;
  border: 1px solid var(--wedding-line);
}

.wedding-photo-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

.wedding-photo-frame figcaption {
  margin-top: 12px;
  color: var(--wedding-muted);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
}

.wedding-card-right {
  display: grid;
  gap: 24px;
  justify-items: center;
  text-align: center;
}

.wedding-qr {
  justify-self: end;
  width: 164px;
  padding: 10px;
  background: rgba(255, 250, 245, 0.9);
  border: 1px solid var(--wedding-line);
}

.wedding-qr img {
  width: 112px;
  margin: 10px auto;
  image-rendering: pixelated;
  border: 1px solid var(--wedding-line);
}

.wedding-qr p,
.wedding-events p,
.wedding-hosts {
  margin: 0;
}

.wedding-qr p {
  color: #8f4b56;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1rem;
  line-height: 1.05;
  text-align: left;
}

.wedding-blessing {
  margin: 0;
  color: #8c7b7e;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
}

.wedding-hosts {
  max-width: 560px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--wedding-line);
}

.wedding-hosts strong {
  display: block;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.wedding-events {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.wedding-events article {
  min-height: 176px;
  padding: 24px 16px;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid var(--wedding-line);
}

.wedding-events h3 {
  margin: 0 0 14px;
  color: #a04e5d;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
}

.wedding-events p {
  color: var(--wedding-muted);
  font-size: 0.92rem;
}

.wedding-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.wedding-button,
.wedding-submit {
  min-width: 116px;
  padding: 12px 20px;
  color: #fff;
  background: linear-gradient(135deg, #c16d7d, #9b4d60);
  box-shadow: 0 14px 30px rgba(155, 77, 96, 0.18);
}

.wedding-guestbook {
  padding: 48px 16px;
  text-align: center;
  background: #f5f6f7;
}

.wedding-guestbook h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2rem);
}

.wedding-guestbook p {
  margin: 6px 0 18px;
}

.wedding-guestbook-form,
.wedding-messages {
  width: min(540px, 100%);
  margin: 0 auto;
}

.wedding-guestbook textarea {
  width: 100%;
  min-height: 110px;
  padding: 12px;
  color: var(--wedding-ink);
  background: #fff;
  border: 1px solid #d9dfe3;
  border-radius: 6px;
  font: inherit;
  resize: vertical;
}

.wedding-submit {
  width: 100%;
  margin-top: 12px;
}

.wedding-messages {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  text-align: left;
}

.wedding-message {
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #e2e6e9;
  border-radius: 6px;
}

.wedding-message p {
  margin: 0;
}

.wedding-footer {
  padding: 18px 16px;
  color: #62666b;
  background: #eee7e2;
  text-align: center;
}

@media (max-width: 760px) {
  .wedding-page .wedding-hero {
    min-height: 450px;
  }

  .wedding-hero-image {
    object-position: center top;
  }

  .wedding-hero-content {
    padding: 56px 0;
  }

  .wedding-pill {
    min-height: 28px;
    padding: 6px 12px;
    font-size: 0.54rem;
  }

  .wedding-hero h1 {
    font-size: 2.4rem;
  }

  .wedding-card {
    padding: 22px 18px 24px;
  }

  .wedding-card::before {
    inset: 8px;
  }

  .wedding-card-corners::before,
  .wedding-card-corners::after {
    width: 74px;
    height: 74px;
  }

  .wedding-card-corners::before {
    top: 16px;
    left: 16px;
  }

  .wedding-card-corners::after {
    right: 16px;
    bottom: 16px;
  }

  .wedding-card-stars {
    letter-spacing: 1rem;
  }

  .wedding-card-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .wedding-smallcaps {
    font-size: 0.52rem;
    letter-spacing: 0.34em;
  }

  .wedding-script {
    font-size: 2.3rem;
  }

  .wedding-card h2 {
    font-size: 2rem;
  }

  .wedding-guest strong {
    font-size: 2rem;
  }

  .wedding-photo-frame {
    margin-top: 12px;
  }

  .wedding-qr {
    justify-self: center;
  }

  .wedding-events {
    grid-template-columns: 1fr;
  }

  .wedding-events article {
    min-height: 0;
  }

  .wedding-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .wedding-button {
    min-width: 0;
    padding-inline: 12px;
    font-size: 0.82rem;
  }
}

@media print {
  @page {
    margin: 12mm;
  }

  body.wedding-page {
    background: #fff;
  }

  body.wedding-page .wedding-hero,
  body.wedding-page .wedding-guestbook,
  body.wedding-page .wedding-footer {
    display: none !important;
  }

  body.wedding-page .wedding-invitation-wrap {
    padding: 0;
    background: #fff;
  }

  body.wedding-page .wedding-card {
    width: 100%;
    box-shadow: none;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  body.is-printing-invoice,
  body.is-printing-invoice .print-only-invoice {
    background: #fff;
  }

  body.is-printing-invoice > *:not(.print-only-invoice) {
    display: none !important;
  }

  body.is-printing-invoice .print-only-invoice {
    display: block !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body.is-printing-invoice .print-only-invoice .invoice-preview {
    width: 100%;
    min-height: 0;
    padding: 0;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body.is-printing-invoice .print-only-invoice .invoice-preview-table {
    display: table !important;
    width: 100% !important;
    margin-top: 28px !important;
    border-collapse: collapse !important;
    white-space: normal !important;
  }

  body.is-printing-invoice .print-only-invoice .invoice-preview-table thead {
    display: table-header-group !important;
  }

  body.is-printing-invoice .print-only-invoice .invoice-preview-table tbody {
    display: table-row-group !important;
  }

  body.is-printing-invoice .print-only-invoice .invoice-preview-table tr {
    display: table-row !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
  }

  body.is-printing-invoice .print-only-invoice .invoice-preview-table th,
  body.is-printing-invoice .print-only-invoice .invoice-preview-table td {
    display: table-cell !important;
    padding: 13px 10px !important;
    border-bottom: 1px solid #dce6e5 !important;
    text-align: left !important;
    vertical-align: top !important;
  }

  body.is-printing-invoice .print-only-invoice .invoice-preview-table th:not(:first-child),
  body.is-printing-invoice .print-only-invoice .invoice-preview-table td:not(:first-child) {
    text-align: right !important;
  }

  body.is-printing-invoice .print-only-invoice .invoice-preview-table td::before {
    content: none !important;
  }

  body.is-printing-invoice .print-only-invoice .invoice-preview-table th {
    color: #fff !important;
    background: #0c2638 !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  body.is-printing-invoice .print-only-invoice .invoice-grand-total {
    color: #fff !important;
    background: #0f766e !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}

@media (max-width: 360px) {
  .hero h1 {
    font-size: 1.82rem;
  }

  .section-heading h2,
  .mission h2 {
    font-size: 1.62rem;
  }

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