/*
Theme Name:        AsylaProjects
Theme URI:         https://asylaprojects.com
Author:            Asyla Projects
Author URI:        https://asylaprojects.com
Description:       Website theme for Asyla Projects. Child theme of Twenty Twenty-Five.
Template:          twentytwentyfive
Version:           2.2.4
Requires at least: 6.7
Requires PHP:      7.4
Text Domain:       asylaprojects
*/

/* ==========================================================
   Design tokens
   ========================================================== */
:root {
  --ink: #0B1220;
  --ink-2: #13213A;
  --ink-soft: #2A3A57;
  --paper: #FFFFFF;
  --surface: #F6F5F1;
  --surface-2: #EFEDE6;
  --line: #E4E1D8;
  --line-soft: #ECE9E1;
  --text: #16202E;
  --text-muted: #566072;
  --text-on-dark: #F3F5F8;
  --text-on-dark-muted: #AAB4C6;

  --gold: #B6872E;
  --gold-deep: #8F6A22;
  --gold-soft: #DDBB72;
  --gold-tint: rgba(182, 135, 46, 0.12);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;

  --shadow-sm: 0 3px 12px rgba(16, 24, 40, 0.08);
  --shadow-md: 0 14px 36px rgba(16, 24, 40, 0.12);
  --shadow-lg: 0 28px 70px rgba(16, 24, 40, 0.2);
  --shadow-gold: 0 10px 30px rgba(182, 135, 46, 0.28);

  --container: 1200px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ==========================================================
   Base
   ========================================================== */
html, body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .site-header {
  top: 32px;
}
h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--ink);
  letter-spacing: -0.015em;
  font-weight: 700;
  line-height: 1.2;
}
p { line-height: 1.7; }
a { color: inherit; }
img { max-width: 100%; }

header {
  position: fixed;
  width: 100%;
  z-index: 9999;
}

/* ==========================================================
   Scroll reveal (generic)
   ========================================================== */
.reveal-on-scroll {
  opacity: 0;
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.65,.19,1);
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}
.reveal-on-scroll[data-anim="up"]    { transform: translateY(28px); }
.reveal-on-scroll[data-anim="down"]  { transform: translateY(-28px); }
.reveal-on-scroll[data-anim="left"]  { transform: translateX(-32px); }
.reveal-on-scroll[data-anim="right"] { transform: translateX(32px); }
.reveal-on-scroll.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ==========================================================
   Header / Nav
   ========================================================== */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: transparent;
  padding: 1.1rem 2.5rem;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9999;
  transition: background-color 0.3s ease, border-bottom-color 0.3s ease, padding 0.3s ease, backdrop-filter 0.3s ease;
  flex-wrap: wrap;
  max-width: 100%;
  box-sizing: border-box;
  border-bottom: 1px solid transparent;
}

.site-logo img {
  max-height: 46px;
  height: auto;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  justify-content: flex-end;
  font-size: 0.98rem;
  max-width: 100%;
  box-sizing: border-box;
}

.primary-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2.4rem;
  align-items: center;
}

.primary-menu li {
  list-style: none;
}

.primary-menu a {
  text-decoration: none;
  color: #1c2534;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
}

.primary-menu a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--gold);
  transition: right 0.25s ease;
}

.primary-menu a:hover {
  color: var(--ink);
}
.primary-menu a:hover::after {
  right: 0;
}

body.scrolled .site-header {
  background-color: rgba(11, 18, 32, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  padding: 0.85rem 2.5rem;
}

body.scrolled .primary-menu a {
  color: var(--text-on-dark);
}
body.scrolled .primary-menu a:hover {
  color: var(--gold-soft);
}

/* Hamburger toggle: hidden on desktop */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #1c2534;
  line-height: 1;
}

@media (max-width: 860px) {
  /* section padding is smaller here, so anchor jumps need room under the fixed header */
  html { scroll-padding-top: 24px; }
  .site-header { padding: 1rem 1.25rem; }
  body.scrolled .site-header { padding: 0.8rem 1.25rem; }
  .menu-toggle {
    display: block;
    z-index: 10001;
  }
  body.scrolled .menu-toggle {
    color: var(--text-on-dark);
  }
  .site-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    padding: 0.5rem 1.25rem 1.5rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
    background-color: var(--paper);
    color: var(--text);
    border-bottom: 1px solid var(--line);
  }
  body.scrolled .site-nav {
    background-color: rgba(11, 18, 32, 0.98);
  }
  .site-nav.active {
    display: flex;
    max-height: 500px;
    opacity: 1;
  }
  .primary-menu {
    flex-direction: column;
    gap: 1.1rem;
    padding: 0.5rem 0 0;
    align-items: flex-start;
  }
  .primary-menu a {
    color: #1c2534;
    font-size: 1.05rem;
    text-decoration: none;
  }
  body.scrolled .primary-menu a {
    color: var(--text-on-dark);
  }
}

