/*
Theme Name: Proste Zasady
Theme URI: https://stopchaos.zdunskawola.pl/
Author: Zespół Proste Zasady
Description: Lekki motyw one-page dla zespołu tworzącego cyfrowe usługi oparte na prawie, danych i mapach.
Version: 10.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: proste-zasady
*/

:root {
  --navy: #0d1b2a;
  --navy-soft: #27374a;
  --teal: #007d7a;
  --teal-dark: #006562;
  --teal-pale: #e0f1f0;
  --gold: #d4a24c;
  --gold-dark: #b98224;
  --white: #ffffff;
  --mist: #f5f8f8;
  --gray: #e6e9eb;
  --line: #d8e1e4;
  --text-muted: #556575;
  --shadow: 0 24px 60px rgba(13, 27, 42, 0.14);
  --sans: Inter, "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
  --max: 1480px;
  --gutter: clamp(1.25rem, 4.2vw, 4.6rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--gold);
  color: var(--navy);
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

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

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 999;
  padding: 0.8rem 1rem;
  background: var(--navy);
  color: var(--white);
  font-weight: 750;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  color: var(--navy);
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: 0.17em;
  text-decoration: none;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.6rem, 4vw, 4.5rem);
}

.desktop-nav a {
  position: relative;
  font-weight: 620;
  text-decoration: none;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: -0.45rem;
  left: 0;
  height: 2px;
  background: var(--teal);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.desktop-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-button,
.mobile-nav {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(500px, 0.92fr) minmax(600px, 1.08fr);
  min-height: 660px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  max-width: 760px;
  padding: clamp(4rem, 7vw, 8rem) 1rem clamp(4rem, 7vw, 8rem) var(--gutter);
  animation: rise-in 580ms ease-out both;
}

.eyebrow,
.section-kicker {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.35rem;
  color: var(--teal-dark);
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0.15em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.hero h1 {
  max-width: 750px;
  margin: 0;
  font-size: clamp(4.4rem, 6.2vw, 7rem);
  font-weight: 790;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.hero h1 span {
  white-space: nowrap;
}

.hero-lead {
  max-width: 590px;
  margin: 2.2rem 0 2.5rem;
  color: var(--navy-soft);
  font-size: clamp(1.25rem, 1.7vw, 1.65rem);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 58px;
  padding: 0.95rem 2rem;
  border: 1.5px solid transparent;
  border-radius: 10px;
  font-weight: 760;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button--gold {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 10px 24px rgba(212, 162, 76, 0.2);
}

.button--gold:hover {
  background: #dfae59;
  box-shadow: 0 14px 28px rgba(212, 162, 76, 0.3);
}

.button--outline {
  border-color: var(--teal);
  background: var(--white);
  color: var(--teal-dark);
}

.button--outline:hover {
  background: var(--teal-pale);
}

.button--light {
  border-color: var(--white);
  background: var(--white);
  color: var(--navy);
}

.hero-map {
  position: relative;
  min-height: 660px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.12) 20%),
    linear-gradient(145deg, #f9fbfb, #edf4f4);
}

.map-grid {
  position: absolute;
  inset: -7% -4% -5% -8%;
  overflow: hidden;
  background-image:
    linear-gradient(28deg, transparent 46%, rgba(0, 125, 122, 0.17) 47%, rgba(0, 125, 122, 0.17) 48%, transparent 49%),
    linear-gradient(118deg, transparent 48%, rgba(0, 125, 122, 0.18) 49%, rgba(0, 125, 122, 0.18) 50%, transparent 51%),
    repeating-linear-gradient(3deg, transparent 0 55px, rgba(0, 125, 122, 0.17) 56px 57px),
    repeating-linear-gradient(92deg, transparent 0 76px, rgba(0, 125, 122, 0.16) 77px 78px);
  transform: rotate(-4deg) scale(1.08);
}

.map-grid::before,
.map-grid::after {
  position: absolute;
  z-index: 1;
  background: rgba(255, 255, 255, 0.94);
  content: "";
  box-shadow: 0 0 0 1px rgba(153, 177, 184, 0.28);
}

.map-grid::before {
  top: -8%;
  left: 31%;
  width: 92px;
  height: 120%;
  transform: rotate(23deg);
}

.map-grid::after {
  top: 47%;
  left: -5%;
  width: 115%;
  height: 76px;
  transform: rotate(-11deg);
}

.parcel {
  position: absolute;
  z-index: 0;
  display: block;
  border: 1px solid rgba(0, 125, 122, 0.35);
  background: rgba(0, 125, 122, 0.1);
  clip-path: polygon(9% 0, 100% 13%, 89% 100%, 0 84%);
}

.parcel--one { top: 15%; left: 20%; width: 210px; height: 138px; }
.parcel--two { top: 25%; right: 18%; width: 240px; height: 150px; transform: rotate(10deg); }
.parcel--three { top: 62%; left: 14%; width: 180px; height: 170px; transform: rotate(-8deg); }
.parcel--four { right: 5%; bottom: 15%; width: 220px; height: 190px; }
.parcel--five { top: 40%; left: 49%; width: 170px; height: 120px; transform: rotate(16deg); }

.route {
  position: absolute;
  z-index: 4;
  display: block;
  height: 0;
  border-top: 3px dotted var(--teal);
  transform-origin: left center;
}

.route--one { top: 27%; left: 25%; width: 205px; transform: rotate(21deg); }
.route--two { top: 38%; left: 47%; width: 196px; transform: rotate(112deg); }
.route--three { top: 67%; left: 41%; width: 240px; transform: rotate(131deg); }

.route-dot {
  position: absolute;
  z-index: 5;
  width: 13px;
  height: 13px;
  border: 2px solid white;
  border-radius: 50%;
  background: var(--teal);
}

.dot--one { top: 26%; left: 24%; }
.dot--two { top: 37%; left: 46%; }
.dot--three { top: 63%; left: 39%; }
.dot--four { top: 76%; left: 31%; }

.map-pin {
  position: absolute;
  z-index: 6;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50% 50% 50% 0;
  background: var(--gold);
  box-shadow: 0 8px 18px rgba(13, 27, 42, 0.16);
  transform: rotate(-45deg);
}

.map-pin i {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--white);
}

.pin--one { top: 20%; left: 27%; }
.pin--two { top: 17%; right: 30%; }
.pin--three { bottom: 20%; left: 28%; }

.decision-card {
  position: absolute;
  z-index: 8;
  right: 10%;
  bottom: 8%;
  width: min(380px, 48%);
  padding: 2rem;
  border: 1px solid rgba(13, 27, 42, 0.06);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  animation: rise-in 680ms 120ms ease-out both;
}

.decision-card > p {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  color: var(--navy-soft);
  font-size: 0.9rem;
}

.decision-card > p span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

.decision-card h2 {
  margin: 0.65rem 0 1.2rem;
  font-size: 1.45rem;
}

.decision-card ul {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.decision-card li {
  display: grid;
  grid-template-columns: 28px 1fr 24px;
  gap: 0.65rem;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid #edf0f1;
  color: var(--navy-soft);
  font-size: 0.86rem;
}

.decision-card li:last-child {
  border-bottom: 0;
}

.decision-card li b {
  color: var(--teal);
  font-size: 1.35rem;
}

.decision-card li i {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border: 1px solid var(--teal);
  border-radius: 50%;
  color: var(--teal);
  font-size: 0.72rem;
  font-style: normal;
}

.service-strip {
  padding: 2.4rem var(--gutter) 2.7rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fbfcfc, #f4f7f7);
}

.service-strip > h2 {
  margin: 0 0 1.8rem;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  text-align: center;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(1120px, 100%);
  margin: 0 auto;
}

.service-grid article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 0.25rem 1.7rem;
  border-right: 1px solid var(--line);
}

.service-grid article:last-child {
  border-right: 0;
}

.service-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  color: var(--teal);
  font-size: 2.1rem;
  font-weight: 700;
}

.service-grid h3,
.service-grid p {
  margin: 0;
}

.service-grid h3 {
  font-size: 0.98rem;
}

.service-grid p {
  margin-top: 0.2rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.section {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(5.5rem, 9vw, 9rem) var(--gutter);
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(190px, 0.32fr) minmax(0, 1fr);
  gap: clamp(2rem, 7vw, 8rem);
  align-items: start;
  margin-bottom: clamp(3rem, 6vw, 5.5rem);
}

.section-intro h2 {
  max-width: 960px;
  margin: -0.15em 0 0;
  font-size: clamp(2.7rem, 5vw, 5.3rem);
  font-weight: 740;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.section-intro--center {
  display: block;
  max-width: 930px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-intro--center .section-kicker {
  justify-content: center;
}

.problem-section {
  background: var(--white);
}

.problem-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 7vw, 8rem);
}

.problem-lead {
  margin: 0;
  color: var(--navy-soft);
  font-size: clamp(1.25rem, 1.9vw, 1.65rem);
  line-height: 1.55;
}

.problem-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.problem-cards article {
  min-height: 280px;
  padding: 2rem;
  border-right: 1px solid var(--line);
  background: var(--mist);
}

.problem-cards article:last-child {
  border-right: 0;
}

.problem-cards article > span,
.process-grid article > span {
  color: var(--teal);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.problem-cards h3 {
  margin: 5rem 0 0.8rem;
  font-size: 1.2rem;
}

.problem-cards p {
  margin: 0;
  color: var(--text-muted);
}

.problem-cards .problem-card--accent {
  background: var(--teal);
  color: var(--white);
}

.problem-cards .problem-card--accent > span,
.problem-cards .problem-card--accent p {
  color: rgba(255, 255, 255, 0.82);
}

.solution-section {
  width: 100%;
  max-width: none;
  background: var(--mist);
}

.solution-section > * {
  width: min(100%, calc(var(--max) - 2 * var(--gutter)));
  margin-right: auto;
  margin-left: auto;
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--line);
}

.journey-grid article {
  padding: 1.8rem;
  background: var(--white);
}

.journey-top {
  display: flex;
  justify-content: space-between;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 800;
}

.journey-top i {
  color: var(--gold);
  font-size: 1.35rem;
  font-style: normal;
}

.journey-figure {
  position: relative;
  display: grid;
  height: 170px;
  margin: 1.4rem 0 1.6rem;
  place-items: center;
  border-radius: 12px;
  background-color: var(--mist);
  background-image: linear-gradient(rgba(0, 125, 122, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 125, 122, 0.09) 1px, transparent 1px);
  background-size: 24px 24px;
  overflow: hidden;
}

.journey-figure::before {
  position: absolute;
  width: 96px;
  height: 96px;
  border: 2px solid var(--teal);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  content: "";
}

.journey-figure--2::before { border-radius: 18px; transform: rotate(18deg); }
.journey-figure--3::before { border-color: var(--gold); border-radius: 8px; transform: rotate(45deg); }
.journey-figure--4::before { border: 0; background: var(--teal); }

.journey-figure b {
  position: relative;
  z-index: 2;
  color: var(--teal);
  font-size: 2.4rem;
}

.journey-figure--4 b {
  color: var(--white);
}

.journey-grid h3 {
  margin: 0 0 0.6rem;
  font-size: 1.25rem;
}

.journey-grid p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.93rem;
}

.result-panel {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 2rem;
  padding: 2.4rem 3rem;
  border-radius: 18px;
  background: var(--navy);
  color: var(--white);
}

.result-panel .section-kicker {
  color: #67c9c5;
}

.result-panel h3 {
  margin: 0;
  font-size: clamp(1.6rem, 2.4vw, 2.3rem);
}

.result-panel ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.result-panel li {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  font-size: 0.88rem;
}

.result-panel li span {
  display: grid;
  flex: 0 0 27px;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 900;
}

.case-study {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}

.case-copy {
  padding: clamp(5.5rem, 9vw, 9rem) var(--gutter);
}

.case-copy .section-kicker {
  color: #69cac6;
}

.case-copy h2 {
  margin: 0;
  font-size: clamp(4rem, 6vw, 6.8rem);
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.case-lead {
  max-width: 650px;
  margin: 2rem 0 2.5rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
}

.case-points {
  max-width: 650px;
  margin: 0 0 2.5rem;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  list-style: none;
}

.case-points li {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  min-height: 58px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.case-points span {
  color: #67c9c5;
  font-size: 0.76rem;
  font-weight: 800;
}

.award-section {
  width: 100%;
  max-width: none;
  background:
    radial-gradient(circle at 12% 18%, rgba(212, 162, 76, 0.14), transparent 32%),
    linear-gradient(145deg, #ffffff 0%, #f5f8f8 100%);
}

.award-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1fr);
  gap: clamp(3.5rem, 8vw, 9rem);
  align-items: center;
  width: min(100%, calc(var(--max) - 2 * var(--gutter)));
  margin: 0 auto;
}

.award-visual {
  position: relative;
  width: min(100%, 520px);
  margin: 0;
  justify-self: center;
}

.award-image-frame {
  overflow: hidden;
  padding: 0.65rem;
  border: 1px solid rgba(13, 27, 42, 0.12);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 30px 70px rgba(73, 16, 26, 0.2);
}

.award-image-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.award-visual figcaption {
  position: absolute;
  top: 2rem;
  right: -1.5rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.8rem 1.05rem;
  border: 1px solid rgba(13, 27, 42, 0.1);
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 12px 28px rgba(13, 27, 42, 0.2);
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.award-copy h2 {
  margin: 0 0 1.8rem;
  font-size: clamp(3.5rem, 6vw, 6.4rem);
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.award-copy > p:not(.section-kicker) {
  margin: 0 0 1.2rem;
  color: var(--navy-soft);
  font-size: clamp(1.05rem, 1.35vw, 1.22rem);
  line-height: 1.65;
}

.award-more {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: flex-start;
  margin-top: 2.2rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}

.award-more > span {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.award-more .button {
  max-width: 100%;
}

.case-demo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(4rem, 7vw, 8rem) var(--gutter);
  background: linear-gradient(145deg, #f7fbfb, #dcebea);
  color: var(--navy);
}

.demo-window {
  overflow: hidden;
  border: 1px solid rgba(13, 27, 42, 0.09);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 30px 80px rgba(13, 27, 42, 0.24);
}

.demo-bar {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  min-height: 54px;
  padding: 0 1.3rem;
  border-bottom: 1px solid var(--line);
}

.demo-bar span {
  margin-right: auto;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.demo-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5d8;
}

.demo-body {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  min-height: 430px;
}

.demo-search {
  position: absolute;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 1rem;
  width: min(410px, 38vw);
  margin: 1.5rem;
  padding: 1rem 1.1rem;
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(13, 27, 42, 0.14);
}

.demo-search small {
  grid-column: 1;
  color: var(--text-muted);
}

.demo-search strong {
  grid-column: 1;
  font-size: 0.92rem;
}

.demo-search span {
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: center;
  color: var(--teal);
  font-size: 1.5rem;
}

.demo-map {
  position: relative;
  display: grid;
  place-items: center;
  background-color: #e9f1f1;
  background-image: linear-gradient(32deg, transparent 47%, rgba(0, 125, 122, 0.24) 48%, transparent 49%),
    repeating-linear-gradient(4deg, transparent 0 56px, rgba(0, 125, 122, 0.17) 57px 58px),
    repeating-linear-gradient(92deg, transparent 0 65px, rgba(0, 125, 122, 0.17) 66px 67px);
}

.demo-location {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.demo-map b {
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  background: var(--white);
  color: var(--teal-dark);
  font-size: 0.75rem;
}

.demo-pin {
  display: grid;
  flex: 0 0 35px;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 50% 50% 50% 0;
  background: var(--gold);
  color: var(--white);
  transform: rotate(-45deg);
}

.demo-result {
  align-self: center;
  margin: 1.3rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.demo-result small {
  color: var(--teal-dark);
  font-weight: 750;
}

.demo-result h3 {
  margin: 0.75rem 0;
  font-size: 1.3rem;
}

.demo-result p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.demo-result > span {
  color: var(--teal-dark);
  font-size: 0.82rem;
  font-weight: 750;
}

.case-demo > p {
  margin: 1.3rem 0 0;
  color: var(--teal-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-align: right;
  text-transform: uppercase;
}

.process-section {
  background: var(--white);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-grid article {
  min-height: 260px;
  padding: 2rem;
  border-right: 1px solid var(--line);
}

.process-grid article:last-child {
  border-right: 0;
}

.process-grid h3 {
  margin: 5rem 0 0.75rem;
  font-size: 1.25rem;
}

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

.competence-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(3rem, 8vw, 9rem);
  border-top: 1px solid var(--line);
}

.section-intro--compact {
  display: block;
  margin: 0;
}

.section-intro--compact h2 {
  font-size: clamp(2.7rem, 4.2vw, 4.4rem);
}

.section-intro--compact > p:not(.section-kicker) {
  max-width: 620px;
  margin: 1.8rem 0 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.experience-copy {
  display: grid;
  gap: 1rem;
  max-width: 660px;
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.experience-copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
}

.competence-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--line);
}

.competence-grid article {
  min-height: 230px;
  padding: 2rem;
  background: var(--mist);
}

.competence-grid article > span {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border: 1px solid var(--teal);
  border-radius: 50%;
  color: var(--teal);
  font-weight: 820;
}

.competence-grid h3 {
  margin: 2.2rem 0 0.65rem;
}

.competence-grid p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.faq-section {
  display: grid;
  grid-template-columns: minmax(270px, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(3rem, 8vw, 9rem);
  border-top: 1px solid var(--line);
}

.faq-list {
  border-top: 1px solid var(--navy);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: grid;
  grid-template-columns: 42px 1fr 24px;
  gap: 1rem;
  align-items: center;
  min-height: 82px;
  cursor: pointer;
  list-style: none;
  font-size: 1.05rem;
  font-weight: 700;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary span {
  color: var(--teal);
  font-size: 0.75rem;
}

.faq-list summary i {
  color: var(--teal);
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 400;
  transition: transform 160ms ease;
}

.faq-list details[open] summary i {
  transform: rotate(45deg);
}

.faq-list details > p {
  max-width: 760px;
  margin: -0.5rem 0 0;
  padding: 0 2rem 1.8rem 58px;
  color: var(--text-muted);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(3rem, 8vw, 9rem);
  padding: clamp(5.5rem, 9vw, 9rem) var(--gutter);
  background: var(--navy);
  color: var(--white);
}

.contact-copy .section-kicker {
  color: #6fd0cc;
}

.contact-copy h2 {
  max-width: 750px;
  margin: 0;
  font-size: clamp(3rem, 5.5vw, 6rem);
  letter-spacing: -0.05em;
  line-height: 1;
}

.contact-copy > p:not(.section-kicker) {
  max-width: 630px;
  margin: 2rem 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.1rem;
}

.contact-note {
  display: flex;
  gap: 1rem;
  max-width: 520px;
  align-items: flex-start;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-note > span {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
}

.contact-note p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.contact-note strong {
  color: var(--white);
}

.contact-form {
  padding: clamp(1.5rem, 3.5vw, 3rem);
  border-radius: 20px;
  background: var(--white);
  color: var(--navy);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.contact-form label {
  display: block;
  margin-bottom: 1.15rem;
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.02em;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.9rem 0.95rem;
  border: 1px solid #bdc9cd;
  border-radius: 8px;
  background: #fbfcfc;
  color: var(--navy);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--teal);
  outline: 2px solid rgba(0, 125, 122, 0.18);
}

.contact-form .consent {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: var(--text-muted);
  font-weight: 500;
}

.contact-form .consent input {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 0.05rem 0 0;
}

.form-status {
  margin: 1rem 0 0;
  color: var(--text-muted);
  font-size: 0.74rem;
}

.form-status:not(:empty) {
  padding: 0.8rem;
  border-left: 3px solid var(--teal);
  background: var(--teal-pale);
  color: var(--navy);
}

.form-alternative {
  margin-top: 2rem;
}

.form-alternative__separator {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  margin: 0 0 1.25rem;
}

.form-alternative__separator::before,
.form-alternative__separator::after {
  height: 1px;
  background: #cad8db;
  content: "";
}

.form-alternative__separator span {
  display: grid;
  min-width: 3.25rem;
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  place-items: center;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.form-contact {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1.45rem 1.5rem;
  border: 1px solid rgba(0, 125, 122, 0.34);
  border-left: 4px solid var(--teal);
  border-radius: 14px;
  background: var(--teal-pale);
  box-shadow: 0 12px 28px rgba(8, 28, 46, 0.09);
  font-style: normal;
}

.form-contact__title {
  margin: 0;
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 750;
}

.form-contact__details {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  align-items: flex-start;
}

.form-contact__details a {
  display: block;
  width: fit-content;
  color: var(--teal-dark);
  font-size: 1rem;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.form-contact__details strong {
  display: block;
  margin-top: 0.55rem;
  color: var(--navy);
  font-size: 0.88rem;
}

.form-contact__details span {
  display: block;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 2.2rem var(--gutter);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--navy);
  color: var(--white);
}

.brand--footer {
  color: var(--white);
}

.site-footer > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.78rem;
}

.footer-meta {
  white-space: nowrap;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: minmax(430px, 0.9fr) minmax(460px, 1.1fr);
  }

  .hero h1 {
    font-size: clamp(4rem, 6vw, 5.5rem);
  }

  .service-grid article {
    grid-template-columns: 42px 1fr;
    padding: 0.25rem 1rem;
  }

  .service-icon {
    width: 40px;
    font-size: 1.7rem;
  }

  .problem-layout,
  .competence-section {
    grid-template-columns: 1fr;
  }

  .problem-lead {
    max-width: 820px;
  }

  .case-study {
    grid-template-columns: 1fr 1.15fr;
  }

  .demo-body {
    min-height: 370px;
  }

  .demo-search {
    width: 37vw;
  }
}

@media (max-width: 920px) {
  html {
    scroll-padding-top: 4.5rem;
  }

  .site-header {
    min-height: 70px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: flex;
    gap: 0.65rem;
    align-items: center;
    padding: 0.55rem 0;
    border: 0;
    background: transparent;
    color: var(--navy);
    font-weight: 750;
    cursor: pointer;
  }

  .menu-icon {
    font-size: 1.45rem;
    line-height: 1;
  }

  .mobile-nav {
    position: absolute;
    top: 70px;
    right: 0;
    left: 0;
    display: none;
    padding: 0.7rem var(--gutter) 1.2rem;
    border-bottom: 1px solid var(--line);
    background: var(--white);
    box-shadow: 0 16px 28px rgba(13, 27, 42, 0.1);
  }

  .mobile-nav--open {
    display: grid;
  }

  .mobile-nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
    font-weight: 680;
    text-decoration: none;
  }

  .mobile-nav a:last-child {
    border-bottom: 0;
  }

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

  .hero-copy {
    max-width: 820px;
    padding-top: 5rem;
    padding-bottom: 4rem;
  }

  .hero h1 {
    font-size: clamp(4rem, 10vw, 6rem);
  }

  .hero-map {
    min-height: 560px;
  }

  .decision-card {
    width: min(380px, 56%);
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem 0;
  }

  .service-grid article:nth-child(2) {
    border-right: 0;
  }

  .section-intro,
  .faq-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .problem-cards {
    grid-template-columns: 1fr;
  }

  .problem-cards article {
    min-height: 190px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .problem-cards article:last-child {
    border-bottom: 0;
  }

  .problem-cards h3 {
    margin-top: 2.7rem;
  }

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

  .result-panel {
    grid-template-columns: 1fr;
  }

  .case-study,
  .award-layout,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .award-copy {
    max-width: 820px;
  }

  .demo-search {
    width: min(410px, 76vw);
  }

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

  .process-grid article:nth-child(2) {
    border-right: 0;
  }

  .process-grid article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

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

  .site-footer > p:first-of-type {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

@media (max-width: 620px) {
  :root {
    --gutter: 1.25rem;
  }

  .brand {
    font-size: 0.86rem;
  }

  .hero-copy {
    padding-top: 3.8rem;
    padding-bottom: 3.4rem;
  }

  .eyebrow {
    margin-bottom: 1rem;
    font-size: 0.64rem;
  }

  .hero h1 {
    font-size: clamp(3.15rem, 15.5vw, 5rem);
    line-height: 0.98;
  }

  .hero h1 span {
    white-space: normal;
  }

  .hero-lead {
    margin: 1.6rem 0 2rem;
    font-size: 1.18rem;
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .hero-map {
    min-height: 500px;
  }

  .map-grid {
    inset: -6% -18%;
  }

  .decision-card {
    right: var(--gutter);
    bottom: 1.5rem;
    left: var(--gutter);
    width: auto;
    padding: 1.4rem;
  }

  .service-strip {
    padding-top: 2rem;
  }

  .service-strip > h2 {
    max-width: 320px;
    margin-right: auto;
    margin-left: auto;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .service-grid article {
    padding: 1rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .service-grid article:last-child {
    border-bottom: 0;
  }

  .section,
  .case-copy,
  .case-demo,
  .contact-section {
    padding-top: 4.8rem;
    padding-bottom: 4.8rem;
  }

  .section-intro {
    margin-bottom: 2.7rem;
  }

  .section-intro h2,
  .section-intro--compact h2 {
    font-size: clamp(2.35rem, 11vw, 3.5rem);
  }

  .problem-cards article {
    padding: 1.5rem;
  }

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

  .journey-figure {
    height: 145px;
  }

  .result-panel {
    padding: 1.8rem;
  }

  .result-panel ul {
    grid-template-columns: 1fr;
  }

  .case-copy h2 {
    font-size: clamp(3.7rem, 17vw, 5.6rem);
  }

  .award-layout {
    gap: 3rem;
  }

  .award-visual {
    width: min(100%, 430px);
  }

  .award-visual figcaption {
    top: 1rem;
    right: 1rem;
  }

  .award-copy h2 {
    font-size: clamp(3.2rem, 16vw, 5rem);
  }

  .award-more,
  .award-more .button {
    width: 100%;
  }

  .demo-body {
    grid-template-columns: 1fr;
    min-height: 620px;
  }

  .demo-search {
    width: calc(100% - 3rem);
  }

  .demo-result {
    align-self: auto;
  }

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

  .process-grid article {
    min-height: 210px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .process-grid article:last-child {
    border-bottom: 0;
  }

  .process-grid h3 {
    margin-top: 3rem;
  }

  .competence-grid article {
    min-height: 210px;
  }

  .faq-list summary {
    grid-template-columns: 30px 1fr 18px;
    gap: 0.65rem;
    min-height: 92px;
    font-size: 0.95rem;
  }

  .faq-list details > p {
    padding-left: 40px;
  }

  .contact-copy h2 {
    font-size: clamp(2.8rem, 13vw, 4.5rem);
  }

  .contact-form {
    padding: 1.35rem;
  }

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

  .site-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

}

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


.form-trap {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}
