/* =========================================================
   AB SB Hero Widget - Artisan Home Hero Slider
   Primary Color Schema: #1961A9
   ========================================================= */

.ab-sb-hero,
.ab-sb-hero * {
  box-sizing: border-box;
}

.ab-sb-hero {
  --ab-hero-primary: #1961A9;
  --ab-hero-primary-dark: #0f4d89;
  --ab-hero-accent: #6BBEFF;
  --ab-hero-white: #ffffff;
  --ab-hero-text: #ffffff;
  --ab-hero-muted: rgba(255, 255, 255, 0.78);
  --ab-hero-border: rgba(255, 255, 255, 0.20);
  --ab-hero-card: rgba(255, 255, 255, 0.11);
  --ab-hero-field-bg: rgba(255, 255, 255, 0.075);
  --ab-hero-field-border: rgba(255, 255, 255, 0.18);
  --ab-hero-container: 1180px;
  position: relative;
  width: 100%;
  min-height: 720px;
  overflow: hidden;
  font-family: Arial, Helvetica, sans-serif;
  background: #08111d;
  color: var(--ab-hero-text);
  isolation: isolate;
}

.ab-sb-hero-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.ab-sb-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.035);
  transition: opacity 900ms ease, visibility 900ms ease, transform 6200ms ease;
}

.ab-sb-hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.ab-sb-hero-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.ab-sb-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(circle at 50% 38%, rgba(25, 97, 169, 0.24), transparent 26%),
    linear-gradient(90deg, rgba(2, 8, 16, 0.62) 0%, rgba(2, 8, 16, 0.41) 45%, rgba(2, 8, 16, 0.57) 100%),
    linear-gradient(180deg, rgba(2, 8, 16, 0.15) 0%, rgba(2, 8, 16, 0.34) 55%, rgba(2, 8, 16, 0.63) 100%);
  pointer-events: none;
}

.ab-sb-hero-noise {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0.18;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
}

.ab-sb-hero-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  right: -160px;
  top: 80px;
  z-index: 4;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(25, 97, 169, 0.36), transparent 64%);
  filter: blur(8px);
  opacity: 0.78;
  pointer-events: none;
}

.ab-sb-hero-inner {
  position: relative;
  z-index: 8;
  width: min(1440px, calc(100% - 40px));
  min-height: 720px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(560px, 620px);
  align-items: center;
  gap: 44px;
  padding: 110px 0 96px;
}

.ab-sb-hero-content {
  max-width: 845px;
}

.ab-sb-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  padding: 11px 15px;
  border: 1px solid var(--ab-hero-border);
  border-radius: 999px;
  background: var(--ab-hero-card);
  backdrop-filter: blur(16px);
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.ab-sb-hero-kicker::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ab-hero-primary);
  box-shadow: 0 0 0 7px rgba(25, 97, 169, 0.22);
  flex: 0 0 auto;
}

.ab-sb-hero-title {
  margin: 0;
  color: var(--ab-hero-white);
  font-size: clamp(46px, 6vw, 94px);
  font-weight: 950;
  line-height: 0.95;
  letter-spacing: -0.055em;
  text-transform: uppercase;
  text-wrap: balance;
}

.ab-sb-hero-title span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.78);
  text-stroke: 1px rgba(255, 255, 255, 0.78);
}

.ab-sb-hero-copy {
  width: min(650px, 100%);
  margin: 24px 0 0;
  color: var(--ab-hero-muted);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.75;
}

.ab-sb-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.ab-sb-hero-btn {
  position: relative;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 0 23px;
  border-radius: 999px;
  border: 1px solid transparent;
  overflow: hidden;
  color: var(--ab-hero-white);
  background: var(--ab-hero-primary);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.28s ease, border-color 0.28s ease, background-color 0.28s ease, color 0.28s ease;
}

.ab-sb-hero-btn::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(-120%);
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.ab-sb-hero-btn span,
.ab-sb-hero-btn svg {
  position: relative;
  z-index: 2;
}

.ab-sb-hero-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.28s ease;
}

