/* ==========================================================================
   Axeclusive — theme styles (front end and editor).
   Colours come from theme.json (Appearance → Editor → Styles), so the Dark and
   Light styles restyle everything, including the Axe Arena widgets.
   ========================================================================== */

:root {
  --axt-line: color-mix(in srgb, var(--wp--preset--color--contrast) 9%, transparent);
  --axt-line-2: color-mix(in srgb, var(--wp--preset--color--contrast) 16%, transparent);
  --axt-shadow: 0 24px 60px rgba(2, 6, 23, .28);
  --axt-glow: 0 24px 60px color-mix(in srgb, var(--wp--preset--color--primary) 22%, transparent);
  --axt-ease: cubic-bezier(.2, .8, .2, 1);
  --axt-logo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E");
}

/* Axe Arena widgets and checkout follow the theme colours (not on the plugin's own full-page landing, which has its own light/dark switch) */
body:not(.axl-page) .axp {
  --bg: var(--wp--preset--color--base);
  --bg-2: var(--wp--preset--color--surface);
  --bg-3: var(--wp--preset--color--surface-2);
  --txt: var(--wp--preset--color--contrast);
  --txt-2: var(--wp--preset--color--muted);
  --txt-3: var(--wp--preset--color--subtle);
  --line: var(--axt-line);
  --line-2: var(--axt-line-2);
  --glass: color-mix(in srgb, var(--wp--preset--color--surface) 75%, transparent);
  --shadow-1: 0 1px 2px rgba(2, 6, 23, .12), 0 2px 8px rgba(2, 6, 23, .08);
  --shadow-2: 0 8px 30px rgba(2, 6, 23, .18);
  --shadow-3: var(--axt-shadow);
  --c-primary: var(--wp--preset--color--primary);
  --f-sans: var(--wp--preset--font-family--inter);
}

/* ── Base ────────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; scroll-padding-top: 96px; overflow-x: clip; }
body { -webkit-font-smoothing: antialiased; overflow-x: clip; }
.wp-site-blocks > * { margin-block-start: 0; }
:focus-visible { outline: 3px solid var(--wp--preset--color--accent); outline-offset: 3px; }
a { text-underline-offset: 3px; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.wp-block-button__link { transition: transform .16s var(--axt-ease), box-shadow .3s var(--axt-ease), background-color .3s; box-shadow: 0 8px 24px rgba(99, 91, 255, .32); white-space: nowrap; }
.wp-block-button__link:hover { transform: translateY(-2px); text-decoration: none; box-shadow: 0 14px 34px rgba(99, 91, 255, .45); }
.wp-block-button__link:active { transform: translateY(0) scale(.98); }
body .wp-block-button.is-style-outline > .wp-block-button__link { background: var(--wp--preset--color--surface); color: var(--wp--preset--color--contrast); border: 1px solid var(--axt-line-2); box-shadow: 0 1px 2px rgba(2, 6, 23, .12); padding: 12px 21px; }
body .wp-block-button.is-style-outline > .wp-block-button__link:hover { border-color: var(--wp--preset--color--primary); }
.axt-btn-sm .wp-block-button__link, body .axt-btn-sm.is-style-outline > .wp-block-button__link { padding: 9px 14px; font-size: .88rem; border-radius: 10px; }

/* ── Header ──────────────────────────────────────────────────────────── */
.axt-site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
/* Blur lives on a background layer: backdrop-filter on the header itself would trap the mobile menu overlay inside it */
.axt-site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--wp--preset--color--base) 72%, transparent); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); }
.axt-site-header.is-scrolled { border-bottom-color: var(--axt-line); box-shadow: 0 1px 2px rgba(2, 6, 23, .2); }
.admin-bar .axt-site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .axt-site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .axt-site-header { top: 0; } }
.axt-header { padding-block: 14px; }
.axt-header-row { gap: 20px; }
.axt-brand { gap: 10px; min-width: 0; flex-shrink: 1; }
.axt-logo { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 800; font-size: 1.08rem; letter-spacing: -.02em; white-space: nowrap; }
.axt-logo a { display: inline-flex; align-items: center; gap: 10px; color: var(--wp--preset--color--contrast); text-decoration: none; }
.axt-header-row:not(:has(.wp-block-site-logo img)) .axt-logo a::before,
.axt-footer-brand:not(:has(.wp-block-site-logo img)) .axt-logo a::before {
  content: ""; width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px;
  background: var(--axt-logo) center / 18px no-repeat, var(--wp--preset--gradient--hero);
  box-shadow: 0 6px 16px rgba(99, 91, 255, .35);
}
.axt-nav { font-size: .93rem; font-weight: 500; }
.axt-nav .wp-block-navigation__container { gap: 2px; }
.axt-nav .wp-block-navigation-item__content { padding: 8px 12px !important; border-radius: 10px; color: var(--wp--preset--color--muted); transition: color .16s, background-color .16s; }
.axt-nav .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--contrast); background: var(--wp--preset--color--surface-2); text-decoration: none; }
.axt-nav .wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--surface) !important; color: var(--wp--preset--color--contrast) !important; padding: 28px 24px; }
.axt-nav .is-menu-open .wp-block-navigation-item__content { font-size: 1.1rem; padding: 12px !important; }
.axt-header-cta { gap: 10px; flex-wrap: nowrap; flex-shrink: 0; }
/* Show the menu button below 1100px (core switches at 600px) */
@media (min-width: 600px) and (max-width: 1099px) {
  .axt-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
  .axt-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}
