/* Eventnivo base layer, ported from eventnivo-site/css/site.css. Components load later, not here.
   Loads after Hello and Elementor's kit (class-assets.php), so ties in specificity go to this file.
   Elementor kit button, form and link settings do not exist: this file is their only source. */

/* reset */
*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none!important}
html{scroll-behavior:smooth;scroll-padding-top:84px}
body{margin:0;font:17px/1.6 var(--body);color:var(--text);background:var(--paper);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
/* Scoped: the mockup's bare img,svg rule would turn inline icons and smilies into blocks. */
:where(.wrap) :where(img,svg){max-width:100%;display:block}

/* links */
a{color:var(--brand);text-decoration-thickness:1px;text-underline-offset:3px}
a:hover{color:var(--ink)}
/* Hello and `.elementor a` remove underlines. Links inside text need them (WCAG 1.4.1). */
:is(p,.prose li,.elementor-widget-text-editor li) a:not(.btn,.elementor-button,.button){text-decoration-line:underline}

/* typography */
h1,h2,h3,h4{font-family:var(--font-display);line-height:1.08;margin:0 0 .5em;color:var(--ink);letter-spacing:-.01em;text-wrap:balance}
h1{font-size:clamp(2.5rem,5.4vw,4.3rem);font-weight:700;letter-spacing:-.018em}
h2{font-size:clamp(2rem,4vw,3.1rem);font-weight:700}
h3{font-size:1.3rem;font-weight:650;letter-spacing:-.005em}
h4{font-size:1.02rem;font-weight:650;letter-spacing:0}
h2.h3{font-size:1.3rem;font-weight:650;letter-spacing:-.005em}
/* Size, line height and tracking on these come from the kit's tag rules. */
.elementor-widget-heading .elementor-heading-title{font-family:var(--font-display);color:var(--ink);text-wrap:balance}
/* Elementor's weight control stops at 600. The design asks for 650, and this beats the kit. */
:root h3,:root h4,.elementor-widget-heading h3.elementor-heading-title,.elementor-widget-heading h4.elementor-heading-title{font-weight:650}
p{margin:0 0 1em;text-wrap:pretty}
.lead{font-size:clamp(1.1rem,1.7vw,1.3rem);color:var(--muted);max-width:56ch;line-height:1.55}
.small{font-size:.9rem;color:var(--muted)}
.mono{font-family:var(--mono)}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* layout */
.wrap{max-width:var(--w);margin:0 auto;padding-inline:var(--gut)}

/* dark sections */
.bg-ink{background:var(--ink);color:var(--on-ink)}
.bg-ink h1,.bg-ink h2,.bg-ink h3,.bg-ink h4,
.bg-ink .elementor-widget-heading .elementor-heading-title,
.cta-band .elementor-widget-heading .elementor-heading-title,
.hero-dark .elementor-widget-heading .elementor-heading-title{color:var(--paper)}
.bg-ink .lead,.bg-ink .small{color:var(--muted-d)}
.bg-ink a{color:var(--brand-tint)}

/* tables: same specificity as Hello's zebra and hover. A later cell fill (td.us, tr.grp td)
   must beat 0,1,4, so prefix it with .tbl-wrap. */
table tbody>tr:nth-child(odd)>td,table tbody>tr:nth-child(odd)>th,
table tbody tr:hover>td,table tbody tr:hover>th{background-color:transparent}

/* focus. The radius stays low so .btn and other pills keep theirs. The ring outranks all of
   Hello's selectors, including its [tabindex] one, and replaces its white box-shadow. */
:focus-visible{border-radius:6px}
:root :focus-visible,
:root [tabindex]:not([tabindex="-1"]):not([contenteditable]):focus-visible{outline:3px solid var(--brand-2);outline-offset:3px;box-shadow:none}
/* A-02: controls with no text box always get the ring, even if a stylesheet clears input:focus. */
:root input:is([type=checkbox],[type=radio],[type=submit],[type=button],[type=reset],[type=file],[type=range],[type=color],[type=image]):focus-visible{outline:3px solid var(--brand-2);outline-offset:3px}

/* buttons. In Elementor the variant class lands on the widget wrapper, so `.btn-ghost .elementor-button`.
   An Elementor button with no variant class is primary. Each variant sets its own :focus,
   because Hello paints button:focus and [type=submit]:focus #c36. */
.btn,.elementor-widget .elementor-button,:root .fluentform .ff-btn-submit{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 24px;border-radius:999px;font:650 1rem var(--body);text-decoration:none;border:1.5px solid transparent;cursor:pointer;transition:transform .15s,box-shadow .2s,background .2s,color .2s;white-space:nowrap}
.btn:active,.elementor-widget .elementor-button:active,:root .fluentform .ff-btn-submit:active{transform:translateY(1px)}

.btn-primary,.btn-primary:focus,
.elementor-widget .elementor-button,.elementor-widget .elementor-button:focus,.elementor-widget .elementor-button:visited,
:root .fluentform .ff-btn-submit,:root .fluentform .ff-btn-submit:focus{background:var(--brand);color:var(--paper)}
.btn-primary,.elementor-widget .elementor-button,:root .fluentform .ff-btn-submit{box-shadow:var(--sh-brand)}
/* Hello clears box-shadow on focus. */
:root .btn-primary:focus,:root .elementor-widget .elementor-button:focus,:root .fluentform .ff-btn-submit:focus{box-shadow:var(--sh-brand)}
.btn-primary:hover,.elementor-widget .elementor-button:hover,:root .fluentform .ff-btn-submit:hover{background:var(--brand-hover);color:var(--paper);box-shadow:var(--sh-brand-hover)}
.bg-ink .btn-primary,.cta-band .btn-primary{color:var(--paper)}

/* Hover motion, in the product's own idiom: a primary button is scanned (a light sweep crosses it) and lifts,
   a ghost or dark one lifts. Transform, opacity and translate only, and none of it under reduced motion. */
@media(prefers-reduced-motion:no-preference){
  .btn,.elementor-widget .elementor-button{transition:transform .25s cubic-bezier(.2,.7,.2,1),box-shadow .25s,background .2s,color .2s,border-color .2s}
  .btn:hover,.elementor-widget .elementor-button:hover{transform:translateY(-2px)}
  .btn:active,.elementor-widget .elementor-button:active{transform:translateY(0)}
  .btn-primary,.elementor-widget:not(.btn-ghost):not(.btn-dark) .elementor-button{position:relative;overflow:hidden;isolation:isolate}
  .btn-primary::after,.elementor-widget:not(.btn-ghost):not(.btn-dark) .elementor-button::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(100deg,transparent 30%,rgba(255,255,255,.34) 50%,transparent 70%);translate:-130% 0}
  .btn-primary:hover::after,.elementor-widget:not(.btn-ghost):not(.btn-dark) .elementor-button:hover::after{translate:130% 0;transition:translate .7s cubic-bezier(.2,.7,.2,1)}
}