/* ==========================================================
   Hero
   ========================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  text-align: left;
}
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s ease;
  z-index: 0;
  animation: heroKenBurns 22s ease-in-out infinite alternate;
}
@keyframes heroKenBurns {
  from { transform: scale(1) translate3d(0,0,0); }
  to   { transform: scale(1.08) translate3d(0,-10px,0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg { animation: none; }
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 13, 24, 0.55) 0%, rgba(8, 13, 24, 0.35) 35%, rgba(6, 10, 19, 0.88) 100%);
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  color: var(--text-on-dark);
  padding: 0 clamp(1.5rem, 5vw, 6rem) clamp(5rem, 10vw, 7.5rem);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.hero-content.visible {
  opacity: 1;
  transform: translateY(0);
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 1.4rem;
}
.hero-eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--gold-soft);
}
.hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.8rem);
  margin: 0 0 1.1rem;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #fff;
}
.hero p {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  margin: 0 0 2.4rem;
  line-height: 1.6;
  color: var(--text-on-dark-muted);
  max-width: 56ch;
}
.hero p strong { color: #fff; font-weight: 600; }

.hero-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--text-on-dark-muted);
  font-size: 1.1rem;
  opacity: 0.8;
  text-decoration: none;
  animation: heroScrollCue 2.4s ease-in-out infinite;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.hero-scroll-cue:hover { color: #fff; opacity: 1; }
@keyframes heroScrollCue {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll-cue { animation: none; }
}

/* ==========================================================
   Buttons
   ========================================================== */
.cta-btn {
  background-color: #fff;
  color: var(--ink);
  padding: 0.95rem 2rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  display: inline-block;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-md);
  border: 1px solid transparent;
}
.cta-btn:hover {
  background-color: var(--gold-soft);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), var(--shadow-gold);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  will-change: transform;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
}
.btn-primary:hover {
  background: var(--ink-2);
  border-color: var(--ink-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--surface);
}

.btn--secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn--secondary:hover {
  border-color: var(--ink);
}

@media (max-width: 900px){ .cta-actions{ justify-content: flex-start; } }
.cta-actions.cta-actions--center { justify-content: center; margin: 0 auto clamp(2rem, 5vw, 3rem); padding: 0 1.5rem; }

/* ==========================================================
   Homepage Sections: Delivery & Enablers
   ========================================================== */
.services {
  padding: clamp(4.5rem, 8vw, 7.5rem) 1.5rem;
}
.section-delivery {
  background-color: var(--paper);
  background-image: radial-gradient(ellipse 900px 500px at 12% -10%, rgba(182,135,46,0.07), transparent 60%);
}
.section-enablers {
  background-color: var(--paper);
  background-image: radial-gradient(ellipse 900px 500px at 88% 110%, rgba(182,135,46,0.06), transparent 60%);
}
.section-packages {
  background-color: var(--surface);
  background-image: radial-gradient(ellipse 900px 500px at 10% 0%, rgba(182,135,46,0.08), transparent 60%);
}
.services-heading {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(3rem, 6vw, 4.5rem);
}
.services-heading .eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1rem;
}
.services-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--ink);
  margin-bottom: 0.9rem;
}

.services-heading h3 {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-muted);
}
.services-heading h3 span {
  color: var(--gold-deep);
  font-weight: 600;
}

.services-heading p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================
   Project Lifecycle Timeline
   ========================================================== */
.elegant-lifecycle {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
}

.elegant-lifecycle::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--line) 40%, var(--line) 60%, var(--gold));
  z-index: 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 1.1s cubic-bezier(.2,.65,.19,1) .15s;
}
.elegant-lifecycle:has(.el-phase.in-view)::before {
  transform: scaleX(1);
}
@media (prefers-reduced-motion: reduce) {
  .elegant-lifecycle::before { transform: scaleX(1); transition: none; }
}

.el-phase {
  background: transparent;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.el-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.el-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #fff;
  border: 1.5px solid var(--gold);
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 50%;
  margin: 0 auto 1.5rem auto;
  box-shadow: 0 0 0 10px #fff;
  transition: background 0.3s ease, color 0.3s ease;
}

.el-header h3 {
  font-size: 1.3rem;
  color: var(--ink);
  margin: 0;
  line-height: 1.3;
}

.el-items {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 2rem 1.8rem;
  flex: 1;
  border: 1px solid var(--line-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.el-phase:hover .el-items {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line);
}

.el-phase:hover .el-num {
  background: var(--gold);
  color: #fff;
}

.el-item {
  margin-bottom: 1.4rem;
  text-align: left;
}

.el-item:last-child {
  margin-bottom: 0;
}

.el-item h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.3rem 0;
}

.el-item p {
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
  font-size: 0.97rem;
}

