/*
 * TopSpellsUSA Enterprise UX Layer
 * Accessible global controls, dark mode, conversion forms and editorial cards.
 */

:root {
  --e-bg: #fffdf9;
  --e-bg-soft: #f8f6f0;
  --e-card: #ffffff;
  --e-text: #2c2c34;
  --e-muted: #625c64;
  --e-purple: #4a1c40;
  --e-purple-deep: #26101f;
  --e-crimson: #8b0000;
  --e-gold: #d4af37;
  --e-gold-light: #f3d67a;
  --e-border: rgba(74, 28, 64, 0.16);
  --e-shadow: 0 18px 55px rgba(38, 16, 31, 0.13);
  --e-radius-sm: 10px;
  --e-radius: 18px;
  --e-radius-lg: 28px;
  --e-focus: #0b65c2;
  color-scheme: light;
}

html[data-theme="dark"] {
  --e-bg: #0d0d12;
  --e-bg-soft: #171720;
  --e-card: #1e1e2a;
  --e-text: #f8f6f0;
  --e-muted: #c7c3c9;
  --e-purple: #bd83cb;
  --e-purple-deep: #09090e;
  --e-crimson: #ff776b;
  --e-gold: #f1d36b;
  --e-gold-light: #ffe79e;
  --e-border: rgba(241, 211, 107, 0.22);
  --e-shadow: 0 20px 60px rgba(0, 0, 0, 0.48);
  --e-focus: #ffe079;
  color-scheme: dark;
}

html {
  scroll-padding-top: 132px;
}

body {
  background: var(--e-bg);
  color: var(--e-text);
  transition: background-color 0.25s ease, color 0.25s ease;
}

body.enterprise-modal-open {
  overflow: hidden;
}

:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--e-focus) !important;
  outline-offset: 3px !important;
  border-radius: 5px;
}

.enterprise-skip-links {
  position: fixed;
  inset: 0 auto auto 50%;
  transform: translateX(-50%);
  z-index: 100000;
  display: flex;
  gap: 4px;
}

.enterprise-skip-links a {
  position: absolute;
  top: -100px;
  width: max-content;
  padding: 12px 18px;
  border-radius: 0 0 10px 10px;
  background: var(--e-gold-light);
  color: #281021;
  font: 700 14px/1.2 "Source Sans 3", sans-serif;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.enterprise-skip-links a:focus {
  position: relative;
  top: 0;
}

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

/* Keyboard and touch parity for three-dimensional service cards */
.flip-card:focus .flip-card-inner,
.flip-card:focus-within .flip-card-inner,
.flip-card.is-flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card:focus {
  outline-offset: 6px !important;
}

/* Header utilities */
.site-header {
  transition: transform 0.28s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.header-hidden {
  transform: translateY(calc(-100% - 4px));
}

.header-utilities {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.header-utility-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 40px;
  min-height: 40px;
  padding: 7px 9px;
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-radius: 999px;
  background: transparent;
  color: var(--e-purple);
  cursor: pointer;
  font: 700 11px/1 "Source Sans 3", sans-serif;
  letter-spacing: 0.04em;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.header-utility-btn:hover {
  transform: translateY(-1px);
  border-color: var(--e-gold);
  background: rgba(212, 175, 55, 0.12);
}

.header-utility-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-icon-moon {
  display: none;
}

[data-theme="dark"] .theme-icon-sun {
  display: none;
}

[data-theme="dark"] .theme-icon-moon {
  display: block;
}

.mobile-nav-tools {
  display: flex;
  gap: 8px;
  margin: 48px 0 18px;
}

.mobile-nav-tools button {
  min-height: 44px;
  flex: 1;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.08);
  color: var(--e-gold-light);
  font-weight: 700;
}

/* Overlays */
.enterprise-overlay[hidden],
.enterprise-form-step[hidden] {
  display: none !important;
}

.enterprise-overlay {
  position: fixed;
  inset: 0;
  z-index: 50000;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 40px);
}

.enterprise-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 4, 8, 0.84);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: enterpriseFade 0.22s ease both;
}

.enterprise-search-panel,
.enterprise-consult-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 980px);
  max-height: min(92vh, 920px);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--e-border);
  border-radius: var(--e-radius-lg);
  background:
    radial-gradient(circle at 10% 0%, rgba(212, 175, 55, 0.11), transparent 34%),
    var(--e-card);
  color: var(--e-text);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.5);
  animation: enterpriseModalIn 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.enterprise-search-panel {
  max-width: 850px;
  padding: clamp(28px, 5vw, 68px);
}

.enterprise-consult-panel {
  padding: clamp(22px, 4vw, 48px);
}

.enterprise-overlay-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--e-border);
  border-radius: 50%;
  background: var(--e-bg-soft);
  color: var(--e-text);
  cursor: pointer;
  font-size: 27px;
  line-height: 1;
}

.enterprise-eyebrow {
  margin: 0 0 8px !important;
  color: var(--e-crimson) !important;
  font: 700 12px/1.4 "Marcellus SC", serif !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase;
}

.enterprise-search-panel h2,
.enterprise-consult-panel h2,
.enterprise-depth-section h2,
.enterprise-faq h2,
.enterprise-article-expansion h2 {
  color: var(--e-purple);
  text-wrap: balance;
}

.enterprise-search-field {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  border: 2px solid var(--e-border);
  border-radius: 16px;
  background: var(--e-bg-soft);
  padding: 0 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.enterprise-search-field:focus-within {
  border-color: var(--e-gold);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.16);
}

.enterprise-search-field > span {
  color: var(--e-gold);
  font-size: 30px;
  line-height: 1;
}

