@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: local("Open Sans");
}

html {
  background: #fff;
  color-scheme: light;
  scroll-behavior: smooth;
}

html.dark {
  background:
    radial-gradient(circle at top, rgba(56, 189, 248, 0.16), transparent 35rem),
    linear-gradient(180deg, #0b1220, #07111d 52%, #050b13);
  color-scheme: dark;
}

body {
  background: #fff;
  overflow-x: hidden;
  transition: background 180ms ease, color 180ms ease;
}

html.dark body {
  background: #07111d;
  color: #b8c7d6;
}

.nav-link {
  position: relative;
  transition: color 160ms ease;
}

.nav-link::after {
  background: #38bdf8;
  bottom: -8px;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
  width: 100%;
}

.nav-link:hover {
  color: #bae6fd;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.account-link {
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(125, 190, 235, 0.28);
  border-radius: 999px;
  color: #e5f2ff;
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 800;
  justify-content: center;
  min-height: 40px;
  padding: 0.65rem 1.05rem;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.account-link:hover,
.account-link:focus-visible {
  background: rgba(1, 112, 185, 0.18);
  border-color: rgba(125, 211, 252, 0.56);
  color: #fff;
  transform: translateY(-1px);
}

.theme-toggle {
  align-items: center;
  background: rgba(234, 244, 252, 0.92);
  border: 1px solid rgba(125, 190, 235, 0.42);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68), 0 8px 22px rgba(2, 6, 23, 0.16);
  color: #42617a;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  padding: 3px;
  position: relative;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
  width: 68px;
}

.theme-toggle:hover {
  border-color: rgba(125, 211, 252, 0.78);
  color: #0f3554;
}

.theme-toggle-thumb {
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 5px 13px rgba(15, 53, 84, 0.2);
  height: 26px;
  left: 4px;
  position: absolute;
  top: 3px;
  transition: transform 180ms ease, background 180ms ease;
  width: 30px;
}

.theme-toggle-label {
  align-items: center;
  display: inline-flex;
  flex: 1;
  font-size: 0.78rem;
  font-weight: 800;
  justify-content: center;
  letter-spacing: 0;
  position: relative;
  z-index: 1;
}

.theme-toggle-dark {
  color: rgba(66, 97, 122, 0.58);
}

html.dark .theme-toggle {
  background: #0e1a2b;
  border-color: rgba(125, 190, 235, 0.42);
  color: rgba(244, 248, 251, 0.55);
}

html.dark .theme-toggle:hover {
  border-color: rgba(125, 211, 252, 0.52);
  color: #f4f8fb;
}

html.dark .theme-toggle-thumb {
  background: #223a59;
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.46);
  transform: translateX(30px);
}

html.dark .theme-toggle-dark {
  color: #f4f8fb;
}

html.dark .theme-toggle-light {
  color: rgba(244, 248, 251, 0.58);
}

.menu-bars,
.menu-bars::before,
.menu-bars::after {
  background: currentColor;
  content: "";
  display: block;
  height: 2px;
  width: 20px;
}

.menu-bars::before {
  transform: translateY(-7px);
}

.menu-bars::after {
  transform: translateY(5px);
}