@media (max-width: 900px) {
  .elegant-lifecycle {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .elegant-lifecycle::before {
    display: none;
  }
  .el-items {
    padding: 1.5rem;
  }
}

/* ==========================================================
   Project chain diagram (Gantt-style lifecycle figure)
   Hairline rules, not filled bars — the gold rule spanning the
   full width is the "any — or all — of your project phases"
   claim, drawn rather than asserted. Every caption is visible by
   default; hovering/focusing a span only adds emphasis, it never
   hides content. Rules draw in left-to-right when scrolled into
   view (reuses .reveal-on-scroll).
   ========================================================== */
.chain-figure { position: relative; margin: clamp(2.5rem, 5vw, 4rem) 0 0; }
.chain-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.chain { display: block; width: 100%; height: auto; min-width: 720px; }
.chain .axis, .chain .ticks line { stroke: var(--line); }
.chain .stage {
  font-family: var(--font);
  font-size: 10.5px;
  font-weight: 700;
  fill: var(--text-muted);
  transition: fill 0.3s ease, opacity 0.3s ease;
}
.chain .chain-label { font-family: var(--font); font-weight: 700; font-size: 14px; }
.chain .chain-label--sm { font-size: 12.5px; }
.chain .chain-span { transition: opacity 0.3s ease; cursor: pointer; }
.chain .chain-span:focus { outline: none; }
.chain .chain-span:focus-visible .chain-rule { stroke-width: 3; }
.chain .chain-rule, .chain .chain-caps { transition: stroke-width 0.25s ease; }

/* tooltip anchored to the hovered (or tapped) bar; it never takes pointer
   events, so it can't block hovering the bar it happens to overlap */
.chain-popover {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 5;
  width: max-content;
  max-width: 300px;
  transform: translate(-50%, 6px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  padding: 0.65rem 0.85rem;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.chain-popover::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  width: 9px;
  height: 9px;
  background: #fff;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  transform: translateX(-50%) rotate(45deg);
}
.chain-popover.is-open {
  opacity: 1;
  transform: translate(-50%, 12px);
}
.chain-popover strong { display: block; color: var(--ink); font-weight: 700; margin-bottom: 0.15rem; }
@media (max-width: 900px) {
  .chain-popover { max-width: 240px; }
}
@media (max-width: 480px) {
  .chain-popover { max-width: 190px; font-size: 0.82rem; }
}

/* dim the spans not being inspected, lift the stage labels covered */
.chain-figure[data-active] .chain-span { opacity: 0.35; }
.chain-figure[data-active="init"]     .chain-span--init,
.chain-figure[data-active="exec"]     .chain-span--exec,
.chain-figure[data-active="delivery"] .chain-span--delivery,
.chain-figure[data-active="full"]     .chain-span--full { opacity: 1; }
.chain-figure[data-active] .stage { opacity: 0.3; }
.chain-figure[data-active="init"] .stage.c1,
.chain-figure[data-active="init"] .stage.c2,
.chain-figure[data-active="exec"] .stage.c3,
.chain-figure[data-active="exec"] .stage.c4,
.chain-figure[data-active="delivery"] .stage.c5,
.chain-figure[data-active="delivery"] .stage.c6,
.chain-figure[data-active="full"] .stage { opacity: 1; fill: var(--ink); }
.chain-figure[data-active="init"]     .chain-span--init .chain-rule,
.chain-figure[data-active="exec"]     .chain-span--exec .chain-rule,
.chain-figure[data-active="delivery"] .chain-span--delivery .chain-rule { stroke-width: 2.5; }
.chain-figure[data-active="full"] .chain-span--full .chain-rule { stroke-width: 3.5; }

/* draw the rules in when the figure scrolls into view */
html.js .chain-figure .chain-rule {
  stroke-dasharray: var(--len) var(--len);
  stroke-dashoffset: var(--len);
}
html.js .chain-figure .chain-caps { opacity: 0; }
html.js .chain-figure.in-view .chain-rule {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), stroke-width 0.25s ease;
}
html.js .chain-figure.in-view .chain-caps {
  opacity: 1;
  transition: opacity 0.4s ease 0.45s;
}
html.js .chain-figure.in-view .chain-span--exec     .chain-rule { transition-delay: 0.08s; }
html.js .chain-figure.in-view .chain-span--delivery .chain-rule { transition-delay: 0.16s; }
html.js .chain-figure.in-view .chain-span--full     .chain-rule { transition-delay: 0.28s; }

@media (prefers-reduced-motion: reduce) {
  html.js .chain-figure .chain-rule { stroke-dasharray: none; stroke-dashoffset: 0; }
  html.js .chain-figure .chain-caps { opacity: 1; }
  .chain .stage, .chain .chain-span { transition: none; }
}

/* small screens: a plain stacked list instead of the diagram —
   no tooltips, no draw-in, no sideways scrolling */
.chain-list { display: none; }

@media (max-width: 767px) {
  .chain-scroll,
  .chain-popover { display: none; }
  .chain-figure.reveal-on-scroll { opacity: 1; transform: none; transition: none; }

  .chain-list {
    display: grid;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .chain-list-item {
    padding-left: 1rem;
    border-left: 2px solid var(--ink);
  }
  .chain-list-item--full { border-left-color: var(--gold); }
  .chain-list-stages {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
  }
  .chain-list-label {
    display: block;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--ink);
  }
  .chain-list-item--full .chain-list-label { color: var(--gold-deep); }
  .chain-list-item p {
    margin: 0.35rem 0 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--text-muted);
  }
}