.enterprise-search-field input {
  min-width: 0;
  min-height: 68px;
  padding: 10px 0;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  color: var(--e-text) !important;
  font: 500 clamp(17px, 2.5vw, 23px)/1.3 Lora, serif;
  box-shadow: none !important;
}

.enterprise-search-field button,
.enterprise-popular-searches button {
  border: 0;
  background: transparent;
  color: var(--e-purple);
  cursor: pointer;
  font-weight: 700;
}

.enterprise-popular-searches {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  color: var(--e-muted);
  font: 600 13px/1.4 "Source Sans 3", sans-serif;
}

.enterprise-popular-searches button {
  padding: 7px 12px;
  border: 1px solid var(--e-border);
  border-radius: 999px;
  background: var(--e-bg-soft);
}

.enterprise-search-results {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.enterprise-search-result {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--e-border);
  border-radius: 12px;
  background: var(--e-bg);
  color: var(--e-text);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.enterprise-search-result:hover {
  transform: translateX(4px);
  border-color: var(--e-gold);
  background: var(--e-bg-soft);
}

.enterprise-search-result-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.12);
}

.enterprise-search-result strong {
  display: block;
  color: var(--e-purple);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 20px;
}

.enterprise-search-result small,
.enterprise-search-empty {
  color: var(--e-muted);
}

.enterprise-search-loading {
  display: grid;
  gap: 8px;
}

.enterprise-search-loading span {
  display: block;
  height: 58px;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--e-bg-soft), rgba(212, 175, 55, 0.14), var(--e-bg-soft));
  background-size: 200% 100%;
  animation: enterpriseShimmer 1.2s linear infinite;
}

/* Consultation modal */
.enterprise-consult-intro {
  max-width: 690px;
  padding-right: 48px;
}

.enterprise-consult-intro > p:last-child {
  color: var(--e-muted);
}

.enterprise-stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 28px 0 34px;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.enterprise-stepper li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--e-muted);
  font: 700 12px/1.25 "Source Sans 3", sans-serif;
}

.enterprise-stepper li::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 16px;
  left: 34px;
  right: 0;
  height: 2px;
  background: var(--e-border);
}

.enterprise-stepper li:last-child::after {
  display: none;
}

.enterprise-stepper span {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 2px solid var(--e-border);
  border-radius: 50%;
  background: var(--e-card);
  color: var(--e-muted);
}

.enterprise-stepper li.is-active,
.enterprise-stepper li.is-complete {
  color: var(--e-purple);
}

.enterprise-stepper li.is-active span,
.enterprise-stepper li.is-complete span {
  border-color: var(--e-gold);
  background: linear-gradient(135deg, var(--e-gold), var(--e-gold-light));
  color: #281021;
  box-shadow: 0 0 0 5px rgba(212, 175, 55, 0.13);
}

.enterprise-form-step {
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
  animation: enterpriseStepIn 0.28s ease both;
}

.enterprise-form-step > legend,
.enterprise-choice-group > legend {
  width: 100%;
  margin-bottom: 18px;
  color: var(--e-purple);
  font: 600 clamp(23px, 3vw, 31px)/1.25 "Cormorant Garamond", Georgia, serif;
}

.enterprise-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.enterprise-field-wide {
  grid-column: 1 / -1;
}

.enterprise-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--e-text);
  font: 700 14px/1.4 "Source Sans 3", sans-serif;
}

.enterprise-field input,
.enterprise-field textarea,
.enterprise-field select {
  width: 100%;
  min-height: 54px;
  padding: 13px 15px;
  border: 2px solid var(--e-border) !important;
  border-radius: 10px !important;
  background: var(--e-bg) !important;
  color: var(--e-text) !important;
  font: 500 16px/1.5 Lora, serif !important;
  box-shadow: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.enterprise-field textarea {
  min-height: 180px;
  resize: vertical;
}

.enterprise-field input:focus,
.enterprise-field textarea:focus,
.enterprise-field select:focus {
  border-color: var(--e-gold) !important;
  outline: 0 !important;
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.14) !important;
}

.enterprise-field [aria-invalid="true"] {
  border-color: #a71919 !important;
  animation: enterpriseShake 0.3s ease;
}

.enterprise-field small,
.enterprise-modal-privacy {
  display: block;
  margin-top: 6px;
  color: var(--e-muted);
  font: 500 12px/1.5 "Source Sans 3", sans-serif;
}

.enterprise-field-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.enterprise-field-meta small:last-child {
  flex: 0 0 auto;
}

.enterprise-choice-group {
  min-inline-size: 0;
  margin: 24px 0 0;
  padding: 0;
  border: 0;
}

.enterprise-choice-group > legend {
  margin-bottom: 12px;
  font-size: 21px;
}

.enterprise-choice-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.enterprise-choice-cards label {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 105px;
  padding: 14px 9px;
  border: 2px solid var(--e-border);
  border-radius: 12px;
  background: var(--e-bg);
  color: var(--e-text);
  cursor: pointer;
  text-align: center;
  font: 700 14px/1.3 "Source Sans 3", sans-serif;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.enterprise-choice-cards label:hover {
  transform: translateY(-2px);
  border-color: var(--e-gold);
}

.enterprise-choice-cards label:has(input:checked) {
  border-color: var(--e-gold);
  background: rgba(212, 175, 55, 0.12);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}

.enterprise-choice-cards input {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  accent-color: var(--e-gold);
}

.enterprise-choice-cards label > span {
  color: var(--e-gold);
  font-size: 24px;
}

.enterprise-choice-cards small {
  color: var(--e-muted);
  font-size: 11px;
  font-weight: 500;
}

.enterprise-consent,
.newsletter-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 22px;
  color: var(--e-muted);
  font: 500 13px/1.55 "Source Sans 3", sans-serif;
}

