/* squadron-hero-fullbleed — homepage Hero + main layout structure (DOM companion)
 * Hero: FULL-BLEED background image + dark scrim + overlaid, bottom-aligned copy
 * (structure/visual reference: animesquadron.org .hero-shell / .hero-bg / .hero-scrim).
 * Bg image: /images/hero.webp, object-fit: cover; focal point via --sq-hero-pos / --sq-hero-pos-mobile on .sq-hero.
 * Anime Dice Guides brand/copy only. Does not touch Codes facts, Ads, hosts, or non-home pages.
 */

/* ---- Hero: full-bleed shell ---- */
.sq-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  min-height: 540px;
  background: #08090c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  /* focal point of the bg image — tune here when /images/hero.webp is swapped */
  --sq-hero-pos: center;            /* desktop/tablet (final 2400×1000 art) */
  --sq-hero-pos-mobile: 75% 35%;     /* <768px: crop sides + lift subject into frame */
}

/* background image spans the whole hero (full viewport width; main is full-bleed) */
.sq-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: var(--sq-hero-pos, center);
}

/* #101114 scrim: dark left (copy side) → light right (art side) + bottom fade into page bg */
.sq-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(0deg, var(--sq-bg, #101114) 0%, rgba(16, 17, 20, 0.55) 22%, rgba(16, 17, 20, 0) 48%),
    linear-gradient(90deg, rgba(16, 17, 20, 0.92) 0%, rgba(16, 17, 20, 0.66) 44%, rgba(16, 17, 20, 0.12) 100%);
}

/* overlaid copy container: bottom-aligned inside max-w-7xl */
.sq-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  max-width: 80rem;
  min-height: 540px;
  margin: 0 auto;
  padding: 2.5rem 1rem 2.5rem;
}

@media (min-width: 768px) {
  .sq-hero,
  .sq-hero-inner { min-height: 580px; }
}

@media (min-width: 1024px) {
  .sq-hero,
  .sq-hero-inner { min-height: 620px; }
}

/* mobile: light at top (~0.45 of #101114) so the dice show; darkens through the copy band into page bg */
@media (max-width: 767px) {
  .sq-hero-bg { object-position: var(--sq-hero-pos-mobile, 75% 35%); }
  .sq-hero-scrim {
    background:
      linear-gradient(180deg,
        rgba(16, 17, 20, 0.45) 0%,
        rgba(16, 17, 20, 0.50) 30%,
        rgba(16, 17, 20, 0.72) 55%,
        rgba(16, 17, 20, 0.90) 78%,
        var(--sq-bg, #101114) 100%);
  }
}

.sq-hero-copy {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 56rem;
  padding-bottom: 2rem;
}

.sq-hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 100%;
  margin-bottom: 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.45);
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.25rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sq-accent, #facc15);
}

.sq-hero-title {
  max-width: 20ch;
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}

.sq-hero-title .sq-hero-title-accent {
  display: block;
  color: var(--sq-accent, #facc15);
}

.sq-hero-lead {
  margin-top: 1.25rem;
  max-width: 46rem;
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.86);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
  .sq-hero-lead {
    font-size: 1.3rem;
    line-height: 1.65;
  }
}

.sq-hero-cta-row {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

@media (min-width: 480px) {
  .sq-hero-cta-row {
    display: flex;
    flex-wrap: wrap;
  }
}

/* squadron-style CTAs: 44px min, 8px radius, heavy weight */
.sq-hero-cta-row .btn-primary,
.sq-hero-cta-row .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.16s, border-color 0.16s, color 0.16s, transform 0.16s;
}

.sq-hero-cta-row .btn-outline {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
}

.sq-hero-cta-row .btn-primary:hover,
.sq-hero-cta-row .btn-outline:hover {
  transform: translateY(-1px);
}

.sq-hero-cta-row .btn-outline:hover {
  border-color: rgba(250, 204, 21, 0.55) !important;
}

.sq-hero-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.sq-hero-quick a {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(8, 9, 12, 0.55);
  padding: 0.4rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  backdrop-filter: blur(2px);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.sq-hero-quick a:hover {
  border-color: rgba(250, 204, 21, 0.5);
  background: rgba(250, 204, 21, 0.12);
  color: #fff;
}

.sq-hero-disclaimer {
  margin-top: 1.25rem;
  max-width: 46rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.62);
}