/* ==========================================================
   Credentials strip (under the hero)
   ========================================================== */
.credentials {
  background: var(--paper);
  border-bottom: 1px solid var(--line-soft);
  padding: clamp(1.75rem, 3.5vw, 2.5rem) 1.5rem;
}
.credentials-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--container);
  display: grid;
  /* sized to content so the longest figure keeps its own line */
  grid-template-columns: repeat(4, auto);
  justify-content: space-between;
}
.credentials-list li {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.25rem 1.5rem;
  border-left: 1px solid var(--line);
}
.credentials-list li:first-child { border-left: 0; padding-left: 0; }
.credentials-list strong {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.credentials-list span { font-size: 0.85rem; color: var(--text-muted); }
@media (max-width: 900px) {
  .credentials-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.25rem; }
  .credentials-list li { padding: 0.25rem 0 0.25rem 1rem; }
  .credentials-list li:nth-child(odd) { border-left: 0; padding-left: 0; }
}

/* ==========================================================
   Industrial packages
   ========================================================== */
.package-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.package-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.9rem 1.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.package-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.package-num { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; color: var(--gold-deep); }
.package-card h3 { margin: 0; font-size: 1.2rem; }
.package-card p { margin: 0; font-size: 0.97rem; line-height: 1.6; color: var(--text-muted); }
.package-card .bullet-list { margin-top: 0.25rem; font-size: 0.94rem; }

.package-steps-wrap { max-width: var(--container); margin: clamp(2.5rem, 5vw, 3.5rem) auto 0; }
.package-steps-title {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.package-steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.package-steps li {
  counter-increment: step;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}
.package-steps li::before {
  content: counter(step);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.8rem;
}
@media (max-width: 1000px) {
  .package-card { padding: 1.6rem 1.35rem; }
}
@media (max-width: 900px) {
  .package-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .package-grid { grid-template-columns: 1fr; max-width: 640px; }
}
@media (max-width: 520px) {
  .package-steps { grid-template-columns: 1fr; }
}

/* Enablers Grid */
.enablers-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.enabler-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.enabler-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.enabler-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}
.enabler-card:hover .enabler-img {
  transform: scale(1.07);
}
.enabler-content {
  padding: 1.9rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.enabler-content h3 {
  margin: 0 0 1rem;
  color: var(--ink);
  font-size: 1.25rem;
}

.enabler-btn {
  margin-top: auto;
  align-self: flex-start;
  font-size: 0.92rem;
  padding: 0.6rem 1.2rem;
}

/* General Typography & Lists */
.bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
  text-align: left;
}

.bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 0.75rem;
  padding-left: 0;
}

.bullet-list li::before {
  content: "—";
  color: var(--gold);
  font-weight: bold;
  flex-shrink: 0;
  position: relative;
}
/* ==========================================================
   Accordion Projects Section
   ========================================================== */
.capabilities-section {
  background: var(--ink);
  background-image: radial-gradient(ellipse 1000px 600px at 85% -10%, rgba(182,135,46,0.18), transparent 55%);
  color: var(--text-on-dark);
  padding: clamp(4.5rem, 8vw, 7.5rem) 0;
}
.capabilities-heading {
  text-align: center;
  margin-bottom: 3rem;
}
.capabilities-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: #fff;
}
.capabilities-heading .eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 1rem;
}
.accordion-container {
  display: flex;
  max-width: var(--container);
  margin: 0 auto;
  height: 440px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.accordion-card {
  flex: 1;
  background-size: cover;
  background-position: center;
  position: relative;
  transition: flex 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  align-items: flex-end;
  cursor: pointer;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.accordion-card:last-child { border-right: none; }
.accordion-card:hover { flex: 2.3; }
.card-label {
  position: absolute;
  top: 24px;
  left: 24px;
  font-size: 1.2rem;
  font-weight: 700;
  z-index: 2;
  color: white;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.card-content {
  background: linear-gradient(to top, rgba(11,18,32,0.97) 0%, rgba(11,18,32,0.75) 60%, transparent 100%);
  color: white;
  width: 100%;
  box-sizing: border-box;
  padding: 3rem 2rem 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  height: auto;
}
.card-content .bullet-list { color: var(--text-on-dark-muted); }
.card-content .bullet-list li::before { color: var(--gold-soft); }
.accordion-card:hover .card-content {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================
   Contact Section
   ========================================================== */
.contact-section {
  background: var(--surface);
  background-image: radial-gradient(ellipse 900px 500px at 50% 0%, rgba(182,135,46,0.08), transparent 60%);
  padding: clamp(4.5rem, 8vw, 7.5rem) 2rem;
  text-align: center;
}
.contact-container {
  max-width: 1120px;
  margin: 0 auto;
}
.contact-header,
.contact-form {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.contact-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 0.9rem;
  color: var(--ink);
}
.contact-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}
/* Four cards in one row on desktop, 2x2 on tablets, a stacked list on
   phones. Icons sit above the text until the phone layout, so the email
   address fits at a quarter of the width. */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}
.contact-box {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  padding: 1.6rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
@media (max-width: 1120px) {
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-box {
    flex-direction: row;
    gap: 1.1rem;
    padding: 1.4rem 1.5rem;
    text-align: left;
  }
}
.contact-box:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.contact-box:hover .contact-icon { transform: scale(1.12); background: var(--gold); color: #fff; }
.contact-icon {
  font-size: 1.3rem;
  color: var(--gold-deep);
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-tint);
  border-radius: 50%;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.contact-box h4 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  color: var(--ink);
}
.contact-box a, .contact-box p {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.97rem;
  margin: 0;
}
.contact-box a:hover { color: var(--ink); text-decoration: underline; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
  text-align: left;
}
.form-row {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  flex-wrap: wrap;
}
.form-row input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font);
}
.contact-form textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font);
  resize: vertical;
  width: 100%;
  box-sizing: border-box;
}
.contact-form .cta-btn {
  align-self: flex-start;
  background: var(--ink);
  color: #fff;
  box-shadow: none;
}
.contact-form .cta-btn:hover {
  background: var(--ink-2);
}

