/* ==========================================================================
   TechBio Water — style.css
   Site institutionnel / ingénierie de l'eau
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */

:root {
  --night: #07162f;
  --night-2: #0d2344;
  --blue: #1076b9;
  --cyan: #24b8c7;
  --aqua: #d9f4f2;
  --green: #8fd7c5;
  --white: #ffffff;
  --light: #f5f8fb;
  --line: #dbe6ee;
  --text: #1d2b3a;
  --muted: #637487;

  --surface: #ffffff;
  --surface-soft: #f7fafc;
  --surface-dark: #0a1b35;
  --surface-dark-2: #0d2344;

  --shadow-sm: 0 8px 24px rgba(7, 22, 47, 0.08);
  --shadow-md: 0 18px 50px rgba(7, 22, 47, 0.12);
  --shadow-lg: 0 30px 80px rgba(7, 22, 47, 0.18);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  --container: 1240px;
  --header-h: 84px;

  --transition-fast: 180ms ease;
  --transition: 280ms ease;
  --transition-slow: 500ms cubic-bezier(.2,.7,.2,1);
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    "Apple Color Emoji",
    "Segoe UI Emoji",
    sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

img {
  height: auto;
}

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

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

button {
  color: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
dl,
dd {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--night);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5.8rem);
  font-weight: 760;
  margin-bottom: 1.4rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 740;
  margin-bottom: 1.2rem;
}

h3 {
  font-size: clamp(1.28rem, 2vw, 1.65rem);
  font-weight: 720;
  margin-bottom: 0.85rem;
}

h4 {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

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

::selection {
  background: var(--aqua);
  color: var(--night);
}

/* --------------------------------------------------------------------------
   3. Accessibility
   -------------------------------------------------------------------------- */

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 10px;
  left: 10px;
  transform: translateY(-160%);
  background: var(--night);
  color: var(--white);
  padding: 0.8rem 1rem;
  border-radius: 8px;
  transition: transform var(--transition-fast);
}

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

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

[hidden] {
  display: none !important;
}

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */

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

.section {
  position: relative;
  padding: clamp(72px, 9vw, 128px) 0;
}

.section-light {
  background: var(--light);
}

.section-dark {
  background:
    radial-gradient(circle at 15% 10%, rgba(36, 184, 199, 0.12), transparent 38%),
    linear-gradient(145deg, var(--night), var(--night-2));
  color: rgba(255,255,255,.82);
}

.section-dark h2,
.section-dark h3,
.section-dark h4,
.heading-light,
.lead-light {
  color: var(--white);
}

.section-intro {
  max-width: 820px;
  margin-bottom: clamp(36px, 5vw, 68px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.section-heading--wide {
  max-width: 980px;
}

.lead {
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  color: var(--muted);
  max-width: 820px;
}

.lead-light {
  color: rgba(255,255,255,.84);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1rem;
  color: var(--blue);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .16em;
}

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

.eyebrow-light {
  color: var(--cyan);
}

.btn-row,
.hero__actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.text-link,
.text-link--light,
.footer-external-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-weight: 700;
}

.text-link {
  color: var(--blue);
}

.text-link--light,
.footer-external-link {
  color: var(--white);
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: .9rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 750;
  line-height: 1.1;
  transition:
    transform var(--transition-fast),
    background var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast);
  cursor: pointer;
}

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

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 10px 26px rgba(16,118,185,.2);
}

.btn-primary:hover {
  box-shadow: 0 16px 34px rgba(16,118,185,.28);
}

.btn-secondary {
  color: var(--night);
  background: var(--white);
  border-color: var(--line);
}

.btn-light {
  background: var(--white);
  color: var(--night);
}

.btn-external-light {
  background: rgba(255,255,255,.1);
  color: var(--white);
  border-color: rgba(255,255,255,.28);
  backdrop-filter: blur(10px);
}

.btn-external {
  gap: .4rem;
}

.btn-small {
  min-height: 44px;
  padding: .72rem 1rem;
  font-size: .92rem;
}

