/* ══════════════════════════════════════════
   home.css — Texas Skill Masters
   Styles specific to index.php
   ══════════════════════════════════════════ */

/* ══ HERO ══════════════════════════════════ */

.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: var(--nav-h) 4vw 0;
  position: relative; overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(204,27,27,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(204,27,27,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  top: 5%; right: -8%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(204,27,27,0.16) 0%, transparent 70%);
  z-index: 0;
  animation: heroPulse 6s ease-in-out infinite;
}
@keyframes heroPulse {
  0%,100% { transform: scale(1);    opacity: 1; }
  50%      { transform: scale(1.1); opacity: 0.6; }
}

.hero-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1300px; margin: 0 auto;
  width: 100%; padding: 6vh 0;
}

/* Text */
.hero-eyebrow {
  font-family: var(--font-cond);
  font-size: 0.88rem; font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--red); margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.75rem;
  opacity: 0; animation: fadeUp 0.7s 0.2s forwards;
}
.hero-eyebrow::before { content: ''; width: 32px; height: 2px; background: var(--red); }

.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(4rem, 8.5vw, 8.5rem);
  line-height: 0.9; letter-spacing: 0.02em;
  text-transform: uppercase; color: var(--white);
  opacity: 0; animation: fadeUp 0.7s 0.35s forwards;
}
.hero-h1 .accent { color: var(--red); }

.hero-sub {
  margin-top: 1.8rem;
  font-size: 1.05rem; line-height: 1.75; color: var(--grey);
  max-width: 460px;
  opacity: 0; animation: fadeUp 0.7s 0.5s forwards;
}

.hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
  margin-top: 2.5rem;
  opacity: 0; animation: fadeUp 0.7s 0.65s forwards;
}

.hero-stats {
  display: flex; gap: 2.5rem; flex-wrap: wrap;
  margin-top: 3.5rem;
  opacity: 0; animation: fadeUp 0.7s 0.8s forwards;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 3rem; color: var(--red); line-height: 1;
}
.stat-label {
  font-family: var(--font-cond);
  font-size: 0.78rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--grey);
  margin-top: 0.2rem;
}

/* Visual */
.hero-visual {
  display: flex; align-items: center; justify-content: center;
  opacity: 0; animation: fadeIn 1s 0.4s forwards;
}
.hero-logo-ring {
  position: relative;
  width: clamp(260px, 38vw, 480px);
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
}
.ring-outer {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(204,27,27,0.25);
  animation: spin 22s linear infinite;
}
.ring-outer::before {
  content: '';
  position: absolute; top: -5px; left: 50%; transform: translateX(-50%);
  width: 10px; height: 10px;
  background: var(--red); border-radius: 50%;
  box-shadow: 0 0 8px var(--red);
}
.ring-inner {
  position: absolute; inset: 32px;
  border-radius: 50%;
  border: 1px dashed rgba(204,27,27,0.18);
  animation: spin 16s linear infinite reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-logo-img {
  width: 65%;
  filter: drop-shadow(0 0 40px rgba(204,27,27,0.5)) drop-shadow(0 0 80px rgba(204,27,27,0.2));
  animation: floatLogo 5s ease-in-out infinite;
  position: relative; z-index: 1;
}
@keyframes floatLogo {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}


/* ══ ABOUT ══════════════════════════════════ */

.about {
  background: var(--dark);
  padding: 7rem 4vw;
  position: relative; overflow: hidden;
}
.about::before {
  content: 'TEXAS';
  position: absolute; right: -2%; bottom: -6%;
  font-family: var(--font-display);
  font-size: clamp(8rem, 18vw, 20rem);
  color: rgba(255,255,255,0.02);
  pointer-events: none; user-select: none;
  line-height: 1;
}
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
  max-width: 1200px; margin: 0 auto;
}
.about-body { margin-top: 1.5rem; }
.about-body p { font-size: 1rem; line-height: 1.8; color: var(--grey); }
.about-body p + p { margin-top: 1rem; }

.about-card {
  background: var(--mid);
  border: 1px solid rgba(204,27,27,0.18);
  position: relative;
}
.about-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), transparent);
}
.about-card-inner {
  padding: 2.5rem;
  display: flex; flex-direction: column; gap: 1.8rem;
}
.about-feature { display: flex; gap: 1.1rem; align-items: flex-start; }
.feat-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: rgba(204,27,27,0.12);
  border: 1px solid rgba(204,27,27,0.35);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}
.feat-text h4 {
  font-family: var(--font-cond);
  font-size: 1.05rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--white); margin-bottom: 0.25rem;
}
.feat-text p { font-size: 0.88rem; color: var(--grey); line-height: 1.6; }


/* ══ HOW IT WORKS ════════════════════════════ */

.how {
  background: var(--black);
  padding: 7rem 4vw;
}
.how-header {
  text-align: center; margin-bottom: 3.5rem;
}
.how-header .section-title { margin-top: 0.4rem; }

.steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1200px; margin: 0 auto;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 40px; left: calc(12.5% + 26px); right: calc(12.5% + 26px);
  height: 1px;
  background: linear-gradient(90deg, var(--red) 0%, rgba(204,27,27,0.2) 100%);
  z-index: 0;
}
.step {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--mid);
  border: 1px solid rgba(255,255,255,0.05);
  position: relative; z-index: 1;
  transition: border-color 0.3s, transform 0.3s;
}
.step:hover { border-color: rgba(204,27,27,0.4); transform: translateY(-6px); }
.step-num {
  width: 52px; height: 52px;
  background: var(--red);
  font-family: var(--font-display); font-size: 1.6rem; color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.4rem;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
  position: relative; z-index: 1;
}
.step h3 {
  font-family: var(--font-cond);
  font-size: 1.15rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--white); margin-bottom: 0.7rem;
}
.step p { font-size: 0.88rem; color: var(--grey); line-height: 1.65; }
.step-note {
  margin-top: 0.6rem !important;
  font-size: 0.82rem !important;
  color: var(--red) !important;
  border-top: 1px solid rgba(204,27,27,0.25);
  padding-top: 0.6rem;
  line-height: 1.55 !important;
}


/* ══ GAMES PREVIEW ═══════════════════════════ */

.games-preview {
  background: var(--dark);
  padding: 7rem 4vw;
}
.games-preview-header {
  display: flex; align-items: flex-end;
  justify-content: space-between; flex-wrap: wrap; gap: 1.5rem;
  max-width: 1200px; margin: 0 auto 3rem;
}
.games-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1200px; margin: 0 auto;
}
.game-card {
  background: var(--mid);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 2.5rem 2rem;
  position: relative; overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.game-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(204,27,27,0.07) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.3s;
}
.game-card:hover { border-color: rgba(204,27,27,0.4); transform: translateY(-4px); }
.game-card:hover::before { opacity: 1; }
.game-icon { font-size: 2.6rem; margin-bottom: 1.1rem; display: block; }
.game-card h3 {
  font-family: var(--font-cond);
  font-size: 1.25rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--white); margin-bottom: 0.5rem;
}
.game-card p { font-size: 0.88rem; color: var(--grey); line-height: 1.6; }
.game-tag {
  display: block; margin-top: 1rem;
  font-family: var(--font-cond);
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--red);
  border-top: 1px solid rgba(204,27,27,0.25);
  padding-top: 0.7rem;
}


/* ══ LOCATIONS STRIP ══════════════════════════ */

.locations-strip {
  background: var(--black);
  padding: 7rem 4vw;
  position: relative; overflow: hidden;
}
.locations-strip::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 250px;
  background: radial-gradient(ellipse at 50% 100%, rgba(204,27,27,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.locations-strip-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
  max-width: 1200px; margin: 0 auto;
  position: relative; z-index: 1;
}
.ls-text p { font-size: 1rem; color: var(--grey); line-height: 1.7; margin-top: 1rem; }

.ls-cities {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
}
.city-tag {
  background: var(--mid);
  border: 1px solid rgba(255,255,255,0.07);
  padding: 0.6rem 1rem;
  font-family: var(--font-cond);
  font-size: 0.88rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--light);
  display: flex; align-items: center; gap: 0.5rem;
  transition: border-color 0.2s, color 0.2s;
}
.city-tag:hover { border-color: var(--red); color: var(--white); }
.city-tag::before { content: ''; width: 5px; height: 5px; background: var(--red); border-radius: 50%; flex-shrink: 0; }
.city-more { border-color: rgba(204,27,27,0.3); color: var(--red); }
.city-more::before { display: none; }


/* ══ PARTNER CTA ══════════════════════════════ */

.partner-cta {
  padding: 7rem 4vw;
  position: relative; overflow: hidden;
  text-align: center;
  background: var(--dark);
}
.partner-cta::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(204,27,27,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(204,27,27,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}
.partner-cta::after {
  content: '';
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(204,27,27,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.partner-inner {
  position: relative; z-index: 1;
  max-width: 700px; margin: 0 auto;
}
.partner-inner .section-title {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  margin: 0.5rem 0 1rem;
}
.partner-inner > p {
  font-size: 1.05rem; color: var(--grey); line-height: 1.7; margin-bottom: 2.5rem;
}
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }


/* ══ RESPONSIVE ══════════════════════════════ */

@media (max-width: 1024px) {
  .hero-inner         { grid-template-columns: 1fr; text-align: center; padding: 4vh 0; }
  .hero-text          { order: 2; }
  .hero-visual        { order: 1; }
  .hero-eyebrow,
  .hero-actions,
  .hero-stats         { justify-content: center; }
  .hero-sub           { margin: 1.5rem auto 0; }
  .about-grid         { grid-template-columns: 1fr; }
  .steps              { grid-template-columns: repeat(2, 1fr); }
  .steps::before      { display: none; }
  .games-grid         { grid-template-columns: repeat(2, 1fr); }
  .locations-strip-inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .games-grid         { grid-template-columns: 1fr; }
  .steps              { grid-template-columns: 1fr; }
  .hero-logo-ring     { width: 260px; }
}