.enterprise-consent input,
.newsletter-consent input {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--e-gold);
}

.enterprise-form-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
}

.enterprise-form-actions button,
.enterprise-submit {
  min-height: 50px;
  padding: 13px 21px;
  border: 1px solid var(--e-border);
  border-radius: 999px;
  background: var(--e-bg-soft);
  color: var(--e-purple);
  cursor: pointer;
  font: 800 14px/1.2 "Source Sans 3", sans-serif;
}

.enterprise-form-actions .enterprise-next,
.enterprise-form-actions .enterprise-submit {
  border-color: transparent;
  background: linear-gradient(90deg, #8b0000, #ff6b35);
  color: #fff;
  box-shadow: 0 8px 24px rgba(139, 0, 0, 0.26);
}

.enterprise-form-actions button:hover {
  transform: translateY(-1px);
}

.enterprise-form-actions button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.enterprise-center {
  justify-content: center;
}

.enterprise-confirmation {
  padding: 26px 0 12px;
  text-align: center;
}

.enterprise-confirm-icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #228b22;
  color: #fff;
  box-shadow: 0 0 0 10px rgba(34, 139, 34, 0.11);
  font-size: 38px;
}

.enterprise-confirmation h3 {
  color: var(--e-purple);
  font-size: 33px;
}

#enterprise-form-status {
  margin-top: 12px;
  color: #9b1c1c;
  text-align: center;
  font-weight: 700;
}

.enterprise-modal-privacy {
  margin: 22px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--e-border);
  text-align: center;
}

.enterprise-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Services hub */
.services-hub {
  background: var(--e-bg);
  color: var(--e-text);
}

.services-hub-hero,
.services-choice-guide,
.services-materials {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
  width: min(100% - 32px, 1200px);
  margin: 0 auto;
}

.services-hub-hero {
  min-height: 680px;
  padding: clamp(52px, 7vw, 92px) 0;
}

.services-hub-hero h1 {
  margin: 7px 0 21px;
  color: var(--e-purple);
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(40px, 6.2vw, 72px);
  line-height: 1.04;
  text-wrap: balance;
}

.services-hub-lead,
.services-hub-hero-copy > p:not(.enterprise-eyebrow) {
  color: var(--e-text);
  font-size: 17px;
  line-height: 1.78;
}

.services-hub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 27px 0 19px;
}

.services-hub-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--e-muted);
  font: 700 12px/1.5 "Source Sans 3", sans-serif;
}

.services-hub-picture img {
  aspect-ratio: 4 / 5;
  object-position: center top;
}

.services-catalog-section {
  padding: clamp(72px, 9vw, 118px) 5vw;
  background:
    radial-gradient(circle at 10% 5%, rgba(212, 175, 55, 0.16), transparent 25%),
    linear-gradient(145deg, #1e0a1a, #4a1c40 58%, #280b1e);
  color: #fff;
}

.services-catalog-heading {
  width: min(100%, 790px);
  margin: 0 auto 26px;
  text-align: center;
}

.services-catalog-heading h2 {
  margin: 6px 0 12px;
  color: #f3d67a;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(34px, 5vw, 52px);
}

.services-catalog-heading p:last-child {
  color: rgba(255, 255, 255, 0.74);
}

.services-catalog-section .services-filter {
  justify-content: center;
  margin-bottom: 35px;
}

.services-catalog-section .filter-btn {
  color: #f3d67a;
  border-color: rgba(212, 175, 55, 0.45);
}

.services-catalog-section .filter-btn.active,
.services-catalog-section .filter-btn:hover {
  color: #281021;
  background: #d4af37;
}

.services-catalog-section .services-grid {
  width: min(100%, 1240px);
  margin-inline: auto;
}

.services-catalog-section .flip-card {
  min-height: 340px;
}

.services-card-summary {
  margin: 8px 0 14px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

.services-catalog-section .flip-back h3 {
  color: #f3d67a;
  font-size: 20px;
}

.services-choice-guide {
  padding: clamp(76px, 10vw, 130px) 0;
  align-items: start;
}

.services-choice-copy h2,
.services-comparison h2,
.services-materials-copy h2 {
  margin: 7px 0 20px;
  color: var(--e-purple);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(34px, 4.8vw, 50px);
  line-height: 1.12;
}

.services-choice-copy h3 {
  margin: 29px 0 7px;
  color: var(--e-crimson);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 26px;
}

.services-choice-copy p,
.services-materials-copy p {
  color: var(--e-text);
  font-size: 17px;
  line-height: 1.78;
}

.services-choice-visual {
  position: sticky;
  top: 145px;
}

.services-choice-picture img,
.services-outdoor-picture img {
  aspect-ratio: 4 / 5;
  object-position: center top;
}

.services-comparison {
  padding: clamp(70px, 9vw, 112px) max(5vw, calc((100vw - 1200px) / 2));
  background: var(--e-bg-soft);
}

.services-table-wrap {
  overflow-x: auto;
  margin-top: 25px;
  border: 1px solid var(--e-border);
  border-radius: 16px;
  background: var(--e-card);
  box-shadow: var(--e-shadow);
}

.services-table-wrap table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  color: var(--e-text);
}

.services-table-wrap th,
.services-table-wrap td {
  padding: 17px 18px;
  border-right: 1px solid var(--e-border);
  border-bottom: 1px solid var(--e-border);
  text-align: left;
  vertical-align: top;
}

.services-table-wrap thead th {
  background: var(--e-purple-deep);
  color: #f3d67a;
}

.services-table-wrap tbody th {
  color: var(--e-crimson);
}

.services-materials {
  padding: clamp(76px, 10vw, 130px) 0;
}

.services-materials-copy a {
  color: var(--e-crimson);
  font-weight: 800;
}

.services-final-cta {
  width: 100%;
  max-width: none;
  margin: 0;
}

@media (max-width: 900px) {
  .services-hub-hero,
  .services-choice-guide,
  .services-materials { grid-template-columns: 1fr; }
  .services-choice-visual { position: static; }
  .services-hub-hero { min-height: auto; }
}

/* Service template shell */
.service-template-main {
  min-height: 60vh;
}

.service-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  width: min(100% - 32px, 1200px);
  margin: 0 auto;
  padding: 17px 0;
  color: var(--e-muted);
  font: 600 12px/1.4 "Marcellus SC", serif;
  letter-spacing: 0.06em;
}