/* --------------------------------------------------------------------------
   6. Header / navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(219,230,238,.85);
  backdrop-filter: blur(18px);
  transition:
    box-shadow var(--transition),
    background var(--transition),
    transform var(--transition);
}

.site-header.is-scrolled {
  background: rgba(255,255,255,.97);
  box-shadow: 0 8px 28px rgba(7,22,47,.08);
}

.site-header__inner {
  width: min(calc(100% - 32px), 1440px);
  min-height: var(--header-h);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}

.site-brand img {
  width: 176px;
  max-height: 54px;
  object-fit: contain;
}

.desktop-nav {
  margin-left: auto;
}

.desktop-nav__list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2px;
}

.desktop-nav a,
.nav-dropdown__toggle,
.header-contact-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .68rem .72rem;
  border: 0;
  background: transparent;
  color: var(--night-2);
  font-size: .88rem;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
  border-radius: 10px;
}

.desktop-nav a:hover,
.nav-dropdown__toggle:hover,
.header-contact-link:hover,
.desktop-nav a[aria-current="page"] {
  color: var(--blue);
  background: var(--light);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown__toggle {
  gap: .35rem;
}

.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 290px;
  padding: 10px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.nav-dropdown__menu a {
  width: 100%;
  padding: .8rem .9rem;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  padding: 11px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--night);
  margin: 4px 0;
  border-radius: 999px;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 1090;
  background: rgba(7,22,47,.46);
  backdrop-filter: blur(3px);
}

.mobile-menu {
  position: fixed;
  z-index: 1100;
  top: 0;
  right: 0;
  width: min(92vw, 420px);
  height: 100dvh;
  padding: 22px;
  overflow-y: auto;
  background: var(--white);
  box-shadow: -20px 0 60px rgba(7,22,47,.2);
}

.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.mobile-menu__top img {
  width: 170px;
}

.mobile-menu__close {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 12px;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.mobile-menu__list {
  list-style: none;
  border-top: 1px solid var(--line);
}

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

.mobile-menu__list a {
  display: block;
  padding: 1rem 0;
  color: var(--night);
  font-weight: 700;
}

.mobile-menu__subitem a {
  padding-left: 18px;
  font-weight: 600;
  color: var(--muted);
}

.mobile-menu__actions {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
}

.hero-home {
  min-height: min(850px, calc(100vh - var(--header-h)));
  display: grid;
  align-items: end;
  background: var(--night);
}

.hero__image,
.hero__overlay {
  position: absolute;
  inset: 0;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  background:
    linear-gradient(90deg, rgba(7,22,47,.92) 0%, rgba(7,22,47,.72) 42%, rgba(7,22,47,.28) 72%, rgba(7,22,47,.18) 100%),
    linear-gradient(180deg, rgba(7,22,47,.08), rgba(7,22,47,.44));
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(900px, 100%);
  padding: clamp(90px, 11vw, 150px) 0 clamp(80px, 9vw, 120px);
  color: var(--white);
}

.hero__content h1 {
  color: var(--white);
}

.hero__lead {
  max-width: 760px;
  font-size: clamp(1.12rem, 1.65vw, 1.42rem);
  color: rgba(255,255,255,.86);
  margin-bottom: 2rem;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 20px;
  z-index: 2;
  transform: translateX(-50%);
  color: rgba(255,255,255,.72);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(54px, 7vw, 94px) 0 clamp(70px, 8vw, 110px);
  background:
    radial-gradient(circle at 80% 15%, rgba(36,184,199,.18), transparent 35%),
    linear-gradient(135deg, var(--night), var(--night-2));
}

.page-hero--water::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -120px;
  bottom: -180px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow:
    0 0 0 40px rgba(255,255,255,.03),
    0 0 0 80px rgba(255,255,255,.02);
}

.page-hero__content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding-top: 30px;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2.7rem, 5.4vw, 5rem);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  color: rgba(255,255,255,.66);
  font-size: .9rem;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(255,255,255,.35);
}

.breadcrumb a:hover {
  color: var(--white);
}

/* --------------------------------------------------------------------------
   8. Shared cards / grids
   -------------------------------------------------------------------------- */

.pillars-grid,
.expertise-grid,
.architecture-grid,
.sector-grid,
.deliverables-grid,
.decision-grid,
.resource-grid,
.technology-grid,
.company-info-grid,
.support-grid {
  display: grid;
  gap: 22px;
}

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

.pillar-card,
.expertise-card,
.deliverable-card,
.decision-card,
.resource-card,
.company-info-card,
.support-card {
  position: relative;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.pillar-card:hover,
.expertise-card:hover,
.deliverable-card:hover,
.decision-card:hover,
.resource-card:hover,
.company-info-card:hover,
.support-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(16,118,185,.24);
}

