/* Reusable component classes — buttons, cards, stats, quotes, marquee, rows, forms, alerts. */

/* ---------- Kicker / section heading ---------- */
.av-kicker {
  display: block;
  margin: 0 0 16px;
  font-family: var(--font-label);
  font-size: var(--fs-kicker);
  letter-spacing: var(--tracking-kicker);
  text-transform: uppercase;
  /* Navy ink, not the bright accent blue — the accent stays reserved for dark
     sections/dark-image heroes below, where ink itself would be unreadable. */
  color: var(--av-ink);
}

.av-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.av-heading-row p.av-lead {
  margin: 0;
  max-width: 38ch;
  font-size: var(--fs-body);
  color: var(--av-muted);
}

/* ---------- Buttons ---------- */
.av-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  height: 52px;
  box-sizing: border-box;
  vertical-align: middle;
  border-radius: var(--radius-pill);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}

.av-btn--primary {
  background: var(--av-ink);
  color: #fff;
  border: 1px solid transparent;
  padding: 0 32px;
  box-shadow: 0 12px 32px rgba(var(--av-shadow-color), .18);
}
.av-btn--primary:hover { background: var(--av-ink-hover); color: #fff; }

.av-btn--accent {
  background: var(--av-accent);
  color: #fff;
  border: 1px solid transparent;
  padding: 0 32px;
  box-shadow: var(--shadow-cta-glow);
}
.av-btn--accent:hover { background: var(--av-accent-hover); color: #fff; }

.av-btn--ghost {
  color: var(--av-ink);
  border: 1px solid var(--av-hairline-strong);
  background: rgba(255, 255, 255, .6);
  padding: 0 28px;
}
.av-btn--ghost:hover { border-color: var(--av-accent); color: var(--av-accent); }

.av-btn--sm { height: 42px; padding: 0 16px; font-size: 14px; }

.av-btn__ripple {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  pointer-events: none;
  animation: av-ripple-btn .6s ease-out forwards;
}

/* ---------- Cards (Why choose us — tilt) ---------- */
.av-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(20px, 2.5vw, 32px);
  perspective: 1200px;
}

.av-card {
  background: var(--av-surface);
  border: 1px solid var(--av-hairline);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 3vw, 44px);
  box-shadow: var(--shadow-card);
  transform-style: preserve-3d;
  will-change: transform;
}

.av-card__no {
  font-family: var(--font-label);
  font-size: var(--fs-kicker);
  color: var(--av-accent);
  letter-spacing: var(--tracking-label);
  margin-bottom: 22px;
}

.av-card h3 {
  margin: 0 0 14px;
  font-size: var(--fs-h3);
}

.av-card p {
  font-size: 15px;
  line-height: var(--lh-body);
  color: var(--av-muted);
}

/* ---------- Service cards (3x2 desktop grid with enhanced left number) ---------- */
.av-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 991px) {
  .av-service-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .av-service-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.av-service-card {
  position: relative;
  background: var(--av-surface);
  border: 1px solid var(--av-hairline);
  border-radius: var(--radius-2xl);
  padding: 24px 24px;
  display: flex;
  align-items: stretch;
  gap: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px -6px rgba(var(--av-shadow-color), 0.04);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast), border-color var(--dur-fast);
}

.av-service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px -12px rgba(var(--av-shadow-color), 0.12);
  border-color: var(--av-hairline-strong);
}

.av-service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(14, 26, 43, .08), transparent 65%);
  pointer-events: none;
}

