/* ==========================================================
   FYDELIA — SHARED SECTION STYLES (all pages)
   Bands, section headers, CTA, footer, cross-page components.
   ========================================================== */

/* ======================= BAND ALTERNATION ======================= */

section.band-light,
section.band-dark,
footer.band-dark {
  position: relative;
  z-index: 1;
  border-top: none;
  border-bottom: none;
}

/* ---- Light band: local CSS vars ---- */
section.band-light {
  --bg: #FFFFFF;
  --bg-1: #FAFAFA;
  --bg-2: #FFFFFF;
  --bg-3: #F2F2EE;
  --bg-4: #E8E8E2;
  --line: rgba(10, 10, 12, 0.07);
  --line-2: rgba(10, 10, 12, 0.11);
  --line-strong: rgba(10, 10, 12, 0.16);
  --fg: #0A0A0C;
  --fg-2: #2A2A30;
  --fg-3: #000000;
  --fg-4: #000000;
  --red: #E91E1E;
  --red-500: #E91E1E;
  --red-glow-soft: rgba(233, 30, 30, 0.08);
  background-color: #FFFFFF;
  color: var(--fg);
}

/* ---- Dark band: local CSS vars ---- */
section.band-dark,
footer.band-dark {
  --bg: #0A0A0C;
  --bg-1: #0F0F12;
  --bg-2: #141419;
  --bg-3: #1C1C22;
  --bg-4: #25252D;
  --line: rgba(255, 255, 255, 0.06);
  --line-2: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.14);
  --fg: #F5F5F7;
  --fg-2: #C8C8CE;
  --fg-3: #8B8B94;
  --fg-4: #787880;
  --red-glow-soft: rgba(255, 43, 43, 0.12);
  background-color: #0A0A0C;
  color: var(--fg);
}

/* sr-head sticky background fix on light/dark bands */
section.band-light .sr-head {
  background: linear-gradient(180deg, #FFFFFF 70%, transparent);
}
section.band-dark .sr-head {
  background: linear-gradient(180deg, #0A0A0C 70%, transparent);
}

/* Band sections use flat horizontal edges via background-color (band-light / band-dark). */

/* ======================= GENERIC SECTION HEADER ======================= */
.sec-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 64px;
  max-width: 740px;
}
.sec-head--center { margin-left: auto; margin-right: auto; text-align: center; align-items: center; }
.sec-head h2 { margin: 0; }
.sec-head .lead { font-size: 19px; color: var(--fg-3); max-width: 580px; }

.adcards-feats {
  list-style: none; margin-top: 36px;
  display: flex; flex-direction: column; gap: 18px;
}
.adcards-feats li {
  display: flex; gap: 14px; align-items: flex-start;
  font-size: 15.5px; color: var(--fg-2);
}
.ad-check {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 6px;
  background: rgba(255,43,43,0.12);
  border: 1px solid rgba(255,43,43,0.3);
  display: grid; place-items: center;
  color: var(--red);
  font-size: 13px;
  margin-top: 1px;
}
@media (prefers-reduced-motion: reduce) {
  .adcards-slide,
  .adcards-slide.is-prev,
  .adcards-slide.is-active img,
  .adcards-dot {
    transition: none;
    animation: none;
    filter: none;
  }
  .gami-arcade-btn__face,
  .gami-arcade-btn__ring {
    animation: none;
  }
}
.gami-arcade-btn {
  display: inline-block;
  margin-top: 32px;
  position: relative;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.gami-arcade-btn__ring {
  position: absolute;
  inset: -10px -14px;
  border: 3px solid var(--fg-4);
  border-radius: 22px;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.06),
    0 8px 20px rgba(0, 0, 0, 0.25);
  animation: gami-arcade-ring-pulse 1.8s ease-in-out infinite;
}

.gami-arcade-btn__face {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: min(100%, 340px);
  padding: 24px 40px;
  font-family: var(--sans);
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
  background: linear-gradient(180deg, #ff5a5a 0%, var(--red) 42%, var(--red-700) 100%);
  border: 3px solid #111;
  border-radius: 16px;
  box-shadow:
    0 7px 0 #7a0f0f,
    0 12px 28px rgba(0, 0, 0, 0.35),
    inset 0 3px 0 rgba(255, 255, 255, 0.35),
    inset 0 -4px 0 rgba(0, 0, 0, 0.15);
  animation: gami-arcade-pulse 1.8s ease-in-out infinite;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gami-arcade-btn:hover .gami-arcade-btn__face {
  animation-play-state: paused;
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    0 9px 0 #7a0f0f,
    0 16px 36px rgba(229, 30, 30, 0.45),
    inset 0 3px 0 rgba(255, 255, 255, 0.4),
    inset 0 -4px 0 rgba(0, 0, 0, 0.15);
}

.gami-arcade-btn:active .gami-arcade-btn__face {
  animation: none;
  transform: translateY(5px);
  box-shadow:
    0 2px 0 #7a0f0f,
    0 4px 12px rgba(0, 0, 0, 0.3),
    inset 0 2px 0 rgba(255, 255, 255, 0.2),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}

@keyframes gami-arcade-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow:
      0 7px 0 #7a0f0f,
      0 12px 28px rgba(0, 0, 0, 0.35),
      inset 0 3px 0 rgba(255, 255, 255, 0.35),
      inset 0 -4px 0 rgba(0, 0, 0, 0.15),
      0 0 0 0 var(--red-glow);
  }
  50% {
    transform: scale(1.05);
    box-shadow:
      0 7px 0 #7a0f0f,
      0 16px 44px rgba(255, 43, 43, 0.5),
      inset 0 3px 0 rgba(255, 255, 255, 0.45),
      inset 0 -4px 0 rgba(0, 0, 0, 0.15),
      0 0 36px 6px var(--red-glow);
  }
}

@keyframes gami-arcade-ring-pulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.02); }
}
/* ======================= CTA ======================= */
.cta-sec {
  padding: 140px 0;
  position: relative;
  overflow: hidden;
  /*border-top: 1px solid var(--line);*/
}
.cta-box {
  position: relative;
  padding: 80px 60px;
  border-radius: 28px;
  background:
    radial-gradient(ellipse 80% 100% at 50% 0%, rgba(255,43,43,0.15) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg) 100%);
  border: 1px solid var(--line-strong);
  text-align: center;
  overflow: hidden;
}
.cta-box::before {
  content: ''; position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 50% 60% at 50% 40%, black 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 50% 60% at 50% 40%, black 10%, transparent 70%);
  pointer-events: none;
}
.cta-box::after {
  content: ''; position: absolute;
  top: -1px; left: 20%; right: 20%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}
