/* =========================================================
   Pacto Invisível / Invisible Alliance — styles.css (clean)
   - Removes duplicate/conflicting rules
   - Fixes language visibility (display: revert)
   - Unifies section spacing/backgrounds
   - Keeps your cinematic look
   - Improves mobile nav + frames grid
   ========================================================= */

/* ============ Base / Tokens ============ */

:root {
  --bg: #05070c;
  --bg-elevated: #101621;
  --bg-elevated-soft: #151c28;
  --bg-alt: #0b111b;

  --accent: #f5b240;
  --accent-soft: rgba(245, 178, 64, 0.12);

  --text: #f5f7fa;
  --muted: #9aa3b8;

  --danger: #ff6b6b;

  --radius-lg: 18px;
  --radius-md: 10px;

  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.55);

  --max-width: 1240px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Roboto", sans-serif;
  color: var(--text);

  /* Poster-inspired cinematic background (single source of truth) */
  background:
    radial-gradient(circle at 50% 40%, rgba(218, 166, 90, 0.32) 0%, rgba(218, 166, 90, 0.15) 22%, rgba(0, 0, 0, 0) 55%),
    radial-gradient(circle at 10% 35%, rgba(70, 55, 45, 0.35) 0%, rgba(0, 0, 0, 0) 55%),
    radial-gradient(circle at 85% 90%, rgba(14, 22, 36, 0.65) 0%, rgba(5, 7, 12, 0.0) 55%),
    radial-gradient(circle at center, rgba(0, 0, 0, 0.0) 0%, rgba(0, 0, 0, 0.65) 80%),
    #05070c;
}

/* If you keep .page-bg in HTML, it stays invisible */
.page-bg {
  background: transparent;
}

body.support-page .nav-links {
  justify-content: center;
}

/* Optional: center it nicely */
.nav-links--single {
  gap: 0;
}

.watch-doc-link {
  font-weight: 600;
  letter-spacing: 0.02em;
}



.watch-doc-link {
  font-weight: 600;
  letter-spacing: 0.02em;
}



/* ============ Layout ============ */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Unified section spacing — removes the need for <br> hacks */
.section {
  padding: 4.5rem 0;
  background: transparent;
}

