/* ==========================================================================
   Artix UI kit — design tokens + reusable components (v3, 2026-09-24)

   Distilled from the pieces that landed well (home service grid, About page,
   modern header, footer). Build new sections from these tokens/classes rather
   than one-off values. Documented in docs/00-design-system.md.
   ========================================================================== */

:root, body {
  /* Surfaces (light) */
  --ax-surface:        #FFFFFF;
  --ax-surface-muted:  #F6F5F1;   /* soft panels, list trays, hover rows */
  --ax-surface-tint:   #F3EEE6;   /* icon tiles, tags, current nav item */
  --ax-hover:          #F1EFE9;   /* hover background for links/buttons */
  --ax-border-soft:    #E8E4DA;   /* inset tray borders */
  --ax-divider:        #EFECE4;   /* hairline dividers inside cards */

  /* Surfaces (dark) */
  --ax-dark-1:         #22252B;
  --ax-dark-2:         var(--ax-graphite);   /* = --ax-ink */
  --ax-dark-3:         #0D0F11;
  --ax-on-dark:        #C9CCD1;   /* body text on navy */
  --ax-on-dark-muted:  #9A9FA7;

  /* Radius scale */
  --ax-r-sm:  .6rem;
  --ax-r-md:  .9rem;
  --ax-r-lg:  1.25rem;
  --ax-r-xl:  1.75rem;
  --ax-r-2xl: 2.5rem;
  --ax-r-pill: 999px;

  /* Rings & shadows (Tailwind-style: 1px ring + soft layered shadow) */
  --ax-ring:        0 0 0 1px rgba(20,22,25,.08);
  --ax-ring-accent: 0 0 0 1px rgba(228,101,42,.75);
  --ax-shadow-sm:   0 1px 2px rgba(16,24,40,.05);
  --ax-shadow-md:   0 18px 40px -18px rgba(20,22,25,.35);
  --ax-shadow-lg:   0 30px 60px -24px rgba(20,22,25,.45);

  /* Signature dark gradient (navy panel with a blue glow) */
  --ax-grad-navy: radial-gradient(60% 70% at 100% 0%, rgba(228,101,42,.20), transparent 70%),
                  linear-gradient(160deg, #22252B 0%, #141619 55%, #0D0F11 100%);

  /* Type scale */
  --ax-fs-h1:   clamp(2.4rem, 5.2vw, 4.1rem);
  --ax-fs-h2:   clamp(1.9rem, 3.6vw, 2.9rem);
  --ax-fs-h3:   clamp(1.15rem, 1.6vw, 1.3rem);
  --ax-fs-lead: clamp(1.05rem, 1.4vw, 1.2rem);
  --ax-fs-body: 1rem;

  /* Layout */
  --ax-wrap:      1200px;
  --ax-wrap-pad:  clamp(1rem, 4vw, 2rem);
  --ax-section:   clamp(3.5rem, 8vw, 6.5rem);
}

/* ---------- Layout ---------- */
.ax-ui-wrap    { max-width: var(--ax-wrap); margin-inline: auto; padding-inline: var(--ax-wrap-pad); }
.ax-ui-section { padding-block: var(--ax-section); }
.ax-ui-section--muted { background: var(--ax-surface-muted); }
.ax-ui-section + .ax-ui-section:not(.ax-ui-section--muted) { border-top: 1px solid var(--ax-divider); }
.ax-ui-split   { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); }
@media (max-width: 860px) { .ax-ui-split { grid-template-columns: 1fr; } }