.service-breadcrumb a {
  color: var(--e-purple);
  text-decoration: none;
}

.service-breadcrumb span[aria-hidden] {
  color: var(--e-gold);
  font-size: 18px;
}

.service-breadcrumb [aria-current="page"] {
  color: var(--e-crimson);
}

.service-editorial-entry {
  margin: 0;
}

/* Editorial depth and FAQ */
.enterprise-service-policy {
  width: min(100% - 32px, 1080px);
  margin: 28px auto;
  padding: 17px 20px;
  border: 1px solid rgba(212, 175, 55, 0.36);
  border-left: 5px solid var(--e-gold);
  border-radius: 10px;
  background: var(--e-bg-soft);
  color: var(--e-text);
  font: 600 14px/1.65 "Source Sans 3", sans-serif;
}

.enterprise-service-policy strong {
  color: var(--e-crimson);
}

.enterprise-depth-section,
.enterprise-faq,
.enterprise-article-expansion,
.enterprise-article-visuals {
  width: min(100% - 32px, 1120px);
  margin: clamp(50px, 8vw, 92px) auto;
  color: var(--e-text);
}

.enterprise-depth-section {
  padding: clamp(26px, 5vw, 58px);
  border: 1px solid var(--e-border);
  border-radius: var(--e-radius-lg);
  background:
    linear-gradient(135deg, rgba(212, 175, 55, 0.09), transparent 42%),
    var(--e-card);
  box-shadow: var(--e-shadow);
}

.enterprise-depth-section > h2,
.enterprise-faq > h2,
.enterprise-article-expansion > h2 {
  margin-top: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(29px, 4vw, 44px);
  line-height: 1.16;
}

.enterprise-depth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.enterprise-depth-grid > div {
  padding: 24px;
  border: 1px solid var(--e-border);
  border-radius: var(--e-radius);
  background: var(--e-bg);
}

.enterprise-depth-grid h3,
.enterprise-article-expansion h3 {
  margin: 0 0 10px;
  color: var(--e-crimson);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 25px;
  line-height: 1.2;
}

.enterprise-depth-grid p,
.enterprise-article-expansion p,
.enterprise-article-expansion li {
  color: var(--e-text);
  font-size: 17px;
  line-height: 1.75;
}

.enterprise-truth-note {
  margin-top: 18px;
  padding: 18px 20px;
  border-left: 4px solid var(--e-gold);
  border-radius: 0 10px 10px 0;
  background: var(--e-bg-soft);
  color: var(--e-muted);
  font: 500 14px/1.65 "Source Sans 3", sans-serif;
}

.enterprise-article-expansion {
  max-width: 800px;
  padding-top: 34px;
  border-top: 1px solid var(--e-border);
}

.enterprise-article-expansion h3 {
  margin-top: 30px;
}

.enterprise-article-expansion ul,
.enterprise-article-expansion ol {
  margin: 18px 0 22px;
  padding-left: 25px;
}

.enterprise-article-expansion li {
  margin-bottom: 10px;
}

.enterprise-article-visuals {
  max-width: 960px;
}

.enterprise-visual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 18px;
}

.enterprise-picture {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--e-border);
  border-radius: var(--e-radius);
  background: var(--e-card);
  box-shadow: var(--e-shadow);
}

.enterprise-picture picture,
.enterprise-picture img {
  display: block;
  width: 100%;
}

.enterprise-picture img {
  height: auto !important;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.enterprise-picture.services-hub-picture img,
.enterprise-picture.home-guidance-picture img,
.enterprise-picture.services-choice-picture img,
.enterprise-picture.services-outdoor-picture img {
  aspect-ratio: 4 / 5 !important;
  object-position: center top;
}

.enterprise-picture figcaption {
  padding: 13px 16px 15px;
  color: var(--e-muted);
  font: 500 13px/1.55 "Source Sans 3", sans-serif;
}

.enterprise-faq {
  max-width: 900px;
}

.enterprise-faq-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.enterprise-faq-item {
  overflow: clip;
  border: 1px solid var(--e-border);
  border-radius: 13px;
  background: var(--e-card);
  box-shadow: 0 6px 20px rgba(38, 16, 31, 0.05);
}

.enterprise-faq-item[open] {
  border-color: var(--e-gold);
}

.enterprise-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 62px;
  padding: 15px 18px;
  color: var(--e-purple);
  cursor: pointer;
  list-style: none;
  font: 700 18px/1.35 "Cormorant Garamond", Georgia, serif;
}

.enterprise-faq-item summary::-webkit-details-marker {
  display: none;
}

.enterprise-faq-item summary span {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.13);
  color: var(--e-crimson);
  font: 500 22px/1 sans-serif;
  transition: transform 0.2s ease;
}