.pillar-card__number,
.sector-card__number,
.decision-card__index,
.support-card__index,
.process-card__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  margin-bottom: 1.1rem;
  border-radius: 999px;
  background: var(--aqua);
  color: var(--night);
  font-weight: 800;
  font-size: .85rem;
}

.pillar-card__kicker,
.card-label {
  color: var(--blue);
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .13em;
}

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

.expertise-card__icon,
.deliverable-card__icon,
.resource-card__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--aqua), rgba(143,215,197,.65));
  color: var(--night);
  font-weight: 800;
}

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

.architecture-card {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
}

.architecture-card--blue {
  color: var(--white);
  background:
    radial-gradient(circle at 90% 5%, rgba(36,184,199,.3), transparent 30%),
    linear-gradient(145deg, #0a3d67, var(--blue));
}

.architecture-card--aqua {
  color: var(--night);
  background:
    linear-gradient(145deg, #e8fbf8, var(--aqua));
}

.architecture-card--blue h3,
.architecture-card--blue .card-label {
  color: var(--white);
}

.architecture-card__content {
  max-width: 560px;
}

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

.sector-card {
  padding: 26px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--line);
}

.sector-card__number {
  margin-bottom: .9rem;
}

/* --------------------------------------------------------------------------
   9. Split layouts / media
   -------------------------------------------------------------------------- */

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(36px, 6vw, 86px);
}

.split-layout--reverse > :first-child {
  order: 2;
}

.split-layout--reverse > :last-child {
  order: 1;
}

.split-layout--center {
  align-items: center;
}

.split-layout__content {
  max-width: 650px;
}

.media-card,
.technical-visual {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.media-card img,
.technical-visual img {
  width: 100%;
  object-fit: cover;
}

.media-card--large img {
  min-height: 520px;
}

.media-card--panoramic img {
  aspect-ratio: 16/7;
  object-fit: cover;
}

.media-card--dark {
  background: var(--night);
  border-color: rgba(255,255,255,.14);
}

.technical-visual__intro,
.media-card figcaption,
.technical-visual figcaption {
  padding: 16px 18px 18px;
  color: var(--muted);
  font-size: .9rem;
  background: var(--white);
}

.technical-visual--large img {
  min-height: 500px;
}

.check-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 0 0 4px rgba(36,184,199,.12);
}

.check-list--light li {
  color: rgba(255,255,255,.86);
}

/* --------------------------------------------------------------------------
   10. Flow / diagrams
   -------------------------------------------------------------------------- */

.flow-graphic {
  position: relative;
  min-height: 440px;
  display: grid;
  place-items: center;
}

.flow-graphic__center {
  width: 170px;
  height: 170px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--white), var(--aqua));
  color: var(--night);
  font-weight: 800;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.flow-graphic__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(36,184,199,.24);
}

.flow-graphic__ring--1 {
  width: 280px;
  height: 280px;
}

.flow-graphic__ring--2 {
  width: 390px;
  height: 390px;
}

.flow-graphic__chip {
  position: absolute;
  padding: .65rem .9rem;
  border-radius: 999px;
  background: rgba(255,255,255,.96);
  color: var(--night);
  box-shadow: var(--shadow-sm);
  font-size: .86rem;
  font-weight: 700;
}

.flow-graphic__chip:nth-of-type(1) { top: 6%; left: 50%; transform: translateX(-50%); }
.flow-graphic__chip:nth-of-type(2) { top: 28%; right: 2%; }
.flow-graphic__chip:nth-of-type(3) { bottom: 10%; right: 12%; }
.flow-graphic__chip:nth-of-type(4) { bottom: 10%; left: 12%; }
.flow-graphic__chip:nth-of-type(5) { top: 28%; left: 2%; }

/* --------------------------------------------------------------------------
   11. Synergy
   -------------------------------------------------------------------------- */

.section-synergy {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  display: grid;
  align-items: center;
  background: var(--night);
}

.section-synergy__image,
.section-synergy__overlay {
  position: absolute;
  inset: 0;
}

.section-synergy__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-synergy__overlay {
  background:
    linear-gradient(90deg, rgba(7,22,47,.92), rgba(7,22,47,.62) 55%, rgba(7,22,47,.35));
}

.synergy-panel {
  position: relative;
  z-index: 2;
  width: min(700px, 100%);
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg);
  background: rgba(7,22,47,.62);
  backdrop-filter: blur(14px);
  color: rgba(255,255,255,.84);
}

