/* Catch AI — Industrial AI Website Styles */

:root {
  --navy: #071827;
  --deep-blue: #0B2A42;
  --cyan: #12A8C4;
  --cyan-light: #7EDCEB;
  --off-white: #F5F8FA;
  --white: #FFFFFF;
  --text: #15232D;
  --muted: #5A6A75;
  --border: #D9E2E8;
  --success: #2D8C70;
  --overlay: rgba(7, 24, 39, 0.72);
  --shadow-soft: 0 8px 24px rgba(7, 24, 39, 0.08);
  --radius: 4px;
  --container: 1240px;
  --header-h: 72px;
  --font-heading: "Manrope", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --transition: 0.22s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

a {
  color: var(--cyan);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--deep-blue);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  background: var(--cyan);
  color: var(--navy);
  padding: 0.75rem 1rem;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.section {
  padding: 5rem 0;
}

.section-dark {
  background: var(--navy);
  color: var(--white);
}

.section-dark .section-lead,
.section-dark .muted {
  color: rgba(255, 255, 255, 0.72);
}

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

.section-header {
  max-width: 720px;
  margin-bottom: 2.75rem;
}

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

.eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: inherit;
}

h1 {
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 700;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

p {
  margin: 0 0 1rem;
}

.section-lead,
.muted {
  color: var(--muted);
}

.section-lead {
  font-size: 1.0625rem;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform var(--transition);
}

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

.btn-primary {
  background: var(--cyan);
  color: var(--navy);
}

.btn-primary:hover {
  background: var(--cyan-light);
  color: var(--navy);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--deep-blue);
  border-color: var(--border);
}

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

.btn-full {
  width: 100%;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 24, 39, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(217, 226, 232, 0.08);
  transition: box-shadow var(--transition);
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--white);
  flex-shrink: 0;
}

.logo-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-text span {
  color: var(--cyan-light);
  font-weight: 600;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.primary-nav a:not(.btn) {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.45rem 0.55rem;
  border-radius: var(--radius);
  white-space: nowrap;
}

.primary-nav a:not(.btn):hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.header-cta {
  margin-left: 0.5rem;
  min-height: 42px;
  padding-inline: 1rem;
  font-size: 0.875rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background: var(--navy);
  overflow: hidden;
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(7, 24, 39, 0.92) 0%, rgba(7, 24, 39, 0.78) 42%, rgba(11, 42, 66, 0.45) 100%),
    linear-gradient(0deg, rgba(7, 24, 39, 0.75) 0%, transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--container));
  margin: 0 auto;
  padding: 7rem 0 4.5rem;
  max-width: 760px;
}

.hero-brand {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--white);
  letter-spacing: -0.03em;
}

.hero-brand span {
  color: var(--cyan-light);
}

.hero h1 {
  margin-bottom: 1.15rem;
}

.hero-copy {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.0625rem;
  margin-bottom: 1.75rem;
}

.hero-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-panel span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(126, 220, 235, 0.28);
  background: rgba(7, 24, 39, 0.35);
}

.hero-panel svg {
  width: 16px;
  height: 16px;
  color: var(--cyan-light);
}

/* ---------- Value intro ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.value-card {
  padding: 1.75rem;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: var(--radius);
  height: 100%;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.value-card:hover {
  border-color: var(--cyan);
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.icon-wrap {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  color: var(--cyan);
  background: var(--off-white);
}

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

.value-card p {
  margin-bottom: 0;
  color: var(--muted);
}

/* ---------- Service cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: #c5d4de;
}

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

.service-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--deep-blue);
}

.service-media img {
  width: 100%;
  height: 100%;
  transition: transform 0.45s ease;
}

.service-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.4rem 1.4rem 1.55rem;
}

.service-body .icon-wrap {
  margin-top: -2.1rem;
  margin-bottom: 0.9rem;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(7, 24, 39, 0.06);
}

.service-body h3 {
  margin-bottom: 0.65rem;
}

.service-body > p {
  color: var(--muted);
  flex: 1;
}

.benefit-list {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.45rem;
}

.benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text);
}

.benefit-list svg {
  width: 16px;
  height: 16px;
  color: var(--success);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.services-grid .service-card:nth-child(4),
.services-grid .service-card:nth-child(5) {
  grid-column: span 1;
}

/* ---------- Solutions ---------- */
.solutions-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
}

.solution-panel {
  padding: 1.85rem;
  border: 1px solid rgba(217, 226, 232, 0.18);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius);
  height: 100%;
}

.solution-panel.featured {
  grid-row: span 3;
  background:
    linear-gradient(160deg, rgba(18, 168, 196, 0.12), transparent 55%),
    rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
}