.btn-dark,.btn-dark:focus,
.btn-dark .elementor-button,.btn-dark .elementor-button:focus,.btn-dark .elementor-button:visited{background:var(--ink);color:var(--paper);box-shadow:none}
.btn-dark:hover,.btn-dark .elementor-button:hover{background:var(--ink-3);color:var(--paper);box-shadow:none}
.bg-ink .btn-dark,.cta-band .btn-dark{color:var(--paper)}

.btn-ghost,.btn-ghost:focus,
.btn-ghost .elementor-button,.btn-ghost .elementor-button:focus,.btn-ghost .elementor-button:visited{background:transparent;border-color:var(--line);color:var(--ink);box-shadow:none}
.btn-ghost:hover,.btn-ghost .elementor-button:hover{background:transparent;border-color:var(--ink);color:var(--ink);box-shadow:none}
.bg-ink .btn-ghost,.cta-band .btn-ghost,
.bg-ink .btn-ghost:focus,.cta-band .btn-ghost:focus,
.bg-ink .btn-ghost .elementor-button,.cta-band .btn-ghost .elementor-button,
.bg-ink .btn-ghost .elementor-button:focus,.cta-band .btn-ghost .elementor-button:focus,
.bg-ink .btn-ghost .elementor-button:visited,.cta-band .btn-ghost .elementor-button:visited{border-color:var(--line-d);color:var(--paper)}
.bg-ink .btn-ghost:hover,.cta-band .btn-ghost:hover,
.bg-ink .btn-ghost .elementor-button:hover,.cta-band .btn-ghost .elementor-button:hover{border-color:var(--paper);color:var(--paper)}
:root .btn-dark:focus,:root .btn-ghost:focus,
:root .btn-dark .elementor-button:focus,:root .btn-ghost .elementor-button:focus{box-shadow:none}

