/* Texas Hold’em page-owned styles */

.texas-holdem-page {
  --th-hero-overlay-start: rgba(0, 0, 0, 0.5);
  --th-hero-overlay-end: rgba(0, 0, 0, 0.7);
  --th-section-gap: var(--space-5);
  --th-card-gap: var(--space-4);
  --th-copy-max: 800px;
  --th-copy-narrow: 720px;
  --th-copy-measure: 70ch;
}

/* Hero */
.th-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--color-text-on-dark);
  background-color: var(--color-dark-chocolate);
}

.th-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.th-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}

.th-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--th-hero-overlay-start), var(--th-hero-overlay-end));
}

.th-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
  padding-block: var(--space-7);
}

.th-hero__eyebrow {
  font-size: var(--text-small);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-warm-beige);
  margin: 0;
}

.th-hero__title {
  color: var(--color-text-on-dark);
  font-size: clamp(2.5rem, 6vw, var(--text-display));
  line-height: var(--leading-display);
  margin: 0;
  max-width: 14ch;
}

.th-hero__lead {
  max-width: 48rem;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.7;
  margin: 0;
}

.th-hero__support {
  max-width: 44rem;
  font-size: var(--text-small);
  line-height: var(--leading-small);
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.th-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-block-start: var(--space-2);
}

.th-hero__cta {
  min-width: 240px;
}

.th-hero__note {
  max-width: 40rem;
  font-size: var(--text-caption);
  line-height: var(--leading-caption);
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

/* Intro */
.th-intro__container {
  max-width: var(--th-copy-max);
  margin-inline: auto;
  text-align: center;
}

.th-intro__title {
  margin-block-end: var(--space-5);
}

.th-intro__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  text-align: left;
}

.th-intro__block {
  max-width: var(--th-copy-measure);
  margin-inline: auto;
}

.th-intro__subtitle {
  margin-block-end: var(--space-3);
}

.th-intro__list {
  margin-block-start: var(--space-3);
}

/* Steps */
.th-steps__title {
  text-align: center;
  margin-block-end: var(--space-6);
}

.th-steps__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
  align-items: stretch;
}

.th-step-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: var(--space-5);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  min-width: 0;
}

.th-step-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.th-step-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-round);
  background-color: var(--color-cobalt);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: var(--weight-heading);
  line-height: 1;
  flex-shrink: 0;
}

.th-step-card__title {
  margin: 0;
}

.th-step-card__text {
  margin: 0;
  font-size: var(--text-small);
  line-height: var(--leading-small);
}

/* Betting */
.th-betting__title {
  margin-block-end: var(--space-5);
}

.th-betting__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
  align-items: start;
}

.th-betting__column {
  min-width: 0;
}

.th-betting__subtitle {
  margin-block-end: var(--space-3);
}

.th-betting__list {
  margin-block-start: var(--space-3);
}

/* Hands */
.th-hands__container {
  max-width: var(--th-copy-max);
  margin-inline: auto;
}

.th-hands__title {
  margin-block-end: var(--space-5);
}

.th-hands__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.th-hands__subtitle {
  margin-block-end: var(--space-3);
}

.th-hands__list {
  margin-block-start: var(--space-3);
}

/* Atmosphere */
.th-atmosphere {
  background-color: var(--color-dark-chocolate);
  color: var(--color-text-on-dark);
}

.th-atmosphere__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
  align-items: center;
}

.th-atmosphere__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.th-atmosphere__title {
  color: var(--color-text-on-dark);
  margin: 0;
}

.th-atmosphere__subtitle {
  color: var(--color-warm-beige);
  margin-block-end: var(--space-3);
}

.th-atmosphere__list {
  margin-block-start: var(--space-3);
  color: rgba(255, 255, 255, 0.9);
}

.th-atmosphere__media {
  min-width: 0;
}

.th-atmosphere__image {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-dark-card);
}

/* Reasons */
.th-reasons__title {
  margin-block-end: var(--space-3);
}

