/* =========================================================
   Xyphos – Global accessibility baseline
   ========================================================= */

/* Design tokens */
:root {
  --xyphos-gap: 12px;
  --xyphos-radius: 14px;
  --xyphos-focus: #0d6efd; /* Bootstrap primary */
}

/* =========================================================
   Universal interactive affordance
   ========================================================= */

/*
  Any element that is interactive and focusable
  must gain an underline on hover or focus.

  This includes:
  - links
  - buttons
  - elements with role="button"
  - Bootstrap .btn
*/

a,
button,
[role="button"],
input,
select,
textarea {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  text-shadow: 0 0 black;
}

/* Hover + focus affordance */

header a:hover,
header a:focus,

main a:hover,
main a:focus,

footer a:hover,
footer a:focus,

a:hover,
a:focus,
a:focus-visible,

button:hover,
button:focus,
button:focus-visible,

.btn:hover,
.btn:focus,
.btn:focus-visible,

[role="button"]:hover,
[role="button"]:focus,
[role="button"]:focus-visible,

input:focus,
input:focus-visible,

select:focus,
select:focus-visible,

textarea:focus,
textarea:focus-visible {
  text-decoration: underline;
  text-shadow: 0 0 black;
}


/* Primary navigation links */
.navbar-expand-lg .navbar-nav .nav-link {
  font-weight: 600;
  text-decoration: none;
}

/* Hover + keyboard focus */
.navbar-expand-lg .navbar-nav .nav-link:hover,
.navbar-expand-lg .navbar-nav .nav-link:focus-visible {
  text-decoration: underline;
}

/* Current page */
.navbar-expand-lg .navbar-nav .nav-link.active,
.navbar-expand-lg .navbar-nav .nav-link.show {
  text-decoration: underline;
}


/* =========================================================
   Global focus visibility (keyboard users)
   ========================================================= */

:focus-visible {
  outline: 3px solid var(--xyphos-focus);
  outline-offset: 2px;
  text-decoration: underline;
}

/* Remove focus suppression from frameworks */
*:focus {
  /* outline: none; */
  outline: 3px solid var(--xyphos-focus);
  text-decoration: underline;
}

/* Restore visible focus properly */
*:focus-visible {
  outline: 3px solid var(--xyphos-focus);
  outline-offset: 2px;
  text-decoration: underline;
}

/* =========================================================
   Skip link (defined once)
   ========================================================= */

/* .skip-link {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(-200%);
  padding: 0.75rem 1rem;
  background: #fff;
  color: #000;
  border: 2px solid var(--xyphos-focus);
  border-radius: 0.5rem;
  z-index: 10000;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  text-decoration: underline;
} */


.skip-link{
  position:absolute;
  left:-9999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
  z-index: 2000;
}

.skip-link:focus,
.skip-link:focus-visible{
  position:fixed;
  left: 5px;
  top: 10px;
  width:auto;
  height:auto;
  overflow:visible;
  padding:.75rem 0.85rem;
  border-radius:.5rem;
  background:#fff;
  border:2px solid #0d6efd;
  color:#000;
  text-decoration: underline;
}


/* =========================================================
   Header / brand
   ========================================================= */

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0d6efd, #6610f2);
  display: inline-block;
}

/* =========================================
   Xyphos Hero Banner
   ========================================= */

.xy-hero-banner {
  position: relative;
  background: url("/assets/img/banner.jpg") center no-repeat;
  background-size: cover;
  min-height: clamp(240px, 30vw, 400px);
  display: flex;
  align-items: center;
}

/* overlay for contrast */
.xy-hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(175, 218, 245, 0.84);
  backdrop-filter: blur(1px);
  z-index: 0;
}

.xy-hero-banner__inner {
  position: relative;
  padding: clamp(24px, 4vw, 56px) 0;
}

.xy-hero-banner__copy {
  max-width: 75ch;
  color: #000;
  z-index: 1;
}

.xy-hero-banner__title {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  color: #000;
}

.xy-hero-banner__text {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 1.25rem;
  color: #000;
}

.xy-hero-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Base icon behaviour */
.icon {
  display: inline-block;
  vertical-align: -0.125em;
  fill: currentColor;
}

/* Sizes (pick what you want) */
.icon--xs { width: 14px; height: 14px; }
.icon--sm { width: 16px; height: 16px; }
.icon--md { width: 20px; height: 20px; }
.icon--lg { width: 24px; height: 24px; }