.enterprise-faq-item[open] summary span {
  transform: rotate(45deg);
}

.enterprise-faq-item > div {
  padding: 0 18px 18px;
  color: var(--e-text);
}

.enterprise-faq-item p {
  margin: 0;
  color: var(--e-text);
  line-height: 1.7;
}

/* Nationwide locations education */
.locations-guidance {
  margin-top: 0;
  padding: clamp(72px, 9vw, 118px) 5vw;
  background: var(--e-bg-soft);
  color: var(--e-text);
}

.locations-guidance-inner {
  width: min(100%, 1040px);
  margin: 0 auto;
}

.locations-guidance h2 {
  margin: 7px 0 20px;
  color: var(--e-purple);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(34px, 4.8vw, 50px);
  line-height: 1.12;
}

.locations-guidance h3 {
  margin: 28px 0 8px;
  color: var(--e-crimson);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 27px;
}

.locations-guidance p {
  color: var(--e-text);
  font-size: 17px;
  line-height: 1.8;
}

.locations-guidance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0 36px;
}

.locations-guidance-grid article {
  padding: 22px;
  border: 1px solid var(--e-border);
  border-radius: 15px;
  background: var(--e-card);
}

.locations-guidance-grid h3 {
  margin-top: 0;
  font-size: 23px;
}

.locations-guidance-grid p {
  margin-bottom: 0;
  color: var(--e-muted);
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 680px) {
  .locations-guidance-grid { grid-template-columns: 1fr; }
}

/* About-page editorial depth */
.about-editorial {
  margin: 0 0 72px;
  padding: clamp(26px, 5vw, 52px);
  border: 1px solid var(--e-border);
  border-radius: var(--e-radius-lg);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), transparent 38%), var(--e-card);
  color: var(--e-text);
  box-shadow: var(--e-shadow);
}

.about-editorial h2 {
  margin: 6px 0 18px;
  color: var(--e-purple);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(32px, 4.5vw, 46px);
  line-height: 1.12;
}

.about-editorial h3 {
  margin: 28px 0 8px;
  color: var(--e-crimson);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 27px;
}

.about-editorial p {
  color: var(--e-text);
  font-size: 17px;
  line-height: 1.78;
}

/* Spell assessment education */
.quiz-guidance {
  padding: clamp(70px, 9vw, 118px) 5vw;
  background: var(--e-bg-soft);
  color: var(--e-text);
}

.quiz-guidance-inner {
  width: min(100%, 1040px);
  margin: 0 auto;
}

.quiz-guidance h2 {
  margin: 7px 0 20px;
  color: var(--e-purple);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(34px, 4.8vw, 50px);
  line-height: 1.12;
}

.quiz-guidance h3 {
  margin: 32px 0 9px;
  color: var(--e-crimson);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 27px;
}

.quiz-guidance p,
.quiz-guidance li {
  color: var(--e-text);
  font-size: 17px;
  line-height: 1.8;
}

.quiz-guidance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 30px 0 38px;
}

.quiz-guidance-grid article {
  position: relative;
  padding: 24px;
  border: 1px solid var(--e-border);
  border-radius: 16px;
  background: var(--e-card);
  box-shadow: 0 8px 25px rgba(38, 16, 31, 0.06);
}

.quiz-guidance-grid article:last-child {
  grid-column: 1 / -1;
}

.quiz-guidance-grid article > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--e-gold), var(--e-gold-light));
  color: #281021;
  font-weight: 800;
}

.quiz-guidance-grid h3 {
  margin: 13px 0 6px;
  font-size: 23px;
}

.quiz-guidance-grid p {
  margin: 0;
  color: var(--e-muted);
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 700px) {
  .quiz-guidance-grid { grid-template-columns: 1fr; }
  .quiz-guidance-grid article:last-child { grid-column: auto; }
}

.form-error-message {
  margin-bottom: 18px;
  padding: 13px 15px;
  border-left: 4px solid #a71919;
  border-radius: 8px;
  background: rgba(167, 25, 25, 0.09);
  color: #8b1111;
  font-weight: 700;
}

/* Contact-page educational process and FAQ */
.contact-expectations {
  padding: clamp(72px, 9vw, 118px) 5vw;
  background: var(--e-bg-soft);
  color: var(--e-text);
}

.contact-expectations-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: clamp(36px, 6vw, 76px);
  width: min(100%, 1160px);
  margin: 0 auto;
  align-items: start;
}

.contact-expectations h2 {
  margin: 7px 0 18px;
  color: var(--e-purple);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(33px, 4.5vw, 48px);
  line-height: 1.12;
}

.contact-expectations-copy > h3 {
  margin: 30px 0 8px;
  color: var(--e-crimson);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 27px;
}

.contact-expectations-copy > p {
  color: var(--e-text);
  font-size: 17px;
  line-height: 1.8;
}

.contact-process-list {
  display: grid;
  gap: 13px;
  margin-top: 27px;
}

.contact-process-list > div {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  column-gap: 14px;
  padding: 20px;
  border: 1px solid var(--e-border);
  border-radius: 14px;
  background: var(--e-card);
}

.contact-process-list > div > span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--e-gold), var(--e-gold-light));
  color: #281021;
  font: 800 18px/1 "Marcellus SC", serif;
}

.contact-process-list h3 {
  margin: 0 0 6px;
  color: var(--e-crimson);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px;
}

.contact-process-list p {
  margin: 0;
  color: var(--e-muted);
  font-size: 14px;
  line-height: 1.7;
}

.contact-expectations-copy {
  grid-row: 1 / 3;
}

