/* ============================================================
   Orla Solutions — Foundation
   Tokens, reset, typography, layout primitives, buttons, focus.
   Section styles are added by later tasks.
   ============================================================ */

/* ---------- Brand fonts (self-hosted, AD-002) ----------
   League Spartan and Poppins, SIL Open Font License 1.1, from the
   Fontsource 5.3.0 packages. latin-ext is only downloaded when a page
   uses those characters (de, es, it, pt-BR accents are mostly latin). */
@font-face {
  font-family: "League Spartan";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/league-spartan-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "League Spartan";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/league-spartan-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "League Spartan";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/league-spartan-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "League Spartan";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/league-spartan-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/poppins-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/poppins-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/poppins-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/poppins-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/poppins-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/poppins-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Design tokens ---------- */
:root {
  /* Brand palette — frozen values, do not edit. */
  --brand-navy: #082866;
  --brand-azure-dark: #286097;
  --brand-azure-light: #4196c3;
  --brand-azure-medium: #3a87b8;
  --brand-gray: #d5d5d8;
  --brand-white: #faf9fc;
  --brand-azure-accent: #b0d2e4;

  /* Surfaces and text */
  --surface: #ffffff;
  --surface-alt: #f5f9fd;
  --line: #e3e8ef;
  /* Form field outline: >= 3:1 against surface and surface-alt (WCAG 1.4.11). */
  --field-border: #7d8ba1;
  --ink: #082866;
  --body: #33415c;
  --muted: #5a6b85;
  --header-bg: rgba(250, 249, 252, 0.94);
  --scrim: rgba(8, 40, 102, 0.55);

  /* Actions and focus */
  --action: #286097;
  --action-hover: #0b3578;
  --focus: #4196c3;
  --success: #1c6b3f;
  --success-surface: #eef7f1;
  --success-line: #c9e3d3;
  --danger: #a3231f;

  /* Typography */
  --font-heading: "League Spartan", "Segoe UI", system-ui, sans-serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text-h1: clamp(2.1rem, 4.4vw, 3.35rem);
  --text-h2: clamp(1.7rem, 3vw, 2.35rem);
  --text-h3: 1.1rem;
  --text-body: 1.0625rem;
  --text-lead: 1.15rem;
  --text-label: 0.78rem;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* Layout */
  --container: 1180px;
  --gutter: 24px;
  --header-h: 72px;
  --section-y: 64px;
  --measure: 68ch;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(8, 40, 102, 0.08);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--space-4));
}

body {
  min-height: 100vh;
  background: var(--brand-white);
  color: var(--body);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img {
  height: auto;
}

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

button {
  cursor: pointer;
}

ol,
ul {
  padding-left: 1.25em;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-family: var(--font-heading);
  font-weight: 700;
  text-wrap: balance;
}

h1 {
  font-size: var(--text-h1);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

h2 {
  font-size: var(--text-h2);
  line-height: 1.15;
}

h3 {
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: 1.3;
}

p {
  max-width: var(--measure);
}

a {
  color: var(--action);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--action-hover);
}

strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
}

.lead {
  max-width: var(--measure);
  color: var(--body);
  font-size: var(--text-lead);
  line-height: 1.55;
}

.label,
.section-label {
  color: var(--muted);
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: var(--space-3) var(--space-5);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease-out, border-color 160ms ease-out, color 160ms ease-out,
    transform 160ms ease-out;
}

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

.btn[disabled],
.btn:disabled {
  cursor: progress;
  opacity: 0.6;
}

.btn-primary {
  background: var(--action);
  color: var(--surface);
}

.btn-primary:hover {
  background: var(--action-hover);
  color: var(--surface);
}

.btn-secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--brand-navy);
  color: var(--brand-navy);
}

/* ---------- Focus ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* ---------- Accessibility primitives ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: var(--gutter);
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--brand-navy);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-4);
}

/* ============================================================
   Header, navigation and language switcher
   JS hooks: .site-header.is-scrolled and .main-nav.is-open are
   toggled by T17; #menu-toggle carries the matching aria-expanded.
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header-bg);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease-out;
}

/* JS hook: T17 adds .is-scrolled once the page scrolls. */
.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2); /* 12px from 480px up; 320px needs the room */
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  flex: none; /* the logo keeps its size; the nav adapts around it */
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  color: var(--brand-navy);
  text-decoration: none;
}

.site-header .brand img {
  width: 36px;
  height: 36px;
}

.brand-text {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
}