/* Link styling example */
.social-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: inherit;
  text-decoration: none;
}
.social-link:hover { text-decoration: underline; }
.social-link:focus-visible {
  outline: 3px solid var(--xyphos-focus);
  outline-offset: 2px;
  text-decoration: underline;
}

/* =========================================================
   Callout compponents
   ========================================================= */

.xy-services__intro {
  padding: 1.25rem 0 1.5rem;
}

.xy-services__lead {
  max-width: 72ch;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(0,0,0,0.78);
  margin: 0 0 1rem 0;
}

/* “On this page” */
.xy-services__jump {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1rem;
  align-items: baseline;
  padding: .85rem 1rem;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 14px;
  background: rgba(0,0,0,0.02);
}

.xy-services__jump-title {
  font-weight: 800;
  margin-right: .5rem;
}

.xy-services__jump-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1rem;
}

.xy-services__jump-list a {
  text-decoration: none;
  font-weight: 600;
}
.xy-services__jump-list a:hover,
.xy-services__jump-list a:focus-visible {
  text-decoration: underline;
}

/* Service section */
.xy-service {
  margin-top: 1.5rem;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 2px 3px rgba(0,0,0,0.04);
  overflow: hidden;
}

.xy-service--alt {
  background: linear-gradient(180deg, rgba(0,0,0,0.015), rgba(0,0,0,0.00));
}

.xy-service__grid {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 992px) {
  .xy-service__grid {
    grid-template-columns: 1fr 1.1fr;
  }
}

.xy-service__head,
.xy-service__body {
  padding: 0.35rem 1.35rem;
}

@media (min-width: 992px) {
  .xy-service__head {
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    margin: 2rem 0;
  }
}

/* Title + icon row */
.xy-service__icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(13,110,253,0.10);
  border: 1px solid rgba(13,110,253,0.18);
  margin-bottom: .85rem;
}

.xy-service__title {
  font-weight: 900;
}

.xy-service__title a {
  color: inherit;
  text-decoration: none;
}

.xy-service__title a:hover,
.xy-service__title a:focus-visible {
  text-decoration: underline;
}

.xy-service__sub {
  margin: 0 0 .85rem 0;
  color: rgba(0,0,0,0.72);
  line-height: 1.55;
}

/* Pills */
.xy-service__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0 0 .95rem 0;
}

.xy-pill {
  display: inline-flex;
  align-items: center;
  padding: .25rem .55rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .85rem;
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.10);
}

/* Note (quiet authority line) */
.xy-service__note {
  margin: 0 0 1rem 0;
  padding: .85rem 1rem;
  border-radius: 14px;
  background: #f6f8fb;
  border: 1px solid rgba(0,0,0,0.06);
  color: rgba(0,0,0,0.78);
  line-height: 1.55;
}

.xy-service__more {
  font-weight: 700;
  text-decoration: none;
}

.xy-service__more:hover,
.xy-service__more:focus-visible {
  text-decoration: underline;
}

/* Right side */
.xy-service__body-title {
  font-size: 1.25rem;
  font-weight: 900;
  margin: 2rem 0 1rem 0;
}

/* Use a grid list instead of CSS columns (cleaner, no weird breaks) */
.xy-service__list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: .55rem;
}

@media (min-width: 768px) {
  /* .xy-service__list {
    grid-template-columns: 1fr 1fr;
    column-gap: 1.5rem;
  } */
}

.xy-service__list li {
  line-height: 1.55;
  color: rgba(0,0,0,0.88);
}

/* Best for callout */
.xy-service__callout {
  margin: 1rem 0;
  padding: .9rem 1rem;
  border-radius: 14px;
  background: rgba(0, 139, 139, 0.06);
  border: 1px solid rgba(0, 139, 139, 0.28);
  box-shadow: 0 2px 3px rgba(0,0,0,0.04);
}

/* Engagements band */
.xy-engagements {
  margin-top: 2.25rem;
  padding: 1.25rem 0 0;
}

.xy-engagements__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding: 1.35rem 1.35rem;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,0.10);
  background: #0f172a; /* deep slate */
  color: #fff;
  box-shadow: 0 18px 55px rgba(0,0,0,0.15);
}

@media (min-width: 992px) {
  /* .xy-engagements__inner {
    grid-template-columns: 1.35fr .65fr;
    align-items: center;
  } */
}

.xy-engagements__title {
  margin: 0 0 .5rem 0;
  font-weight: 900;
}