.btn-primary,
.btn-secondary,
.btn-light {
  align-items: center;
  border-radius: 2px;
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 700;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.25rem;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.btn-primary {
  background: #0170b9;
  color: #fff;
}

.btn-primary:hover,
.btn-light:hover {
  transform: translateY(-1px);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.btn-light {
  background: #fff;
  color: #0170b9;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.32) 44%, rgba(2, 6, 23, 0.2)),
    linear-gradient(180deg, rgba(2, 6, 23, 0.22), rgba(2, 6, 23, 0.42));
}

html.dark .hero-overlay {
  background:
    radial-gradient(circle at 22% 38%, rgba(1, 112, 185, 0.18), transparent 26rem),
    linear-gradient(90deg, rgba(3, 10, 20, 0.7), rgba(7, 17, 29, 0.42) 44%, rgba(7, 17, 29, 0.3)),
    linear-gradient(180deg, rgba(3, 10, 20, 0.24), rgba(3, 10, 20, 0.5));
}

.hero img,
.testimonial-card,
.image-card,
.service-card,
.feature-panel,
.sector-item,
.proof-card {
  transition: opacity 220ms ease, transform 220ms ease;
}

.hero-arrow {
  align-items: center;
  background: transparent;
  border: 0;
  color: #fff;
  display: none;
  font-size: 4.2rem;
  height: 72px;
  justify-content: center;
  line-height: 1;
  opacity: 0.82;
  position: absolute;
  text-shadow: 0 4px 18px rgba(2, 6, 23, 0.55);
  top: 52%;
  transform: translateY(-50%);
  transition: color 160ms ease, opacity 160ms ease, transform 160ms ease;
  width: 72px;
  z-index: 12;
}

.hero-arrow:hover {
  color: #7dd3fc;
  opacity: 1;
  transform: translateY(-50%) translateX(0) scale(1.04);
}

.hero-arrow-prev {
  left: clamp(1rem, 3vw, 3rem);
}

.hero-arrow-next {
  right: clamp(1rem, 3vw, 3rem);
}

html.dark .hero-arrow {
  color: #f4f8fb;
}

@media (min-width: 1536px) {
  .hero-arrow {
    display: inline-flex;
  }
}

.hero-dot {
  background: rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  height: 4px;
  transition: background 160ms ease, width 160ms ease;
  width: 30px;
}

.hero-dot.is-active {
  background: #38bdf8;
  width: 58px;
}

#about,
#services,
#sectors {
  transition: background 180ms ease;
}

html.dark #about,
html.dark #services,
html.dark #sectors,
html.dark .about-page section.bg-white,
html.dark .contact-page section.bg-white,
html.dark .partners-page section.bg-white,
html.dark .sectors-page section.bg-white,
html.dark .services-page section.bg-white,
html.dark .service-back-strip {
  background: #07111d;
}

html.dark #expertise,
html.dark .about-story-band,
html.dark .testimonials-section,
html.dark .partners-benefits,
html.dark .sector-detail-band,
html.dark .service-content-band {
  background: #0b1625;
}

html.dark #partners {
  background: #0d1a2a;
  border-color: rgba(125, 190, 235, 0.16);
}

.client-track {
  animation: client-pan 34s linear infinite;
  min-width: max-content;
}

.client-track img {
  filter: grayscale(1);
  max-height: 54px;
  max-width: 150px;
  object-fit: contain;
  opacity: 0.72;
}

html.dark .client-track img {
  filter: grayscale(1) invert(1) brightness(1.25);
  opacity: 0.78;
}

@keyframes client-pan {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-32%);
  }
}

.section-kicker {
  color: #0170b9;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  margin-bottom: 0.9rem;
  text-transform: uppercase;
}

.section-title {
  color: #111827;
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 700;
  line-height: 1.12;
}

html.dark .section-title {
  color: #f4f8fb;
}

.feature-panel {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 1.5rem;
}

html.dark .feature-panel,
html.dark .service-card,
html.dark .service-detail-card,
html.dark .service-nav-card,
html.dark .service-offer,
html.dark .service-feature,
html.dark .sector-item,
html.dark .about-value-card,
html.dark .about-story-card,
html.dark .copy-panel,
html.dark .partner-benefit-card,
html.dark .sector-nav-card,
html.dark .sector-detail {
  background: rgba(17, 29, 46, 0.82);
  border-color: rgba(125, 190, 235, 0.2);
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.22);
}

html.dark .service-detail-card:hover,
html.dark .service-detail-card:focus-visible {
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.34);
}

html.dark .service-detail-card img {
  filter: brightness(0.72) contrast(0.88) saturate(0.82);
}

.feature-panel h3,
.sector-item h3 {
  color: #111827;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.55rem;
}