.ab-sb-hero-btn:hover,
.ab-sb-hero-btn:focus {
  transform: translateY(-3px);
  background: var(--ab-hero-white);
  color: var(--ab-hero-primary);
  border-color: rgba(255, 255, 255, 0.42);
}

.ab-sb-hero-btn:hover::before,
.ab-sb-hero-btn:focus::before {
  transform: translateX(0);
  background: rgba(25, 97, 169, 0.08);
}

.ab-sb-hero-btn:hover svg,
.ab-sb-hero-btn:focus svg {
  transform: translateX(3px);
}

.ab-sb-hero-btn.is-outline {
  background: rgba(255, 255, 255, 0.09);
  color: var(--ab-hero-white);
  border-color: rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(12px);
}

.ab-sb-hero-btn.is-outline:hover,
.ab-sb-hero-btn.is-outline:focus {
  background: var(--ab-hero-white);
  color: var(--ab-hero-primary);
}

.ab-sb-hero-side {
  display: grid;
  gap: 18px;
}

.ab-sb-hero-card,
.ab-sb-hero-form-card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--ab-hero-border);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.07));
  backdrop-filter: blur(22px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.ab-sb-hero-card::before,
.ab-sb-hero-form-card::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 24px;
  width: 46px;
  height: 4px;
  border-radius: 999px;
  background: var(--ab-hero-primary);
}

.ab-sb-hero-card-title,
.ab-sb-hero-form-title {
  margin: 22px 0 0;
  color: var(--ab-hero-white);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.ab-sb-hero-card-text,
.ab-sb-hero-form-text {
  margin: 14px 0 0;
  color: var(--ab-hero-muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.65;
}

.ab-sb-hero-card-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.ab-sb-hero-card-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.90);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.ab-sb-hero-card-list li::before {
  content: "✓";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ab-hero-white);
  background: var(--ab-hero-primary);
  font-size: 12px;
  font-weight: 900;
}

.ab-sb-hero-form-card {
  max-width: 620px;
  padding: 30px;
  border-color: rgba(74, 133, 181, 0.52);
  border-radius: 27px;
  background: linear-gradient(180deg, rgba(24, 48, 72, 0.96), rgba(13, 29, 44, 0.97));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.ab-sb-hero-form-card::before {
  display: none;
}

.ab-sb-hero-form-title {
  margin: 0;
  font-size: 31px;
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.045em;
}

.ab-sb-hero-form-text {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.55;
}

.ab-sb-hero-form {
  display: block;
  margin-top: 22px;
}

.ab-sb-hero-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.ab-sb-hero-form-field {
  min-width: 0;
}

.ab-sb-hero-form-field.is-full {
  grid-column: 1 / -1;
}

.ab-sb-hero-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;
}

.ab-sb-hero-form-input,
.ab-sb-hero-form-select,
.ab-sb-hero-form-textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 15px;
  outline: none;
  padding: 14px 15px;
  background: rgba(255, 255, 255, 0.075);
  color: var(--ab-hero-white);
  font-size: 14px;
  font-weight: 650;
  font-family: inherit;
  line-height: 1.35;
  transition: border-color 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease;
}

.ab-sb-hero-form-textarea {
  min-height: 124px;
  resize: vertical;
}

.ab-sb-hero-form-input::placeholder,
.ab-sb-hero-form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.48);
  opacity: 1;
}

.ab-sb-hero-form-input:focus,
.ab-sb-hero-form-select:focus,
.ab-sb-hero-form-textarea:focus {
  border-color: rgba(107, 190, 255, 0.58);
  background: rgba(255, 255, 255, 0.105);
  box-shadow: 0 0 0 4px rgba(25, 97, 169, 0.16);
}

.ab-sb-hero-form-select option {
  background: #ffffff;
  color: #111827;
}

.ab-sb-hero-submit {
  width: 100%;
  min-height: 52px;
  margin-top: 20px;
  border: 1px solid rgba(107, 190, 255, 0.60);
  border-radius: 999px;
  background: var(--ab-hero-primary);
  color: var(--ab-hero-white);
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  font-family: inherit;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  transition: transform 0.28s ease, background-color 0.28s ease, color 0.28s ease, border-color 0.28s ease;
}