/* ---- Stats strip ---- */
.sq-stats {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.28);
}

.sq-stats-grid {
  display: grid;
  gap: 1px;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  background: rgba(255, 255, 255, 0.06);
}

@media (min-width: 640px) {
  .sq-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .sq-stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.sq-stat {
  background: #101114;
  padding: 1.1rem 1rem;
}

.sq-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--sq-accent, #facc15);
  letter-spacing: -0.02em;
}

.sq-stat-label {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
}

.sq-stat-desc {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(247, 247, 251, 0.58);
}

/* ---- Hub / section rhythm ---- */
.sq-home {
  /* full-bleed main: sections handle their own max-width */
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-top: 0 !important;
}

.sq-section {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2.75rem 1rem;
}

.sq-section-alt {
  background: rgba(255, 255, 255, 0.025);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sq-section-alt > .sq-section {
  padding-top: 2.75rem;
  padding-bottom: 2.75rem;
}

.sq-mini-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sq-accent, #facc15);
}

.sq-section-head {
  max-width: 48rem;
}

.sq-section-head h2 {
  margin-top: 0.65rem;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
}

.sq-section-head p {
  margin-top: 0.65rem;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(247, 247, 251, 0.64);
}

.sq-section-head-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .sq-section-head-row {
    flex-direction: row;
    align-items: flex-end;
  }
}

/* Content cards — denser hub grid */
.sq-card-grid {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .sq-card-grid-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .sq-card-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .sq-card-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.sq-content-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(160deg, #17191f, #111113 70%);
  padding: 1.15rem 1.15rem 1.25rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  transition: border-color 0.15s, transform 0.15s;
}

.sq-content-card:hover {
  border-color: rgba(250, 204, 21, 0.4);
  transform: translateY(-2px);
}

.sq-content-card h3 {
  margin-top: 0.65rem;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
}

.sq-content-card p {
  margin-top: 0.45rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(247, 247, 251, 0.65);
  flex: 1;
}

.sq-content-card .sq-card-go {
  margin-top: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--sq-accent, #facc15);
}

/* CTA band */
.sq-cta-band {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(250, 204, 21, 0.28);
  background:
    radial-gradient(ellipse 70% 80% at 90% 50%, rgba(250, 204, 21, 0.12), transparent 55%),
    linear-gradient(135deg, #17191f, #111113);
  padding: 1.75rem 1.5rem;
  display: grid;
  gap: 1.25rem;
  align-items: center;
}

@media (min-width: 768px) {
  .sq-cta-band {
    grid-template-columns: 1fr auto;
    padding: 2rem 2rem;
  }
}

.sq-cta-band h2 {
  margin-top: 0.5rem;
  font-size: 1.65rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.sq-cta-band p {
  margin-top: 0.5rem;
  max-width: 40rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(247, 247, 251, 0.68);
}

.sq-cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* Guide list denser */
.sq-guide-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .sq-guide-list { grid-template-columns: repeat(2, 1fr); }
}

.sq-guide-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #17191f;
  padding: 0.95rem 1rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s;
}

.sq-guide-row:hover {
  border-color: rgba(250, 204, 21, 0.35);
}

.sq-guide-row h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
}

.sq-guide-row p {
  margin-top: 0.3rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(247, 247, 251, 0.58);
}

.sq-guide-row .sq-arrow {
  flex-shrink: 0;
  font-weight: 800;
  color: var(--sq-accent, #facc15);
  padding-top: 0.15rem;
}

/* Evidence / FAQ-ish bottom */
.sq-evidence-grid {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .sq-evidence-grid { grid-template-columns: repeat(3, 1fr); }
}

.sq-evidence-card {
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #111113;
  padding: 1.15rem;
}

.sq-evidence-card h3 {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
}

.sq-evidence-card p {
  margin-top: 0.45rem;
  font-size: 0.85rem;
  line-height: 1.55;
  color: rgba(247, 247, 251, 0.62);
}
