/* Ported from app/[locale]/globals.css. The @apply helpers there are written
   out as plain CSS here so this file needs no build step. */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem; /* keep anchor targets clear of the sticky header */
  background: var(--color-surface, #f4f6f8);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: #fff;
  color: #111111;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.no-scrollbar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: var(--color-secondary, #0f4aa6);
  color: #fff;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--color-secondary, #0f4aa6) 40%, transparent);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.container-x {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 1360px;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container-x {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container-x {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed !important;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  width: auto;
  height: auto;
  clip: auto;
  padding: 0.75rem 1rem;
  background: #fff;
  color: #111;
  border-radius: 0.5rem;
}

/* Motion primitives — shared so the reduced-motion opt-out covers them all. */
@keyframes lavaDrift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-1200px);
  }
}

@keyframes floatSoft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes haloPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.9;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Header dropdowns: open on hover/focus for pointer users, and via the
   .is-open class that assets/js/site.js toggles on click and clears on
   Escape / outside click. */
.xceed-nav-item > .xceed-dropdown {
  display: none;
}

.xceed-nav-item.is-open > .xceed-dropdown {
  display: block;
}

@media (hover: hover) {
  .xceed-nav-item:hover > .xceed-dropdown {
    display: block;
  }
}

.xceed-nav-item.is-open .xceed-chevron {
  transform: rotate(180deg);
}

/* Content written in the WordPress editor (legal pages, president message,
   industry intros, news articles). Mirrors the type styles the React pages
   applied by hand. */
