/* ============================================================
   ALECTIUS — Services (minimal cards) + service detail pages
   Self-contained styling, independent of Nicepage.
   ============================================================ */

.alx {
  --alx-ink: #14141a;
  --alx-muted: #6b6b76;
  --alx-line: rgba(20,20,26,.10);
  --alx-bg: #f5f5f7;
  --alx-dark: #141418;
  --alx-font: "Roboto", "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* hide the old Nicepage service sections that this replaces */
.u-section-3, .u-section-4, .u-section-5 { display: none !important; }

/* ---------- Services section on the home page ---------- */
.alx-services {
  font-family: var(--alx-font);
  background: linear-gradient(180deg, #d9d9d9 0%, #e9e9ec 26%, #e9e9ec 100%);
  color: var(--alx-ink);
  padding: 84px 24px 100px;
}
.alx-inner { max-width: 1200px; margin: 0 auto; }

.alx-eyebrow {
  font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--alx-muted); margin: 0 0 10px;
}
.alx-h2 {
  font-size: clamp(28px, 4vw, 46px); line-height: 1.05; font-weight: 700;
  margin: 0 0 40px; letter-spacing: -.02em;
}

/* Expanding accordion: hovering a card widens it, others shrink */
.alx-cards { display: flex; gap: 20px; align-items: stretch; }
.alx-card { flex: 1 1 0; min-width: 0; }
.alx-cards:hover .alx-card { flex-grow: .82; }
.alx-cards .alx-card:hover { flex-grow: 2.6; }

/* ---------- Card ---------- */
.alx-card {
  position: relative; display: flex; flex-direction: column;
  min-height: 580px; padding: 34px 30px 28px;
  border-radius: 28px; text-decoration: none; color: var(--alx-ink);
  background: #f1f1f3; overflow: hidden;
  transition: flex-grow .5s cubic-bezier(.22,.61,.36,1), background .35s ease, color .35s ease, box-shadow .4s ease;
  box-shadow: 0 2px 10px rgba(20,20,26,.05);
  -webkit-tap-highlight-color: transparent;   /* no blue flash on tap */
  -webkit-touch-callout: none;
}
/* on hover the card turns the site's yellow (same as the VISION accent) */
.alx-card:hover { background: #f6d448; box-shadow: 0 26px 55px rgba(20,20,26,.20); }
/* grey focus ring for keyboard users — no blue, no pure black */
.alx-card:focus-visible { outline: 3px solid #5f5f66; outline-offset: 3px; }

/* all cards identical — uniform light grey, no black card, no reverse/invert */
.alx-card--1,
.alx-card--2,
.alx-card--3,
.alx-card--4 { background: #f1f1f3; }

/* lock link colours so the titles never turn blue/purple on click or visit */
.alx-card,
.alx-card:link,
.alx-card:visited,
.alx-card:hover,
.alx-card:focus,
.alx-card:active { color: var(--alx-ink); }

.alx-card__title {
  font-size: 30px; font-weight: 800; letter-spacing: -.01em;
  text-transform: uppercase; margin: 0 0 6px; color: var(--alx-ink);
}
.alx-card__sub { font-size: 14px; line-height: 1.45; margin: 0; color: var(--alx-muted); }

/* description that appears over the card on hover */
.alx-card__desc {
  position: absolute; left: 28px; right: 28px; bottom: 92px; margin: 0;
  font-size: 16px; line-height: 1.5; color: var(--alx-ink);
  opacity: 0; transform: translateY(14px);
  transition: opacity .4s ease .05s, transform .5s cubic-bezier(.22,.61,.36,1) .05s;
  pointer-events: none;
}
.alx-card:hover .alx-card__desc { opacity: 1; transform: none; }
/* fade the centered icon back so the text reads clearly */
.alx-card__icon { transition: opacity .4s ease, transform .4s ease; }
/* icons turn white on hover */
.alx-card:hover .alx-card__icon { opacity: 1; }
.alx-card:hover .alx-card__icon svg * { stroke: #fff; }
.alx-card:hover .alx-card__icon svg [fill="currentColor"],
.alx-card:hover .alx-card__icon svg [fill="#14141a"] { fill: #fff; }

/* centered icon */
.alx-card__icon {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 18px 0;
}
.alx-card__icon svg { width: 92px; height: 92px; }
.alx-card__icon svg * { stroke: var(--alx-ink); }

/* bottom row: number progress + arrow */
.alx-card__bottom { display: flex; align-items: center; justify-content: space-between; }
.alx-card__num { font-size: 14px; font-weight: 500; color: var(--alx-muted); display: inline-flex; align-items: center; gap: 12px; }
.alx-card__num b { color: var(--alx-ink); font-weight: 700; }
.alx-card__num i { width: 40px; height: 1px; background: currentColor; display: inline-block; opacity: .5; }

.alx-card__go {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--alx-ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: transform .35s ease, background .35s ease;
}
.alx-card__go svg { width: 20px; height: 20px; }
.alx-card:hover .alx-card__go { transform: rotate(45deg); }

/* Responsive: no accordion on smaller screens — stack and show text */
@media (max-width: 900px){
  .alx-cards { display: grid; grid-template-columns: repeat(2, 1fr); }
  .alx-card { flex: none; min-height: 440px; }
  .alx-cards:hover .alx-card,
  .alx-cards .alx-card:hover { flex-grow: 0; }
  .alx-card__desc {
    position: static; opacity: 1; transform: none; margin-top: 10px;
    left: auto; right: auto; bottom: auto; font-size: 14px;
  }
  .alx-card:hover .alx-card__icon { opacity: 1; }
  .alx-card__icon { padding: 12px 0; }
}
@media (max-width: 520px){ .alx-cards { grid-template-columns: 1fr; } }

/* ============================================================
   Service DETAIL pages
   ============================================================ */
.alx-page {
  font-family: var(--alx-font); color: var(--alx-ink);
  background: #fff; margin: 0;
}
.alx-nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1100px; margin: 0 auto; padding: 26px 24px;
}
.alx-brand { font-size: 20px; font-weight: 800; letter-spacing: .22em; text-decoration: none; color: var(--alx-ink); }
.alx-back { font-size: 14px; text-decoration: none; color: var(--alx-muted); display: inline-flex; align-items: center; gap: 8px; }
.alx-back:hover { color: var(--alx-ink); }

.alx-hero { max-width: 1100px; margin: 0 auto; padding: 40px 24px 20px; }
.alx-hero__eyebrow { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--alx-muted); margin: 0 0 14px; }
.alx-hero__title { font-size: clamp(40px, 8vw, 96px); line-height: .98; font-weight: 800; letter-spacing: -.03em; margin: 0 0 20px; text-transform: uppercase; }
.alx-hero__lead { font-size: clamp(17px, 2.2vw, 21px); line-height: 1.6; max-width: 640px; color: #34343c; margin: 0; }

.alx-band { background: var(--alx-bg); margin-top: 56px; }
.alx-band__inner { max-width: 1100px; margin: 0 auto; padding: 64px 24px; }
.alx-band h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 700; letter-spacing: -.02em; margin: 0 0 32px; }

.alx-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 720px){ .alx-grid { grid-template-columns: 1fr; } }
.alx-item {
  background: #fff; border: 1px solid var(--alx-line); border-radius: 18px;
  padding: 22px 24px;
}
.alx-item h3 { font-size: 17px; font-weight: 700; margin: 0 0 6px; }
.alx-item p { font-size: 15px; line-height: 1.6; color: var(--alx-muted); margin: 0; }

.alx-steps { counter-reset: step; display: grid; gap: 14px; max-width: 780px; }
.alx-step { display: flex; gap: 18px; align-items: flex-start; padding: 18px 0; border-top: 1px solid var(--alx-line); }
.alx-step::before {
  counter-increment: step; content: "0" counter(step);
  font-size: 15px; font-weight: 700; color: var(--alx-muted); min-width: 34px;
}
.alx-step div h3 { font-size: 17px; font-weight: 700; margin: 0 0 4px; }
.alx-step div p { font-size: 15px; line-height: 1.6; color: var(--alx-muted); margin: 0; }

.alx-cta { max-width: 1100px; margin: 0 auto; padding: 80px 24px 96px; text-align: center; }
.alx-cta h2 { font-size: clamp(28px, 5vw, 52px); font-weight: 800; letter-spacing: -.02em; margin: 0 0 22px; }
.alx-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--alx-ink); color: #fff; text-decoration: none;
  padding: 16px 30px; border-radius: 999px; font-size: 16px; font-weight: 600;
  transition: transform .3s ease, opacity .3s ease;
}
.alx-btn:hover { transform: translateY(-3px); opacity: .92; }

.alx-foot { border-top: 1px solid var(--alx-line); }
.alx-foot__inner { max-width: 1100px; margin: 0 auto; padding: 30px 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 14px; color: var(--alx-muted); }

@media (prefers-reduced-motion: reduce){
  .alx-card, .alx-card__go, .alx-btn { transition: none !important; }
  .alx-card:hover { transform: none; }
  .alx-card:hover .alx-card__icon { animation: none; }
}

/* ============================================================
   Lightbox — click a gallery photo to view it large
   ============================================================ */
.alx-zoom { cursor: zoom-in; }
.alx-lb {
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(10,10,12,.93);
  display: flex; align-items: center; justify-content: center; padding: 4vh 4vw;
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
}
.alx-lb.open { opacity: 1; visibility: visible; }
.alx-lb img {
  max-width: 100%; max-height: 92vh; border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
  transform: scale(.96); transition: transform .3s ease;
}
.alx-lb.open img { transform: scale(1); }
.alx-lb__content { display: flex; align-items: center; justify-content: center; max-width: 100%; max-height: 92vh; }
.alx-lb__video { position: relative; height: 92vh; aspect-ratio: 9 / 16; max-width: 100%; }
.alx-lb__video iframe { width: 100%; height: 100%; border: 0; border-radius: 12px; }

/* play button overlay on the video tile in the gallery */
.alx-videocell { position: relative; }
.alx-videocell .alx-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  z-index: 3; pointer-events: none;
}
.alx-videocell .alx-play svg {
  width: 26px; height: 26px;
  padding: 20px; border-radius: 50%; background: rgba(0,0,0,.55);
  box-sizing: content-box;
}
.alx-lb__close {
  position: absolute; top: 22px; right: 26px; width: 46px; height: 46px;
  border: none; background: rgba(255,255,255,.14); color: #fff; border-radius: 50%;
  font-size: 26px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.alx-lb__close:hover { background: rgba(255,255,255,.26); }