@media (max-width: 1099px) {
  .axt-header-row { gap: 12px; }
  .axt-nav { order: 3; }
}
@media (max-width: 600px) {
  .wp-block-buttons > .wp-block-button.axt-hide-mobile { display: none; }
  .axt-logo { font-size: .98rem; }
  .axt-header-row { gap: 10px; }
}

/* ── Sections ────────────────────────────────────────────────────────── */
.axt-landing-content > * { margin-block: 0 !important; }
.axt-section { position: relative; padding-block: clamp(64px, 9vw, 112px); }
.axt-alt { background: var(--wp--preset--color--surface); }
.axt-center { text-align: center; }
.axt-center .wp-block-buttons { justify-content: center; }
.axt-center .axt-lead { margin-inline: auto; }
.axt-eyebrow { margin-bottom: 0; font-size: .8rem !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--wp--preset--color--link); }
.axt-eyebrow + .wp-block-heading { margin-top: 14px; }
.axt-lead { max-width: 680px; color: var(--wp--preset--color--muted); font-size: clamp(1rem, 1.4vw, 1.2rem); }
.axt-note { margin-top: 22px !important; color: var(--wp--preset--color--subtle); font-size: .88rem; }
.axt-section .axp.axw { margin-top: 48px !important; text-align: left; }
/* A section whose widget has nothing to show (e.g. no real demo pages yet) hides itself on the live site */
.axt-needs-widget:not(:has(.axw, .wp-block-axearena-widget)) { display: none; }
.axt-section.axt-center .axw-booking-demo .center, .axt-section .axw-booking-demo .center { text-align: center; }
.axt-grid-bg::before, .axt-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(var(--axt-line) 1px, transparent 1px), linear-gradient(90deg, var(--axt-line) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 72%); mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 72%);
}
.axt-grid-bg > *, .axt-hero > * { position: relative; z-index: 1; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.axt-hero { overflow: hidden; padding-top: clamp(40px, 6vw, 88px); }
.axt-hero::after { content: ""; position: absolute; z-index: 0; width: 520px; height: 520px; top: -180px; right: -140px; border-radius: 50%; background: var(--wp--preset--color--secondary); filter: blur(120px); opacity: .32; pointer-events: none; }
.axt-hero-cols { align-items: center; gap: clamp(32px, 5vw, 64px) !important; }
.axt-hero-copy > * { margin-block: 0; }
.axt-hero-copy .wp-block-heading { margin-top: 16px; }
.axt-hero h1 strong { background: var(--wp--preset--gradient--hero); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: inherit; }
.axt-hero .axt-lead { margin-top: 20px; margin-bottom: 28px; }
.axt-micro { list-style: none; padding: 0; margin-top: 22px !important; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--wp--preset--color--muted); font-size: .9rem; }
.axt-micro li::before { content: "✓"; margin-right: 6px; color: var(--wp--preset--color--success); font-weight: 800; }
.axt-hero-visual .axp.axw { margin-top: 0 !important; }