.ab-sb-hero-submit:hover,
.ab-sb-hero-submit:focus {
  transform: translateY(-2px);
  background: var(--ab-hero-white);
  color: var(--ab-hero-primary);
  border-color: var(--ab-hero-white);
}

.ab-sb-hero-message {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.ab-sb-hero-message.is-success {
  border: 1px solid rgba(80, 220, 130, 0.34);
  background: rgba(80, 220, 130, 0.14);
}

.ab-sb-hero-message.is-error {
  border: 1px solid rgba(255, 95, 95, 0.36);
  background: rgba(255, 95, 95, 0.16);
}

.ab-sb-hero-hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ab-sb-hero-controls {
  position: absolute;
  z-index: 12;
  left: 50%;
  bottom: 34px;
  width: min(var(--ab-hero-container), calc(100% - 40px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  pointer-events: none;
}

.ab-sb-hero-progress-wrap {
  width: min(460px, 48vw);
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
}

.ab-sb-hero-progress {
  width: 0%;
  height: 100%;
  background: var(--ab-hero-primary);
}

.ab-sb-hero-dots,
.ab-sb-hero-arrows {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  pointer-events: auto;
}

.ab-sb-hero-dot {
  width: 12px;
  height: 12px;
  border: 1px solid rgba(255, 255, 255, 0.70);
  border-radius: 999px;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: width 0.28s ease, background-color 0.28s ease, border-color 0.28s ease, transform 0.28s ease;
}

.ab-sb-hero-dot.is-active {
  width: 34px;
  background: var(--ab-hero-primary);
  border-color: var(--ab-hero-primary);
}

.ab-sb-hero-dot:hover,
.ab-sb-hero-dot:focus {
  transform: translateY(-2px);
  border-color: var(--ab-hero-white);
}

.ab-sb-hero-arrow {
  width: 58px;
  height: 58px;
  border: 1px solid var(--ab-hero-border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--ab-hero-white);
  backdrop-filter: blur(14px);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition: background-color 0.28s ease, color 0.28s ease, transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.ab-sb-hero-arrow svg {
  width: 22px;
  height: 22px;
}

.ab-sb-hero-arrow:hover,
.ab-sb-hero-arrow:focus {
  background: var(--ab-hero-white);
  color: var(--ab-hero-primary);
  border-color: var(--ab-hero-white);
  transform: translateY(-3px);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.ab-sb-hero-arrow.is-prev svg {
  transform: rotate(180deg);
}

.ab-sb-hero-index {
  position: absolute;
  z-index: 10;
  left: 38px;
  top: 50%;
  transform: translateY(-50%);
  width: 76px;
  min-height: 126px;
  display: grid;
  place-items: center;
  padding: 16px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04));
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  color: var(--ab-hero-white);
}

.ab-sb-hero-index::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.10);
  pointer-events: none;
}

.ab-sb-hero-index::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 50%;
  width: 8px;
  height: 42px;
  border-radius: 999px;
  background: var(--ab-hero-primary);
  transform: translateY(-50%);
  box-shadow: 0 0 0 7px rgba(25, 97, 169, 0.13);
}

.ab-sb-hero-index span {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 7px;
  justify-items: center;
  color: var(--ab-hero-white);
  font-size: 24px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.04em;
}

.ab-sb-hero-index span::before {
  content: "Slide";
  color: rgba(255, 255, 255, 0.68);
  font-size: 9px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ab-sb-hero-index span::after {
  content: attr(data-total);
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.10em;
}

@media (max-width: 1600px) and (min-width: 1025px) {
  .ab-sb-hero-inner {
    width: calc(100% - 40px);
    grid-template-columns: minmax(0, 1fr) minmax(520px, 600px);
    gap: 34px;
    padding-left: 112px;
  }

  .ab-sb-hero-index {
    left: 24px;
  }

  .ab-sb-hero-title {
    font-size: clamp(48px, 5.6vw, 82px);
  }
}

@media (max-width: 1180px) and (min-width: 1025px) {
  .ab-sb-hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(470px, 540px);
    gap: 26px;
    padding-left: 100px;
  }

  .ab-sb-hero-index {
    left: 16px;
    width: 70px;
  }

  .ab-sb-hero-title {
    font-size: clamp(44px, 5vw, 64px);
  }

  .ab-sb-hero-form-card {
    padding: 26px;
  }
}