.xy-engagements__text {
  color: rgba(255,255,255,0.82);
  line-height: 1.6;
}

.xy-engagements a {
  color: #fff;
}

.xy-engagements__cta {
  display: flex;
  justify-content: flex-start;
}

@media (min-width: 992px) {
  .xy-engagements__cta {
    justify-content: flex-end;
  }
}


/* Watermark icon behind each service card */
.xy-service {
  position: relative;
}

@media (min-width: 992px) {
  /* The watermark layer */
  .xy-service::after {
    content: "";
    position: absolute;
    right: 22px;
    top: 2rem;
    width: 100px;
    height: 100px;
    opacity: 0.1;                 /* keep subtle */
    pointer-events: none;
    background: #7d7979;           /* uses your primary */
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    box-shadow: 0 0 15px rgba(0,0,0,0.03);
  }

  /* Ensure watermark never reduces readability */
  .xy-service__grid,
  .xy-service__head,
  .xy-service__body {
    position: relative;
    z-index: 1;
  }

  /* AI: shield-check */
  .xy-service--ai::after {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5.338 1.59a61.44 61.44 0 0 0-2.837.856.481.481 0 0 0-.328.39c-.554 4.157.726 7.19 2.253 9.188a10.725 10.725 0 0 0 2.287 2.233c.346.244.652.42.893.533.12.057.218.095.293.118.074-.023.172-.061.293-.118.24-.113.547-.29.893-.533a10.725 10.725 0 0 0 2.287-2.233c1.527-1.997 2.807-5.031 2.253-9.188a.481.481 0 0 0-.328-.39c-.651-.213-1.75-.56-2.837-.856C9.552 1.29 8.531 1.067 8 1.067c-.531 0-1.552.223-2.662.524z'/%3E%3Cpath d='M10.854 5.146a.5.5 0 0 1 0 .708L7.854 8.854a.5.5 0 0 1-.708 0L5.646 7.354a.5.5 0 1 1 .708-.708L7.5 7.793l2.646-2.647a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5.338 1.59a61.44 61.44 0 0 0-2.837.856.481.481 0 0 0-.328.39c-.554 4.157.726 7.19 2.253 9.188a10.725 10.725 0 0 0 2.287 2.233c.346.244.652.42.893.533.12.057.218.095.293.118.074-.023.172-.061.293-.118.24-.113.547-.29.893-.533a10.725 10.725 0 0 0 2.287-2.233c1.527-1.997 2.807-5.031 2.253-9.188a.481.481 0 0 0-.328-.39c-.651-.213-1.75-.56-2.837-.856C9.552 1.29 8.531 1.067 8 1.067c-.531 0-1.552.223-2.662.524z'/%3E%3Cpath d='M10.854 5.146a.5.5 0 0 1 0 .708L7.854 8.854a.5.5 0 0 1-.708 0L5.646 7.354a.5.5 0 1 1 .708-.708L7.5 7.793l2.646-2.647a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E");
  }

  /* A11Y: universal-access */
  .xy-service--a11y::after {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M9.5 1.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z'/%3E%3Cpath d='M6 4.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1H8.5v2.56l2.44 1.22a.5.5 0 1 1-.44.9L8 8.44l-2.5 1.22a.5.5 0 1 1-.44-.9L7.5 7.56V5H6.5a.5.5 0 0 1-.5-.5z'/%3E%3Cpath d='M8 0a8 8 0 1 0 8 8A8.009 8.009 0 0 0 8 0zm0 15A7 7 0 1 1 15 8a7.008 7.008 0 0 1-7 7z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M9.5 1.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z'/%3E%3Cpath d='M6 4.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1H8.5v2.56l2.44 1.22a.5.5 0 1 1-.44.9L8 8.44l-2.5 1.22a.5.5 0 1 1-.44-.9L7.5 7.56V5H6.5a.5.5 0 0 1-.5-.5z'/%3E%3Cpath d='M8 0a8 8 0 1 0 8 8A8.009 8.009 0 0 0 8 0zm0 15A7 7 0 1 1 15 8a7.008 7.008 0 0 1-7 7z'/%3E%3C/svg%3E");
  }

  /* QA: clipboard-check */
  .xy-service--qa::after {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M10 1.5H6a.5.5 0 0 0-.5.5v1H5a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2h-.5v-1a.5.5 0 0 0-.5-.5zM6.5 2h3v1h-3V2z'/%3E%3Cpath d='M10.854 7.146a.5.5 0 0 1 0 .708l-2.5 2.5a.5.5 0 0 1-.708 0l-1.25-1.25a.5.5 0 1 1 .708-.708l.896.897 2.146-2.147a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M10 1.5H6a.5.5 0 0 0-.5.5v1H5a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2h-.5v-1a.5.5 0 0 0-.5-.5zM6.5 2h3v1h-3V2z'/%3E%3Cpath d='M10.854 7.146a.5.5 0 0 1 0 .708l-2.5 2.5a.5.5 0 0 1-.708 0l-1.25-1.25a.5.5 0 1 1 .708-.708l.896.897 2.146-2.147a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E");
  }

}