/* ── Industries strip ────────────────────────────────────────────────── */
.axt-strip { padding-block: 28px; border-block: 1px solid var(--axt-line); }
.axt-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.axt-chips li { margin: 0; padding: 8px 14px; border-radius: 99px; background: var(--wp--preset--color--surface); border: 1px solid var(--axt-line); color: var(--wp--preset--color--muted); font-size: .9rem; font-weight: 600; }

/* ── Cards & grids ───────────────────────────────────────────────────── */
.axt-card { background: var(--wp--preset--color--surface); border: 1px solid var(--axt-line); border-radius: 20px; padding: 26px !important; text-align: left; transition: transform .3s var(--axt-ease), box-shadow .3s var(--axt-ease), border-color .3s; }
.axt-alt .axt-card { background: var(--wp--preset--color--base); }
.axt-card:hover { transform: translateY(-4px); box-shadow: var(--axt-shadow); }
.axt-card > * { margin-block: 0; }
.axt-card > * + * { margin-top: 10px !important; }
.axt-grid { display: grid !important; gap: 16px; margin-top: 48px !important; }
.axt-grid > * { margin: 0 !important; }
.axt-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.axt-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.axt-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .axt-grid-3, .axt-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .axt-grid { grid-template-columns: minmax(0, 1fr) !important; } }