.synergy-panel h2,
.synergy-panel h3 {
  color: var(--white);
}

.synergy-brands {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 1.4rem 0;
  font-weight: 800;
  color: var(--white);
}

.synergy-brands__plus {
  color: var(--cyan);
}

/* --------------------------------------------------------------------------
   12. CTA
   -------------------------------------------------------------------------- */

.section-cta {
  padding: clamp(60px, 8vw, 100px) 0;
}

.cta-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 6vw, 70px);
  border-radius: var(--radius-lg);
  color: var(--white);
  background:
    radial-gradient(circle at 90% 20%, rgba(143,215,197,.28), transparent 30%),
    linear-gradient(135deg, var(--night), var(--blue));
  box-shadow: var(--shadow-lg);
}

.cta-panel h2,
.cta-panel h3,
.cta-panel p {
  color: var(--white);
}

.cta-panel p {
  max-width: 760px;
  color: rgba(255,255,255,.82);
}

/* --------------------------------------------------------------------------
   13. Process / approach
   -------------------------------------------------------------------------- */

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

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

.process-card {
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--white);
}

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

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

.quote-panel {
  padding: clamp(28px, 5vw, 54px);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--aqua), #effcfb);
  color: var(--night);
}

.quote-panel--dark {
  background: linear-gradient(145deg, var(--night), var(--night-2));
  color: var(--white);
}

.quote-panel--dark h2,
.quote-panel--dark h3,
.quote-panel--dark p {
  color: var(--white);
}

.quote-panel__eyebrow {
  color: var(--blue);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .78rem;
}

/* --------------------------------------------------------------------------
   14. Solutions / technologies
   -------------------------------------------------------------------------- */

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

.technology-grid--dark .technology-chip {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.16);
  color: var(--white);
}

.technology-chip,
.technology-chip--dark {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: .85rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--white);
  font-weight: 700;
  color: var(--night);
}

.technology-chip--dark {
  background: rgba(255,255,255,.08);
  color: var(--white);
  border-color: rgba(255,255,255,.15);
}

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

/* --------------------------------------------------------------------------
   15. Sector detail pages
   -------------------------------------------------------------------------- */

.sector-detail {
  display: grid;
  gap: 26px;
  padding: clamp(34px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.sector-detail + .sector-detail {
  margin-top: 28px;
}

.sector-detail__heading {
  max-width: 820px;
}

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

.sector-info-card {
  padding: 22px;
  border-radius: 18px;
  background: var(--light);
}

.sector-info-card--accent {
  background: var(--aqua);
}

.sector-detail--dark {
  background: linear-gradient(145deg, var(--night), var(--night-2));
  border-color: transparent;
  color: rgba(255,255,255,.82);
}

.sector-detail--dark h2,
.sector-detail--dark h3,
.sector-detail--dark h4 {
  color: var(--white);
}

.sector-info-card--dark {
  background: rgba(255,255,255,.08);
}

.sector-info-card--dark-accent {
  background: rgba(36,184,199,.16);
}

/* --------------------------------------------------------------------------
   16. Engineering / support
   -------------------------------------------------------------------------- */

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

/* --------------------------------------------------------------------------
   17. Company info
   -------------------------------------------------------------------------- */

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

.company-info-card dt {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.company-info-card dd {
  margin: .3rem 0 0;
  color: var(--night);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   18. Contact form
   -------------------------------------------------------------------------- */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}

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

.contact-points {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

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

.contact-point__number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--aqua);
  color: var(--night);
  font-weight: 800;
}

.contact-form-panel {
  padding: clamp(26px, 4vw, 42px);
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.contact-form-panel__heading {
  margin-bottom: 26px;
}

.contact-form {
  display: grid;
  gap: 20px;
}

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

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

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

.form-field label {
  font-weight: 750;
  color: var(--night);
}

.form-optional {
  color: var(--muted);
  font-size: .86rem;
  font-weight: 500;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  border: 1px solid #cbd8e2;
  border-radius: 14px;
  background: var(--white);
  color: var(--text);
  padding: .95rem 1rem;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast);
}

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

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(16,118,185,.1);
  outline: none;
}

.form-help,
.form-security-note {
  color: var(--muted);
  font-size: .9rem;
}

.form-consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
}