.th-reasons__lead {
  margin-block-end: var(--space-5);
}

.th-reasons__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
  align-items: start;
}

.th-reasons__list {
  margin: 0;
  padding-inline-start: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* Fair play */
.th-fairplay__container {
  max-width: var(--th-copy-max);
  margin-inline: auto;
}

.th-fairplay__title {
  margin-block-end: var(--space-5);
}

.th-fairplay__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.th-fairplay__subtitle {
  margin-block-end: var(--space-3);
}

.th-fairplay__list {
  margin-block-start: var(--space-3);
}

/* Reservation */
.th-reservation {
  background-color: var(--color-cobalt);
  color: var(--color-text-on-dark);
}

.th-reservation__container {
  max-width: var(--th-copy-max);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-5);
}

.th-reservation__title {
  color: var(--color-text-on-dark);
  margin: 0;
}

.th-reservation__lead {
  max-width: 36rem;
  margin: 0;
}

.th-reservation__details {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: var(--text-small);
  line-height: var(--leading-small);
}

.th-reservation__details p {
  margin: 0;
}

.th-reservation__link {
  color: var(--color-white);
  text-decoration-color: var(--color-white);
}

.th-reservation__link:hover {
  color: var(--color-warm-beige);
  text-decoration-color: var(--color-warm-beige);
}

.th-reservation__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
}

.th-reservation__cta {
  min-width: 260px;
}

/* FAQ */
.th-faq__container {
  max-width: var(--th-copy-max);
  margin-inline: auto;
}

.th-faq__title {
  margin-block-end: var(--space-5);
}

.th-faq__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.th-faq__item {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.th-faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: var(--weight-heading-secondary);
  line-height: var(--leading-h3);
  color: var(--color-cobalt);
  transition: background-color 0.2s ease;
}

.th-faq__question:hover {
  background-color: var(--color-cream);
}

.th-faq__question:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: -2px;
}

.th-faq__icon {
  position: relative;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.th-faq__icon::before,
.th-faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1rem;
  height: 2px;
  background-color: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease;
}

.th-faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.th-faq__item.is-open .th-faq__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.th-faq__answer {
  padding-inline: var(--space-4);
  padding-block-end: var(--space-4);
  color: var(--color-text-primary);
}

.th-faq__answer[hidden] {
  display: none !important;
}

.th-faq__answer p {
  margin: 0;
}

/* Responsive */
@media (max-width: 992px) {
  .th-steps__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .th-atmosphere__grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .th-atmosphere__media {
    order: -1;
  }

  .th-atmosphere__image {
    max-height: 420px;
  }
}

@media (max-width: 768px) {
  .th-hero {
    min-height: 80vh;
    min-height: 80svh;
  }

  .th-hero__content {
    padding-block: var(--space-6);
  }

  .th-betting__grid,
  .th-reasons__grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .th-reasons__list--right {
    counter-reset: none;
  }
}

@media (max-width: 576px) {
  .th-hero {
    min-height: 72vh;
    min-height: 72svh;
  }

  .th-hero__title {
    font-size: clamp(2rem, 10vw, 2.75rem);
  }

  .th-hero__lead {
    font-size: 1rem;
  }

  .th-hero__cta,
  .th-reservation__cta {
    width: 100%;
    min-width: 0;
  }

  .th-steps__grid {
    grid-template-columns: 1fr;
  }

  .th-step-card {
    padding: var(--space-4);
  }

  .th-faq__question {
    font-size: var(--text-body);
    line-height: var(--leading-body);
    padding: var(--space-3) var(--space-4);
  }

  .th-faq__answer {
    padding-inline: var(--space-3);
    padding-block-end: var(--space-3);
  }
}

@media (prefers-reduced-motion: reduce) {
  .th-hero,
  .th-step-card,
  .th-faq__question,
  .th-faq__icon::before,
  .th-faq__icon::after {
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}