@media (max-width: 1024px) {
  .ab-sb-hero {
    min-height: 720px;
  }

  .ab-sb-hero-inner {
    min-height: 720px;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 28px;
    padding: 92px 0 120px;
  }

  .ab-sb-hero-content {
    max-width: 820px;
  }

  .ab-sb-hero-side {
    grid-template-columns: 1fr;
  }

  .ab-sb-hero-form-card {
    max-width: 720px;
  }

  .ab-sb-hero-index {
    display: none;
  }
}

@media (max-width: 767px) {
  .ab-sb-hero {
    min-height: 760px;
  }

  .ab-sb-hero-inner {
    width: min(100% - 28px, var(--ab-hero-container));
    min-height: 760px;
    padding: 42px 0 132px;
    text-align: left;
  }

  .ab-sb-hero-overlay {
    background:
      radial-gradient(circle at 50% 20%, rgba(25, 97, 169, 0.25), transparent 28%),
      linear-gradient(180deg, rgba(2, 8, 16, 0.50), rgba(2, 8, 16, 0.57));
  }

  .ab-sb-hero-kicker {
    gap: 9px;
    padding: 10px 12px;
    font-size: 10px;
    letter-spacing: 0.20em;
  }

  .ab-sb-hero-title {
    font-size: clamp(40px, 12vw, 62px);
    line-height: 0.98;
    letter-spacing: -0.045em;
  }

  .ab-sb-hero-copy {
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.65;
  }

  .ab-sb-hero-actions {
    margin-top: 26px;
    gap: 11px;
  }

  .ab-sb-hero-btn {
    width: 100%;
    min-height: 52px;
  }

  .ab-sb-hero-side {
    grid-template-columns: 1fr;
  }

  .ab-sb-hero-form-grid {
    grid-template-columns: 1fr;
  }

  .ab-sb-hero-form-field {
    grid-column: 1;
  }

  .ab-sb-hero-card,
  .ab-sb-hero-form-card {
    border-radius: 24px;
    padding: 22px;
  }

  .ab-sb-hero-form-title {
    font-size: 26px;
  }

  .ab-sb-hero-form-textarea {
    min-height: 112px;
  }

  .ab-sb-hero-controls {
    bottom: 24px;
    width: min(100% - 28px, var(--ab-hero-container));
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "progress progress"
      "dots arrows";
    align-items: center;
    gap: 16px 18px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    background: rgba(3, 10, 20, 0.34);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.10);
  }

  .ab-sb-hero-progress-wrap {
    grid-area: progress;
    width: 100%;
  }

  .ab-sb-hero-dots {
    grid-area: dots;
    justify-content: flex-start;
  }

  .ab-sb-hero-arrows {
    grid-area: arrows;
    position: static;
    right: auto;
    bottom: auto;
    justify-content: flex-end;
  }

  .ab-sb-hero-arrow {
    width: 52px;
    height: 52px;
  }

  .ab-sb-hero-arrow svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  .ab-sb-hero-inner {
    padding-top: 34px;
  }

  .ab-sb-hero-controls {
    gap: 14px;
    padding: 12px;
    border-radius: 22px;
  }

  .ab-sb-hero-arrow {
    width: 48px;
    height: 48px;
  }

  .ab-sb-hero-arrow svg {
    width: 19px;
    height: 19px;
  }

  .ab-sb-hero-dots {
    gap: 8px;
  }

  .ab-sb-hero-dot {
    width: 11px;
    height: 11px;
  }

  .ab-sb-hero-dot.is-active {
    width: 30px;
  }
}

@media (max-width: 420px) {
  .ab-sb-hero-title {
    font-size: 38px;
  }

  .ab-sb-hero-copy {
    font-size: 14px;
  }
}