.solution-panel .icon-wrap {
  background: rgba(18, 168, 196, 0.1);
  border-color: rgba(126, 220, 235, 0.25);
  color: var(--cyan-light);
}

.solution-panel p {
  color: rgba(255, 255, 255, 0.72);
}

.solution-note {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.68);
}

.solution-label {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan-light);
}

/* ---------- Sectors ---------- */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.sector-card {
  position: relative;
  min-height: 280px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  color: var(--white);
}

.sector-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.sector-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 24, 39, 0.2) 0%, rgba(7, 24, 39, 0.88) 100%);
}

.sector-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
}

.sector-content .icon-wrap {
  background: rgba(7, 24, 39, 0.45);
  border-color: rgba(126, 220, 235, 0.3);
  color: var(--cyan-light);
  margin-bottom: 0.85rem;
}

.sector-content p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ---------- Process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  counter-reset: step;
}

.process-step {
  position: relative;
  padding: 1.6rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  height: 100%;
}

.process-step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 1rem;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--cyan);
}

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

.process-note {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--cyan);
  background: var(--white);
  color: var(--muted);
}

/* ---------- Director ---------- */
.director-content {
  width: 100%;
}

.director-intro {
  width: 100%;
  margin-bottom: 2rem;
}

.director-intro h2 {
  max-width: none;
}

.director-role {
  margin: -0.35rem 0 0;
  color: var(--cyan-light);
  font-size: 1rem;
}

.director-body {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 2.5rem;
  align-items: stretch;
  width: 100%;
}

.director-copy {
  display: grid;
  gap: 0;
}

.director-copy p:last-child {
  margin-bottom: 0;
}

.director-quote {
  margin: 0;
  padding: 1.5rem 1.6rem;
  border-left: 3px solid var(--cyan);
  background: rgba(18, 168, 196, 0.08);
  font-size: 1.05rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
  height: 100%;
}

.director-quote cite {
  display: block;
  margin-top: 0.85rem;
  font-style: normal;
  font-size: 0.875rem;
  color: var(--cyan-light);
  font-weight: 600;
}

@media (max-width: 900px) {
  .director-body {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ---------- Example apps ---------- */
.examples-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.example-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.example-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.example-media img {
  width: 100%;
  height: 100%;
}

.example-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.example-tag {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 0.75rem;
  padding: 0.3rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--deep-blue);
  background: rgba(18, 168, 196, 0.12);
  border: 1px solid rgba(18, 168, 196, 0.25);
}

.example-meta {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.example-meta h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 0.25rem;
}

.example-meta p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* ---------- About / Mission ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.about-media {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--deep-blue);
  aspect-ratio: 4 / 3;
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.about-media:hover img {
  transform: scale(1.03);
}

.mission-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.mission-card {
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.mission-card h3 {
  color: var(--cyan);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

.mission-card p {
  margin: 0;
}

/* ---------- Capabilities ---------- */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.capability-card {
  padding: 1.5rem;
  border: 1px solid rgba(217, 226, 232, 0.18);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius);
  height: 100%;
}

.capability-card .icon-wrap {
  background: rgba(18, 168, 196, 0.1);
  border-color: rgba(126, 220, 235, 0.25);
  color: var(--cyan-light);
}

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

/* ---------- Insights ---------- */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.insight-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.insight-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
  border-color: #c5d4de;
  color: inherit;
}

.insight-card:hover .insight-link span {
  transform: translateX(3px);
}

.insight-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.insight-media img {
  width: 100%;
  height: 100%;
  transition: transform 0.45s ease;
}

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

.insight-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.insight-date {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.insight-body h3 {
  font-size: 1.05rem;
  margin-bottom: 0.65rem;
}

.insight-body p {
  color: var(--muted);
  font-size: 0.92rem;
  flex: 1;
}

.insight-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--cyan);
}

.insight-link span {
  display: inline-block;
  transition: transform var(--transition);
}

/* ---------- Principles / Testimonials ---------- */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.principle-card {
  padding: 1.6rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  height: 100%;
}

.principle-card p {
  margin: 0;
  color: var(--muted);
}

.feedback-note {
  margin-top: 1.75rem;
  padding: 1rem 1.25rem;
  border: 1px dashed var(--border);
  color: var(--muted);
  font-size: 0.92rem;
  background: rgba(255, 255, 255, 0.6);
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: transparent;
  border: 0;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
}

.faq-question svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--cyan);
  transition: transform var(--transition);
}

.faq-item.is-open .faq-question svg {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.25rem 1.2rem;
  color: var(--muted);
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.contact-details {
  display: grid;
  gap: 1rem;
}

.contact-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(217, 226, 232, 0.18);
}

.contact-item:last-child {
  border-bottom: 0;
}