/* Fluent Forms reads its button, focus and dropdown colours from these
   variables. Its per-form rule forces white button text, so the fill must
   stay dark: ink on light sections, deep gold on the dark About band. */
.frm-fluent-form {
  --fluentform-primary: var(--ink);
  --fluentform-border-color: var(--line);
  --fluentform-border-radius: var(--radius-sm);
}
.about-cta .frm-fluent-form { --fluentform-primary: var(--gold-deep); }
.frm-fluent-form .ff-btn-submit {
  font-family: var(--font);
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.frm-fluent-form .ff-btn-submit:hover { opacity: 1; transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* ==========================================================
   Footer
   ========================================================== */
.site-footer {
  background-color: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-on-dark);
  padding: 4rem 2rem 1.5rem;
  font-size: 0.95rem;
}
.footer-container {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 0 1rem 2rem;
  gap: 2rem;
  text-align: left;
}
.footer-brand p {
  font-size: 0.97rem;
  color: var(--text-on-dark-muted);
  max-width: 300px;
  line-height: 1.6;
  margin-top: 1rem;
}
.footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 3.5rem;
}
.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  margin-bottom: 1.2rem;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col li {
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}
.footer-col a {
  color: var(--text-on-dark);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--gold-soft);
}
.footer-col i {
  margin-right: 0.5rem;
  color: var(--gold-soft);
  width: 20px;
  opacity: 0.85;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-on-dark-muted);
  margin-top: 1rem;
}
.footer-logo {
  max-width: 150px;
  height: auto;
  margin-bottom: 0.4rem;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
@media screen and (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-brand p { margin-left: auto; margin-right: auto; }
  .footer-columns {
    justify-content: center;
    gap: 2rem;
    text-align: center;
  }
  .footer-col {
    margin-bottom: 1.5rem;
  }
}
.footer-social {
  display: flex;
  gap: 0.9rem;
  margin-top: 1.5rem;
}
.footer-social a {
  color: var(--text-on-dark-muted);
  font-size: 1.05rem;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.footer-social a:hover {
  color: var(--gold-soft);
  border-color: var(--gold-soft);
  transform: translateY(-2px);
}

/* ==========================================================
   Page Heroes & General Formatting
   ========================================================== */
.about-hero { background: url('https://asylaprojects.com/wp-content/uploads/2025/05/IMG_8025-scaled.jpeg') center/cover no-repeat; }
.training-hero { background: url('https://asylaprojects.com/wp-content/uploads/2025/09/training-scaled-2-scaled.jpg') 50% 30%/cover no-repeat; }
.catalog-hero { background: url('https://asylaprojects.com/wp-content/uploads/2025/09/catalog-1.jpg') center/cover no-repeat; }

.page-hero {
  color: white;
  min-height: clamp(260px, 28vw, 440px);
  padding-top: 88px;
  box-sizing: border-box;
  position: relative;
  border-bottom: none;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,13,24,0.35) 0%, rgba(6,10,19,0.82) 100%);
}
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  padding: 2.5rem clamp(1.5rem, 5vw, 4rem);
  position: relative;
  z-index: 1;
  color: #fff;
}
.page-hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
}

