@import url("./animations.css");

html,
body {
  overflow-x: hidden;
}

.providers-hero,
.providers-directory,
.providers-faq,
.providers-cta {
  box-sizing: border-box;
  width: 100%;
}

.providers-hero {
  position: relative;
  isolation: isolate;
  min-height: 612px;
  overflow: hidden;
  padding: 0;
  color: #fff;
  background:
    url("../../images/providers/banner_bg.png") center top / cover no-repeat,
    #002159;
}

.providers-hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  z-index: 1;
  height: 84px;
  background: #f6f6f6;
  clip-path: polygon(0 38%, 32% 100%, 100% 38%, 100% 100%, 0 100%);
}

.providers-hero__content {
  position: relative;
  z-index: 3;
  display: none;
  max-width: 760px;
}

.providers-hero h1 {
  margin: 0;
  color: #fff;
  font-size: 64px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0;
}

.providers-hero p {
  max-width: 660px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.18;
}

.providers-hero__visual {
  position: absolute;
  right: 44px;
  bottom: 0;
  z-index: 2;
  display: block;
  width: min(42vw, 560px);
  max-width: none;
  pointer-events: none;
  filter: drop-shadow(0 22px 30px rgba(0, 0, 0, 0.22));
}

.providers-directory {
  padding: 92px 120px 88px;
  background: #f6f6f6;
}

.providers-section-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
}

.providers-section-heading span {
  flex: 0 0 100px;
  height: 8px;
  background: linear-gradient(90deg, #deb681 0%, rgba(222, 182, 129, 0) 100%);
}

.providers-section-heading span:first-child {
  transform: rotate(180deg);
}

.providers-section-heading h2 {
  margin: 0;
  color: #000;
  font-size: 42px;
  font-weight: 800;
  line-height: 1.25;
}

.providers-section-copy {
  max-width: 700px;
  margin: 22px auto 0;
  color: #b1b3b3;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.08;
  text-align: center;
}

.provider-group {
  max-width: 1200px;
  margin: 54px auto 0;
  padding: 36px 38px 40px;
  box-sizing: border-box;
  border-radius: 28px;
  background: #fff;
}

.provider-group + .provider-group {
  margin-top: 42px;
}

.provider-group__header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.provider-group__header img {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  object-fit: contain;
}

.provider-group__header h3 {
  margin: 0;
  color: #003da5;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.05;
}

.provider-group__header p {
  margin: 8px 0 0;
  color: #b1b3b3;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
}

.provider-logo-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.provider-logo-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 82px;
  margin: 0;
  padding: 14px 18px;
  box-sizing: border-box;
  border-radius: 8px;
  background: #f3f3f3;
  border: 1px solid rgba(0, 61, 165, 0);
  box-shadow: 0 8px 18px rgba(0, 38, 103, 0);
  transition:
    background-color 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.provider-logo-card::after {
  content: "";
  position: absolute;
  top: -30%;
  left: -45%;
  width: 44%;
  height: 160%;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.55) 50%, transparent 100%);
  transform: translateX(-120%) rotate(14deg);
  transition: transform 0.52s ease;
  pointer-events: none;
}

.provider-logo-card .ion-casino {
  height: 100%;
}

.provider-logo-card img {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition:
    filter 0.28s ease,
    transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.provider-logo-card--dark {
  background: #003da5;
}

.provider-logo-card:hover,
.provider-logo-card:focus-within {
  background: #fff;
  border-color: rgba(0, 61, 165, 0.24);
  box-shadow: 0 16px 30px rgba(0, 45, 120, 0.16);
  transform: translateY(-6px) scale(1.02);
}

.provider-logo-card:hover::after,
.provider-logo-card:focus-within::after {
  transform: translateX(390%) rotate(14deg);
}

.provider-logo-card:hover img,
.provider-logo-card:focus-within img {
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.08);
}

.provider-logo-card--dark:hover,
.provider-logo-card--dark:focus-within {
  background: #0049c6;
  border-color: rgba(97, 184, 255, 0.5);
  box-shadow: 0 18px 34px rgba(0, 61, 165, 0.24);
}

@media (prefers-reduced-motion: reduce) {
  .provider-logo-card,
  .provider-logo-card::after,
  .provider-logo-card img {
    transition: none;
  }

  .provider-logo-card:hover,
  .provider-logo-card:focus-within,
  .provider-logo-card:hover img,
  .provider-logo-card:focus-within img {
    transform: none;
  }
}