.form-consent input {
  margin-top: .22rem;
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

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

.form-noscript {
  padding: 1rem;
  border-radius: 12px;
  background: #fff6d8;
  color: #5a4700;
}

/* --------------------------------------------------------------------------
   19. Thanks page
   -------------------------------------------------------------------------- */

.thanks-section {
  padding: clamp(80px, 10vw, 140px) 0;
  background:
    radial-gradient(circle at 75% 15%, rgba(36,184,199,.16), transparent 30%),
    var(--light);
}

.thanks-panel {
  max-width: 840px;
  margin-inline: auto;
  padding: clamp(36px, 6vw, 70px);
  text-align: center;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.thanks-panel__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--aqua);
  color: var(--night);
  font-size: 2rem;
  font-weight: 900;
}

.thanks-panel__notice {
  margin-top: 22px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--light);
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   20. Legal / privacy pages
   -------------------------------------------------------------------------- */

.legal-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: clamp(34px, 5vw, 70px);
  align-items: start;
}

.legal-summary {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--light);
}

.legal-summary h2 {
  font-size: 1.15rem;
  margin-bottom: 14px;
}

.legal-summary ol {
  display: grid;
  gap: 8px;
  padding-left: 1.25rem;
}

.legal-summary a {
  color: var(--muted);
  font-size: .92rem;
}

.legal-summary a:hover {
  color: var(--blue);
}

.legal-content {
  min-width: 0;
}

.legal-section {
  padding-bottom: 38px;
  margin-bottom: 38px;
  border-bottom: 1px solid var(--line);
}

.legal-section h2 {
  font-size: clamp(1.65rem, 2.7vw, 2.35rem);
}

.legal-section p,
.legal-section li {
  max-width: 860px;
}

.legal-data {
  display: grid;
  gap: 1px;
  overflow: hidden;
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--line);
}

.legal-data > div {
  display: grid;
  grid-template-columns: minmax(170px, .4fr) minmax(0, 1fr);
  gap: 18px;
  padding: 15px 18px;
  background: var(--white);
}

.legal-data dt {
  color: var(--muted);
  font-size: .88rem;
  font-weight: 750;
}

.legal-data dd {
  color: var(--night);
  font-weight: 650;
}

.legal-note {
  padding: 16px 18px;
  border-left: 4px solid var(--cyan);
  border-radius: 8px;
  background: var(--aqua);
}

.legal-section--update {
  border-bottom: 0;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   21. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding: 72px 0 28px;
  background:
    radial-gradient(circle at 85% 10%, rgba(36,184,199,.1), transparent 30%),
    var(--night);
  color: rgba(255,255,255,.72);
}

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

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

.footer-logo {
  display: inline-flex;
  margin-bottom: 18px;
}

.footer-logo img {
  width: 185px;
  max-height: 58px;
  object-fit: contain;
}

.footer-nav h2,
.footer-contact h2 {
  color: var(--white);
  font-size: 1rem;
  letter-spacing: 0;
}

.footer-nav ul,
.footer-legal {
  list-style: none;
  display: grid;
  gap: 8px;
}

.footer-nav a,
.footer-legal a {
  color: rgba(255,255,255,.68);
}

.footer-nav a:hover,
.footer-legal a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .9rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

/* --------------------------------------------------------------------------
   22. Reveal animations
   -------------------------------------------------------------------------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity .7s ease,
    transform .7s cubic-bezier(.2,.7,.2,1);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   23. Utility states
   -------------------------------------------------------------------------- */

.is-muted {
  color: var(--muted);
}

.no-margin {
  margin: 0 !important;
}

/* --------------------------------------------------------------------------
   24. Responsive — large desktop
   -------------------------------------------------------------------------- */