.about-intro {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 500;
  text-align: center;
  color: var(--ink);
  line-height: 1.55;
}
/* pages that open with the intro instead of a banner: clear the fixed header */
.about-intro.page-intro { padding-top: calc(88px + clamp(1.5rem, 4vw, 3rem)); }
.about-intro::after {
  content: '';
  display: block;
  width: 64px;
  height: 2px;
  background: var(--gold);
  margin: 2rem auto 0;
}
.about-intro,
.about-split,
.about-mission {
  padding: clamp(2.5rem, 5vw, 4rem) 2rem;
  max-width: var(--container);
  margin: 0 auto;
}
.about-split, .about-mission, .about-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  align-items: center;
  justify-content: center;
}
.about-split img, .about-mission img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.about-split h2, .about-mission h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
.about-split p, .about-mission p {
  color: var(--text-muted);
  font-size: 1.05rem;
}
.about-cta {
  background-color: var(--ink);
  color: white;
  padding: clamp(3rem, 6vw, 4.5rem) 2rem;
  text-align: left;
}
.about-cta h2 {
  color: #fff;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}
.about-cta p {
  color: var(--text-on-dark-muted);
  font-size: 1.05rem;
}

/* ==========================================================
   Training Section
   ========================================================== */
.training-split {
  display: flex;
  flex-wrap: wrap;
  max-width: var(--container);
  margin: 0rem auto;
  padding: 2rem;
  gap: 3rem;
  align-items: center;
}
.training-image {
  flex: 1 1 45%;
  position: relative;
  overflow: hidden;
}
.training-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.training-content {
  flex: 1 1 50%;
  font-size: 1.05rem;
}
.training-highlights {
  list-style: none;
  padding-left: 0;
}
.training-highlights li {
  margin-bottom: 1.3rem;
  line-height: 1.65;
  color: var(--text-muted);
}
.training-highlights .highlight {
  display: block;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}
@media screen and (max-width: 768px) {
  .training-split {
    flex-direction: column;
    padding: 2rem 1rem;
  }
  .training-content {
    flex: 1 1 100%;
  }
}

.why-title.bar-left {
  font-size: 2.1rem;
  position: relative;
  padding-left: 1.1rem;
  color: var(--ink);
}
.why-title.bar-left::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background: var(--gold);
  border-radius: 4px;
}

.training-duo {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  padding: 4rem 1rem;
  max-width: var(--container);
  margin: 0 auto;
}
.training-card {
  flex: 1 1 400px;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  color: var(--text);
  border: 1px solid var(--line-soft);
}
.training-card p, .list-desc {
  margin: 0;
  text-wrap:balance;
}
.training-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.training-card:hover img {
  transform: scale(1.05);
}
.training-card .image-slices {
  transition: transform 0.6s ease;
}
.training-card:hover .image-slices {
  transform: scale(1.04);
}
.training-card .card-content {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--text);
  opacity: 1;
  background: none;
}

.bar-left {
  font-size: 1.4rem;
  position: relative;
  padding-left: 1rem;
  color: var(--ink);
  font-weight: 700;
}
.bar-left::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.2em;
  width: 3px;
  background: var(--gold);
  border-radius: 2px;
}

.paths-list {
  list-style: none;
  padding: 0;
  margin:0;
}
.paths-list li {
  margin-bottom: 1.1rem;
  padding-left: 1.2rem;
  position: relative;
}
.paths-list li::before {
  content: "/";
  color: var(--gold);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}
