/* Y85N Premium Footer v4
   Late-loaded, scoped visual layer. No external fonts, JS, images or layout libraries.
   Existing service links, structured content, image paths and mobile CTA remain intact. */

.footer-links,
.y85n-generated-footer {
  --yf-white: #f4f9ff;
  --yf-muted: #a9c1cf;
  --yf-blue: #79d4ff;
  --yf-lime: #b4ef6a;
  --yf-line: rgba(181, 215, 233, .16);
  --yf-surface: rgba(12, 43, 65, .85);
  color: var(--yf-white);
}

/* A complete full-width footer with a controlled luminous top edge. */
.footer-links {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(38px, 4.8vw, 66px) 0 clamp(20px, 2.8vw, 36px);
  border-top: 1px solid rgba(121, 212, 255, .22);
  background:
    radial-gradient(ellipse at 10% 0%, rgba(18, 113, 171, .24), transparent 36%),
    radial-gradient(ellipse at 100% 18%, rgba(150, 218, 99, .065), transparent 28%),
    linear-gradient(155deg, #071d30 0%, #071724 52%, #04111c 100%);
}
.footer-links::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, 70vw);
  height: 2px;
  background: linear-gradient(90deg, transparent, #5acaff 42%, #c0f57a 64%, transparent);
  box-shadow: 0 0 30px rgba(88, 200, 255, .5);
  pointer-events: none;
}
.footer-links > .container { position: relative; z-index: 1; min-width: 0; }
.footer-links :where(.footer-hero-grid, .footer-quick-grid, .footer-contact-strip,
  .footer-catalog-head, .linkBox, .categoryGrid, .footer-bottom) { min-width: 0; }