html.dark .feature-panel h3,
html.dark .service-detail-card h3,
html.dark .service-nav-card,
html.dark .service-offer h2,
html.dark .service-feature h2,
html.dark .about-value-card h3,
html.dark .about-story-card h2,
html.dark .sector-item h3,
html.dark .image-card h3,
html.dark .service-card h3,
html.dark .partner-benefit-card h3,
html.dark .sector-detail-copy h2,
html.dark .sector-nav-card span {
  color: #f4f8fb;
}

.feature-panel p,
.sector-item p {
  line-height: 1.75;
}

html.dark .feature-panel p,
html.dark .service-detail-card p,
html.dark .service-offer p,
html.dark .service-feature p,
html.dark .about-value-card p,
html.dark .about-story-card p,
html.dark .sector-item p,
html.dark .image-card p,
html.dark .service-card p,
html.dark .copy-panel p,
html.dark .partner-benefit-card p,
html.dark .partner-video-section p,
html.dark .sector-detail-copy p {
  color: #b8c7d6;
}

.image-card {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.1);
  overflow: hidden;
}

html.dark .image-card {
  background: rgba(17, 29, 46, 0.86);
  border: 1px solid rgba(125, 190, 235, 0.18);
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.28);
}

.image-card img {
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.image-card div {
  padding: 1.5rem;
}

.image-card h3,
.service-card h3,
.proof-card h3 {
  color: #111827;
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.7rem;
}

.image-card p,
.service-card p,
.proof-card p {
  line-height: 1.75;
}

.service-card {
  align-items: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: 2rem;
  text-align: center;
}

.service-card img {
  height: 70px;
  margin-bottom: 1.35rem;
  object-fit: contain;
  width: 70px;
}

.service-card a {
  color: #0170b9;
  font-weight: 800;
  margin-top: auto;
  padding-top: 1.5rem;
}

.service-detail-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: inherit;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  min-height: 330px;
  overflow: hidden;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.service-detail-card:hover,
.service-detail-card:focus-visible {
  border-color: #38bdf8;
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.12);
  transform: translateY(-2px);
}

.service-detail-card:focus-visible {
  outline: 3px solid rgba(56, 189, 248, 0.42);
  outline-offset: 4px;
}

.service-detail-card img {
  height: 100%;
  object-fit: cover;
  transition: filter 180ms ease, transform 220ms ease;
  width: 100%;
}

.service-detail-card:hover img,
.service-detail-card:focus-visible img {
  transform: scale(1.025);
}

.service-detail-card div {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.service-detail-card h3 {
  color: #111827;
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
}

.service-detail-card p:not(.section-kicker) {
  line-height: 1.75;
  margin-top: 1rem;
}

.service-detail-card span {
  color: #0170b9;
  display: inline-flex;
  font-weight: 800;
  margin-top: auto;
  padding-top: 1.5rem;
}

.service-nav-card {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: #111827;
  display: flex;
  font-weight: 800;
  justify-content: center;
  min-height: 88px;
  padding: 1.2rem;
  text-align: center;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.service-nav-card:hover {
  border-color: #38bdf8;
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.1);
  transform: translateY(-2px);
}

.service-back-strip {
  border-bottom: 1px solid #e2e8f0;
}

.service-back-link {
  align-items: center;
  color: #0170b9;
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 160ms ease, transform 160ms ease;
}

.service-back-link:hover,
.service-back-link:focus-visible {
  color: #075985;
  transform: translateX(-2px);
}

html.dark .service-back-strip {
  border-bottom-color: rgba(125, 190, 235, 0.16);
}

html.dark .service-back-link {
  color: #7dd3fc;
}

html.dark .service-back-link:hover,
html.dark .service-back-link:focus-visible {
  color: #bae6fd;
}

.service-content-band {
  background: #f8fafc;
}

.service-proof-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-offer {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: clamp(1.4rem, 3vw, 2rem);
  scroll-margin-top: 6rem;
}

.service-offer h2 {
  color: #111827;
  font-size: clamp(1.45rem, 2.4vw, 2.05rem);
  font-weight: 800;
  line-height: 1.2;
}

.service-offer p {
  line-height: 1.8;
  margin-top: 0.85rem;
}

.service-feature {
  align-items: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 2rem);
}