.list-head {
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.list-desc {
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.55;
}

@media (max-width: 820px) {
  .training-duo { padding: 1.25rem .9rem; gap: 1rem; }
  .training-card .image-slices { display: none !important; }
  .training-card > img { display: block !important; width: 100%; height: 180px; object-fit: cover; border-radius: 12px; }
  .training-card > img.slice-src-hidden { display: block !important; }
  .training-card .card-content { padding: 1rem 1rem 1.2rem; }
  .training-card h2.bar-left { font-size: 1.25rem; line-height: 1.2; padding-left: .55rem; margin-bottom: .6rem; }
  .bar-left::before { width: 3px; top: .2em; bottom: .2em; border-radius: 2px; }
  .paths-list li { margin-bottom: .55rem; padding-left: .9rem; }
  .list-head { font-weight: 700; margin-bottom: .1rem; }
  .list-desc, .bullet-list li { font-size: .98rem; line-height: 1.5; }
}

.training-card .image-slices {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: column;
  gap: 0;
  width: 100%;
  height: clamp(180px, 26vw, 320px);
  border-radius: 12px;
  overflow: hidden;
  box-sizing: border-box;
}
.training-card .image-slices .slice {
  background-image: var(--img);
  background-repeat: no-repeat;
  background-size: 300% 100% !important;
  background-position-y: 50%;
  border-radius: 0;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 600ms ease var(--delay,0ms), transform 700ms cubic-bezier(.2,.65,.19,1) var(--delay,0ms);
  will-change: opacity, transform;
}
.training-card .image-slices .slice.in-view { opacity: 1; transform: none; }
.training-card .image-slices .slice--left  { background-position-x: 0%; }
.training-card .image-slices .slice--mid   { background-position-x: 50%; }
.training-card .image-slices .slice--right { background-position-x: 100%; }
.training-card img.slice-src-hidden { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .training-card .image-slices .slice { transition: none !important; transform: none !important; opacity: 1 !important; }
}

@media (max-width: 768px) {
  .training-duo {
    padding: 2rem 1rem;
    gap: 1rem;
    max-width: 680px;
  }
  .training-card {
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
  }
  .training-card .card-content {
    padding: 1rem 1.1rem 1.25rem;
    gap: .65rem;
  }
  .bar-left {
    font-size: clamp(1.1rem, 4.2vw, 1.35rem);
    padding-left: .6rem;
  }
  .bar-left::before {
    width: 3px;
    top: .2em; bottom: .2em;
    border-radius: 2px;
  }
  .paths-list li { margin-bottom: .65rem; padding-left: .9rem; }
  .list-head { margin-bottom: .15rem; }
  .list-desc { font-size: .96rem; line-height: 1.5; color: var(--text-muted); }
  .training-card .image-slices { height: 180px; gap: 8px; border-radius: 12px; }
  .training-card img { height: 180px; border-radius: 12px; }
  .training-card .image-slices .slice {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Tailored */
.tailored-split{
  box-sizing: border-box;
  max-width: var(--container);
  margin: clamp(32px, 6vw, 90px) auto;
  padding: 0 clamp(16px, 3vw, 32px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 520px);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.tailored-media{
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: transparent;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}
.tailored-media::before{
  content:"";
  position:absolute;
  inset:auto auto 16px 16px;
  width:48px; height:4px;
  background: var(--gold);
  border-radius: 999px;
  z-index:2;
  opacity:.9;
}
.tailored-media .parallax-item{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  transform: translateZ(0) scale(1.06);
  will-change: transform;
}
@media (max-width: 900px){
  .tailored-split{ grid-template-columns: 1fr; }
}
.tailored-steps{
  position: relative;
  padding-left: 40px;
}
.tailored-steps::before{
  content:"";
  position:absolute;
  left:16px; top:2px; bottom:2px;
  width:2px; border-radius:2px;
  background: linear-gradient(180deg,
    rgba(182,135,46,.7) 0%,
    rgba(182,135,46,.35) 45%,
    rgba(182,135,46,.12) 100%);
}
.tailored-steps .step-box{
  position: relative;
  background:#fff;
  border-radius: var(--radius-md);
  padding: clamp(16px, 2.4vw, 22px) clamp(18px, 2.8vw, 26px);
  margin-block: 16px;
  border:1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
  transition: transform .35s ease, box-shadow .35s ease, opacity .35s ease;
  opacity:0; transform: translateY(16px);
}
.tailored-steps .step-box.in-view{ opacity:1; transform:none; }
.tailored-steps .step-box:hover{ transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tailored-steps .step-box::before{
  content:"";
  position:absolute;
  left:-24px; top:22px;
  width:11px; height:11px; border-radius:50%;
  background:#fff;
  box-shadow:0 0 0 3px rgba(182,135,46,.9);
  transform: scale(.6);
  transition: transform .4s cubic-bezier(.2,.65,.19,1);
}
.tailored-steps .step-box::after{
  content:"";
  position:absolute;
  left:-20px; top:26px;
  width:5px; height:5px; border-radius:50%;
  background: var(--gold);
  transform: scale(0);
  transition: transform .35s ease .05s;
}
.tailored-steps .step-box.in-view::before{ transform: scale(1); }
.tailored-steps .step-box.in-view::after{ transform: scale(1); }
@media (prefers-reduced-motion: reduce){
  .tailored-steps .step-box{ opacity:1 !important; transform:none !important; }
  .tailored-steps .step-box::before,
  .tailored-steps .step-box::after{ transform:none !important; }
}
.tailored-steps .step-box h3{
  margin: 0 0 8px;
  font-weight: 700;
  font-size: clamp(18px, 1.05rem + .25vw, 22px);
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--ink);
  position: relative;
  padding-bottom: 6px;
  background-image: linear-gradient(90deg, var(--gold), var(--gold-soft));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 36px 2px;
  transition: background-size .3s ease;
}
.tailored-steps .step-box:hover h3{ background-size: 56px 2px; }
.section--dark .tailored-steps .step-box h3{ color:#fff; }
.tailored-right{ display: grid; gap: 16px; align-content: start; }
.tailored-cta{
  position: relative;
  background: linear-gradient(180deg,#ffffff 0%, #fafbfc 100%);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 18px 20px;
  display: grid;
  gap: 12px;
  overflow: hidden;
  top:2.5em;
}
.tailored-cta::before{
  content:"";
  position:absolute;
  top:0; left:0; right:0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
}
.cta-title{
  margin: 0 0 4px;
  font-weight: 700;
  font-size: clamp(18px, 1.05rem + .25vw, 22px);
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--ink);
}
.cta-sub{ margin: 0; color: var(--text-muted); }
.cta-actions{ display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

/* ==========================================================
   Forms & Registrations
   ========================================================== */
.register-form { width: 80%; margin: 0 auto; }
.fluentform_wrapper_10 {width:100%;}
.asyla-form-card, .fluent_form_10{
  margin: 0 auto; padding: 2rem;
  width: 100%; box-sizing: border-box;
  background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.asyla-grid{ display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; margin-top: 16px; }
.asyla-field label{ display:block; font-weight:600; color:var(--ink); margin: 0 0 8px 0; }
.asyla-field input[type="text"],
.asyla-field input[type="email"],
.asyla-field input[type="url"],
.asyla-field input[type="number"],
.asyla-field select {
  box-sizing: border-box; width: 100%; height: 48px; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 10px; font-size: 16px; background: var(--surface); color: var(--text); font-family: var(--font);
}
.asyla-field input:focus, .asyla-field select:focus { outline: none; border-color: var(--gold); background: #fff; }
.req{ color:#c0392b; margin-left:4px; }
.asyla-check{ display:block; margin:16px 0; font-size:15px; color:var(--text-muted); }
.asyla-check input{ margin-right:8px; accent-color:var(--gold); }

.asyla-alert{ padding:14px 16px; border-radius:10px; margin:10px 0 20px; }
.asyla-alert-success{ background:#effaf2; border:1px solid #bfe6c8; color:#1a7f37; }
.asyla-alert-warn{ background:#fff7e6; border:1px solid #ffd28a; color:#9a6700; }

@media (max-width: 720px){
  .asyla-grid{ grid-template-columns: 1fr; }
  .asyla-form-card { padding: 1.5rem; }
}

.breadcrumbs { background: var(--surface); padding: 1em; border-bottom: 1px solid var(--line); color: var(--text-muted); }
.breadcrumbs a { color: var(--ink); text-decoration: none; font-weight: 600; }
.training-title { font-size: 2rem; border-bottom: 1px solid var(--line); padding-bottom: 0.5em; margin-top:0; }

/* Custom Multi-Select Dropdowns (PM Database) */
.asyla-multi-select { position: relative; width: 100%; }
.asyla-multi-select-header {
  box-sizing: border-box; width: 100%; height: 48px; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 10px; font-size: 16px;
  background: var(--surface) url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat calc(100% - 14px) center;
  cursor: pointer; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 34px; user-select: none;
}
.asyla-multi-select.open { z-index: 999; }
.asyla-field:has(.asyla-multi-select.open) { z-index: 999; }
.asyla-multi-select.open .asyla-multi-select-header { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-color: var(--gold); }
.asyla-multi-select-dropdown {
  display: none; position: absolute; top: 100%; left: 0; width: 100%; background: #fff;
  border: 1px solid var(--gold); border-top: none; border-bottom-left-radius: 10px; border-bottom-right-radius: 10px;
  box-shadow: var(--shadow-md); max-height: 250px; overflow-y: auto; z-index: 100; box-sizing: border-box; padding: 8px 0;
}
.asyla-multi-select.open .asyla-multi-select-dropdown { display: block; }
.asyla-multi-select-dropdown label {
  display: flex !important; align-items: center; padding: 8px 14px; margin: 0 !important;
  cursor: pointer; font-weight: 400 !important; transition: background 0.1s ease; font-size: 15px;
}
.asyla-multi-select-dropdown label:hover { background: var(--surface); }
.asyla-multi-select-dropdown input[type="checkbox"] {
  width: 16px; height: 16px; margin: 0 10px 0 0 !important; accent-color: var(--gold); flex-shrink: 0; padding:0;
}

/* ==========================================================
   Country banner
   ========================================================== */
.ap-country-banner{
  position: fixed; top: 0; left: 0; right: 0; z-index: 10001;
  background: var(--ink); color: #fff; border-bottom: 1px solid rgba(255,255,255,0.1); box-shadow: 0 4px 14px rgba(0,0,0,0.15); font-size: 0.92rem;
}
.ap-country-banner__inner{ max-width: 1100px; margin: 0 auto; padding: 0.65rem 1rem; display: grid; grid-template-columns: auto 1fr auto; gap: 0.75rem; align-items: center; }
.ap-country-banner__flag{ font-size: 1.1rem; line-height: 1; }
.ap-country-banner__text{ opacity: .95; }
.ap-country-banner__close{ appearance: none; border: 0; background: transparent; color: #fff; font-size: 1.25rem; line-height: 1; padding: 0.25rem 0.4rem; cursor: pointer; opacity: 0.8; }
.ap-country-banner__close:hover{ opacity: 1; }
.ap-has-banner .site-header{ top: var(--ap-banner-h, 0px) !important; }
@media (max-width: 640px){ .ap-country-banner__inner{ padding: 0.6rem 0.85rem; gap: 0.6rem; font-size: 0.92rem; } }
