/* Brand surfaces are painted by CSS, without waiting for large background PNGs. */
:root {
  --surface-blue: #e2f1f6;
  --surface-bright: #f5fbfe;
  --action-blue: linear-gradient(112deg, #006f98, #007b9f 54%, #0080a6);
  --surface-hero:
    radial-gradient(ellipse at 7% 122%, transparent 0 47%, #ffffff99 47.1% 47.35%, transparent 47.5%),
    radial-gradient(ellipse at 105% -32%, transparent 0 64%, #54c7ee33 64.1% 64.3%, transparent 64.45%),
    radial-gradient(ellipse at 9% 74%, #54c7ee4a, transparent 64%),
    linear-gradient(115deg, #e2f1f6, #edf9fe 52%, #f9fdff);
}

.about-hero,
.guidance-hero,
.recruit-page .rec-hero,
.risks-page .risk-hero,
.contact-hero__inner,
.news-hero__inner {
  background: var(--surface-hero);
  box-shadow: inset 0 0 0 1px #00a5dd14;
}

/* These decorative elements are also omitted by the page templates. */
.contact-hero__background,
.news-hero__background {
  display: none;
}

.home-intro {
  background:
    radial-gradient(ellipse at 88% 18%, #54c7ee1a, transparent 64%),
    linear-gradient(180deg, #fff, #f5fbfe);
}

.hero-photo-wrap {
  background: #dcebf1;
}

.home-about-features {
  background:
    radial-gradient(ellipse at 95% 78%, #54c7ee38, transparent 54%),
    radial-gradient(ellipse at 0% 40%, #e2f1f6a6, transparent 50%),
    linear-gradient(180deg, #fff 0%, #f1faff 36%, #e2f1f6 100%);
}

.feature-card {
  box-shadow: 0 14px 40px #0b78920a, inset 0 0 0 1px #ffffffb3;
}

/* Stronger colour is concentrated in the two service gateways. */
.service-card {
  background:
    radial-gradient(ellipse at 105% -12%, transparent 0 64%, #ffffff94 64.2% 64.5%, transparent 64.7%),
    radial-gradient(ellipse at 12% 12%, #ffffffeb, transparent 65%),
    linear-gradient(135deg, #e6f6fc, #c7eaf5 70%, #b3e5f4);
  box-shadow: inset 0 0 0 1px #00a5dd21;
  transition: translate .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease;
}

.service-card:nth-child(2) {
  background:
    radial-gradient(ellipse at -12% 4%, transparent 0 64%, #ffffff94 64.2% 64.5%, transparent 64.7%),
    radial-gradient(ellipse at 85% 15%, #ffffffe6, transparent 62%),
    linear-gradient(135deg, #cfedf8, #dff3fa 68%, #b9e4f1);
}

.service-card h3 span {
  color: #087da4;
}

.about-philosophy {
  background:
    radial-gradient(ellipse at 84% 65%, #54c7ee4d, transparent 48%),
    linear-gradient(180deg, #fff, #e2f1f6 16%, #36b1d6 38%, #0085b1 70%, #007daa);
}

.about-philosophy::before {
  height: 100%;
  background:
    radial-gradient(ellipse at 50% 96%, transparent 0 68%, #ffffff24 68.12% 68.3%, transparent 68.5%);
  pointer-events: none;
}

.about-trust-circle,
.about-trust-circle:nth-child(2) {
  background: linear-gradient(135deg, #ffffff26, #ffffff0a);
}

.guidance-business {
  background:
    radial-gradient(ellipse at 0% 7%, #54c7ee33, transparent 48%),
    linear-gradient(145deg, #e2f1f6, #f0faff 56%, #dceff7);
}

.guidance-business::before {
  background: #e2f1f6;
}

.guidance-card-icon {
  background: linear-gradient(145deg, #fff, #edf8fc);
}

.recruit-page .rec-fitting-panel {
  background:
    radial-gradient(ellipse at 98% 0%, #54c7ee70, transparent 62%),
    linear-gradient(160deg, #0083b1, #087ba4 48%, #e2f1f600 100%);
}

.recruit-page .rec-position-card:not(.rec-position-admin) {
  background:
    radial-gradient(ellipse at 80% 20%, #ffffffb3, transparent 62%),
    linear-gradient(145deg, #e2f1f6, #ccebf7);
}

/* Keep the admin role's warm accent and the risk categories' own colours. */
.recruit-page .rec-job:not(.rec-job-admin) .rec-job-body {
  background:
    radial-gradient(ellipse at 100% 12%, #54c7ee26, transparent 45%),
    linear-gradient(180deg, #e2f1f6, #edf8fc 68%, #e2f1f6);
}

.contact-content,
.news-content,
.news-detail-page {
  background:
    radial-gradient(ellipse at 100% 0%, #e2f1f65c, transparent 48%),
    linear-gradient(180deg, #fff 65%, #f4fbfe);
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  background: #edf7fb;
  border-bottom: 1px solid #badce9;
  transition: background-color .2s ease, border-color .2s ease;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  background: #f7fcff;
  border-bottom-color: #0087b3;
}

.guidance-contact-button,
.contact-submit {
  position: relative;
  isolation: isolate;
  background: var(--action-blue);
  overflow: hidden;
  transition: box-shadow .3s ease, translate .3s ease;
}

.guidance-contact-button::before,
.contact-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 25%, #ffffff30 48%, transparent 70%);
  transform: translateX(-110%);
  transition: transform .65s cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
}

.footer-tint {
  background: linear-gradient(125deg, #008fbb, #00a5dd 50%, #036b97);
  opacity: .52;
}

.footer-promo {
  background:
    radial-gradient(ellipse at 100% 100%, #e2f1f6a3, transparent 72%),
    #fff;
  transition: translate .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease;
}

.home-news-list>a,
.news-list__item {
  transition: background-color .25s ease, box-shadow .25s ease;
}

.home-news-list>a>img,
.news-list__arrow,
.rec-position-card-label>img,
.risks-page .risk-card-bottom img,
.risks-page .risk-case>img {
  transition: translate .3s cubic-bezier(.2,.7,.2,1);
}

/* Only pointer-driven controls move; photos keep their original, stable crop. */
@media (hover: hover) and (pointer: fine) {
  .service-card:hover,
  .footer-promo:hover {
    translate: 0 -5px;
    box-shadow: 0 16px 36px #08779c1c, inset 0 0 0 1px #00a5dd29;
  }

  .home-news-list>a:hover,
  .news-list__item:hover {
    background-color: #edf8fc;
    box-shadow: inset 3px 0 #00a5dd;
  }

  .home-news-list>a:hover>img,
  .news-list__item:hover .news-list__arrow,
  .rec-position-card:hover .rec-position-card-label>img,
  .risks-page .risk-card:hover .risk-card-bottom img,
  .risks-page .risk-case:hover>img {
    translate: 5px 0;
  }

  .guidance-contact-button:hover,
  .contact-submit:hover {
    translate: 0 -2px;
    box-shadow: 0 10px 24px #007da829;
    filter: none;
  }

  .guidance-contact-button:hover::before,
  .contact-submit:hover::before {
    transform: translateX(110%);
  }
}

@media (max-width: 760px) {
  :root {
    --surface-hero:
      radial-gradient(ellipse at 0% 112%, transparent 0 60%, #ffffff94 60.2% 60.5%, transparent 60.7%),
      radial-gradient(ellipse at 8% 68%, #54c7ee4a, transparent 72%),
      linear-gradient(125deg, #e2f1f6, #f8fcff 85%);
  }

  .home-intro {
    background: linear-gradient(145deg, #fff 10%, #edf8fe);
  }

  .home-about-features {
    background:
      radial-gradient(ellipse at 100% 64%, #54c7ee29, transparent 62%),
      linear-gradient(180deg, #fff, #edf8fc 36%, #e2f1f6);
  }

  .about-philosophy {
    background:
      radial-gradient(ellipse at 90% 68%, #54c7ee33, transparent 55%),
      linear-gradient(180deg, #fff, #e2f1f6 15%, #36b1d6 40%, #0085b1 68%, #007daa);
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-card,
  .footer-promo,
  .guidance-contact-button,
  .contact-submit,
  .home-news-list>a>img,
  .news-list__arrow,
  .rec-position-card-label>img,
  .risks-page .risk-card-bottom img,
  .risks-page .risk-case>img {
    translate: none !important;
  }

  .guidance-contact-button::before,
  .contact-submit::before {
    display: none;
  }
}