.av-service-card__no {
  position: relative;
  font-family: var(--font-label);
  font-size: clamp(56px, 4.5vw, 76px);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 2.5px rgba(14, 26, 43, 0.32);
  text-stroke: 2.5px rgba(14, 26, 43, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  flex-shrink: 0;
  margin-bottom: 0;
  padding: 0;
  background: transparent;
  border: none;
  width: auto;
  transition: all var(--dur-fast) var(--ease-out);
  user-select: none;
}

.av-service-card:hover .av-service-card__no {
  color: var(--av-ink);
  -webkit-text-stroke: 2.5px var(--av-ink);
  text-stroke: 2.5px var(--av-ink);
  transform: scale(1.06);
}

.av-service-card__content {
  position: relative;
  flex: 1;
}

.av-service-card h3 {
  position: relative;
  margin: 0 0 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.35;
  color: var(--av-ink);
}

.av-service-card p {
  position: relative;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--av-muted);
}

/* ---------- Horizontal Process Section (Matching Screenshot) ---------- */
.av-horizontal-sec {
  position: relative;
  overflow: hidden;
  padding-top: clamp(80px, 10vh, 140px);
  padding-bottom: clamp(80px, 10vh, 140px);
  background: #08101D;
  color: #FFFFFF;
}
.av-feature-pin {
  width: 100%;
  overflow: hidden;
}
.av-feature-track {
  display: flex;
  gap: clamp(40px, 5vw, 90px);
  width: max-content;
  padding: 40px var(--space-section-x);
  will-change: transform;
  align-items: center;
}

.av-process-slide {
  position: relative;
  width: clamp(380px, 52vw, 700px);
  flex-shrink: 0;
  padding: clamp(40px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-3xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast);
}
.av-process-slide:hover {
  transform: translateY(-6px);
  border-color: rgba(14, 26, 43, 0.4);
}

.av-process-slide__bg-num {
  position: absolute;
  top: -20px;
  left: 20px;
  font-family: var(--font-label);
  font-size: clamp(120px, 16vw, 220px);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 2.5px rgba(255, 255, 255, 0.25);
  text-stroke: 2.5px rgba(255, 255, 255, 0.25);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  transition: -webkit-text-stroke var(--dur-fast), transform var(--dur-fast);
}

.av-process-slide:hover .av-process-slide__bg-num {
  -webkit-text-stroke: 2.5px rgba(255, 255, 255, 0.5);
  text-stroke: 2.5px rgba(255, 255, 255, 0.5);
  transform: translateY(-4px);
}

.av-process-slide__content {
  position: relative;
  z-index: 2;
}

/* This badge sits inside a dark horizontal-scroll slide — var(--av-accent) now
   equals var(--av-ink), invisible on that background, so it stays light. */
.av-process-slide__badge {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(249, 250, 251, .7);
  margin-bottom: 16px;
}

.av-process-slide h3 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(32px, 3.8vw, 54px);
  font-weight: 500;
  color: #FFFFFF;
  line-height: 1.15;
}

.av-process-slide p {
  margin: 0;
  max-width: 48ch;
  font-size: clamp(15px, 1.2vw, 17.5px);
  line-height: 1.7;
  color: rgba(249, 250, 251, 0.75);
}

.av-process-slide__orbit {
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 320px;
  height: 200px;
  pointer-events: none;
  opacity: 0.6;
}

@media (max-width: 768px) {
  .av-horizontal-sec {
    padding-left: 0;
    padding-right: 0;
  }
  .av-feature-pin {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 16px;
  }
  .av-feature-track {
    width: max-content;
    padding-left: var(--space-section-x);
    padding-right: var(--space-section-x);
    gap: 20px;
  }
  .av-process-slide {
    width: 86vw;
    min-height: 320px;
    padding: 32px 24px;
    scroll-snap-align: center;
  }
}

/* ---------- Stats ---------- */
.av-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 28px;
}
.av-stat__value {
  font-family: var(--font-label);
  font-size: clamp(36px, 3.4vw, 52px);
  font-weight: 600;
  color: var(--av-ink);
}
.av-stat__label {
  font-size: var(--fs-small);
  color: var(--av-muted);
  margin-top: 4px;
}
.av-section--dark .av-stat__value { color: #FFFFFF; }
.av-section--dark .av-stat__label { color: rgba(249, 250, 251, .7); }

.av-float-stat {
  position: absolute;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--av-hairline);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  box-shadow: var(--shadow-float);
}
.av-float-stat__value {
  font-family: var(--font-label);
  font-size: 28px;
  font-weight: 600;
  color: var(--av-ink);
}
.av-float-stat__label {
  font-size: 12.5px;
  color: var(--av-muted);
}