.providers-faq {
  min-height: 885px;
  padding: 100px 120px;
  background: #fff;
  box-sizing: border-box;
  text-align: center;
}

.providers-faq .providers-section-heading h2 {
  font-size: 42px;
}

.providers-faq__list {
  display: grid;
  gap: 20px;
  width: min(100%, 960px);
  max-width: 960px;
  margin: 40px auto 0;
  text-align: left;
}

.providers-faq__item {
  overflow: hidden;
  border: 1px solid #d6d6d6;
  border-radius: 12px;
  background: #fff;
  color: #000;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.providers-faq__item[open] {
  border-color: #e6b579;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.providers-faq__item summary {
  position: relative;
  padding: 24px 56px 24px 24px;
  color: #000;
  cursor: pointer;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  list-style: none;
  transition: color 0.2s ease;
}

.providers-faq__item summary::-webkit-details-marker {
  display: none;
}

.providers-faq__item summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 24px;
  width: 12px;
  height: 12px;
  background: url("../../icons/arrow_down.png") center / contain no-repeat;
  transform: translateY(-50%);
  transition: transform 0.2s ease;
}

.providers-faq__item[open] summary {
  color: #003da5;
}

.providers-faq__item[open] summary::after {
  transform: translateY(-50%) rotate(180deg);
}

.providers-faq__item p {
  margin: 0;
  padding: 0 24px 24px;
  color: #737373;
  font-size: 16px;
  line-height: 1.19;
}

.providers-faq__item[open] p {
  animation: providers-faq-answer-in 0.24s ease both;
}

@keyframes providers-faq-answer-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .providers-faq__item,
  .providers-faq__item summary,
  .providers-faq__item summary::after {
    transition: none;
  }

  .providers-faq__item[open] p {
    animation: none;
  }
}