.contact-item .icon-wrap {
  margin: 0;
  flex-shrink: 0;
  background: rgba(18, 168, 196, 0.1);
  border-color: rgba(126, 220, 235, 0.25);
  color: var(--cyan-light);
}

.contact-item strong {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cyan-light);
  margin-bottom: 0.25rem;
}

.contact-item a,
.contact-item p,
.contact-item address {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-style: normal;
  text-decoration: none;
}

.contact-item a:hover {
  color: var(--cyan-light);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0 1.75rem;
}

.contact-form-wrap {
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

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

.form-field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--off-white);
  color: var(--text);
  font: inherit;
}

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

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--cyan);
  outline-offset: 1px;
  background: var(--white);
}

.checkbox-field {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  grid-column: 1 / -1;
  font-size: 0.9rem;
  color: var(--muted);
}

.checkbox-field input {
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
  accent-color: var(--cyan);
  flex-shrink: 0;
}

.form-status:empty {
  display: none;
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
}

@media (min-width: 1025px) {
  .services-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .services-grid .service-card {
    grid-column: span 2;
  }

  .services-grid .service-card:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .services-grid .service-card:nth-child(5) {
    grid-column: 4 / span 2;
  }
}

.form-status.is-info {
  background: rgba(18, 168, 196, 0.1);
  border: 1px solid rgba(18, 168, 196, 0.25);
  color: var(--deep-blue);
}

.form-status.is-error {
  background: rgba(180, 50, 50, 0.08);
  border: 1px solid rgba(180, 50, 50, 0.25);
  color: #8a1f1f;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #050f18;
  color: rgba(255, 255, 255, 0.78);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-brand p {
  max-width: 320px;
  font-size: 0.92rem;
}

.footer-col h3 {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  padding: 0.28rem 0;
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: var(--cyan-light);
}

.footer-contact li {
  margin-bottom: 0.65rem;
  font-size: 0.92rem;
}

.footer-contact a {
  display: inline;
  padding: 0;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.875rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--cyan-light);
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: 720px;
  margin-inline: auto;
  padding: 1.15rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(7, 24, 39, 0.18);
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-copy {
  flex: 1 1 280px;
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.cookie-actions .btn {
  min-height: 42px;
  padding-inline: 1rem;
}

/* ---------- Terms page ---------- */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 4.5rem 0 3.5rem;
}

.page-hero .section-lead {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.72);
}

.legal-content {
  max-width: 820px;
}

.legal-content h2 {
  margin-top: 2.5rem;
  font-size: 1.35rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
}

.legal-content ul {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  list-style: disc;
}

.legal-content li {
  margin-bottom: 0.45rem;
}

.legal-meta {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.4rem 0.7rem;
  background: rgba(18, 168, 196, 0.12);
  border: 1px solid rgba(18, 168, 196, 0.25);
  color: var(--cyan-light);
  font-size: 0.875rem;
  font-weight: 600;
}

.disclaimer-box {
  margin: 1.5rem 0;
  padding: 1.25rem 1.4rem;
  border-left: 3px solid var(--cyan);
  background: var(--off-white);
}

.disclaimer-box strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text);
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .primary-nav a:not(.btn) {
    padding-inline: 0.4rem;
    font-size: 0.8rem;
  }

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

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

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

@media (max-width: 1024px) {
  .services-grid,
  .examples-grid,
  .principles-grid,
  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .solution-panel.featured {
    grid-column: 1 / -1;
    grid-row: auto;
  }

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

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

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

@media (max-width: 900px) {
  .sectors-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding: 4rem 0;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
    background: rgba(7, 24, 39, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a:not(.btn) {
    padding: 0.85rem 0.75rem;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    white-space: normal;
  }

  .header-cta {
    margin: 0.75rem 0 0;
    width: 100%;
  }

  .hero-content {
    padding: 6rem 0 3rem;
  }

  .btn-group .btn {
    width: 100%;
  }

  .services-grid,
  .examples-grid,
  .principles-grid,
  .value-grid,
  .insights-grid,
  .capabilities-grid,
  .process-grid,
  .sectors-grid,
  .solutions-grid,
  .footer-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .cookie-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-actions .btn {
    flex: 1;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 428px) {
  .container {
    width: min(100% - 1.5rem, var(--container));
  }

  .section {
    padding: 3.25rem 0;
  }

  h1 {
    font-size: 1.85rem;
  }

  h2 {
    font-size: 1.45rem;
  }

  .hero-panel span {
    width: 100%;
  }

  .contact-form-wrap,
  .value-card,
  .process-step,
  .principle-card {
    padding: 1.25rem;
  }

  .sector-card {
    min-height: 240px;
  }
}