.brand-text span {
  color: var(--brand-azure-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* ---------- Language switcher ---------- */
.lang-switch {
  position: relative;
}

.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-width: 0;
  min-height: 44px;
  padding: 6px 8px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--body);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1;
  transition: background-color 160ms ease-out, border-color 160ms ease-out;
}

.lang-trigger:hover,
.lang-trigger[aria-expanded="true"] {
  background: var(--surface-alt);
  border-color: var(--brand-azure-accent);
}

.lang-current-flag,
.lang-flag {
  display: block;
  flex: none;
  width: 24px;
  height: 16px;
  border-radius: 2px;
}

.lang-current-name {
  display: none;
}

/* Below 480px the trigger shows the flag only: brand + trigger + menu
   button must fit 272px (320px viewport). The aria-label names the language. */
.lang-current-code {
  display: none;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.lang-chevron {
  flex: none;
  width: 14px;
  height: 14px;
  color: var(--muted);
  transition: transform 160ms ease-out;
}

.lang-trigger[aria-expanded="true"] .lang-chevron {
  transform: rotate(180deg);
}

.lang-options {
  position: absolute;
  top: calc(100% + var(--space-2));
  right: 0;
  z-index: 2;
  min-width: 220px;
  padding: var(--space-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* T17 toggles the hidden attribute; the rule keeps it authoritative. */
.lang-options[hidden] {
  display: none;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--body);
  font-size: 0.92rem;
  text-align: left;
  transition: background-color 160ms ease-out, color 160ms ease-out;
}

.lang-option:hover {
  background: var(--surface-alt);
  color: var(--brand-navy);
}

.lang-option[aria-pressed="true"] {
  background: var(--surface-alt);
  color: var(--brand-navy);
  font-weight: 600;
}

.lang-option:focus-visible {
  outline-offset: -2px;
}

/* ---------- Menu toggle ---------- */
.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--brand-navy);
  transition: background-color 160ms ease-out, border-color 160ms ease-out;
}

.menu-toggle:hover {
  background: var(--surface-alt);
  border-color: var(--brand-azure-accent);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 200ms var(--ease), opacity 160ms ease-out;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Navigation ---------- */
/* Off-canvas below 1160px. The panel is fixed, so the translated
   position never contributes to the document scroll width. */
.main-nav {
  position: fixed;
  top: var(--header-h);
  right: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  width: min(320px, 86vw);
  height: calc(100vh - var(--header-h));
  height: calc(100dvh - var(--header-h));
  padding: var(--space-5) var(--gutter) var(--space-7);
  overflow-y: auto;
  background: var(--surface);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 240ms var(--ease), visibility 240ms var(--ease);
}

/* JS hook: T17 toggles .is-open on the nav. */
.main-nav.is-open {
  transform: none;
  visibility: visible;
}

/* JS hook: T17 locks the page behind the open mobile menu. */
body.menu-locked {
  overflow: hidden;
}

.main-nav a:not(.btn) {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--body);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 160ms ease-out;
}