.contact-readiness-note {
  padding: 25px;
  border: 1px solid var(--e-border);
  border-radius: var(--e-radius);
  background: var(--e-card);
  box-shadow: 0 10px 30px rgba(38, 16, 31, 0.07);
}

.contact-readiness-note h3 {
  margin: 0 0 8px;
  color: var(--e-crimson);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 25px;
}

.contact-readiness-note h3:not(:first-child) {
  margin-top: 26px;
}

.contact-readiness-note p {
  color: var(--e-muted);
  font-size: 14px;
  line-height: 1.72;
}

.contact-faq {
  position: sticky;
  top: 145px;
  width: 100%;
  margin: 0;
  padding: 25px;
  border: 1px solid var(--e-border);
  border-radius: var(--e-radius-lg);
  background: var(--e-card);
  box-shadow: var(--e-shadow);
}

.contact-faq > h2 {
  font-size: 32px;
}

@media (max-width: 900px) {
  .contact-expectations-inner { grid-template-columns: 1fr; }
  .contact-expectations-copy { grid-row: auto; }
  .contact-faq { position: static; }
}

/* Homepage long-form authority and final CTA */
.home-guidance {
  position: relative;
  overflow: hidden;
  padding: clamp(74px, 9vw, 128px) 5vw;
  background:
    radial-gradient(circle at 90% 8%, rgba(212, 175, 55, 0.12), transparent 30%),
    var(--e-bg-soft);
  color: var(--e-text);
}

.home-guidance::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image: radial-gradient(circle at center, rgba(74, 28, 64, 0.12) 0 1px, transparent 1.5px);
  background-size: 28px 28px;
}

.home-guidance-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
  gap: clamp(36px, 6vw, 80px);
  width: min(100%, 1200px);
  margin: 0 auto;
  align-items: start;
}

.home-guidance-copy h2 {
  margin: 10px 0 24px;
  color: var(--e-purple);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(34px, 4.7vw, 54px);
  line-height: 1.1;
  text-wrap: balance;
}

.home-guidance-copy h3 {
  margin: 35px 0 10px;
  color: var(--e-crimson);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(25px, 3vw, 31px);
  line-height: 1.2;
}

.home-guidance-copy p,
.home-guidance-list li {
  color: var(--e-text);
  font-size: 17px;
  line-height: 1.8;
}

.home-guidance-list {
  display: grid;
  gap: 9px;
  margin: 16px 0 24px;
  padding-left: 23px;
}

.home-guidance-list li::marker {
  color: var(--e-gold);
  font-weight: 800;
}

.home-guidance-visual {
  position: sticky;
  top: 145px;
}

.home-guidance-picture img {
  aspect-ratio: 4 / 5;
  object-position: center top;
}

.home-guidance-principles {
  margin-top: 18px;
  padding: 26px;
  border: 1px solid var(--e-border);
  border-radius: var(--e-radius);
  background: var(--e-card);
  box-shadow: var(--e-shadow);
}

.home-guidance-principles h3 {
  margin: 0 0 14px;
  color: var(--e-purple);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 27px;
}

.home-guidance-principles ul {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.home-guidance-principles li {
  color: var(--e-text);
  font: 600 14px/1.5 "Source Sans 3", sans-serif;
}

.home-guidance-principles a {
  color: var(--e-crimson);
  font-weight: 800;
}

.home-final-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(76px, 10vw, 132px) 5vw;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.28), transparent 48%),
    radial-gradient(ellipse at 10% 70%, rgba(139, 0, 0, 0.3), transparent 44%),
    linear-gradient(135deg, #170817, #4a1c40 58%, #250b17);
  color: #fff;
  text-align: center;
}

.home-final-cta::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: conic-gradient(from 30deg, transparent, rgba(212, 175, 55, 0.08), transparent 30%);
  animation: aurora 28s linear infinite;
}

.home-final-cta-inner {
  position: relative;
  width: min(100%, 850px);
  margin: 0 auto;
}

.home-final-cta h2 {
  margin: 8px 0 18px;
  color: #f5d872;
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.1;
  text-wrap: balance;
}

.home-final-cta p {
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2.4vw, 21px);
  line-height: 1.7;
}

.home-final-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 20px;
}

.home-final-cta small {
  color: rgba(255, 255, 255, 0.64);
}

@media (max-width: 900px) {
  .home-guidance-inner {
    grid-template-columns: 1fr;
  }

  .home-guidance-visual {
    position: static;
    width: min(100%, 620px);
    margin-inline: auto;
  }
}

/* Footer enhancements */
.newsletter-consent {
  margin: 9px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

#newsletter-status {
  min-height: 20px;
  margin-top: 6px;
  color: #f4dc83;
  font: 600 13px/1.4 "Source Sans 3", sans-serif;
}

.footer-professional-notice {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px clamp(18px, 3vw, 32px);
  border-top: 1px solid rgba(212, 175, 55, 0.16);
  border-bottom: 1px solid rgba(212, 175, 55, 0.16);
  color: rgba(255, 255, 255, 0.68);
  font: 500 12px/1.7 "Source Sans 3", sans-serif;
  text-align: center;
}

.footer-professional-notice strong {
  color: #f1d36b;
}

.site-footer .contact-item a {
  color: inherit;
  overflow-wrap: anywhere;
}

.cookie-text a {
  color: inherit;
  text-decoration: underline;
}

/* WCAG AA contrast corrections for legacy light sections and inline article cards. */
.trust-text small {
  color: #5f5960 !important;
}

.pain-section .section-label,
#how-it-works .section-label,
.review-aggregate .section-label,
.review-agg-inner .section-label,
.faq-section .section-label,
.faq-inner .section-label {
  color: #7b1737 !important;
  font-weight: 700;
}