/* -----------------------------
   Callout (fancier, with ticks)
------------------------------ */
.callout {
  border-radius: 15px;
  /* border: 1px solid rgba(13,110,253,.22);
  background: linear-gradient(180deg, rgba(13,110,253,.08), rgba(13,110,253,.03));
  box-shadow: 0 7px 20px rgba(0,0,0,.10);
  padding: 20px 30px; */
  border: 1px solid #cbd5dc;
  /* background: linear-gradient(180deg, #f1f1f1, #f2f2f2);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.10); */
  padding: 20px 30px;
}

.callout__head {
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(13,110,253,.18);
}

.callout__title {
  margin: 0;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* .callout__title::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #0d6efd;
  box-shadow: 0 0 0 6px rgba(13,110,253,.12);
} */

.callout__subtitle {
  margin: 6px 0 0 0;
  color: rgba(0,0,0,.70);
  font-size: .95rem;
  line-height: 1.35;
}

.callout__list {
  margin: 0;
  padding: 0;
}

.callout__list--checks {
  list-style: none;
}

.callout__list--checks li {
  position: relative;
  padding-left: 35px;
  margin: 10px 0;
  line-height: 1.4;
  color: rgba(0,0,0,.88);
}

.callout__list--checks li::before {
  content: "✓";
  /* content: attr(data-tick); */
  position: absolute;
  left: 0;
  width: 25px;
  height: 25px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.9rem;
  color: #008b8b;
  background: rgba(0, 139, 139, 0.1);
  border: 1px solid rgba(0, 139, 139, 0.5);
}

.callout__list--checks strong {
  font-weight: 700;
}

.callout__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(13,110,253,.18);
}

.callout__list--plain {
  list-style: none;
  padding: 0;
  margin: 0;
}

.callout__list--plain li {
  padding-left: 0;
  margin: 10px 0;
  line-height: 1.4;
  color: rgba(0,0,0,.88);
}

@media (min-width: 992px) {
  .callout {
    position: sticky;
    top: 92px; /* below sticky header */
  }
}

/* ----------------------------- 
Service tiles band (homepage) 
----------------------------- */
.service-tiles {
  padding: 2rem 0 0;
}

.service-tiles .tiles {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.service-tiles .tile {
  grid-column: span 4;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 14px;
  padding: 1.25rem;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.04);
}

.service-tiles .tile h3 {
  margin: 0 0 .5rem;
  font-size: 1.125rem;
  line-height: 1.25;
}

.service-tiles .tile p {
  margin: 0 0 1rem;
  color: rgba(0,0,0,0.72);
  line-height: 1.5;
}

.service-tiles .tile .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .65rem .95rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
}

.service-tiles .tile .btn:focus-visible {
  outline: 3px solid rgba(0, 85, 255, 0.35);
  outline-offset: 3px;
}

/* If you already have btn styles, keep these minimal */
.service-tiles .tile .btn-dark {
  background: #0b57ff;
  color: #fff;
}

.service-tiles .tile .btn-secondary {
  background: #fff;
  color: #111;
  border-color: rgba(0,0,0,0.18);
}

.service-tiles .tile-muted {
  background: rgba(0,0,0,0.02);
}

/* Responsive */
@media (max-width: 980px) {
  .service-tiles .tile { grid-column: span 6; }
}

@media (max-width: 600px) {
  .service-tiles .tile { grid-column: span 12; }
}

/* Screen-reader only helper (if not already in your CSS) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* -------------------------------------------
   Homepage hierarchy: panel + callout column
-------------------------------------------- */

.xy-home-intro {
  padding: 0.7rem 0 1.25rem;
}

.xy-panel {
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 16px;
  padding: clamp(18px, 2.4vw, 28px);
  background: rgba(0,0,0,0.02);
}