/* ---------- Type ---------- */
.ax-ui-eyebrow { margin: 0 0 1rem; font: 700 .78rem/1 var(--ax-font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--ax-blue); }
.ax-ui-eyebrow--light { color: var(--ax-peach); }
.ax-ui-h1 { margin: 0; font: 800 var(--ax-fs-h1)/1.04 var(--ax-font-display); letter-spacing: -.035em; color: var(--ax-navy); text-wrap: balance; }
.ax-ui-h2 { margin: 0; font: 800 var(--ax-fs-h2)/1.1 var(--ax-font-display); letter-spacing: -.03em; color: var(--ax-navy); text-wrap: balance; }
.ax-ui-h3 { margin: 0; font: 700 var(--ax-fs-h3)/1.3 var(--ax-font-display); letter-spacing: -.01em; color: var(--ax-navy); }
.ax-ui-lead { margin: 1.4rem 0 0; font-size: var(--ax-fs-lead); line-height: 1.75; color: var(--ax-fog); max-width: 40rem; }
.ax-ui-prose p, .ax-ui-prose li { font-size: 1.04rem; line-height: 1.8; color: var(--ax-fog); }
.ax-ui-prose p { margin: 0 0 1.15rem; }
.ax-ui-prose strong { color: var(--ax-ink); }
.ax-ui-on-dark .ax-ui-h2, .ax-ui-on-dark .ax-ui-h3 { color: #fff !important; }
.ax-ui-on-dark .ax-ui-prose p, .ax-ui-on-dark p { color: var(--ax-on-dark); }

/* ---------- Buttons ---------- */
.ax-ui-btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .85rem 1.3rem; border-radius: .75rem;
  border: 1px solid transparent; font: 700 .95rem/1.2 var(--ax-font-body); text-decoration: none !important; cursor: pointer;
  transition: background .2s var(--ax-ease), color .2s var(--ax-ease), border-color .2s var(--ax-ease), transform .2s var(--ax-ease); }