.section-alt {
  padding: 4.5rem 0;
  background: rgba(10, 14, 23, 0.18);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.section-header {
  margin: 0 0 2rem;
}

.section-header h2 {
  font-size: 1.9rem;
  margin: 0 0 0.5rem;
}

.section-header p {
  margin: 0;
  color: var(--muted);
  max-width: 42rem;
}

/* ============ IMDB Badge ============ */

.imdb-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;

  background: linear-gradient(145deg, #f5b240, #d89a2c);
  color: #111 !important;
  border-radius: 6px;
  text-decoration: none;

  box-shadow:
    0 0 0 1px rgba(245, 178, 64, 0.55),
    0 4px 14px rgba(0, 0, 0, 0.45);

  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.imdb-badge:hover {
  transform: translateY(-1px);
  background: linear-gradient(145deg, #ffc75a, #f5b240);
  box-shadow:
    0 0 0 1px rgba(255, 210, 120, 0.85),
    0 6px 18px rgba(0, 0, 0, 0.55);
}

.imdb-badge:active {
  transform: translateY(0);
  box-shadow:
    0 0 0 1px rgba(245, 178, 64, 0.5),
    0 3px 10px rgba(0, 0, 0, 0.4);
}

/* ============ Header ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);

  background: linear-gradient(
    to bottom,
    rgba(5, 7, 12, 0.9),
    rgba(5, 7, 12, 0.7),
    transparent
  );
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem 0.75rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #f5b240, #c47a19);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  box-shadow: 0 0 0 2px rgba(245, 178, 64, 0.3);
}

.logo-text span:first-child {
  font-weight: 700;
  letter-spacing: 0.03em;
}

.logo-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
}

/* ============ Nav ============ */

.site-nav {
  position: relative; /* helps absolute mobile menu placement */
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  position: relative;
  padding-bottom: 0.15rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  width: 100%;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(12, 17, 27, 0.8);
  padding: 0.15rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  cursor: pointer;
}

.lang-btn.active {
  background: var(--accent);
  color: #111;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 28px;
  height: 24px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 999px;
}

/* ============ Buttons ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #f5b240, #f99b1f);
  color: #111;
  box-shadow: 0 10px 24px rgba(249, 155, 31, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(249, 155, 31, 0.45);
}

.btn-ghost {
  background: rgba(11, 16, 26, 0.8);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.btn-ghost:hover {
  background: rgba(17, 24, 38, 0.95);
}

.btn-large {
  padding-inline: 1.8rem;
  font-size: 0.95rem;
}

/* Ensure lang-specific buttons show as inline-flex */
html[data-lang="pt"] .btn.lang-pt,
html[data-lang="en"] .btn.lang-en {
  display: inline-flex;
}
html[data-lang="es"] .lang-es,
html[data-lang="ar"] .lang-ar { display: revert; }


/* ============ Hero ============ */

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.2fr);
  gap: 2.5rem;

  border-radius: 26px;
  padding: 2.5rem;

  box-shadow: var(--shadow-soft);
  overflow: hidden;
  position: relative;
  align-items: stretch;

  background-image:
    linear-gradient(
      to right,
      rgba(5, 7, 12, 0.92),
      rgba(5, 7, 12, 0.6),
      rgba(5, 7, 12, 0.2)
    ),
    url("https://invisiblealliance.com/hero-poster.jpg");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

.hero-text {
  max-width: 36rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 340px;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: var(--accent);
  margin: 0;
}

.hero-title {
  font-size: clamp(2.6rem, 4.1vw, 3.4rem);
  margin: 0;
}

.hero-tagline {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
  max-width: 32rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}

.hero-logline {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.hero-actions .btn {
  min-width: 190px;
  justify-content: center;
}

.hero-actions .btn-primary {
  font-weight: 600;
}

/* On larger screens, push actions to the bottom */
@media (min-width: 1024px) {
  .hero-text {
    min-height: 420px;
  }
  .hero-actions {
    margin-top: auto;
  }
}

/* Hero side */
.hero-side {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
}

/* Poster card */
.poster-card {
  background: rgba(5, 7, 12, 0.9);
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.7);

  display: flex;
  align-items: center;
  justify-content: center;
}

.poster-image {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  display: none; /* controlled by lang rules below */
}

/* ============ Info card ============ */

.info-card {
  position: relative;
  border-radius: 26px;
  padding: 2rem 2.25rem;
  min-height: 100%;

  background-image:
    linear-gradient(
      to bottom right,
      rgba(5, 7, 12, 0.90),
      rgba(5, 7, 12, 0.78)
    ),
    url("https://invisiblealliance.com/images/pacto_bg.jpg");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;

  border: 1px solid rgba(245, 178, 64, 0.32);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.75);
}

.info-title {
  margin: 0 0 1rem;
}

.info-list {
  margin: 0;
  padding: 0;
}

.info-list .info-item {
  margin-bottom: 1rem;
}

.info-list dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin: 0 0 0.15rem;
}

.info-list dd {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text);
}

/* ============ Trailer (isolated 16:9) ============ */

.trailer-frame {
  position: relative;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;

  aspect-ratio: 16 / 9;

  border-radius: 18px;
  overflow: hidden;
  background: #000;

  box-shadow:
    0 0 0 3px rgba(0, 0, 0, 0.45),
    0 18px 40px rgba(0, 0, 0, 0.6);
}

.trailer-frame > * {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* cover button */
.trailer-cover {
  border: none;
  padding: 0;
  cursor: pointer;
  background: transparent;
}

.trailer-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.trailer-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.65));
}

.trailer-cover-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  line-height: 1;
  color: #fff;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
}

.trailer-cover-text {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.trailer-cover:hover .trailer-cover-overlay {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.7));
}

.trailer-cover:hover .trailer-cover-play {
  transform: translate(-50%, -50%) scale(1.05);
}

.trailer-frame iframe {
  border: none;
  width: 100%;
  height: 100%;
}