/* ---------- Marquee ---------- */
.av-marquee-section {
  position: relative;
  padding: 24px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--av-ink);
  color: #FFFFFF;
  overflow: hidden;
}
/* Trust marquee sits inside a dark section — same accent-now-equals-ink
   reasoning as .av-process-slide__badge above; stays light. */
.av-marquee-label {
  text-align: center;
  margin: 0 0 16px;
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(249, 250, 251, .7);
}
.av-marquee-track {
  display: flex;
  width: max-content;
  animation: av-marquee 25s linear infinite;
  gap: 20px;
}
.av-marquee-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 14px 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  font-family: var(--font-label);
  font-size: 14.5px;
  letter-spacing: .08em;
  color: #FFFFFF;
  white-space: nowrap;
}

/* ---------- Quote / testimonial carousel ---------- */
.av-carousel {
  display: flex;
  gap: 24px;
  padding: 10px var(--space-section-x) 30px;
  overflow-x: auto;
  scrollbar-width: none;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}
.av-carousel::-webkit-scrollbar { display: none; }
.av-carousel.is-grabbing { cursor: grabbing; }

.av-quote {
  flex: 0 0 min(440px, 82vw);
  margin: 0;
  background: rgba(255, 255, 255, .75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--av-hairline);
  border-radius: var(--radius-2xl);
  padding: clamp(28px, 3vw, 40px);
  box-shadow: 0 24px 60px -34px rgba(var(--av-shadow-color), .25);
  user-select: none;
}
.av-quote blockquote {
  margin: 0 0 26px;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--av-ink);
  font-style: italic;
}
.av-quote figcaption { font-size: var(--fs-small); color: var(--av-muted); }
.av-quote figcaption strong { color: var(--av-text); font-weight: 600; }

/* ---------- Industry / list rows ---------- */
.av-row-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--av-hairline);
}
.av-row {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(20px, 2.6vw, 34px) 8px;
  border-bottom: 1px solid var(--av-hairline);
  color: var(--av-ink);
  transition: padding-left var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
/* :hover covers mouse users directly; .is-value-active is added by
   modules/value-hover.js on mouseenter/focus so the effect also fires from
   keyboard navigation and so the matching explanation below (a separate,
   non-sibling block CSS alone can't reach) can pop in sync.

   Note: .av-row itself carries [data-reveal], and js/modules/reveal.js sets
   an inline `transform` on every [data-reveal] element for its scroll-in
   animation — that inline style permanently wins over any `transform` set
   here, in any browser. So the "pop" scale/lift lives on the inner
   .av-row__left / .av-row__arrow instead, which reveal.js never touches. */
.av-row:hover,
.av-row.is-value-active {
  padding-left: 28px;
  background: rgba(14, 26, 43, .06);
  color: var(--av-accent);
  box-shadow: 0 18px 40px -26px rgba(var(--av-shadow-color), .45);
  z-index: 1;
}
.av-row__left {
  display: flex;
  align-items: baseline;
  gap: 20px;
  transform: scale(1);
  transform-origin: left center;
  transition: transform var(--dur-fast) var(--ease-out);
}
.av-row:hover .av-row__left,
.av-row.is-value-active .av-row__left { transform: scale(1.04); }
.av-row__no { font-family: var(--font-label); font-size: 13px; color: var(--av-muted); }
.av-row__name { font-family: var(--font-display); font-size: clamp(24px, 3vw, 40px); font-weight: 500; }
.av-row__arrow {
  font-family: var(--font-label);
  font-size: 20px;
  display: inline-block;
  transition: transform var(--dur-fast) var(--ease-out);
}
.av-row:hover .av-row__arrow,
.av-row.is-value-active .av-row__arrow { transform: translateX(6px) scale(1.1); }

/* ---------- Value Cards Grid & Popping Hover Effect ---------- */
.av-value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
  margin-top: 40px;
}