.xy-h2 {
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 0.85rem 0;
}

.xy-lead {
  font-size: 1.08rem;
  line-height: 1.6;
  color: rgba(0,0,0,0.82);
  margin: 0 0 1.25rem 0;
}

.xy-h3 {
  font-weight: 800;
  margin: 0 0 0.65rem 0;
  font-size: 1.55rem;
}

.xy-list {
  margin: 0;
  padding-left: 1.1rem;
}

.xy-list li {
  margin: 0.55rem 0;
  line-height: 1.55;
  color: rgba(0,0,0,0.88);
}

.xy-note {
  margin: 1.1rem 0 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(0,0,0,0.08);
  color: rgba(0,0,0,0.72);
}



/* ------------------------------------------------------------
   Server-side validation styling (Bootstrap-friendly)
------------------------------------------------------------ */

.xy-invalid-label {
  color: var(--bs-danger);
}

/* Ensure invalid fields look invalid even without JS validation */
.form-control.is-invalid,
.form-select.is-invalid,
.form-check-input.is-invalid {
  border-color: var(--bs-danger);
}

/* Optional: a slightly stronger focus ring on invalid fields */
.form-control.is-invalid:focus,
.form-select.is-invalid:focus,
.form-check-input.is-invalid:focus {
  box-shadow: 0 0 0 .25rem rgba(220, 53, 69, .25);
}

/* When we render server-side errors, we usually need them visible */
.invalid-feedback.xy-show {
  display: block;
}



/* =========================================================
   Mobile CTA (sticky footer)
   ========================================================= */

.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1500;
  background: rgba(20, 20, 24, 0.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
}

.mobile-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--xyphos-gap);
}

.mobile-cta__text {
  color: #fff;
  line-height: 1.2;
}

.mobile-cta__actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Prevent fixed CTA covering content */
.has-mobile-cta {
  padding-bottom: 88px;
}

/* =========================================================
   Cookie banner
   ========================================================= */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.15);
  padding: 0.75rem 0;
  z-index: 1050;
}

.cookie-banner__inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 992px) {
  .cookie-banner__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }
}

/* =========================================================
   Forms – ensure focus affordance is obvious
   ========================================================= */

input,
select,
textarea {
  border-radius: 4px;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  text-decoration: underline;
}

/* =========================================================
   Footer
   ========================================================= */

footer a,
footer button {
  text-decoration: underline;
  text-shadow: 0 0 black;
}

.site-footer {
  background: #fff;
}

.footer-brand-name {
  font-weight: 700;
  letter-spacing: .2px;
}

.footer-brand-tag {
  color: rgba(0,0,0,.65);
  font-size: .95rem;
}

.footer-title {
  font-weight: 700;
  margin-bottom: .75rem;
}

.footer-muted {
  color: rgba(0,0,0,.65);
}

.footer-small {
  font-size: .92rem;
  color: rgba(0,0,0,.65);
}

.footer-dot {
  margin: 0 .5rem;
  color: rgba(0,0,0,.35);
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  color: rgba(0,0,0,.80);
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
  text-underline-offset: .22em;
}

.footer-link:focus-visible {
  outline: 3px solid rgba(0,0,0,.7);
  outline-offset: 3px;
  border-radius: 6px;
}

.footer-icon {
  display: inline-block;
  vertical-align: middle;
  opacity: .85;
}

.footer-links li {
  margin-bottom: .55rem;
}

.footer-inline li {
  margin-bottom: .35rem;
}

.footer-toplink {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .75rem;
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 999px;
  color: rgba(0,0,0,.75);
  text-decoration: none;
}

.footer-toplink:hover {
  border-color: rgba(0,0,0,.35);
  text-decoration: none;
}

.to-top{
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;

  background: rgba(255,255,255,.55);
  border: 1px solid rgba(0,0,0,.22);
  color: rgba(0,0,0,.78);

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  text-decoration: none;
  box-shadow: 0 8px 22px rgba(0,0,0,.10);

  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease, border-color .18s ease;
  z-index: 1000;
}

.to-top:hover{
  border-color: rgba(0,0,0,.40);
  transform: translateY(0);
}

.to-top:focus-visible{
  outline: 3px solid rgba(0,0,0,.70);
  outline-offset: 3px;
}

/* Visible state toggled by JS */
.to-top.is-visible{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .to-top{ transition: none; }
}


/* =========================================================
   Reduced motion safety
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