/* ============ Synopsis ============ */

.synopsis-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
  gap: 2rem;
}

.synopsis-card {
  background: rgba(9, 13, 23, 0.9);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.7rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.6);
}

.synopsis-card h3,
.synopsis-card h4 {
  margin-top: 0;
}

.synopsis-card p {
  margin: 0 0 0.9rem;
  color: var(--muted);
}

/* readable text alignment */
.hero-logline,
.synopsis-card p {
  text-align: left;
}

@media (min-width: 900px) {
  .hero-logline,
  .synopsis-card p {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
  }
}

.tech-box {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: radial-gradient(circle at top left, #1c2434, #070a11);
  border: 1px solid rgba(245, 178, 64, 0.3);
}

.tech-box h4 {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
}

.tech-box ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ============ Themes chips ============ */

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(245, 178, 64, 0.35);
  background: var(--accent-soft);
  font-size: 0.8rem;
  color: var(--text);
}

/* ============ Frames grid ============ */

.frames-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 1rem;
}

.frame-card {
  background: rgba(10, 14, 23, 0.95);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 12px 28px rgba(0,0,0,0.55);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.frame-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.frame-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.75);
}

/* ============ Help card ============ */

.help-card {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;

  background: radial-gradient(circle at top left, #2a1b18, #090b10);
  padding: 1.75rem 1.6rem;
  border-radius: var(--radius-lg);

  border: 1px solid rgba(245, 178, 64, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.75);
}

.help-text h2 {
  margin: 0 0 0.6rem;
}

.help-text p {
  margin: 0 0 0.6rem;
  max-width: 36rem;
  color: var(--muted);
}

/* ============ Contact form ============ */

.contact-form {
  background: rgba(8, 11, 20, 0.96);
  padding: 2rem 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.7);
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.form-field {
  flex: 1;
  min-width: 220px;
  margin-bottom: 1rem;
}

.form-field label {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

input,
select,
textarea {
  width: 100%;
  background: #050812;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.65rem 0.7rem;
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(245, 178, 64, 0.4);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.form-status {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ============ Footer ============ */

.site-footer {
  padding: 1.8rem 0 2.2rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
}

/* ============ Language visibility (fixed) ============ */

.lang {
  display: none;
}

html[data-lang="pt"] .lang-pt,
html[data-lang="en"] .lang-en {
  display: revert;
}

@supports not (display: revert) {
  html[data-lang="pt"] .lang-pt,
  html[data-lang="en"] .lang-en {
    display: initial;
  }
}

/* Poster images: only show active language version */
html[data-lang="pt"] .poster-image.lang-pt {
  display: block;
}

html[data-lang="en"] .poster-image.lang-en {
  display: block;
}

html[data-lang="pt"] .poster-image.lang-en,
html[data-lang="en"] .poster-image.lang-pt {
  display: none;
}

/* ============ Responsive ============ */

@media (max-width: 1100px) {
  .frames-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    padding: 1.75rem 1.5rem 2.25rem;
  }

  .hero-side {
    order: -1;
  }

  .synopsis-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .header-inner {
    padding-inline: 1rem;
  }

  /* tighter sections on mobile */
  .section,
  .section-alt {
    padding: 18px 0;
  }

  .section-header {
    margin-bottom: 10px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    gap: 0.75rem;
  }

  .nav-links {
    position: absolute;
    right: 0;
    top: 56px;
    flex-direction: column;
    background: rgba(6, 9, 16, 0.97);
    padding: 0.8rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);

    transform: translateY(-6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
    min-width: 220px;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
  }

  .hero-inner {
    margin-top: 0.75rem;
    gap: 1.25rem;
  }

  .help-card {
    align-items: flex-start;
  }

  .contact-form {
    padding-inline: 1.25rem;
  }

  .frames-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 6px;
  }

  .frame-card {
    border-radius: 16px;
  }

  .poster-card {
    padding: 0.6rem;
  }
}

/* Very small phones: 1 column for big thumbnails */
@media (max-width: 420px) {
  .frames-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

    /* SUPPORT PAGE */
    .support-wrap {
      padding-top: 3.5rem;
      padding-bottom: 4rem;
      max-width: 900px;
    }

    .support-hero {
      margin-bottom: 2.25rem;
    }

    .support-hero .section-header {
      margin-bottom: 1.25rem;
    }

    .support-cta-row {
      display: flex;
      flex-wrap: wrap;
      gap: 0.9rem;
      margin-top: 1rem;
    }

    .support-cta-row .btn {
      min-width: 230px;
      justify-content: center;
    }

    .trust-note {
      margin-top: 1rem;
      color: var(--muted);
      font-size: 0.92rem;
      line-height: 1.6;
    }

    .trust-list {
      margin: 1rem 0 0;
      padding-left: 1.1rem;
      color: var(--muted);
    }

    .trust-list li {
      margin: 0.35rem 0;
    }

    .support-divider {
      height: 1px;
      background: rgba(255,255,255,0.08);
      border: 0;
      margin: 2.2rem 0;
    }


/* ================================
   CLEAN HERO (Hagar-style)
   ================================ */

/* Optional: make header simpler on this page only */

body.support-page .site-nav {
  gap: 0.75rem;
}

/* Big clean hero with background image + soft overlay */
.hero-clean {
  position: relative;
  padding: 5.5rem 0 3.5rem;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  isolation: isolate; /* keeps overlays contained */
}

/* Center content in a readable glass card */
.hero-clean-inner {
  max-width: 780px;
}

.hero-clean-card {
  background: rgba(5, 7, 12, 0.72);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  padding: 1.75rem 1.75rem 1.6rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-clean h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(2rem, 3.5vw, 2.7rem);
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.hero-clean p {
  margin: 0;
  color: rgba(245,247,250,0.85);
  line-height: 1.6;
  max-width: 55ch;
}

/* CTA row (clean + simple) */
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.25rem;
}

.hero-cta-row .btn {
  min-width: 240px;
  justify-content: center;
}

/* Small trust note under CTAs */
.hero-trust {
  margin-top: 0.9rem;
  color: rgba(154,163,184,0.95);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* Mobile spacing */
@media (max-width: 768px) {
  .hero-clean {
    padding: 1.2rem 0 1.2rem;
    border-radius: 18px;
  }
  .hero-clean-card {
    padding: 1.25rem;
    border-radius: 18px;
  }
  .hero-cta-row .btn {
    min-width: 100%;
  }
}

/* ================================
   HERO BACKGROUND IMAGE
   ================================ */

.hero-clean {
  position: relative;
  overflow: hidden;
}

.hero-clean::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/images/Poster_Pacto_PT_Final.webp") center / cover no-repeat;
  z-index: -2;
}


.hero-clean::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 35% 30%, rgba(245,178,64,0.25) 0%, rgba(0,0,0,0) 55%),
    linear-gradient(to bottom, rgba(5,7,12,0.35), rgba(5,7,12,0.75));
  background-blend-mode: multiply;
  z-index: -1;
}
/* =========================================
   SUPPORT PAGE — polish + alerts
   ========================================= */

/* (Optional) add this class to <body> in support.php: <body class="support-page"> */
body.support-page .support-wrap {
  padding-top: 3.25rem;
  padding-bottom: 4rem;
  max-width: 980px; /* slightly wider for the video */
}

body.support-page .support-cta-row .btn {
  min-width: 260px;
}

@media (max-width: 768px) {
  body.support-page .support-wrap {
    padding-top: 1.6rem;
    padding-bottom: 2.5rem;
  }
  body.support-page .support-cta-row .btn {
    min-width: 100%;
  }
}

/* Trailer width modifier to replace inline style="max-width:900px" */
.trailer-frame--wide {
  max-width: 900px;
}

.support-card-top { margin-top: 1.25rem; }
.support-tight { margin-top: 0; }

/* =========================================
   Support Hero background that fades down
   ========================================= */

body.support-page .support-hero{
  position: relative;
  isolation: isolate;
  padding-bottom: 2.25rem;
}

body.support-page .support-hero::before{
  content: "";
  position: absolute;

  left: 50%;
  transform: translateX(-50%);
  width: 100vw;

  top: -140px;
  height: 980px; /* ⬅️ MUCH TALLER */

  background-image: url("/images/Poster_Pacto_PT_Final.webp");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;

  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 55%,   /* ⬅️ hold full opacity longer */
    rgba(0,0,0,0.85) 72%,
    rgba(0,0,0,0.4) 88%,
    rgba(0,0,0,0) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 55%,
    rgba(0,0,0,0.85) 72%,
    rgba(0,0,0,0.4) 88%,
    rgba(0,0,0,0) 100%
  );

  opacity: 0.65;
  z-index: -2;
}