@media (max-width: 768px) {
  .av-value-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.av-value-card {
  position: relative;
  background: var(--av-surface);
  border: 1px solid var(--av-hairline);
  border-radius: var(--radius-2xl);
  padding: clamp(24px, 2.8vw, 36px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              background-color 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.av-value-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.av-value-card__badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.av-value-card__no {
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 600;
  color: var(--av-muted);
  letter-spacing: .05em;
}

.av-value-card__icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--av-surface-alt);
  color: var(--av-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.av-value-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 600;
  color: var(--av-ink);
  flex: 1;
}

.av-value-card__toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--av-surface-alt);
  color: var(--av-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.av-value-card__content p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--av-muted);
  transition: color 0.3s ease;
}

/* Hover & Active Pop-Up States */
.av-value-card:hover,
.av-value-card.is-value-active {
  transform: translateY(-8px) scale(1.015);
  background: #FFFFFF;
  border-color: var(--av-ink);
  box-shadow: 0 20px 40px -15px rgba(14, 26, 43, 0.16), 0 0 0 1px var(--av-ink);
  z-index: 2;
}

.av-value-card:hover .av-value-card__icon,
.av-value-card.is-value-active .av-value-card__icon {
  background: var(--av-ink);
  color: #FFFFFF;
  transform: scale(1.08);
}

.av-value-card:hover .av-value-card__toggle,
.av-value-card.is-value-active .av-value-card__toggle {
  background: var(--av-ink);
  color: #FFFFFF;
  transform: translate(2px, -2px);
}

.av-value-card:hover .av-value-card__content p,
.av-value-card.is-value-active .av-value-card__content p {
  color: var(--av-text);
}

/* ---------- Industry grid (3x2 photo cards) ---------- */
.av-industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
}
.av-industry-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: #fff;
  box-shadow: 0 20px 50px -30px rgba(14, 26, 43, .35);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.av-industry-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px -26px rgba(14, 26, 43, .4);
}
.av-industry-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease-out);
}
.av-industry-card:hover .av-industry-card__img { transform: scale(1.07); }
.av-industry-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 26, 43, .12) 0%, rgba(14, 26, 43, .35) 55%, rgba(14, 26, 43, .92) 100%);
  transition: background var(--dur-base) var(--ease-out);
}
.av-industry-card:hover .av-industry-card__overlay {
  background: linear-gradient(180deg, rgba(14, 26, 43, .1) 0%, rgba(14, 26, 43, .4) 55%, rgba(14, 26, 43, .94) 100%);
}
.av-industry-card__no {
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .75);
}
.av-industry-card__icon {
  position: absolute;
  top: 18px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 16px;
}
.av-industry-card__foot {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.av-industry-card__name {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 500;
  color: #fff;
}
.av-industry-card__arrow {
  font-family: var(--font-label);
  font-size: 17px;
  color: rgba(255, 255, 255, .8);
  transition: transform var(--dur-fast) var(--ease-out);
}
.av-industry-card:hover .av-industry-card__arrow { transform: translateX(4px); color: #fff; }

@media (max-width: 900px) {
  .av-industry-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .av-industry-grid { grid-template-columns: 1fr; }
  .av-industry-card { aspect-ratio: 3 / 2; }
}

/* ---------- CTA panel ---------- */
.av-cta-panel {
  position: relative;
  margin: clamp(60px, 8vh, 100px) clamp(16px, 2.5vw, 40px);
  border-radius: var(--radius-4xl);
  overflow: hidden;
  background: var(--av-ink);
  padding: clamp(80px, 14vh, 160px) clamp(24px, 6vw, 96px);
  text-align: center;
}
.av-cta-panel__blob {
  position: absolute;
  filter: blur(40px);
  pointer-events: none;
}
.av-cta-panel__blob--a {
  width: 70%; height: 70%; top: 0; left: 0;
  background: radial-gradient(closest-side, rgba(14, 26, 43, .22), transparent 70%);
  animation: av-blob 16s ease-in-out infinite;
}
.av-cta-panel__blob--b {
  width: 55%; height: 55%; bottom: -10%; right: -5%;
  background: radial-gradient(closest-side, rgba(60, 179, 113, .12), transparent 70%);
  animation: av-blob 20s ease-in-out infinite reverse;
  filter: blur(50px);
}
.av-cta-panel h2 {
  position: relative;
  margin: 0 auto 28px;
  max-width: 18ch;
  font-size: clamp(36px, 5vw, 76px);
  line-height: 1.12;
  color: var(--av-bg);
}
.av-cta-panel p {
  position: relative;
  margin: 0 auto 44px;
  max-width: 46ch;
  font-size: 16px;
  line-height: var(--lh-body);
  color: rgba(249, 250, 251, .65);
}
.av-cta-panel .av-btn {
  background: #FFFFFF !important;
  color: #0E1A2B !important;
  font-weight: 600;
  border-color: transparent !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35) !important;
  padding: 0 36px;
  height: 54px;
  font-size: 16px;
}
.av-cta-panel .av-btn:hover {
  background: #F3F4F6 !important;
  color: #0E1A2B !important;
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45) !important;
}