@media (max-width: 1280px) {
  .desktop-nav a,
  .nav-dropdown__toggle,
  .header-contact-link {
    font-size: .82rem;
    padding-inline: .55rem;
  }

  .site-header__inner {
    gap: 14px;
  }

  .site-brand img {
    width: 160px;
  }

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

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

/* --------------------------------------------------------------------------
   25. Responsive — tablet / mobile nav
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  :root {
    --header-h: 74px;
  }

  .desktop-nav,
  .header-contact-link,
  .site-header__actions > .btn {
    display: none;
  }

  .site-header__inner {
    justify-content: space-between;
  }

  .site-header__actions {
    margin-left: auto;
  }

  .menu-toggle {
    display: block;
  }

  .pillars-grid,
  .expertise-grid,
  .deliverables-grid,
  .resource-grid,
  .technology-grid,
  .support-grid,
  .company-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .sector-detail__grid {
    grid-template-columns: 1fr;
  }

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

  .contact-intro {
    position: static;
  }

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

  .footer-contact {
    grid-column: 1 / -1;
  }
}

/* --------------------------------------------------------------------------
   26. Responsive — <= 900
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .split-layout,
  .split-layout--reverse {
    grid-template-columns: 1fr;
  }

  .split-layout--reverse > :first-child,
  .split-layout--reverse > :last-child {
    order: initial;
  }

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

  .architecture-card {
    min-height: 340px;
  }

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

  .legal-summary {
    position: static;
  }

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

  .footer-brand,
  .footer-contact {
    grid-column: 1 / -1;
    max-width: none;
  }
}

/* --------------------------------------------------------------------------
   27. Responsive — <= 720
   -------------------------------------------------------------------------- */

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

  .section {
    padding: 72px 0;
  }

  .hero-home {
    min-height: 760px;
  }

  .hero__content {
    padding-top: 80px;
    padding-bottom: 86px;
  }

  .hero__overlay {
    background:
      linear-gradient(180deg, rgba(7,22,47,.58), rgba(7,22,47,.92) 66%),
      rgba(7,22,47,.35);
  }

  .hero__actions,
  .btn-row,
  .section-actions,
  .form-actions {
    align-items: stretch;
  }

  .hero__actions .btn,
  .btn-row .btn,
  .section-actions .btn,
  .form-actions .btn {
    width: 100%;
  }

  .pillars-grid,
  .expertise-grid,
  .sector-grid,
  .deliverables-grid,
  .decision-grid,
  .resource-grid,
  .technology-grid,
  .process-grid,
  .process-grid--extended,
  .support-grid,
  .company-info-grid {
    grid-template-columns: 1fr;
  }

  .flow-graphic {
    min-height: 360px;
  }

  .flow-graphic__ring--2 {
    width: 320px;
    height: 320px;
  }

  .flow-graphic__ring--1 {
    width: 235px;
    height: 235px;
  }

  .flow-graphic__center {
    width: 145px;
    height: 145px;
  }

  .flow-graphic__chip {
    font-size: .75rem;
    padding: .55rem .7rem;
  }

  .media-card--large img,
  .technical-visual--large img {
    min-height: 340px;
  }

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

  .legal-data > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

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

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

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* --------------------------------------------------------------------------
   28. Responsive — <= 480
   -------------------------------------------------------------------------- */

@media (max-width: 480px) {
  .site-header__inner {
    width: calc(100% - 22px);
  }

  .site-brand img {
    width: 145px;
  }

  h1 {
    font-size: clamp(2.35rem, 12vw, 3.4rem);
  }

  h2 {
    font-size: clamp(1.8rem, 9vw, 2.6rem);
  }

  .page-hero {
    padding-top: 42px;
  }

  .page-hero__content {
    padding-top: 24px;
  }

  .pillar-card,
  .expertise-card,
  .deliverable-card,
  .decision-card,
  .resource-card,
  .company-info-card,
  .support-card,
  .contact-form-panel,
  .sector-detail,
  .quote-panel,
  .cta-panel {
    border-radius: 18px;
  }

  .mobile-menu {
    width: 100%;
  }

  .flow-graphic {
    transform: scale(.92);
    transform-origin: center;
  }
}

/* --------------------------------------------------------------------------
   29. Print
   -------------------------------------------------------------------------- */

@media print {
  .site-header,
  .mobile-menu,
  .menu-overlay,
  .site-footer,
  .hero__scroll,
  .btn,
  .skip-link {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .section,
  .page-hero {
    padding: 24px 0;
  }

  .page-hero,
  .section-dark {
    background: #fff !important;
    color: #000 !important;
  }

  .page-hero h1,
  .section-dark h2,
  .section-dark h3,
  .lead-light {
    color: #000 !important;
  }

  a {
    text-decoration: underline;
  }
}

/* --------------------------------------------------------------------------
   30. Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .btn:hover,
  .pillar-card:hover,
  .expertise-card:hover,
  .deliverable-card:hover,
  .decision-card:hover,
  .resource-card:hover,
  .company-info-card:hover,
  .support-card:hover {
    transform: none;
  }
}