body.support-page .support-hero::after{
  content: "";
  position: absolute;

  left: 50%;
  transform: translateX(-50%);
  width: 100vw;

  top: -140px;
  height: 980px;

  background:
    radial-gradient(circle at 40% 30%, rgba(245,178,64,0.28) 0%, rgba(0,0,0,0) 60%),
    linear-gradient(
      to bottom,
      rgba(5,7,12,0.15) 0%,
      rgba(5,7,12,0.85) 70%,
      rgba(5,7,12,0.00) 100%  /* ✅ fade OUT to match page */
    );

  /* ✅ fade the overlay itself so there’s no seam */
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 65%,
    rgba(0,0,0,0.0) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 65%,
    rgba(0,0,0,0.0) 100%
  );

  z-index: -1;
  pointer-events: none;
}




.support-cta-row--center{
  justify-content: center;
}

body.support-page .support-hero-actions{
  margin-top: 1.1rem;
}

body.support-page .trailer-frame{
  position: relative;
  z-index: 1;
}

@media (max-width: 768px){
  body.support-page .support-hero::before,
  body.support-page .support-hero::after{
    top: -100px;
    height: 780px;
    background-position: center center;
  }
}


/* REMOVE glass / dark backdrop behind trailer on support page */
body.support-page .support-wrap,
body.support-page .support-hero {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
body.support-page .trailer-frame {
  background: transparent !important;
  box-shadow:
    0 18px 40px rgba(0,0,0,0.6);
}

/* =========================================
   Support page – custom video thumbnail
   ========================================= */

.trailer-cover{
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.trailer-cover-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.trailer-cover-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.10), rgba(0,0,0,0.55));
  transition: background 0.25s ease;
}