.service-feature h2 {
  color: #111827;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
}

.service-feature p:not(.section-kicker) {
  line-height: 1.8;
  margin-top: 1.15rem;
}

.service-feature img {
  aspect-ratio: 16 / 10;
  border-radius: 4px;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.about-value-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  min-height: 300px;
  padding: 1.5rem;
}

.about-value-card img {
  height: 54px;
  margin-bottom: 1.2rem;
  object-fit: contain;
  width: 54px;
}

.about-value-card h3 {
  color: #111827;
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.about-value-card p {
  line-height: 1.75;
}

.about-story-card {
  align-items: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 2rem);
}

.about-story-card-reverse img {
  order: 2;
}

.about-story-card h2 {
  color: #111827;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  font-weight: 800;
  line-height: 1.15;
}

.about-story-card p:not(.section-kicker) {
  line-height: 1.85;
  margin-top: 1.15rem;
}

.about-story-card img {
  aspect-ratio: 16 / 10;
  border-radius: 4px;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.proof-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  min-height: 270px;
  padding: 1.5rem;
}

.proof-section {
  background:
    radial-gradient(circle at top left, rgba(1, 112, 185, 0.28), transparent 33rem),
    #17233a;
}

html.dark .proof-section {
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.2), transparent 35rem),
    linear-gradient(180deg, #0d1a2a, #07111d);
}

html.dark .proof-card {
  background: rgba(17, 29, 46, 0.72);
  border-color: rgba(125, 190, 235, 0.2);
}

.proof-card img {
  height: 52px;
  margin-bottom: 1.1rem;
  width: 52px;
}

.proof-card h3 {
  color: #fff;
}

.proof-card p {
  color: #dbeafe;
}

.service-proof-grid .proof-card {
  background: #fff;
  border-color: #e2e8f0;
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.08);
}

.service-proof-grid .proof-card h3 {
  color: #111827;
}

.service-proof-grid .proof-card p {
  color: #475569;
}

html.dark .service-proof-grid .proof-card {
  background: rgba(17, 29, 46, 0.72);
  border-color: rgba(125, 190, 235, 0.2);
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.22);
}

html.dark .service-proof-grid .proof-card h3 {
  color: #f4f8fb;
}

html.dark .service-proof-grid .proof-card p {
  color: #b8c7d6;
}

.sector-item {
  background: #f8fafc;
  border-left: 4px solid #0170b9;
  border-radius: 4px;
  padding: 1.25rem;
}

html.dark .sector-item {
  border-left-color: #38bdf8;
}

.testimonial-shell {
  align-items: center;
  display: grid;
  gap: 1rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.testimonial-card {
  background:
    radial-gradient(circle at top left, rgba(1, 112, 185, 0.22), transparent 26rem),
    #17233a;
  border-radius: 6px;
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.12);
  color: #fff;
  margin: 0 auto;
  max-width: 980px;
  min-height: 410px;
  padding: clamp(2rem, 5vw, 4rem);
  text-align: center;
  width: 100%;
}

html.dark .testimonial-card {
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.17), transparent 28rem),
    linear-gradient(180deg, rgba(17, 29, 46, 0.96), rgba(7, 17, 29, 0.98));
  border: 1px solid rgba(125, 190, 235, 0.2);
}

.testimonial-card img {
  display: block;
  margin: 0 auto 2rem;
  max-height: 78px;
  max-width: 240px;
  object-fit: contain;
}

.testimonial-card blockquote {
  font-size: clamp(1.1rem, 2.2vw, 1.55rem);
  line-height: 1.65;
  margin: 0 auto 2rem;
  max-width: 760px;
}