.main-nav a:not(.btn):hover {
  color: var(--brand-navy);
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

.main-nav .btn {
  width: 100%;
  margin-top: var(--space-3);
}

.skip-link:focus-visible {
  top: var(--space-4);
}

/* ============================================================
   Hero
   ============================================================ */

/* The sticky header already takes its own space in the flow, so the
   hero only needs regular section spacing above the copy. */
.hero {
  padding-top: var(--space-7);
  padding-bottom: var(--space-8);
  background: var(--surface-alt);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  gap: var(--space-7);
}

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

.eyebrow {
  margin-bottom: var(--space-4);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 20ch;
  color: var(--brand-navy);
}

.hero .lead {
  margin-top: var(--space-5);
  max-width: 60ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

/* ---------- Fact strip ---------- */
.fact-strip {
  display: grid;
  gap: var(--space-3);
  margin: var(--space-7) 0 0;
  padding: var(--space-5) 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ---------- Process panel ---------- */
/* Decorative (aria-hidden): a product-style window that shows the path
   from a need to working software. Rows stack at every width, so the
   panel can never push the page wider than the viewport. */
.hero-panel {
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel-bar {
  display: flex;
  gap: 6px;
  padding: var(--space-3) var(--space-4);
  background: var(--surface-alt);
  border-bottom: 1px solid var(--line);
}

.panel-bar span {
  width: 10px;
  height: 10px;
  background: var(--brand-gray);
  border-radius: 50%;
}

.panel-steps {
  margin: 0;
  padding: var(--space-2) 0;
  list-style: none;
}

.panel-step {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
}

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

.panel-icon {
  width: 36px;
  height: 36px;
  padding: 7px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  fill: none;
  stroke: var(--brand-azure-dark);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.panel-label {
  min-width: 0;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.panel-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.2;
  white-space: nowrap;
}

.panel-step.is-done .panel-state {
  background: var(--success-surface);
  border-color: var(--success-line);
  color: var(--success);
}

.panel-step.is-active .panel-icon {
  background: var(--brand-navy);
  border-color: var(--brand-navy);
  stroke: var(--brand-white);
}

.panel-step.is-active .panel-state {
  background: var(--surface-alt);
  border-color: var(--brand-azure-accent);
  color: var(--brand-navy);
}

/* Status dot: the only looping motion on the page; reduced-motion stops it. */
.panel-step.is-active .panel-state::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--brand-azure-light);
  border-radius: 50%;
  animation: panel-pulse 2400ms ease-in-out infinite;
}

.panel-step.is-next .panel-label {
  color: var(--muted);
}

@keyframes panel-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}

/* ============================================================
   Content sections: capabilities, process, why, audiences
   ============================================================ */

.section-head {
  max-width: var(--measure);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--space-7);
}

.section-label {
  margin-bottom: var(--space-4);
}

.section-head .lead {
  margin-top: var(--space-4);
}

/* ---------- Capabilities ---------- */
/* Hairline separators instead of six shadowed cards. */
.capability-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.capability-list li {
  padding-block: var(--space-5);
  border-top: 1px solid var(--line);
}

.capability-icon {
  width: 28px;
  height: 28px;
  margin-bottom: var(--space-3);
  fill: none;
  stroke: var(--brand-azure-dark);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.capability-list h3 {
  margin-bottom: var(--space-2);
  color: var(--brand-navy);
}

.capability-list p {
  color: var(--body);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* ---------- Process (single dark surface) ---------- */
.section--process {
  background: var(--brand-navy);
  color: var(--brand-white);
}

.section--process .section-head {
  border-bottom-color: var(--brand-azure-dark);
}

.section--process h2,
.section--process h3 {
  color: var(--brand-white);
}

.section--process .section-label,
.section--process .lead {
  color: var(--brand-azure-accent);
}

.step-list {
  display: grid;
  gap: var(--space-6);
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-list li {
  padding-top: var(--space-5);
  border-top: 1px solid var(--brand-azure-dark);
}

.step-num {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--brand-azure-light);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
}

.step-list p {
  margin-top: var(--space-2);
  color: var(--brand-azure-accent);
  font-size: 0.95rem;
}

/* ---------- Why OrlaSolutions ---------- */
.why-list {
  display: grid;
  gap: var(--space-6);
  margin: 0;
  padding: 0;
  list-style: none;
}

.why-list li {
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}

.why-list h3 {
  margin-bottom: var(--space-2);
  color: var(--brand-navy);
}

.why-list p {
  font-size: 0.98rem;
}

/* ---------- Audiences ---------- */
.section--audiences {
  background: var(--surface-alt);
}

.audience-grid {
  display: grid;
  gap: var(--space-5);
}

.audience-grid article {
  padding: var(--space-6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.audience-grid h3 {
  margin-bottom: var(--space-3);
  color: var(--brand-navy);
}

.audience-grid p {
  font-size: 0.95rem;
}

/* ============================================================
   CTA band, contact, form, dialog and footer
   ============================================================ */

/* ---------- CTA band ---------- */
.cta-band {
  padding-block: var(--space-8);
  background: var(--brand-azure-dark);
  color: var(--brand-white);
}

.cta-band-inner {
  display: grid;
  justify-items: center;
  gap: var(--space-4);
  text-align: center;
}

.cta-band h2 {
  color: var(--brand-white);
}

.cta-band p {
  max-width: 52ch;
  color: var(--brand-white);
}

/* Light button so it separates from the band itself. */
.cta-band .btn-primary {
  margin-top: var(--space-2);
  background: var(--surface);
  color: var(--brand-navy);
}

.cta-band .btn-primary:hover {
  background: var(--surface-alt);
  color: var(--brand-navy);
}

.cta-band :focus-visible {
  outline-color: var(--surface);
}

/* ---------- Contact ---------- */
.contact-inner {
  display: grid;
  gap: var(--space-7);
}

.contact-direct {
  display: grid;
  gap: var(--space-1);
  margin-top: var(--space-6);
}

.contact-direct-label {
  color: var(--muted);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-direct-link {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 44px;
  color: var(--action);
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* ---------- Form ---------- */
.contact-form {
  display: grid;
  /* minmax(0, 1fr): a fixed-width child (the hCaptcha iframe) must never
     widen the column past the card on narrow phones. */
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
  min-width: 0;
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.field {
  display: grid;
  gap: var(--space-2);
  min-width: 0;
}

.field label {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.4;
}

.field input:not([type="checkbox"]),
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 12px 14px;
  background: var(--surface-alt);
  border: 1px solid var(--field-border);
  border-radius: var(--radius-sm);
  color: var(--body);
  font: inherit;
  transition: border-color 160ms ease-out;
}

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

.field input:not([type="checkbox"]):hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--brand-azure-dark);
}

.field input:not([type="checkbox"]):focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  border-color: var(--focus);
}

.field--check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: var(--space-3);
}

.field--check input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--action);
}

.field--check label {
  display: block;
  min-height: 44px;
  color: var(--body);
  font-size: 0.92rem;
  font-weight: 400;
}

.field--check a {
  font-weight: 600;
}

.field-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.field-note a {
  font-weight: 600;
}

/* JS hook: script.js writes the translated message and sets aria-invalid. */
.field-error {
  margin: 0;
  color: var(--danger);
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.4;
}

.field-error:empty {
  display: none;
}

.field--check .field-error {
  grid-column: 2;
}

/* Reserved for the hCaptcha widget to avoid layout shift. script.js sets
   --captcha-scale (≤ 1, fits the slot width) and --captcha-h (scaled height). */
.captcha-slot {
  height: var(--captcha-h, 78px);
}

.captcha-box {
  width: max-content;
  transform: scale(var(--captcha-scale, 1));
  transform-origin: 0 0;
}

/* hCaptcha sets an inline border-radius: 4px on its iframe. A rounded clip on a
   cross-origin iframe inside a transformed ancestor (.captcha-box) breaks touch
   hit-testing on iOS Safari and Chrome Android: the checkbox stops responding.
   !important is the only way to beat the inline style. */
.captcha-box iframe {
  display: block;
  border-radius: 0 !important;
}

.captcha-slot.is-unavailable {
  height: auto;
  min-height: 0;
}

.field [aria-invalid="true"] {
  border-color: var(--danger);
}

.field [aria-invalid="true"]:focus-visible {
  outline-color: var(--danger);
}

/* Honeypot: clipped, never display:none, so bots still fill it. */
.form-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

#contact-submit {
  width: 100%;
}