.xceed-prose {
  color: var(--color-muted, #5b6470);
  line-height: 1.7;
}

.xceed-prose > * + * {
  margin-top: 1.25em;
}

.xceed-prose h2 {
  margin-top: 2em;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #000;
}

.xceed-prose h2 + * {
  margin-top: 0.5em;
}

.xceed-prose h3 {
  margin-top: 1.75em;
  font-size: 1rem;
  font-weight: 700;
  color: #000;
}

.xceed-prose strong {
  font-weight: 600;
  color: #000;
}

.xceed-prose a {
  font-weight: 500;
  color: var(--color-primary, #e30613);
}

.xceed-prose a:hover {
  text-decoration: underline;
}

.xceed-prose ul {
  list-style: disc;
  padding-left: 1.25em;
}

.xceed-prose ol {
  list-style: decimal;
  padding-left: 1.25em;
}

.xceed-prose li + li {
  margin-top: 0.4em;
}

.xceed-prose img {
  border-radius: 1rem;
}

.xceed-prose > :first-child {
  margin-top: 0;
}

/* Forms in plugin output and WooCommerce share the site input look. */
.xceed-input {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid #d1d5db;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  background: #fff;
  color: #111;
}

.xceed-input:focus {
  outline: none;
  border-color: var(--color-secondary, #0f4aa6);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-secondary, #0f4aa6) 18%, transparent);
}

/* WooCommerce — brand buttons, fields and notices, so the account, cart
   and checkout pages match the rest of the site. */
.woocommerce .button,
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  border-radius: 0.375rem;
  padding: 0.75rem 1.5rem;
  background: var(--color-secondary, #0f4aa6);
  color: #fff;
  font-weight: 600;
  line-height: 1.25;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.woocommerce .button:hover,
.woocommerce button.button:hover,
.woocommerce a.button:hover,
.woocommerce input.button:hover {
  background: color-mix(in srgb, var(--color-secondary, #0f4aa6) 82%, black);
  color: #fff;
  transform: translateY(-1px);
}

.woocommerce .button.alt,
.woocommerce button.button.alt,
.woocommerce a.button.alt {
  background: var(--color-dark, #071c3a);
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce .quantity .qty {
  min-height: 2.75rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 0.75rem;
  padding: 0.6rem 0.9rem;
  background: #fff;
  font-size: 1rem; /* 16px stops iOS zooming into the field */
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
  outline: 2px solid color-mix(in srgb, var(--color-secondary, #0f4aa6) 35%, transparent);
  border-color: var(--color-secondary, #0f4aa6);
}

.woocommerce form.login,
.woocommerce form.register,
.woocommerce form.checkout_coupon,
.woocommerce form.lost_reset_password {
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 1rem;
  padding: 1.5rem;
  background: #fff;
}

.woocommerce-info,
.woocommerce-message,
.woocommerce-error {
  border-top-color: var(--color-secondary, #0f4aa6);
  border-radius: 0.75rem;
  background: var(--color-surface, #f4f6f8);
}

.woocommerce-info::before,
.woocommerce-message::before {
  color: var(--color-secondary, #0f4aa6);
}

.woocommerce-error {
  border-top-color: var(--color-primary, #e30613);
}

.woocommerce-breadcrumb {
  margin-bottom: 1.5rem;
  font-size: 0.8125rem;
  color: var(--color-muted, #5b6470);
}

.woocommerce-breadcrumb a {
  color: var(--color-secondary, #0f4aa6);
}

/* Product grid: 2 columns on phones, 3 on tablets, 4 on desktop. */
.xceed-wc ul.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
}

.xceed-wc ul.products::before,
.xceed-wc ul.products::after {
  display: none;
}

.xceed-wc ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 1rem;
  padding: 0.75rem;
  background: #fff;
}

@media (min-width: 768px) {
  .xceed-wc ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .xceed-wc ul.products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}


/* Scroll reveal (assets/js/site.js). Opacity/transform only, so it never
   shifts layout. */
.xceed-js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.xceed-js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .xceed-js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ------------------------------------------------------------------ */
/* XCEED Membership form (xceed-core/includes/membership/form.php)     */
/* ------------------------------------------------------------------ */
.xm {
  --xm-blue: var(--color-secondary, #0f4aa6);
  --xm-navy: var(--color-dark, #071c3a);
  --xm-line: rgba(7, 28, 58, 0.12);
}

.xm-card {
  border: 1px solid rgba(7, 28, 58, 0.08);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 24px 60px -36px rgba(7, 28, 58, 0.35);
}

.xm section[data-step] {
  animation: xmIn 0.35s ease;
}

@keyframes xmIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* Stepper */
.xm-steps {
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.xm-step {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  padding-top: 0.875rem;
  border-top: 3px solid var(--xm-line);
  transition: border-color 0.3s ease;
}

.xm-step.is-done,
.xm-step.is-current {
  border-top-color: var(--xm-blue);
}

.xm-step-num {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #9aa3ad;
}

.xm-step-label {
  display: block;
  margin-top: 0.125rem;
  overflow: hidden;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  color: #6b7480;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xm-step.is-current .xm-step-num,
.xm-step.is-done .xm-step-num {
  color: var(--xm-blue);
}

.xm-step.is-current .xm-step-label {
  color: var(--xm-navy);
}

/* Fields */
.xm fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.xm-label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #2a313a;
}

.xm-input {
  min-height: 2.75rem;
  border-color: rgba(7, 28, 58, 0.16);
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

@media (max-width: 639px) {
  .xm-input {
    font-size: 1rem; /* 16px: stops iOS zooming into fields */
  }
}

textarea.xm-input {
  min-height: 5.5rem;
  resize: vertical;
}

.xm-help {
  margin-top: 0.375rem;
  font-size: 0.75rem;
  color: #6b7480;
}

.xm-error {
  margin-top: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #c0262d;
}

.xm-error:empty {
  display: none;
}

.xm-field.is-invalid .xm-input,
.xm-field.is-invalid .xm-file,
.xm-field.is-invalid .xm-choice,
.xm-field.is-invalid .xm-type {
  border-color: #e0868a;
}

.xm-field.is-invalid .xm-input:focus {
  box-shadow: 0 0 0 3px rgba(192, 38, 45, 0.15);
}

/* Radio cards (company format, export) */
.xm-choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(7, 28, 58, 0.14);
  border-radius: 0.625rem;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.xm-choice:hover {
  border-color: rgba(15, 74, 166, 0.45);
}

.xm-choice-input,
.xm-chip-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.xm-choice-dot {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  border: 2px solid rgba(7, 28, 58, 0.3);
  border-radius: 50%;
  transition: border 0.15s ease;
}

.xm-choice:has(:checked) {
  border-color: var(--xm-blue);
  background: color-mix(in srgb, var(--xm-blue) 5%, #fff);
  box-shadow: 0 0 0 1px var(--xm-blue);
}

.xm-choice:has(:checked) .xm-choice-dot {
  border: 5px solid var(--xm-blue);
}

.xm-choice:has(:focus-visible),
.xm-type:has(:focus-visible),
.xm-chip:has(:focus-visible),
.xm-file:has(:focus-visible) {
  outline: 3px solid color-mix(in srgb, var(--xm-blue) 35%, transparent);
  outline-offset: 2px;
}

/* Registration type cards */
.xm-type {
  position: relative;
  display: block;
  padding: 1.5rem;
  border: 1px solid rgba(7, 28, 58, 0.14);
  border-radius: 0.875rem;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.xm-type:hover {
  border-color: rgba(15, 74, 166, 0.45);
  transform: translateY(-2px);
}

.xm-type:has(:checked) {
  border-color: var(--xm-blue);
  box-shadow: 0 0 0 1px var(--xm-blue), 0 18px 36px -24px rgba(15, 74, 166, 0.55);
}

.xm-type-check {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  color: var(--xm-blue);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.xm-type:has(:checked) .xm-type-check {
  opacity: 1;
  transform: none;
}

/* Chips (interests, categories) */
.xm-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.95rem;
  border: 1px solid rgba(7, 28, 58, 0.16);
  border-radius: 999px;
  background: #fff;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #2a313a;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}

.xm-chip:hover {
  border-color: rgba(15, 74, 166, 0.45);
}

.xm-chip:has(:checked) {
  border-color: var(--xm-blue);
  background: var(--xm-blue);
  color: #fff;
}

.xm-chip:has(:checked)::before {
  content: "✓";
  margin-right: 0.4rem;
  font-size: 0.75rem;
}

/* File pickers */
.xm-file {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.75rem 0.875rem;
  border: 1px dashed rgba(7, 28, 58, 0.22);
  border-radius: 0.625rem;
  background: #fafbfc;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.xm-file:hover {
  border-color: var(--xm-blue);
  background: #fff;
}

.xm-file.has-file {
  border-style: solid;
  border-color: color-mix(in srgb, var(--xm-blue) 45%, #fff);
  background: color-mix(in srgb, var(--xm-blue) 4%, #fff);
}

.xm-file-btn {
  flex-shrink: 0;
  padding: 0.4rem 0.8rem;
  border-radius: 0.375rem;
  background: var(--xm-navy);
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
}

/* People blocks */
.xm-person {
  padding: 1.25rem;
  border: 1px solid rgba(7, 28, 58, 0.1);
  border-radius: 0.75rem;
  background: #fbfcfd;
  animation: xmIn 0.3s ease;
}

@media (min-width: 640px) {
  .xm-person {
    padding: 1.5rem;
  }
}

/* Buttons */
.xm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.7rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.xm-btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.xm-btn-primary {
  background: var(--xm-blue);
  color: #fff;
  box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--xm-blue) 80%, transparent);
}

.xm-btn-primary:hover:not(:disabled) {
  background: color-mix(in srgb, var(--xm-blue) 82%, black);
  color: #fff;
  transform: translateY(-1px);
}

.xm-btn-ghost {
  border-color: rgba(7, 28, 58, 0.18);
  background: #fff;
  color: var(--xm-navy);
}

.xm-btn-ghost:hover:not(:disabled) {
  border-color: var(--xm-blue);
  color: var(--xm-blue);
}

.xm-btn-link {
  padding-left: 0.25rem;
  padding-right: 0.25rem;
  background: none;
  color: var(--xm-blue);
}

.xm-btn-link:hover {
  text-decoration: underline;
}

.xm-btn-sm {
  min-height: 2.25rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.8125rem;
}

@media (max-width: 639px) {
  .xm [data-xm-form] .xm-btn-primary,
  .xm [data-xm-form] .xm-btn-ghost {
    flex: 1 1 auto;
  }
}

/* Review */
.xm-review-card {
  border: 1px solid rgba(7, 28, 58, 0.1);
  border-radius: 0.75rem;
  overflow: hidden;
}

.xm-review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  background: var(--color-surface, #f4f6f8);
}

.xm-review-head h4 {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--xm-navy);
}

.xm-review-edit {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--xm-blue);
}

.xm-review-edit:hover {
  text-decoration: underline;
}

.xm-review-card dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.15rem 1.5rem;
  margin: 0;
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
}

@media (min-width: 640px) {
  .xm-review-card dl {
    grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
    gap: 0.5rem 1.5rem;
  }
}

.xm-review-card dt {
  color: #6b7480;
}

.xm-review-card dd {
  margin: 0 0 0.5rem;
  font-weight: 500;
  color: #111;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

@media (min-width: 640px) {
  .xm-review-card dd {
    margin-bottom: 0;
  }
}

.xm-review-card dd.is-empty {
  font-weight: 400;
  color: #9aa3ad;
}

.xm-review-sub {
  grid-column: 1 / -1;
  margin: 0.5rem 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--xm-blue);
}

.xm-review-sub:first-child {
  margin-top: 0;
}

/* Print / download of a submitted application */
.xm-print {
  display: none;
}

@media print {
  html.xm-printing body * {
    visibility: hidden;
  }

  html.xm-printing .xm-print,
  html.xm-printing .xm-print * {
    visibility: visible;
  }

  html.xm-printing .xm-print {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    font: 11pt/1.45 Arial, Helvetica, sans-serif;
    color: #000;
  }

  .xm-print h1 {
    margin: 0 0 4pt;
    font-size: 18pt;
  }

  .xm-print .xm-print-meta {
    margin: 0 0 14pt;
    font-weight: bold;
  }

  .xm-print h2 {
    margin: 14pt 0 4pt;
    padding-bottom: 3pt;
    border-bottom: 1px solid #000;
    font-size: 12pt;
  }

  .xm-print table {
    width: 100%;
    border-collapse: collapse;
  }

  .xm-print td,
  .xm-print th {
    padding: 3pt 0;
    vertical-align: top;
    text-align: left;
    border-bottom: 1px solid #ddd;
  }

  .xm-print td:first-child {
    width: 38%;
    color: #444;
  }
}