.testimonial-card p:first-of-type {
  font-weight: 800;
}

.testimonial-card p:last-of-type {
  color: #7dd3fc;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-top: 0.35rem;
  text-transform: uppercase;
}

.testimonial-arrow {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  color: #334155;
  display: grid;
  font-size: 2rem;
  height: 48px;
  line-height: 1;
  place-items: center;
  width: 48px;
}

.testimonial-arrow:hover {
  border-color: #38bdf8;
  color: #0170b9;
}

html.dark .testimonial-arrow {
  background: rgba(17, 29, 46, 0.82);
  border-color: rgba(125, 190, 235, 0.22);
  color: #f4f8fb;
}

.testimonial-dots {
  display: flex;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 1.25rem;
}

.testimonial-dot {
  background: #cbd5e1;
  border-radius: 999px;
  height: 7px;
  transition: background 160ms ease, width 160ms ease;
  width: 7px;
}

.testimonial-dot.is-active {
  background: #0170b9;
  width: 34px;
}

html.dark .testimonial-dot {
  background: rgba(184, 199, 214, 0.36);
}

html.dark .testimonial-dot.is-active {
  background: #38bdf8;
}

.consultation-banner {
  transition: background 180ms ease;
}

html.dark .consultation-banner {
  background:
    radial-gradient(circle at 24% 50%, rgba(1, 112, 185, 0.28), transparent 28rem),
    linear-gradient(90deg, #0c2d4a, #0a2238);
  border-bottom: 1px solid rgba(125, 190, 235, 0.12);
  border-top: 1px solid rgba(125, 190, 235, 0.16);
}

html.dark .consultation-banner .btn-light {
  background: rgba(244, 248, 251, 0.94);
  color: #0a2238;
}

.contact-detail-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 1.25rem;
}

.contact-detail-card span {
  color: #0170b9;
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-bottom: 0.45rem;
  text-transform: uppercase;
}

.contact-detail-card a {
  color: #111827;
  font-size: 1.25rem;
  font-weight: 800;
}

.contact-form-panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.1);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.contact-form {
  display: grid;
  gap: 1.25rem;
}

.form-field {
  display: grid;
  gap: 0.45rem;
}

.form-field label,
.captcha-row label {
  color: #111827;
  font-size: 0.86rem;
  font-weight: 800;
}

.form-field input,
.form-field textarea,
.captcha-row input {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  color: #111827;
  min-height: 48px;
  padding: 0.85rem 1rem;
  width: 100%;
}

.form-field textarea {
  line-height: 1.65;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus,
.captcha-row input:focus {
  border-color: #0170b9;
  box-shadow: 0 0 0 3px rgba(1, 112, 185, 0.14);
  outline: 0;
}

.form-field-hidden {
  left: -10000px;
  position: absolute;
  top: auto;
}

.captcha-row {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) 120px;
  padding: 1rem;
}

.captcha-row p {
  color: #475569;
  margin-top: 0.25rem;
}

.form-alert {
  border-radius: 6px;
  margin-bottom: 1.25rem;
  padding: 1rem;
}

.form-alert-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.form-alert-error {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
}

.form-alert p {
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.form-alert ul {
  list-style: disc;
  margin-left: 1.2rem;
}

html.dark .contact-detail-card,
html.dark .contact-form-panel,
html.dark .captcha-row {
  background: rgba(17, 29, 46, 0.82);
  border-color: rgba(125, 190, 235, 0.2);
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.22);
}

html.dark .contact-detail-card a,
html.dark .form-field label,
html.dark .captcha-row label {
  color: #f4f8fb;
}

html.dark .contact-intro,
html.dark .captcha-row p {
  color: #b8c7d6;
}

html.dark .form-field input,
html.dark .form-field textarea,
html.dark .captcha-row input {
  background: rgba(7, 17, 29, 0.92);
  border-color: rgba(125, 190, 235, 0.24);
  color: #f4f8fb;
}

