/* === Twitchy side stripes — phones + iPad (Hello + Elementor) === */
:root{
  --rail-w: 12px;             /* thickness of each side rail */
  --rail-step: 32px;          /* red/white repeat height */
  --rail-red: #ff2e2e;
  --rail-white: #ffffff;
}

/* Up to big tablet in portrait. Raise to 1366px if you want iPad Pro landscape too. */
@media (max-width: 1200px){

  /* keep content from hiding under the rails */
  html, body { 
    padding-left: var(--rail-w); 
    padding-right: var(--rail-w); 
  }

  /* draw rails on the viewport itself so headers/sections can't cover them */
  html::before,
  html::after{
    content:"";
    position: fixed;           /* sticks to the viewport */
    top: 0; 
    bottom: 0;
    width: var(--rail-w);
    z-index: 999999;           /* above Elementor headers/overlays */
    pointer-events: none;      /* never block taps */
    background: repeating-linear-gradient(
      to bottom,
      var(--rail-red) 0 calc(var(--rail-step)/2),
      var(--rail-white) calc(var(--rail-step)/2) var(--rail-step)
    );
    will-change: transform;
  }
  html::before { left: 0; }
  html::after  { right: 0; }

  /* prevent accidental horizontal scroll */
  body { overflow-x: hidden; }

  /* make sure headers/footers don't clip the rails */
  header, 
  .elementor-location-header,
  .elementor-location-footer,
  .site { 
    overflow: visible !important; 
  }
}

/* If the WP admin bar shows on mobile/tablet, you could adjust rails here if needed */
/* (kept simple for now) */


/* === Hide ONLY the theme's built-in footer, not custom ones === */
/* Adjust these selectors if your theme uses a specific footer ID/class */

#colophon,
#footer,
.theme-footer,
.ast-footer,
.kadence-footer,
.generatepress-footer {
  display: none !important;
}

/* === Ensure custom Twitchy footer always shows === */
.twitchy-footer {
  display: block !important;
}

/* ================= CUSTOM TWITCHY FOOTER ================= */

.twitchy-footer {
  background: #000; 
  color: #fff;
  padding: 3rem 1.5rem;
  margin-top: 0;
}

.twitchy-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: center;
  gap: 2rem;
}

/* LEFT COLUMN */
.twitchy-footer-content {
  text-align: center;
}

.twitchy-footer-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.twitchy-footer-tagline {
  font-size: 0.95rem;
  color: #d1d5db;
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

/* BUTTONS */
.twitchy-footer-links {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1.4rem;
}

.twitchy-footer-btn {
  padding: 0.55rem 1.4rem;
  border-radius: 999px;
  border: 1px solid #fff;
  color: #fff !important;
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.twitchy-footer-btn:hover {
  background: #fff;
  color: #000 !important;
}

/* COPYRIGHT */
.twitchy-footer-copyright {
  font-size: 0.8rem;
  color: #cfcfcf;
  margin-top: 0.6rem;
  line-height: 1.4;
}

/* RIGHT COLUMN IMAGE */
.twitchy-footer-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.twitchy-footer-image img {
  height: 100%;
  max-height: 160px;
  width: auto;
  border-radius: 12px;
  object-fit: contain;
}

/* MOBILE STYLING */
@media (max-width: 800px) {
  .twitchy-footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .twitchy-footer-image img {
    max-height: 120px;
    margin-top: 1rem;
  }
}