.services-section .section-label,
.testimonials-section .section-label,
.home-final-cta .section-label,
.services-catalog-section .section-label {
  color: #f3d67a !important;
}

#how-it-works .section-sub,
.review-big-count,
.rbar-pct,
.faq-cta {
  color: #625c64 !important;
}

.contact-form span[style*="color:var(--gold)"] {
  color: #7b1737 !important;
}

.breadcrumb .container > span,
.breadcrumb > .container > span {
  color: #5f5960 !important;
}

.entry-content .ba-author-row strong,
.article-body .ba-author-row strong {
  color: #4a1c40 !important;
}

.entry-content p[style*="color: #888"],
.article-body p[style*="color: #888"] {
  color: #5f5960 !important;
}

/* Dark mode: explicit overrides for legacy and inline page styling. */
[data-theme="dark"] .pain-section .section-label,
[data-theme="dark"] #how-it-works .section-label,
[data-theme="dark"] .review-agg-inner .section-label,
[data-theme="dark"] .faq-inner .section-label,
[data-theme="dark"] .entry-content .ba-author-row strong,
[data-theme="dark"] .article-body .ba-author-row strong {
  color: #f3d67a !important;
}

[data-theme="dark"] .entry-content p[style*="color: #888"],
[data-theme="dark"] .article-body p[style*="color: #888"] {
  color: #cccccc !important;
}

[data-theme="dark"] body,
[data-theme="dark"] .site-main,
[data-theme="dark"] .page-wrap,
[data-theme="dark"] .page-content,
[data-theme="dark"] .article-body,
[data-theme="dark"] .blog-section,
[data-theme="dark"] .faq-section,
[data-theme="dark"] .services-section,
[data-theme="dark"] .pain-section,
[data-theme="dark"] .about-section,
[data-theme="dark"] .case-section,
[data-theme="dark"] .areas-section {
  color: var(--e-text);
}

[data-theme="dark"] .site-header,
[data-theme="dark"] .site-header.scrolled {
  border-bottom-color: rgba(241, 211, 107, 0.25);
  background: rgba(13, 13, 18, 0.94);
  color: var(--e-text);
}

[data-theme="dark"] .logo-tagline,
[data-theme="dark"] .desktop-nav .nav-link,
[data-theme="dark"] .header-phone,
[data-theme="dark"] .header-utility-btn {
  color: #f8f6f0;
}

[data-theme="dark"] .mega-menu,
[data-theme="dark"] .simple-dropdown,
[data-theme="dark"] .locations-dropdown {
  border-color: var(--e-border);
  background: #1b1820 !important;
  color: var(--e-text);
}

[data-theme="dark"] .mega-menu a,
[data-theme="dark"] .simple-dropdown a,
[data-theme="dark"] .locations-dropdown a,
[data-theme="dark"] .locations-dropdown h4 {
  color: var(--e-text);
}

[data-theme="dark"] .mobile-nav {
  background: #111018;
}

[data-theme="dark"] :where(.service-card, .pain-card, .blog-card, .faq-item, .testimonial-card, .case-card, .process-card, .material-card, .bio-card, .content-card, .author-box, .toc-box) {
  border-color: var(--e-border) !important;
  background-color: var(--e-card) !important;
  color: var(--e-text) !important;
  box-shadow: var(--e-shadow);
}

[data-theme="dark"] :where(.pain-section, .about-section, .blog-section, .faq-section, .areas-section, .case-section, .page-body, .article-content) {
  background-color: var(--e-bg) !important;
  color: var(--e-text) !important;
}

[data-theme="dark"] :where(.pain-card h3, .blog-card h3, .faq-question, .section-title, .article-body h2, .article-body h3, .page-body h2, .page-body h3, .entry-content h2, .entry-content h3) {
  color: var(--e-text) !important;
}

[data-theme="dark"] :where(.pain-card p, .blog-card p, .faq-answer, .article-body p, .article-body li, .page-body p, .page-body li, .entry-content p, .entry-content li) {
  color: var(--e-muted) !important;
}

[data-theme="dark"] img:not(.no-dark-filter) {
  filter: brightness(0.94) saturate(1.03);
}

/* Prevent decorative cursors on touch/assistive environments. */
@media (pointer: coarse), (hover: none) {
  body {
    cursor: auto !important;
  }

  .cursor-dot,
  .cursor-ring,
  #particles-canvas {
    display: none !important;
  }
}

@media (max-width: 1500px) {
  .header-inner {
    max-width: 1420px;
    gap: 10px;
    padding-inline: 16px;
  }

  .desktop-nav {
    gap: 0;
  }

  .desktop-nav .nav-link {
    padding-inline: 10px;
  }

  .header-phone {
    display: none !important;
  }

  .btn-consult {
    padding-inline: 14px;
  }

  .header-utility-btn > span,
  .theme-toggle-label {
    display: none;
  }
}

@media (max-width: 1280px) {
  .header-utility-btn > span,
  .theme-toggle-label {
    display: none;
  }

  .header-utility-btn {
    padding-inline: 7px;
  }
}

@media (max-width: 1100px) {
  .header-utilities {
    margin-left: auto;
  }
}