html.dark .form-field input:focus,
html.dark .form-field textarea:focus,
html.dark .captcha-row input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16);
}

html.dark .form-alert-success {
  background: rgba(6, 95, 70, 0.18);
  border-color: rgba(52, 211, 153, 0.32);
  color: #bbf7d0;
}

html.dark .form-alert-error {
  background: rgba(154, 52, 18, 0.18);
  border-color: rgba(251, 146, 60, 0.32);
  color: #fed7aa;
}

.copy-panel {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.copy-panel p,
.partner-benefit-card p {
  line-height: 1.75;
}

.copy-panel p + p {
  margin-top: 1.25rem;
}

.partner-benefit-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  min-height: 330px;
  padding: 1.5rem;
}

.partner-benefit-card img {
  height: 54px;
  margin-bottom: 1.15rem;
  object-fit: contain;
  width: 54px;
}

.partner-benefit-card h3 {
  color: #111827;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.video-frame {
  aspect-ratio: 16 / 9;
  background: #0b1220;
  border-radius: 6px;
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.14);
  overflow: hidden;
}

.video-frame iframe {
  border: 0;
  display: block;
  height: 100%;
  width: 100%;
}

html.dark .video-frame {
  border: 1px solid rgba(125, 190, 235, 0.18);
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.34);
}

.sector-nav-card {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  display: flex;
  justify-content: center;
  min-height: 90px;
  padding: 1.25rem;
  text-align: center;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.sector-nav-card:hover {
  border-color: #38bdf8;
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.1);
  transform: translateY(-2px);
}

.sector-nav-card span {
  color: #111827;
  font-size: 1.05rem;
  font-weight: 800;
}