.ax-ui-btn--solid { background: var(--ax-navy); color: #fff !important; box-shadow: 0 10px 24px -10px rgba(20,22,25,.6); }
.ax-ui-btn--solid:hover { background: var(--ax-blue); transform: translateY(-1px); }
.ax-ui-btn--peach { background: var(--ax-peach); color: var(--ax-navy) !important; }
.ax-ui-btn--peach:hover { background: #fff; }
.ax-ui-btn--ghost { color: var(--ax-navy) !important; border-color: #DCD8CD; }
.ax-ui-btn--ghost:hover { border-color: var(--ax-navy); }
.ax-ui-btn--ghost-light { color: #fff !important; border-color: rgba(255,255,255,.4); }
.ax-ui-btn--ghost-light:hover { border-color: var(--ax-peach); color: var(--ax-peach) !important; }
.ax-ui-btn--link { padding-inline: 0; color: var(--ax-navy) !important; }
.ax-ui-btn--link span { transition: transform .2s var(--ax-ease); }
.ax-ui-btn--link:hover span { transform: translateX(4px); }
.ax-ui-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; margin-top: 2rem; }

/* ---------- Cards, tiles, tags ---------- */
.ax-ui-card { position: relative; background: var(--ax-surface); border-radius: var(--ax-r-lg); padding: 1.6rem;
  box-shadow: var(--ax-ring), var(--ax-shadow-sm); transition: transform .3s var(--ax-ease), box-shadow .3s var(--ax-ease); }
a.ax-ui-card, .ax-ui-card--hover { text-decoration: none !important; color: inherit; }
a.ax-ui-card:hover, .ax-ui-card--hover:hover { transform: translateY(-4px); box-shadow: var(--ax-ring-accent), var(--ax-shadow-md); }
.ax-ui-icon { flex: none; width: 2.75rem; height: 2.75rem; border-radius: .8rem; display: grid; place-items: center;
  background: var(--ax-surface-tint); color: var(--ax-navy); transition: background .25s var(--ax-ease), color .25s var(--ax-ease); }
.ax-ui-icon svg { width: 1.3rem; height: 1.3rem; }
.ax-ui-card:hover .ax-ui-icon { background: var(--ax-navy); color: var(--ax-peach); }
.ax-ui-icon--dark { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); color: var(--ax-peach); }
.ax-ui-tag { display: inline-flex; align-items: center; line-height: 1.2; font-size: .74rem; font-weight: 600; color: var(--ax-ink-2);
  background: var(--ax-surface-tint); border: 1px solid #E3E0D7; padding: .3rem .65rem; border-radius: var(--ax-r-pill); }
.ax-ui-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.ax-ui-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 1024px) { .ax-ui-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .ax-ui-grid-3, .ax-ui-grid-2 { grid-template-columns: 1fr; } }

/* ---------- Dark panel (inset, rounded) ---------- */
.ax-ui-panel-dark { background: var(--ax-grad-navy); color: #fff; border-radius: clamp(1.5rem, 3vw, var(--ax-r-2xl)); }
.ax-ui-inset { padding-inline: clamp(.5rem, 2vw, 1.5rem); }

/* ---------- Numbered steps ---------- */
.ax-ui-steps { list-style: none; margin: 2.6rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; counter-reset: axstep; }
.ax-ui-steps li { counter-increment: axstep; position: relative; padding-top: 1.4rem; border-top: 2px solid var(--ax-peach); }
.ax-ui-steps li::before { content: counter(axstep, decimal-leading-zero); display: block; margin-bottom: .7rem; font: 800 .8rem/1 var(--ax-font-display); letter-spacing: .12em; color: var(--ax-peach); }
.ax-ui-steps h3 { margin: 0 0 .5rem; font: 700 1.08rem/1.3 var(--ax-font-display); color: #fff !important; }
.ax-ui-steps p  { margin: 0; font-size: .94rem; line-height: 1.65; color: var(--ax-on-dark); }
@media (max-width: 960px) { .ax-ui-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ax-ui-steps { grid-template-columns: 1fr; } }

/* ---------- FAQ accordion (details/summary, divide-y) ---------- */
.ax-ui-faq { border-top: 1px solid #E8E4DA; }
.ax-ui-faq details { border-bottom: 1px solid #E8E4DA; }
.ax-ui-faq summary { list-style: none; cursor: pointer; display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem;
  padding: 1.35rem 0; font: 700 1.06rem/1.45 var(--ax-font-display); color: var(--ax-navy); }
.ax-ui-faq summary::-webkit-details-marker { display: none; }
.ax-ui-faq summary::after { content: ""; flex: none; width: 1.8rem; height: 1.8rem; margin-top: -.1rem; border-radius: var(--ax-r-pill);
  background: var(--ax-surface-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2320304E' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 1rem no-repeat;
  transition: transform .25s var(--ax-ease), background-color .25s var(--ax-ease); }
.ax-ui-faq details[open] summary::after { transform: rotate(45deg); background-color: var(--ax-peach); }
.ax-ui-faq summary:hover { color: var(--ax-blue); }
.ax-ui-faq .ax-ui-faq-a { padding: 0 3.3rem 1.4rem 0; }
.ax-ui-faq .ax-ui-faq-a p { margin: 0 0 .8rem; font-size: 1rem; line-height: 1.75; color: var(--ax-fog); }

/* ---------- Checklist ---------- */
.ax-ui-checks { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .7rem; }
.ax-ui-checks li { position: relative; padding-left: 2rem; font-size: 1rem; line-height: 1.6; color: var(--ax-ink); }
.ax-ui-checks li::before { content: ""; position: absolute; left: 0; top: .15rem; width: 1.3rem; height: 1.3rem; border-radius: var(--ax-r-pill);
  background: var(--ax-surface-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23346FDC' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / .8rem no-repeat; }
.ax-ui-on-dark .ax-ui-checks li { color: #fff; }

/* ---------- CTA panel ---------- */
.ax-ui-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(2.2rem, 5vw, 3.5rem);
  border-radius: var(--ax-r-xl); color: #fff; background: var(--ax-grad-navy); box-shadow: var(--ax-shadow-lg); }
.ax-ui-cta h2 { margin: 0; font: 800 clamp(1.7rem, 3vw, 2.3rem)/1.15 var(--ax-font-display); letter-spacing: -.03em; color: #fff !important; }
.ax-ui-cta p  { margin: .7rem 0 0; max-width: 34rem; color: var(--ax-on-dark); line-height: 1.7; }
.ax-ui-cta .ax-ui-actions { margin-top: 0; }

/* ---------- Closing note on articles & guides ---------- */
.ax-note-cta { margin: 2.2rem 0 0; padding: 1.1rem 1.3rem; border-radius: var(--ax-r-md); background: var(--ax-surface-muted);
  box-shadow: inset 3px 0 0 var(--ax-peach), inset 0 0 0 1px var(--ax-border-soft); font-weight: 600; color: var(--ax-navy); }
.ax-note-cta a { color: var(--ax-blue) !important; }

/* ---------- Image credits page ---------- */
.ax-credits { padding-block: var(--ax-section); }
.ax-credits-table { width: 100%; margin-top: 2rem; border-collapse: collapse; font-size: .92rem; }
.ax-credits-table th, .ax-credits-table td { text-align: left; padding: .8rem .6rem; border-bottom: 1px solid var(--ax-divider); vertical-align: top; }
.ax-credits-table th { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ax-fog); }
.ax-credits-table a { color: var(--ax-blue) !important; word-break: break-word; }

/* ---------- Host section: an Elementor section that hands the full width to a component ---------- */
.ax-host { padding: 0 !important; }
.ax-host > .elementor-container { max-width: none !important; }
.ax-host .elementor-column > .elementor-element-populated, .ax-host .elementor-widget-wrap { padding: 0 !important; }

/* ---------- Floating WhatsApp button (level with "Ask us", bottom-right) ---------- */
.ax-wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 9990; display: inline-flex; align-items: center; gap: .55rem;
  height: 46px; padding: 0 1.15rem 0 .85rem; border-radius: 10px; background: #25D366; color: #fff !important; text-decoration: none !important;
  font: 700 .9rem/1 var(--ax-font-display); box-shadow: 0 12px 28px -10px rgba(18,140,76,.65); transition: transform .2s var(--ax-ease), box-shadow .2s var(--ax-ease); }
.ax-wa-float svg { width: 22px; height: 22px; flex: none; }
.ax-wa-float:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -10px rgba(18,140,76,.75); }
.ax-wa-float::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(37,211,102,.55); animation: ax-wa-pulse 2.6s infinite; pointer-events: none; }
@keyframes ax-wa-pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
@media (prefers-reduced-motion: reduce) { .ax-wa-float::after { animation: none; } }
@media (max-width: 560px) { .ax-wa-float { width: 52px; height: 52px; padding: 0; justify-content: center; border-radius: 999px; right: 12px; bottom: 12px; } .ax-wa-float span { display: none; } .ax-wa-float svg { width: 26px; height: 26px; } }
/* Astra's scroll-to-top square collided with the floating buttons */
#ast-scroll-top { display: none !important; }

/* ---- Artix additions ---------------------------------------------------- */
/* Footer: featured services + "All services" link; registration line. */
.ax-foot .ax-foot-all { color: var(--ax-ember-light) !important; font-weight: 600; }
.ax-foot-reg { display: block; margin-top: .35rem; opacity: .8; font-size: .85em; }
/* Service cards without a photo: a short graphite band with a faint blueprint grid (no fake imagery). */
.ax-pgrid-media--plain {
  aspect-ratio: 16 / 5;
  background:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 22px 22px,
    var(--ax-grad-navy);
}
.ax-pgrid-media--plain::after { display: none; }
/* A group with a single service: full-width feature card (media left, text right). */
@media (min-width: 900px) {
  .ax-pgrid > .ax-pgrid-card:only-child { grid-column: 1 / -1; flex-direction: row; }
  .ax-pgrid > .ax-pgrid-card:only-child .ax-pgrid-media { flex: 0 0 42%; aspect-ratio: auto; min-height: 17rem; }
  .ax-pgrid > .ax-pgrid-card:only-child .ax-pgrid-icon { left: auto; right: -1.45rem; bottom: auto; top: 50%; transform: translateY(-50%); }
  .ax-pgrid > .ax-pgrid-card:only-child .ax-pgrid-body { padding: 2.25rem 2.5rem 2rem 3rem; justify-content: center; }
  .ax-pgrid > .ax-pgrid-card:only-child .ax-pgrid-title { font-size: 1.6rem; }
  .ax-pgrid > .ax-pgrid-card:only-child .ax-pgrid-blurb { font-size: 1.02rem; max-width: 46ch; }
}
/* 4-up grid (engagement models); collapses 4 → 2 → 1. */
.ax-ui-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2rem; }
@media (max-width: 1100px) { .ax-ui-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .ax-ui-grid-4 { grid-template-columns: 1fr; } }
.ax-engage-card p { color: var(--ax-fog); margin: .5rem 0 1rem; }
.ax-engage-card .ax-engage-price { color: var(--ax-ink); font-weight: 600; }

/* ---- Testimonial form ([ax_testimonial_form]) ---------------------------- */
.ax-tm { max-width: 860px; }
.ax-tm-section { background: var(--ax-surface-muted); }
.ax-tm-head { margin-bottom: 2rem; }
.ax-tm-head .ax-ui-lead { color: var(--ax-fog); max-width: 60ch; }
.ax-tm-form { padding: clamp(1.25rem, 3vw, 2.5rem); display: grid; gap: 1.75rem; }
.ax-tm-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 1rem; }
.ax-tm-form legend { font: 700 1.15rem/1.3 var(--ax-font-display); color: var(--ax-ink); margin-bottom: .75rem; padding: 0; }
.ax-tm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
@media (max-width: 700px) { .ax-tm-grid { grid-template-columns: 1fr; } }
.ax-tm-form p { margin: 0; }
.ax-tm-form label, .ax-tm-rating > span:first-child { display: block; font-weight: 600; font-size: .9rem; color: var(--ax-ink); margin-bottom: .4rem; }
.ax-tm-form small { font-weight: 400; color: var(--ax-fog); }
.ax-tm-form input[type=text], .ax-tm-form input:not([type]), .ax-tm-form input[type=email], .ax-tm-form input[type=url],
.ax-tm-form select, .ax-tm-form textarea {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 1rem; color: var(--ax-ink); background: #fff;
  border: 1px solid var(--ax-line); border-radius: var(--ax-r-sm); padding: .75rem .9rem; transition: border-color .15s, box-shadow .15s;
}
.ax-tm-form select { height: auto; min-height: 2.9rem; line-height: 1.4; }
.ax-tm-form select + input { margin-top: .5rem; }
.ax-tm-form input:focus, .ax-tm-form select:focus, .ax-tm-form textarea:focus { outline: none; border-color: var(--ax-ember); box-shadow: 0 0 0 3px rgba(228,101,42,.18); }
.ax-tm-form input[type=file] { font-size: .9rem; width: 100%; }
.ax-tm-hint { display: block; margin-top: .4rem; }
.ax-tm-stars { display: inline-flex; flex-direction: row-reverse; gap: .15rem; }
.ax-tm-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ax-tm-stars label { font-size: 2rem; line-height: 1; color: var(--ax-line); cursor: pointer; margin: 0; transition: color .12s, transform .12s; }
.ax-tm-stars input:checked ~ label, .ax-tm-stars label:hover, .ax-tm-stars label:hover ~ label { color: var(--ax-amber); }
.ax-tm-stars input:focus-visible + label { outline: 2px solid var(--ax-ember); outline-offset: 2px; border-radius: 4px; }
.ax-tm-consent label { display: flex; gap: .65rem; align-items: flex-start; font-weight: 400; color: var(--ax-fog); line-height: 1.55; }
.ax-tm-consent input { margin-top: .3rem; accent-color: var(--ax-ember); width: 1.1rem; height: 1.1rem; flex: none; }
.ax-tm-error { background: #FDF1F0; color: #9B2C23; border: 1px solid #F6E7E4; border-radius: var(--ax-r-sm); padding: .8rem 1rem; margin-bottom: 1rem; }
.ax-hp { position: absolute !important; left: -9999px !important; }
.ax-tm-done { text-align: center; padding: 3rem 2rem; }
.ax-tm-done .ax-ui-icon { margin: 0 auto 1rem; }
/* Testimonial cards ([ax_testimonials]) */
.ax-tm-grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.ax-tm-card { margin: 0; background: #fff; border-radius: var(--ax-r-lg); box-shadow: var(--ax-ring), var(--ax-shadow-sm); padding: 1.75rem; display: flex; flex-direction: column; gap: 1rem; }
.ax-tm-card-stars { margin: 0; color: var(--ax-amber); letter-spacing: .1em; }
.ax-tm-card-stars span { color: var(--ax-line); }
.ax-tm-card blockquote { margin: 0; color: var(--ax-ink); font-size: 1.02rem; line-height: 1.65; }
.ax-tm-card figcaption { margin-top: auto; display: flex; gap: .8rem; align-items: center; }
.ax-tm-card figcaption img, .ax-tm-card-initials { width: 2.75rem; height: 2.75rem; border-radius: 50%; object-fit: cover; flex: none; }
.ax-tm-card-initials { display: grid; place-items: center; background: var(--ax-ink); color: #fff; font: 700 .9rem var(--ax-font-display); }
.ax-tm-card figcaption strong { display: block; color: var(--ax-ink); }
.ax-tm-card figcaption small { color: var(--ax-fog); }