/* JS hooks: T18 sets .is-success / .is-error on #form-note. */
.form-note {
  min-height: 1.5em;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.form-note.is-success {
  color: var(--success);
}

.form-note.is-error {
  color: var(--danger);
}

/* ---------- Success dialog ---------- */
.modal {
  width: calc(100% - 32px);
  max-width: 480px;
  max-height: calc(100vh - 48px);
  margin: auto;
  padding: 0;
  overflow: auto;
  background: var(--surface);
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--body);
}

.modal::backdrop {
  background: var(--scrim);
}

.modal[open] {
  animation: modal-in 200ms ease-out;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.modal-card {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-6);
}

/* ============================================================
   Extra pages: 404, thanks, Impressum, Datenschutz
   ============================================================ */

.page-simple,
.page-legal {
  min-height: 60vh;
  background: var(--surface-alt);
}

.page-simple-inner {
  display: grid;
  justify-items: start;
  gap: var(--space-5);
  max-width: calc(var(--measure) + 2 * var(--gutter));
}

.page-legal-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
  max-width: calc(var(--measure) + 2 * var(--gutter));
}

.page-back a {
  font-weight: 600;
}

/* Visible marker while the legal data is a placeholder (LEGAL-02). */
.legal-notice {
  max-width: none;
  padding: var(--space-4) var(--space-5);
  background: var(--surface);
  border: 1px solid var(--danger);
  border-left-width: 4px;
  border-radius: var(--radius-sm);
  color: var(--danger);
  font-size: 0.92rem;
  font-weight: 500;
}

.legal-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-3);
  /* Long German compounds and e-mail addresses must wrap at 320px. */
  overflow-wrap: break-word;
  hyphens: auto;
}

.legal-content h2 {
  margin-top: var(--space-5);
  font-size: 1.2rem;
}

.legal-content address {
  font-style: normal;
}

.legal-content code {
  font-size: 0.92em;
}

.legal-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: var(--space-8) var(--space-6);
  background: var(--brand-navy);
  color: var(--brand-azure-accent);
}

.site-footer .brand {
  min-height: 0;
}

/* Full logo for dark backgrounds (logo-orla-dark-160.png, shown at 80px). */
.footer-logo {
  width: 80px;
  height: 80px;
}

.footer-inner {
  display: grid;
  gap: var(--space-7);
}