.axt-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 6px !important; border-radius: 14px; background: color-mix(in srgb, var(--wp--preset--color--primary) 16%, transparent); font-size: 1.4rem; line-height: 1; }
.axt-feature h3, .axt-step h3 { font-size: 1.08rem; }
.axt-feature p:not(.axt-icon), .axt-step p:not(.axt-num) { color: var(--wp--preset--color--muted); font-size: .95rem; }
.axt-num { font-size: 2.2rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; background: var(--wp--preset--gradient--primary); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Problem → solution */
.axt-compare { margin-top: 48px !important; gap: 20px !important; text-align: left; }
.axt-old h3 { color: #F87171; }
.axt-new { border-color: color-mix(in srgb, var(--wp--preset--color--primary) 50%, transparent); box-shadow: var(--axt-glow); }
.axt-new h3 { color: var(--wp--preset--color--success); }
.axt-x, .axt-check { list-style: none; padding: 0; margin-top: 16px !important; display: grid; gap: 10px; }
.axt-x li, .axt-check li { display: flex; align-items: center; gap: 10px; margin: 0; }
.axt-x li::before, .axt-check li::before { flex-shrink: 0; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; font-size: .7rem; font-weight: 800; }
.axt-x li { color: var(--wp--preset--color--subtle); }
.axt-x li::before { content: "✕"; color: #F87171; background: rgba(248, 113, 113, .14); }
.axt-check li::before { content: "✓"; color: var(--wp--preset--color--success); background: color-mix(in srgb, var(--wp--preset--color--success) 16%, transparent); }

/* Stats */
.axt-stat { text-align: center; }
.axt-stat-num { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; background: var(--wp--preset--gradient--hero); -webkit-background-clip: text; background-clip: text; color: transparent; }
.axt-stat p:not(.axt-stat-num) { color: var(--wp--preset--color--muted); font-size: .95rem; }
.axt-trust { list-style: none; padding: 0; max-width: 900px; margin: 32px auto 0 !important; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; text-align: left; }
.axt-trust li { margin: 0; color: var(--wp--preset--color--muted); }
.axt-trust li::before { content: "✓"; margin-right: 8px; color: var(--wp--preset--color--success); font-weight: 800; }
@media (max-width: 781px) { .axt-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .axt-trust { grid-template-columns: minmax(0, 1fr); } }

/* Testimonials */
.axt-quote { margin: 0 !important; border: 1px solid var(--axt-line) !important; }
.axt-quote p { font-size: 1.05rem; color: var(--wp--preset--color--contrast); font-style: normal; }
.axt-quote cite { display: block; margin-top: 16px; font-style: normal; font-size: .88rem; font-weight: 600; color: var(--wp--preset--color--subtle); }

/* FAQ */
.axt-faq { margin-top: 40px !important; display: grid; gap: 10px; text-align: left; }
.axt-faq > * { margin: 0 !important; }
.axt-faq details { background: var(--wp--preset--color--surface); border: 1px solid var(--axt-line); border-radius: 14px; overflow: hidden; transition: border-color .2s; }
.axt-alt .axt-faq details { background: var(--wp--preset--color--base); }
.axt-faq details[open] { border-color: color-mix(in srgb, var(--wp--preset--color--primary) 45%, transparent); }
.axt-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; cursor: pointer; list-style: none; font-weight: 600; }
.axt-faq summary::-webkit-details-marker { display: none; }
.axt-faq summary::after { content: "+"; flex-shrink: 0; font-size: 1.4rem; line-height: 1; color: var(--wp--preset--color--link); transition: transform .3s var(--axt-ease); }
.axt-faq details[open] summary::after { transform: rotate(45deg); }
.axt-faq details > :not(summary) { margin: 0; padding: 0 20px 18px; color: var(--wp--preset--color--muted); }

/* Call to action */
.axt-cta-wrap { padding-top: 0; }
.axt-cta { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 72px) 24px !important; border-radius: 28px; background: var(--wp--preset--gradient--hero); color: #fff; text-align: center; box-shadow: 0 30px 80px rgba(79, 70, 229, .35); }
.axt-cta h2 { color: #fff; }
.axt-cta p { color: rgba(255, 255, 255, .9); }
.axt-cta .wp-block-buttons { justify-content: center; }
.axt-cta .axt-btn-white .wp-block-button__link { background: #fff; color: #312E81; box-shadow: 0 10px 30px rgba(15, 23, 42, .25); }
body .axt-cta .is-style-outline > .wp-block-button__link { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .35); box-shadow: none; }

/* ── Inner pages ─────────────────────────────────────────────────────── */
.axt-page-hero { padding-bottom: clamp(32px, 4vw, 48px); }
.axt-page { padding-block: clamp(48px, 7vw, 88px); }
.axt-page-title { margin-bottom: 24px; }
.axt-meta { color: var(--wp--preset--color--subtle); font-size: .88rem; }
.axt-post-card img { border-radius: 12px; }
.axt-contact { gap: 20px !important; align-items: stretch; }
.axt-contact p { margin: 0; }
.axt-pagination { margin-top: 32px; justify-content: center; }
.axt-404-search { max-width: 480px; margin-inline: auto; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.axt-site-footer { border-top: 1px solid var(--axt-line); background: var(--wp--preset--color--surface); }
.axt-footer { padding-block: 56px 28px; }
.axt-footer-cols { gap: 32px !important; }
.axt-footer-cols > .axt-footer-brand { flex-grow: 2 !important; }
.axt-footer-brand p { max-width: 320px; margin-top: 12px; color: var(--wp--preset--color--muted); font-size: .95rem; }
.axt-footer h4 { margin-bottom: 12px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--wp--preset--color--subtle); }
.axt-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.axt-links li { margin: 0; }
.axt-links a { color: var(--wp--preset--color--muted); }
.axt-links a:hover { color: var(--wp--preset--color--contrast); }
.axt-copy { margin-top: 40px !important; padding-top: 20px; border-top: 1px solid var(--axt-line); color: var(--wp--preset--color--subtle); font-size: .85rem; }
.axt-copy p { margin: 0; }

/* ── Scroll reveal (added by theme.js; never hides content without JS) ─ */
.axt-js .axt-rv { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--axt-ease), transform .8s var(--axt-ease); transition-delay: var(--axt-d, 0ms); }
.axt-js .axt-rv.axt-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .axt-js .axt-rv { opacity: 1; transform: none; transition: none; }
  .axt-card, .wp-block-button__link { transition: none; }
}