.providers-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 188px;
  min-height: 58px;
  padding: 18px 36px;
  box-sizing: border-box;
  border-radius: 80px;
  background: linear-gradient(90deg, #2596ff 0%, #2468ff 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  outline-offset: 5px;
  transition:
    box-shadow 0.24s ease,
    filter 0.24s ease,
    transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.providers-button--light {
  background: linear-gradient(90deg, #2596ff 0%, #2468ff 100%);
  color: #fff;
}

.providers-cta {
  position: relative;
  overflow: hidden;
  min-height: 760px;
  padding: 155px 0 260px;
  box-sizing: border-box;
  background:
    linear-gradient(180deg, rgba(7, 45, 123, 0.1) 0%, rgba(5, 40, 110, 0.18) 48%, rgba(5, 35, 100, 0.92) 100%),
    url("../../images/sport/sportbook_integration.png") center top / cover no-repeat;
  color: #fff;
}

.providers-cta::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 248px;
  background: linear-gradient(180deg, rgba(5, 35, 100, 0) 0%, #052364 100%);
  pointer-events: none;
}

.providers-cta__content {
  position: relative;
  z-index: 1;
  width: min(100% - 340px, 1100px);
  max-width: none;
  margin: 0 auto;
}

.providers-cta h2 {
  margin: 0;
  max-width: 527px;
  color: #fff;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}

.providers-cta p {
  max-width: 505px;
  margin: 16px 0 0;
  color: #fff;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.providers-cta .providers-button {
  margin-top: 24px;
}

@media (hover: hover) and (pointer: fine) {
  .providers-button:hover,
  .providers-button:focus-visible {
    filter: saturate(1.08) brightness(1.04);
    transform: translateY(-3px);
    box-shadow: 0 16px 30px rgba(36, 104, 255, 0.28);
  }

  .providers-button:active {
    transform: translateY(-1px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .providers-button {
    transition: none;
  }
}

@media (max-width: 900px) {
  .providers-hero,
  .providers-directory,
  .providers-faq,
  .providers-cta {
    width: 100vw;
    max-width: 100vw;
    margin-right: 0;
    margin-left: 0;
  }

  .providers-hero {
    min-height: 650px;
    padding: 72px 92px 0 24px;
    text-align: left;
    background:
      linear-gradient(180deg, #002159 0%, rgba(0, 34, 92, 0) 80.75%),
      url("../../images/providers/banner_bg_mobile.png") center top / cover no-repeat,
      #002159;
  }

  .providers-hero::after {
    height: 88px;
    clip-path: polygon(0 100%, 0 26%, 56% 100%, 100% 84%, 100% 100%);
  }

  .providers-hero__content {
    display: block;
    max-width: 250px;
    margin: 0;
  }

  .providers-hero h1 {
    max-width: 250px;
    margin: 0;
    font-size: 32px;
    line-height: 1.18;
  }

  .providers-hero p {
    max-width: 250px;
    margin: 12px 0 0;
    font-size: 14px;
    line-height: 1.2;
  }

  .providers-hero__visual {
    right: 20px;
    left: auto;
    bottom: 20px;
    display: block;
    width: 420px;
    max-width: none;
    transform: none;
  }

  .providers-directory {
    padding: 48px 16px 40px;
  }

  .providers-section-heading {
    gap: 12px;
  }

  .providers-section-heading span {
    flex-basis: 42px;
    height: 4px;
  }

  .providers-section-heading h2 {
    max-width: 216px;
    font-size: 20px;
    line-height: 25px;
  }

  .providers-section-copy {
    max-width: 320px;
    margin-top: 12px;
    font-size: 16px;
    line-height: 18px;
  }

  .provider-group {
    /* max-width: 320px; */
    margin-top: 26px;
    padding: 16px;
    border-radius: 10px;
  }

  .provider-group + .provider-group {
    margin-top: 20px;
  }

  .provider-group__header {
    gap: 10px;
    margin-bottom: 12px;
  }

  .provider-group__header img {
    width: 40px;
    height: 40px;
  }

  .provider-group__header h3 {
    font-size: 16px;
    line-height: 20px;
  }

  .provider-group__header p {
    margin-top: 2px;
    font-size: 12px;
    line-height: 14px;
  }

  .provider-logo-grid,
  .provider-logo-grid--sportbook {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .provider-logo-card {
    height: 48px;
    padding: 7px;
    border-radius: 4px;
  }

  .provider-group--sportbook .provider-logo-card:nth-last-child(1):nth-child(3n + 2) {
    grid-column: 2;
  }

  .providers-faq {
    min-height: auto;
    padding: 32px 20px;
  }

  .providers-faq .providers-section-heading h2 {
    max-width: 210px;
    font-size: 22px;
    line-height: 26px;
  }

  .providers-faq__list {
    width: min(100%, 328px);
    gap: 8px;
    max-width: 328px;
    margin-top: 24px;
  }

  .providers-faq__item summary {
    min-height: 52px;
    padding: 16px 36px 16px 16px;
    font-size: 16px;
    line-height: 1.25;
  }

  .providers-faq__item summary::after {
    right: 16px;
    width: 12px;
    height: 12px;
  }

  .providers-faq__item p {
    padding: 0 16px 16px;
    font-size: 14px;
    line-height: 1.2;
  }

  .providers-cta {
    min-height: 542px;
    padding: 36px 0 255px;
    text-align: center;
    background:
      linear-gradient(180deg, rgba(20, 44, 125, 0) 0%, rgba(30, 63, 176, 0.08) 42%, rgba(7, 41, 123, 0.28) 100%),
      url("../../images/sport/sportbook_integration_mobile.png") center bottom / cover no-repeat;
  }

  .providers-cta::after {
    height: 92px;
  }

  .providers-cta__content {
    width: min(100% - 32px, 328px);
    max-width: 328px;
    margin: 0 auto;
  }

  .providers-cta h2 {
    max-width: 260px;
    margin-right: auto;
    margin-left: auto;
    font-size: 22px;
    line-height: 1.1;
    text-transform: none;
  }

  .providers-cta p {
    max-width: 274px;
    margin: 14px auto 0;
    font-size: 12px;
    line-height: 1.18;
  }

  .providers-button {
    min-width: 116px;
    min-height: 39px;
    padding: 12px 24px;
    font-size: 12px;
  }

  .providers-cta .providers-button {
    margin-top: 18px;
  }

  .site-footer {
    min-height: 160px;
    padding-top: 28px;
    clip-path: none;
  }

  .site-footer-container {
    width: min(100% - 32px, 328px);
    text-align: center;
  }

  .site-social-links {
    display: none;
  }

  .site-footer-copy {
    max-width: none;
  }

  .site-footer p {
    font-size: 12px;
    line-height: 1.45;
  }
}

@media (max-width: 380px) {
  .providers-hero {
    padding-right: 16px;
    padding-left: 16px;
  }
}