/* ---------- Forms ---------- */
.av-field { margin-bottom: 20px; }
.av-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--av-ink);
}
.av-field .av-required { color: var(--av-accent); }
.av-input,
.av-textarea,
.av-select {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--av-hairline-strong);
  background: var(--av-surface);
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--av-text);
  outline: none;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.av-input:focus,
.av-textarea:focus,
.av-select:focus {
  border-color: var(--av-accent);
  box-shadow: 0 0 0 4px rgba(14, 26, 43, .12);
}
.av-textarea { resize: vertical; min-height: 140px; }
.av-field-error {
  margin-top: 6px;
  font-size: 12.5px;
  color: #D92D20;
}
.av-input.has-error,
.av-textarea.has-error,
.av-select.has-error { border-color: #D92D20; }

.av-form-pill {
  display: flex;
  gap: 8px;
}
.av-form-pill .av-input { border-radius: var(--radius-pill); flex: 1; min-width: 0; }
.av-form-pill button {
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: var(--av-ink);
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
}

/* ---------- Alerts / flash messages ---------- */
.av-alert {
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 14px;
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.av-alert--success {
  background: rgba(60, 179, 113, .1);
  color: #1E7A46;
  border: 1px solid rgba(60, 179, 113, .3);
}
.av-alert--error {
  background: rgba(217, 45, 32, .08);
  color: #B3261E;
  border: 1px solid rgba(217, 45, 32, .25);
}

/* ---------- Pagination ---------- */
.av-pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 48px;
}
.av-pagination a,
.av-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--av-muted);
  border: 1px solid transparent;
}
.av-pagination a:hover { border-color: var(--av-hairline-strong); color: var(--av-ink); }
.av-pagination .is-active {
  background: var(--av-ink);
  color: #fff;
}
.av-pagination .is-disabled { opacity: .4; }

/* Laravel's default paginator view emits Bootstrap-style markup
   (nav > ul.pagination > li.page-item > .page-link) — style it directly so
   {{ $posts->links() }} works without loading Bootstrap CSS. */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
}
.page-link, span.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--av-muted);
  border: 1px solid transparent;
  background: transparent;
}
.page-link:hover { border-color: var(--av-hairline-strong); color: var(--av-ink); }
.page-item.active .page-link {
  background: var(--av-ink);
  border-color: var(--av-ink);
  color: #fff;
}
.page-item.disabled .page-link {
  opacity: .4;
  pointer-events: none;
}

/* Floating Particles Canvas for Dark Sections */
.av-particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}