.sector-detail {
  align-items: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  display: grid;
  column-gap: clamp(3rem, 6vw, 6rem);
  row-gap: clamp(1.75rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  overflow: hidden;
  padding: clamp(1.25rem, 3vw, 2rem);
  scroll-margin-top: 6rem;
}

.sector-detail-reverse .sector-detail-media {
  order: 2;
}

.sector-detail-media {
  align-items: center;
  aspect-ratio: 16 / 10;
  background: #07111d;
  border-radius: 4px;
  display: flex;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  position: relative;
  width: 100%;
}

.sector-detail-media img {
  display: block;
  height: 100%;
  max-height: none;
  min-height: 0;
  object-fit: cover;
  width: 100%;
}

.sector-detail-media .sector-background-photo {
  filter: saturate(0.72) brightness(0.58) contrast(0.92);
}

.sector-detail-media-comms {
  background: #07111d;
}

.sector-detail-media::after {
  background: rgba(7, 17, 29, 0.08);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.sector-detail-media .sector-overlay-logo {
  filter: brightness(0) invert(1);
  height: auto;
  left: 50%;
  max-height: 128px;
  max-width: 280px;
  min-height: 0;
  object-fit: contain;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  z-index: 1;
}

.sector-detail-media .sector-overlay-logo-freshwave {
  max-height: 86px;
  max-width: 330px;
}

.sector-detail-copy h2 {
  color: #111827;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
}

.sector-detail-copy p:not(.section-kicker) {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-top: 1.15rem;
}

html.dark .sector-detail-media {
  background: #07111d;
}

html.dark .sector-detail-media .sector-background-photo {
  filter: saturate(0.62) brightness(0.48) contrast(0.9);
}

.footer-col {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  justify-content: flex-start;
}

.footer-col h3 {
  color: #fff;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.footer-col a {
  color: #cbd5e1;
  font-size: 0.92rem;
}

.footer-col a:hover,
footer a:hover {
  color: #7dd3fc;
}

.legal-hero img {
  filter: saturate(0.9);
}

.legal-section {
  transition: background 180ms ease;
}

html.dark .legal-section {
  background: #07111d;
}

html.dark .legal-back-strip {
  background: #07111d;
}

.legal-card {
  background: #f8fbfe;
  border: 1px solid #d8e5f0;
  border-radius: 6px;
  color: #111827;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 2rem;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.legal-card:hover {
  border-color: rgba(1, 112, 185, 0.42);
  transform: translateY(-2px);
}

.legal-card h2 {
  color: #111827;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 800;
  line-height: 1.2;
}

.legal-card p {
  color: #475569;
  line-height: 1.8;
  margin-top: 1rem;
}

.legal-card span {
  color: #0170b9;
  font-weight: 800;
  margin-top: auto;
  padding-top: 1.5rem;
}

html.dark .legal-card {
  background: #111d2e;
  border-color: rgba(125, 190, 235, 0.22);
  color: #f4f8fb;
}

html.dark .legal-card:hover {
  border-color: rgba(125, 211, 252, 0.48);
}

html.dark .legal-card h2 {
  color: #f4f8fb;
}

html.dark .legal-card p {
  color: #b8c7d6;
}

.legal-document-hero {
  background: #fff;
  transition: background 180ms ease;
}

html.dark .legal-document-hero {
  background: #07111d;
}

.legal-document-hero h1 {
  color: #111827;
  font-size: clamp(2.6rem, 5vw, 5rem);
  font-weight: 800;
  line-height: 1.06;
  margin-top: 1rem;
}

.legal-document-hero p {
  color: #475569;
  font-size: 1.15rem;
  line-height: 1.8;
  margin-top: 1.25rem;
  max-width: 760px;
}

html.dark .legal-document-hero h1 {
  color: #f4f8fb;
}

html.dark .legal-document-hero p {
  color: #b8c7d6;
}

.back-link {
  color: #0170b9;
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.document-panel,
.legal-article {
  background: #fff;
  border: 1px solid #d8e5f0;
  border-radius: 6px;
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.08);
  padding: clamp(1.25rem, 3vw, 2rem);
}

html.dark .document-panel,
html.dark .legal-article {
  background: #111d2e;
  border-color: rgba(125, 190, 235, 0.22);
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.24);
}

.document-actions {
  align-items: center;
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.document-actions h2,
.legal-article h2 {
  color: #111827;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
}

.document-actions p,
.legal-article p {
  color: #475569;
  line-height: 1.8;
  margin-top: 0.65rem;
}

.legal-article p + p {
  margin-top: 1.2rem;
}

.direct-debit-logo {
  display: block;
  height: auto;
  margin-top: 2rem;
  max-width: 195px;
}

html.dark .document-actions h2,
html.dark .legal-article h2 {
  color: #f4f8fb;
}

html.dark .document-actions p,
html.dark .legal-article p {
  color: #b8c7d6;
}

.pdf-viewer {
  background: #f8fbfe;
  border: 1px solid #d8e5f0;
  border-radius: 4px;
  height: min(80vh, 900px);
  min-height: 560px;
  width: 100%;
}

html.dark .pdf-viewer {
  background: #07111d;
  border-color: rgba(125, 190, 235, 0.22);
}

@media (max-width: 767px) {
  .hero {
    min-height: 700px;
  }

  .testimonial-shell {
    grid-template-columns: 1fr;
  }

  .testimonial-arrow {
    display: none;
  }

  .testimonial-card {
    min-height: 460px;
  }

  .client-track {
    animation-duration: 22s;
  }

  .service-detail-card,
  .about-story-card,
  .service-feature,
  .service-proof-grid {
    grid-template-columns: 1fr;
  }

  .about-story-card-reverse img {
    order: 0;
  }

  .service-detail-card img,
  .about-story-card img {
    aspect-ratio: 16 / 10;
    height: auto;
  }

  .captcha-row {
    grid-template-columns: 1fr;
  }

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

  .sector-detail-reverse .sector-detail-media {
    order: 0;
  }

  .sector-detail-media {
    min-height: 300px;
  }

  .document-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .document-actions .btn-primary {
    width: 100%;
  }

  .pdf-viewer {
    min-height: 420px;
  }
}