@media (max-width: 767px) {
  html {
    scroll-padding-top: 90px;
  }

  .home .hero-portrait-side {
    display: block !important;
    position: absolute;
    inset: 0 !important;
    width: 100% !important;
    max-width: none !important;
    opacity: 0.16;
    pointer-events: none;
  }

  .home .hero-portrait-side::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(37, 8, 29, 0.92), rgba(37, 8, 29, 0.35));
  }

  .home .hero-portrait-side picture,
  .home .hero-portrait-side img {
    width: 100%;
    height: 100%;
  }

  .home .hero-portrait-side img {
    object-fit: cover;
    object-position: 64% top;
  }

  .home .hero-content {
    position: relative;
    z-index: 2;
  }

  .enterprise-overlay {
    align-items: stretch;
    padding: 0;
  }

  .enterprise-search-panel,
  .enterprise-consult-panel {
    width: 100%;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
    padding: 64px 18px 28px;
  }

  .enterprise-search-panel h2,
  .enterprise-consult-panel h2 {
    font-size: 30px;
  }

  .enterprise-search-field input {
    min-height: 58px;
    font-size: 17px;
  }

  .enterprise-popular-searches {
    align-items: flex-start;
  }

  .enterprise-stepper {
    margin: 20px 0 28px;
  }

  .enterprise-stepper li {
    justify-content: center;
    font-size: 0;
  }

  .enterprise-stepper li::after {
    left: 50%;
    right: -50%;
  }

  .enterprise-stepper span {
    font-size: 12px;
  }

  .enterprise-form-grid,
  .enterprise-depth-grid {
    grid-template-columns: 1fr;
  }

  .enterprise-field-wide {
    grid-column: auto;
  }

  .enterprise-choice-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .enterprise-form-actions {
    align-items: stretch;
  }

  .enterprise-form-actions button {
    flex: 1;
  }

  .enterprise-depth-section,
  .enterprise-faq,
  .enterprise-article-expansion,
  .enterprise-article-visuals {
    width: min(100% - 24px, 900px);
    margin-block: 46px;
  }

  .enterprise-depth-section {
    padding: 23px 17px;
  }

  .enterprise-depth-grid > div {
    padding: 19px 16px;
  }

  .enterprise-faq-item summary {
    font-size: 17px;
  }

  .cookie-banner {
    padding-bottom: calc(72px + env(safe-area-inset-bottom)) !important;
  }
}

@media (max-width: 420px) {
  .enterprise-search-result {
    grid-template-columns: auto 1fr;
  }

  .enterprise-search-result > span:last-child {
    display: none;
  }

  .enterprise-choice-cards {
    grid-template-columns: 1fr;
  }

  .enterprise-form-actions {
    flex-direction: column-reverse;
  }
}

/* Homepage section navigation and restrained exit invitation */
.enterprise-section-nav {
  position: fixed;
  z-index: 800;
  top: 50%;
  right: 22px;
  display: grid;
  gap: 11px;
  transform: translateY(-50%);
}

.enterprise-section-nav a {
  position: relative;
  display: block;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(74, 28, 64, 0.55);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.enterprise-section-nav a::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: transparent;
}

.enterprise-section-nav a.is-active,
.enterprise-section-nav a:hover {
  border-color: var(--e-gold);
}

.enterprise-section-nav a.is-active::after {
  background: var(--e-gold);
}

.enterprise-section-nav span {
  position: absolute;
  top: 50%;
  right: calc(100% + 11px);
  width: max-content;
  padding: 5px 9px;
  border-radius: 7px;
  background: var(--e-purple-deep);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translate(8px, -50%);
  transition: opacity 0.18s ease, transform 0.18s ease;
  font: 700 11px/1.2 "Source Sans 3", sans-serif;
}

.enterprise-section-nav a:hover span,
.enterprise-section-nav a:focus-visible span {
  opacity: 1;
  transform: translate(0, -50%);
}

.enterprise-exit-wrap {
  position: fixed;
  inset: 0;
  z-index: 49000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(7, 4, 8, 0.75);
  backdrop-filter: blur(7px);
  animation: enterpriseFade 0.2s ease both;
}

.enterprise-exit-card {
  position: relative;
  width: min(100%, 470px);
  padding: 42px clamp(24px, 5vw, 48px);
  border: 1px solid var(--e-border);
  border-radius: var(--e-radius-lg);
  background: var(--e-card);
  color: var(--e-text);
  text-align: center;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  animation: enterpriseModalIn 0.25s ease both;
}

.enterprise-exit-card > button {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--e-border);
  border-radius: 50%;
  background: var(--e-bg-soft);
  color: var(--e-text);
  cursor: pointer;
  font-size: 25px;
}

.enterprise-exit-card > span {
  display: block;
  color: var(--e-crimson);
  font-size: 52px;
  animation: heartPulse 2s ease-in-out infinite;
}

.enterprise-exit-card h2 {
  margin: 4px 0 10px;
  color: var(--e-purple);
  font-size: 34px;
}

.enterprise-exit-card p {
  color: var(--e-muted);
}

.enterprise-exit-card a {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  margin-top: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, #8b0000, #ff6b35);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.enterprise-exit-card small {
  display: block;
  margin-top: 12px;
  color: var(--e-muted);
}

.mobile-cta-bar {
  transition: transform 0.25s ease;
}

.mobile-cta-bar.is-hidden {
  transform: translateY(110%);
}

@media (max-width: 1100px) {
  .enterprise-section-nav { display: none; }
}

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

  #particles-canvas,
  .cursor-dot,
  .cursor-ring,
  .scroll-arrow,
  .candle-flame {
    display: none !important;
  }
}

@keyframes enterpriseFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes enterpriseModalIn {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes enterpriseStepIn {
  from { opacity: 0; transform: translateX(14px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes enterpriseShimmer {
  to { background-position: -200% 0; }
}

@keyframes enterpriseShake {
  0%, 100% { transform: translateX(0); }
  33% { transform: translateX(-4px); }
  66% { transform: translateX(4px); }
}