.footer-brand {
  display: grid;
  justify-items: start;
  gap: var(--space-3);
}

.footer-tagline {
  color: var(--brand-azure-accent);
  font-size: 0.92rem;
}

.footer-nav {
  display: grid;
  gap: var(--space-6);
}

/* The markup uses <h2>; it is a label, not a heading level in the visual scale. */
.footer-col-title {
  margin-bottom: var(--space-2);
  color: var(--brand-white);
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

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

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--brand-azure-accent);
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 160ms ease-out;
}

.footer-links a:hover {
  color: var(--brand-white);
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.footer-rights {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
  color: var(--brand-azure-accent);
  font-size: 0.85rem;
}

/* ============================================================
   Wider viewports
   Mobile-first: the base rules above are the small-screen layout.
   Every min-width query lives here, in ascending order.
   ============================================================ */

@media (min-width: 480px) {
  .header-inner {
    gap: var(--space-3);
  }

  .site-header .brand img {
    width: 40px;
    height: 40px;
  }

  .brand-text {
    font-size: 1.1rem;
  }

  .lang-trigger {
    gap: var(--space-2);
    padding: 6px 10px;
  }

  .lang-current-code {
    display: block;
  }

  #contact-submit {
    width: auto;
    justify-self: start;
  }
}

@media (min-width: 760px) {
  .lang-current-name {
    display: block;
    overflow: hidden;
    max-width: 14ch;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .fact-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-5);
  }

  .fact-strip li + li {
    padding-left: var(--space-5);
    border-left: 1px solid var(--line);
  }

  .capability-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--space-7);
  }

  .why-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-7) var(--space-8);
  }

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

  .contact-form {
    padding: var(--space-6);
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-7) var(--space-8);
  }

  .footer-brand,
  .footer-nav,
  .footer-rights {
    grid-column: 1 / -1;
  }

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

@media (min-width: 960px) {
  :root {
    --section-y: 96px;
  }

  .hero {
    padding-top: var(--space-9);
  }

  .hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: var(--space-8);
  }

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

  .step-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-5);
  }

  .contact-inner {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: start;
    gap: var(--space-8);
  }
}

@media (min-width: 1160px) {
  .main-nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: var(--space-3);
    width: auto;
    height: auto;
    padding: 0;
    overflow: visible;
    background: transparent;
    border-left: 0;
    box-shadow: none;
    transform: none;
    visibility: visible;
  }

  /* Poppins is wider than the system fallback: keep every item on one line. */
  .main-nav a:not(.btn) {
    font-size: 0.88rem;
    white-space: nowrap;
  }

  .main-nav .btn {
    width: auto;
    margin-top: 0;
    padding-inline: var(--space-4);
    font-size: 0.9rem;
    white-space: nowrap;
  }

  /* The header must fit the longest locale (pt-BR) at 1160px:
     the plain Contact link duplicates the CTA next to it, and the
     language trigger shows flag + code only (its aria-label names it). */
  .main-nav a.nav-link-contact,
  .lang-current-name {
    display: none;
  }

  .menu-toggle {
    display: none;
  }

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

  .footer-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
    gap: var(--space-8);
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-nav {
    grid-column: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-6);
  }
}

/* ============================================================
   Motion
   ============================================================ */

/* JS hooks: T17 adds .js to <html> and .in to each revealed element.
   The hidden state is gated behind html.js, so a visitor without
   JavaScript always sees the content. */
html.js .reveal,
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 450ms var(--ease), transform 450ms var(--ease);
}

html.js .reveal.in,
html.js [data-reveal].in {
  opacity: 1;
  transform: none;
}

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

  html.js .reveal,
  html.js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   Print
   ============================================================ */

@media print {
  .site-header,
  .main-nav,
  .lang-switch,
  .menu-toggle,
  .skip-link,
  .cta-band,
  .contact-form {
    display: none;
  }

  body {
    background: var(--surface);
    color: var(--ink);
  }

  .hero,
  .section--process,
  .section--audiences,
  .site-footer {
    background: var(--surface);
    color: var(--ink);
  }

  .section--process h2,
  .section--process h3,
  .section--process .section-label,
  .section--process .lead,
  .section--process .step-list p,
  .step-num,
  .footer-col-title,
  .footer-links a,
  .footer-rights,
  .footer-tagline {
    color: var(--ink);
  }

  /* The dark-background logo has white lettering; it would vanish on paper. */
  .footer-logo {
    display: none;
  }

  .hero-panel {
    box-shadow: none;
  }

  .footer-links a {
    text-decoration: underline;
  }
}