/* Hero / overview: two visually balanced halves, not an empty wide panel. */
.footer-links .footer-hero-grid {
  gap: 14px;
  align-items: stretch;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
}
.footer-links .footer-brand-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(22px, 3vw, 35px);
  border: 1px solid rgba(146, 207, 245, .24);
  border-radius: 23px;
  background:
    radial-gradient(circle at 90% 0, rgba(83, 197, 255, .16), transparent 39%),
    linear-gradient(145deg, #0d354e, #0a263a 68%, #091e30);
  box-shadow: inset 0 1px rgba(255, 255, 255, .07), 0 22px 48px rgba(0, 8, 16, .2);
}
.footer-links .footer-brand-panel::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 190px;
  height: 190px;
  right: -108px;
  top: -100px;
  border: 1px solid rgba(147, 218, 255, .24);
  border-radius: 50%;
  box-shadow: 0 0 0 36px rgba(137, 204, 242, .035), 0 0 0 78px rgba(137, 204, 242, .025);
  pointer-events: none;
}
.footer-links .footer-logo-lockup { gap: 13px; margin-bottom: 15px; }
.footer-links .footer-logo-lockup img {
  width: clamp(56px, 5.2vw, 70px);
  height: clamp(56px, 5.2vw, 70px);
  object-fit: contain;
  flex: none;
}
.footer-links .footer-logo-lockup strong {
  font-size: clamp(1.65rem, 2.7vw, 2.25rem);
  letter-spacing: -.04em;
}
.footer-links .footer-logo-lockup span { color: #90dfff; }
.footer-links .footer-brand-panel h2 {
  max-width: 690px;
  margin: 0 0 .42em;
  font-size: clamp(1.85rem, 2.6vw, 3rem);
  line-height: 1.14;
  text-wrap: balance;
}
.footer-links .footer-brand-panel p {
  margin: 0;
  max-width: 720px;
  color: #c5d9e6;
  line-height: 1.65;
}
.footer-links .footer-tags { gap: 7px; margin: 16px 0; }
.footer-links .footer-tags span {
  border-color: rgba(146, 207, 245, .18);
  background: rgba(170, 222, 255, .065);
  padding: 7px 10px;
  color: #e3f1fa;
  line-height: 1.3;
}
.footer-links .footer-brand-panel .button-row { margin-top: 17px; gap: 9px; }
.footer-links .footer-brand-panel .btn { min-width: 0; min-height: 45px; }

/* Four navigation cards remain scannable and evenly sized. */
.footer-links .footer-quick-grid { gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-links .footer-nav-card {
  min-width: 0;
  min-height: 0;
  padding: clamp(16px, 2.1vw, 23px);
  gap: 8px;
  border: 1px solid var(--yf-line);
  border-radius: 18px;
  background: linear-gradient(157deg, rgba(23, 65, 88, .74), rgba(10, 34, 53, .67));
  box-shadow: inset 0 1px rgba(255, 255, 255, .035);
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}
.footer-links .footer-nav-card:hover {
  border-color: rgba(125, 209, 255, .42);
  transform: translateY(-2px);
}
.footer-links .footer-nav-card > span {
  margin-bottom: 5px;
  color: #8ddcff;
  font-size: .66rem;
  letter-spacing: .115em;
}
.footer-links .footer-nav-card a {
  max-width: 100%;
  color: #ebf6fb;
  overflow-wrap: anywhere;
  line-height: 1.45;
  font-weight: 720;
  text-underline-offset: 3px;
}
.footer-links .footer-nav-card a:hover { color: #c6f78d; }
.footer-links .footer-status strong { font-size: clamp(1.05rem, 1.4vw, 1.2rem); }
.footer-links .footer-status p { color: #b6cedc; line-height: 1.56; }

/* Service strip: compact information density with one dominant CTA. */
.footer-links .footer-contact-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(185px, .65fr);
  margin: 15px 0 clamp(32px, 4vw, 50px);
  border: 1px solid rgba(120, 199, 242, .24);
  border-radius: 17px;
  background: rgba(6, 24, 39, .74);
  box-shadow: 0 12px 32px rgba(0, 9, 16, .13);
}
.footer-links .footer-contact-strip > div { min-width: 0; padding: 17px clamp(12px, 1.5vw, 21px); }
.footer-links .footer-contact-strip small { color: #8fdcff; font-size: .64rem; }
.footer-links .footer-contact-strip strong {
  color: #f2faff;
  font-size: clamp(.82rem, 1vw, .96rem);
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.footer-links .footer-contact-strip > a {
  min-width: 0;
  white-space: normal;
  padding: 14px 17px;
  text-align: center;
  line-height: 1.4;
  background: linear-gradient(115deg, #a8e764, #d0f98d);
  color: #102718;
  transition: filter .18s ease;
}
.footer-links .footer-contact-strip > a:hover { filter: brightness(1.08); }

/* Catalog: premium accordion treatment, no SEO links removed. */
.footer-links .footer-catalog-head {
  padding-top: 22px;
  border-top: 1px solid var(--yf-line);
  gap: 20px;
}
.footer-links .footer-catalog-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.9rem);
  line-height: 1.14;
  text-wrap: balance;
}
.footer-links .footer-catalog-head .intro { color: #b5cad6; line-height: 1.65; }
.footer-links .linkBox { margin-top: 18px; }
.footer-links .categoryGrid { gap: 9px; }
.footer-links .catGroup {
  min-width: 0;
  border: 1px solid rgba(159, 207, 232, .16);
  border-radius: 13px;
  background: linear-gradient(140deg, rgba(25, 63, 84, .64), rgba(12, 38, 56, .72));
  transition: border-color .18s ease, background .18s ease;
}
.footer-links .catGroup:hover,
.footer-links .catGroup[open] { border-color: rgba(129, 214, 255, .47); }
.footer-links .catGroup summary {
  min-width: 0;
  min-height: 54px;
  gap: 8px;
  padding: 13px 14px;
  line-height: 1.4;
  color: #eaf7fe;
  overflow-wrap: anywhere;
}
.footer-links .catGroup summary em { color: #9adcf9; }
.footer-links .catGroup[open] {
  background: linear-gradient(135deg, rgba(25, 68, 95, .76), rgba(11, 35, 52, .93));
}
.footer-links .catLinks a {
  min-width: 0;
  padding: 9px 11px;
  background: rgba(145, 206, 241, .055);
  border: 1px solid rgba(161, 215, 244, .085);
  color: #c6dce8;
  line-height: 1.48;
  border-radius: 9px;
}
.footer-links .catLinks a:hover {
  background: rgba(111, 211, 255, .13);
  color: #fff;
}

/* An intentional high-finish endcap, not a small copyright line in empty space. */
.footer-links .footer-bottom {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, .62fr) minmax(0, 1.6fr);
  align-items: center;
  gap: clamp(16px, 2.5vw, 32px);
  margin-top: clamp(24px, 3.4vw, 38px);
  padding: clamp(19px, 2.65vw, 30px);
  border: 1px solid rgba(140, 201, 235, .24);
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 95% 0%, rgba(76, 173, 221, .13), transparent 40%),
    linear-gradient(125deg, rgba(16, 55, 80, .96), rgba(8, 29, 46, .96));
  box-shadow: inset 0 1px rgba(255, 255, 255, .055), 0 18px 44px rgba(0, 8, 17, .25);
}
.footer-links .footer-bottom::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 22px;
  width: clamp(72px, 14%, 170px);
  height: 2px;
  background: linear-gradient(90deg, #9fdcfa, #a9f078);
  border-radius: 2px;
}
.footer-links .footer-brand { gap: 12px; min-width: 0; align-items: center; }
.footer-links .footer-brand img {
  flex: none;
  width: clamp(48px, 4.5vw, 58px);
  height: clamp(48px, 4.5vw, 58px);
  object-fit: contain;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, .26));
}
.footer-links .footer-brand strong {
  font-size: 1.05rem;
  line-height: 1.3;
  font-weight: 900;
  color: #fff;
}
.footer-links .footer-brand span { color: #adc8d7; line-height: 1.6; }
.footer-links .footer-bottom-center {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 7px;
  min-width: 0;
}
.footer-links .footer-bottom-center a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgba(184, 223, 245, .16);
  border-radius: 8px;
  background: rgba(148, 208, 241, .055);
  color: #cce0ec;
  text-decoration: none;
  font-size: .77rem;
  font-weight: 750;
  line-height: 1.25;
  transition: background .16s ease, color .16s ease;
}
.footer-links .footer-bottom-center a:hover {
  background: rgba(121, 212, 255, .17);
  color: #fff;
}
.footer-links .footer-copy {
  min-width: 0;
  width: 100%;
  padding: 0 0 0 clamp(14px, 2vw, 27px);
  border-left: 1px solid rgba(175, 220, 242, .2);
  text-align: left;
  color: #adc6d4;
}

/* Brand partners, always three links with a visible job title. */
.y85n-footer-signature { min-width: 0; width: 100%; font-size: 13px; text-align: left; }
.y85n-signature-overline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 11px;
  color: #a3daef;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .13em;
  line-height: 1.3;
}
.y85n-signature-spark {
  display: inline-block;
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b8f077;
  box-shadow: 0 0 0 4px rgba(167, 234, 98, .12);
}
.y85n-signature-rule {
  display: inline-block;
  flex: 1;
  height: 1px;
  min-width: 6px;
  background: linear-gradient(90deg, rgba(147, 202, 232, .31), transparent);
}
.y85n-partner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.y85n-partner-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  min-height: 68px;
  padding: 12px 12px 11px;
  border: 1px solid rgba(149, 209, 244, .23);
  border-radius: 11px;
  background: linear-gradient(155deg, rgba(126, 193, 237, .13), rgba(85, 165, 211, .035));
  text-decoration: none;
  color: #f5fbff;
  box-shadow: inset 0 1px rgba(255,255,255,.035);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.y85n-partner-card::after {
  content: "↗";
  position: absolute;
  right: 9px;
  top: 8px;
  font-size: .8rem;
  color: #8edafa;
  opacity: .9;
}
.y85n-partner-card:hover {
  transform: translateY(-2px);
  border-color: rgba(180, 241, 125, .62);
  background: linear-gradient(155deg, rgba(113, 204, 251, .2), rgba(91, 169, 210, .075));
}
.y85n-partner-role {
  color: #a4c8da;
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 780;
  line-height: 1.3;
  letter-spacing: .045em;
  overflow-wrap: anywhere;
}
.y85n-partner-name {
  color: #f4fbff;
  font-size: clamp(14px, 1.35vw, 19px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.015em;
}
.y85n-footer-legal {
  margin-top: 11px;
  color: #b3c8d6;
  font-size: 11.5px;
  font-weight: 560;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.y85n-footer-legal a {
  color: #b5e9ff;
  text-underline-offset: .17em;
  text-decoration-color: rgba(181, 233, 255, .45);
}
.y85n-footer-legal a:hover { color: white; }

/* Pages which contain a bespoke footer or no original footer at all. */
.y85n-standalone-endcap {
  width: min(1280px, calc(100% - 28px));
  max-width: 100%;
  margin: 24px auto 0;
  padding: 21px;
  border: 1px solid rgba(148, 206, 242, .21);
  border-radius: 17px;
  background: linear-gradient(130deg, #0b2b42, #081e2e);
}
.y85n-generated-footer {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  margin: 0;
  padding: clamp(25px, 4vw, 45px) max(14px, 3vw);
  border-top: 2px solid rgba(131, 212, 253, .38);
  background: radial-gradient(ellipse at 100% 0, #10364e, transparent 54%), #061a2a;
  font-family: inherit;
}
.y85n-generated-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  align-items: center;
  gap: clamp(25px, 6vw, 90px);
  max-width: 1150px;
  margin: 0 auto;
  min-width: 0;
}
.y85n-generated-brand { min-width: 0; }
.y85n-generated-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}
.y85n-generated-brand-link img { width: 60px; height: 60px; object-fit: contain; flex: none; }
.y85n-generated-brand-link strong { display: block; font-size: 1.3rem; font-weight: 900; }
.y85n-generated-brand-link small {
  display: block;
  margin-top: 2px;
  color: #9cdaef;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .1em;
}
.y85n-generated-brand p { max-width: 370px; margin: 12px 0; color: #b9cedc; }
.y85n-generated-contact {
  display: inline-flex;
  padding: 10px 15px;
  border-radius: 9px;
  background: #b9ed7c;
  color: #102817;
  font-size: .88rem;
  font-weight: 900;
  text-decoration: none;
}
.y85n-generated-contact:hover { background: #d3f6a5; }
.y85n-generated-footer .y85n-footer-signature {
  border-left: 1px solid rgba(175, 220, 242, .19);
  padding-left: clamp(20px, 3vw, 33px);
}

/* Meaningful keyboard state and motion preferences. */
.footer-links :where(a, summary, button):focus-visible,
.y85n-generated-footer a:focus-visible,
.y85n-standalone-endcap a:focus-visible {
  outline: 2px solid #beed83;
  outline-offset: 4px;
}
@media (prefers-reduced-motion: reduce) {
  .footer-links .footer-nav-card,
  .footer-links .footer-contact-strip > a,
  .footer-links .footer-bottom-center a,
  .y85n-partner-card { transition: none; }
  .footer-links .footer-nav-card:hover,
  .y85n-partner-card:hover { transform: none; }
}

@media (max-width: 1180px) {
  .footer-links .footer-hero-grid { grid-template-columns: 1fr; }
  .footer-links .footer-contact-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-links .footer-contact-strip > a { grid-column: 1 / -1; min-height: 50px; }
  .footer-links .footer-bottom { grid-template-columns: minmax(0, .7fr) minmax(0, .65fr) minmax(0, 1.7fr); }
}
@media (max-width: 920px) {
  .footer-links .footer-bottom { grid-template-columns: minmax(0, .75fr) minmax(0, 1.3fr); }
  .footer-links .footer-brand { grid-column: 1; }
  .footer-links .footer-bottom-center { grid-column: 2; justify-content: flex-end; }
  .footer-links .footer-copy { grid-column: 1 / -1; border-left: 0; border-top: 1px solid rgba(175, 220, 242, .18); padding: 18px 0 0; }
  .footer-links .categoryGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .footer-links { padding-top: 28px; padding-bottom: 21px; }
  .footer-links .footer-hero-grid { gap: 10px; }
  .footer-links .footer-brand-panel { border-radius: 17px; padding: 19px; }
  .footer-links .footer-brand-panel h2 { font-size: clamp(1.7rem, 8vw, 2.3rem); }
  .footer-links .footer-logo-lockup img { width: 54px; height: 54px; }
  .footer-links .footer-quick-grid { gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-links .footer-nav-card { padding: 15px 12px; border-radius: 13px; }
  .footer-links .footer-nav-card a { font-size: .8rem; }
  .footer-links .footer-nav-card > span { font-size: .58rem; }
  .footer-links .footer-status strong { font-size: .95rem; }
  .footer-links .footer-status p { font-size: .77rem; }
  .footer-links .footer-contact-strip { grid-template-columns: 1fr 1fr; margin: 12px 0 28px; }
  .footer-links .footer-contact-strip > div { padding: 12px 13px; }
  .footer-links .footer-contact-strip > div:nth-child(2) { border-right: 0; }
  .footer-links .footer-contact-strip > div:nth-child(3) { grid-column: 1 / -1; border-right: 0; }
  .footer-links .footer-contact-strip > a { grid-column: 1 / -1; min-height: 46px; }
  .footer-links .footer-catalog-head { grid-template-columns: 1fr; gap: 7px; }
  .footer-links .footer-catalog-head h2 { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .footer-links .categoryGrid { grid-template-columns: 1fr; }
  .footer-links .catGroup[open] .catLinks { grid-template-columns: 1fr; }
  .footer-links .footer-bottom {
    grid-template-columns: 1fr;
    margin-top: 21px;
    padding: 17px;
    border-radius: 16px;
    gap: 11px;
  }
  .footer-links .footer-brand,
  .footer-links .footer-bottom-center,
  .footer-links .footer-copy { grid-column: 1; }
  .footer-links .footer-bottom-center { justify-content: flex-start; }
  .footer-links .footer-copy { padding-top: 14px; }
  .y85n-generated-shell { grid-template-columns: 1fr; gap: 23px; }
  .y85n-generated-footer .y85n-footer-signature { padding: 18px 0 0; border-left: 0; border-top: 1px solid rgba(175, 220, 242, .19); }
}
@media (max-width: 370px) {
  .footer-links .footer-quick-grid { grid-template-columns: 1fr; }
  .footer-links .footer-contact-strip strong { font-size: .78rem; }
  .y85n-partner-grid { gap: 5px; }
  .y85n-partner-card { min-height: 66px; padding: 10px 8px; }
  .y85n-partner-card::after { right: 6px; top: 7px; }
  .y85n-partner-role { font-size: 8px; }
  .y85n-partner-name { font-size: 15px; }
}