.cta-box > * { position: relative; }
.cta-box h2 { font-size: clamp(36px, 4.4vw, 64px); margin-bottom: 18px; }
.cta-box p { font-size: 18px; color: var(--fg-3); max-width: 520px; margin: 0 auto 36px; }

.cta-form {
  display: flex; gap: 8px;
  max-width: 480px;
  margin: 0 auto;
  padding: 6px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 14px;
}
.cta-form input {
  flex: 1;
  background: transparent; border: none; outline: none;
  font-family: var(--mono);
  font-size: 14.5px;
  color: var(--fg);
  padding: 10px 14px;
}
.cta-form .btn-solid {
  color: #fff;
}

.cta-form input::placeholder { color: var(--fg-4); }

.cta-meta {
  margin-top: 24px;
  font-family: var(--mono); font-size: 12px;
  color: var(--fg-4);
  letter-spacing: 0.1em;
}

/* ======================= FOOTER ======================= */
footer.ft {
  padding: 80px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--bg-1);
}
footer.ft.band-dark {
  background-color: #0A0A0C;
  border-top: none;
}
.ft-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.8fr) repeat(4, minmax(0, 1fr));
  gap: 48px 32px;
  margin-bottom: 48px;
}
.ft-brand-col .brand { margin-bottom: 20px; display: inline-block; }
.ft-brand-col .brand-logo { height: 36px; width: auto; }
.ft-brand-col p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--fg-4);
  max-width: 320px;
}
.ft-col h3 {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--fg-3);
  margin-bottom: 18px;
  font-weight: 500;
  line-height: 1.2;
}
.ft-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ft-col a,
.ft-col li {
  color: var(--fg-3);
  font-size: 14px;
  line-height: 1.45;
}
.ft-col a { transition: color 0.2s; }
.ft-col a:hover { color: var(--fg); }
.ft-col .ft-location { color: var(--fg); }

.ft-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding-top: 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-4);
  letter-spacing: 0.05em;
}

/* Centered footer social icons */
.ft-social-centered {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding-top: 28px;
  margin-bottom: 24px;
  border-top: 1px solid var(--line);
}
.ft-social-link-small {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--fg-4);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s var(--ease);
}
.ft-social-link-small svg {
  width: 13px;
  height: 13px;
}
.ft-social-link-small:hover {
  color: var(--red);
  background: rgba(255, 43, 43, 0.1);
  border-color: var(--red);
  transform: translateY(-2px);
}

@media (max-width: 1100px) {
  .ft-grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
  .ft-brand-col { grid-column: 1 / -1; }
  .ft-brand-col p { max-width: 520px; }
}

@media (max-width: 580px) {
  .ft-grid { grid-template-columns: 1fr; gap: 32px; }
  .ft-bottom { flex-direction: column; gap: 8px; text-align: center; }
}