.trailer-play{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  border-radius: 999px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0,0,0,0.55);
  border: 2px solid rgba(245,178,64,0.85);

  font-size: 1.4rem;
  color: #f5b240;

  box-shadow: 0 10px 26px rgba(0,0,0,0.7);
  transition: transform 0.2s ease, background 0.2s ease;
}

.trailer-cover:hover .trailer-play{
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(0,0,0,0.75);
}

.trailer-cover:hover .trailer-cover-overlay{
  background: linear-gradient(to bottom, rgba(0,0,0,0.05), rgba(0,0,0,0.70));
}

/* === Buttons with icons === */
.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-icon-svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Subtle cinematic hover */
.btn-icon:hover .btn-icon-svg {
  transform: translateX(2px) scale(1.05);
  opacity: 1;
}

/* ================================
   RTL (Arabic) safety fixes
   Prevent horizontal overflow on mobile
   ================================ */

html[dir="rtl"],
html[dir="rtl"] body {
  overflow-x: hidden;
}

/* Make Arabic blocks behave nicely */
html[dir="rtl"] .lang-ar {
  direction: rtl;
  unicode-bidi: plaintext;
}

/* Prevent any long text/URLs from forcing sideways scroll */
body, .container, .synopsis-card, .help-card, .contact-form, .site-header {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Optional: align text in Arabic a bit nicer */
html[dir="rtl"] .section-header,
html[dir="rtl"] .synopsis-card,
html[dir="rtl"] .help-card,
html[dir="rtl"] .contact-form {
  text-align: right;
}
/* Honeypot: hidden without causing layout overflow */
.hp-field {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}