.btn-lg,.btn-lg .elementor-button{min-height:56px;padding:0 30px;font-size:1.05rem}
.btn-sm,.btn-sm .elementor-button{min-height:38px;padding:0 16px;font-size:.92rem}
/* A-11: 44 px wherever the pointer is a finger. Mouse users keep the approved 38 px. */
@media(max-width:640px),(pointer:coarse){.btn-sm,.btn-sm .elementor-button{min-height:44px}}

/* forms */
.form{display:grid;gap:16px}
.form label,:root .fluentform .ff-el-input--label label{font-weight:650;font-size:.93rem;color:var(--ink)}
.form label{display:grid;gap:6px}
/* D-021 border. Equal to Hello's input rules and below `.eventnivo-store` ones, so store.css keeps control. */
:is(input:not([type=checkbox],[type=radio],[type=submit],[type=button],[type=reset],[type=file],[type=range],[type=color],[type=image],[type=hidden]),select,textarea),
:root .fluentform .ff-el-form-control{font:500 1rem var(--body);color:var(--text);padding:13px 15px;border:1.5px solid var(--field-line);border-radius:12px;background:var(--paper);width:100%}
:is(input,textarea)::placeholder,:root .fluentform .ff-el-form-control::placeholder{color:var(--muted);opacity:1}
/* A-02 and D-021: text fields only, so the ring above still reaches every other input. Grey to plum
   alone is a weak change now that the border is dark, so the solid band thickens as well.
   The transparent outline keeps focus visible in Windows forced-colours mode. */
:root :is(input:not([type=checkbox],[type=radio],[type=submit],[type=button],[type=reset],[type=file],[type=range],[type=color],[type=image],[type=hidden]),select,textarea):focus,
:root .fluentform .ff-el-form-control:focus{outline:2px solid transparent;outline-offset:0;border-color:var(--brand-2);box-shadow:0 0 0 1.5px var(--brand-2),0 0 0 5.5px var(--field-glow)}
:root [aria-invalid=true],:root .fluentform .ff-el-is-error .ff-el-form-control{border-color:var(--stop)}
input[type=range]{width:100%;accent-color:var(--brand);height:44px}
.tick{display:flex!important;gap:10px;align-items:flex-start;font-weight:500!important}
.tick input{width:20px!important;height:20px;flex:none;margin-top:3px;padding:0!important}

/* motion: extends the mockup rule to pseudo-elements (A-22) */
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important}
  html{scroll-behavior:auto}
}

/* back to top (includes/class-back-to-top.php, assets/js/back-to-top.js). Hidden until the script adds .is-visible.
   A faint light ring keeps the ink button readable where it crosses the ink footer. */
.dx-top{position:fixed;right:max(16px,env(safe-area-inset-right,0px));bottom:max(16px,env(safe-area-inset-bottom,0px));z-index:90;display:grid;place-items:center;width:48px;height:48px;padding:0;border:1px solid rgba(255,255,255,.22);border-radius:50%;background:var(--ink);color:#fff;box-shadow:var(--sh-2);cursor:pointer;opacity:0;visibility:hidden;translate:0 14px;transition:opacity .3s cubic-bezier(.2,.7,.2,1),translate .3s cubic-bezier(.2,.7,.2,1),visibility 0s linear .3s,background-color .2s}
.dx-top.is-visible{opacity:1;visibility:visible;translate:0 0;transition-delay:0s}
.dx-top:hover{background:var(--brand);translate:0 -3px}
.dx-top:active{translate:0 0}
.dx-top:focus-visible{outline:3px solid var(--brand-2);outline-offset:3px}
.dx-top svg{display:block;transition:translate .25s cubic-bezier(.2,.7,.2,1)}
.dx-top:hover svg{translate:0 -2px}
@media print{.dx-top{display:none}}
