/* =========================================================
   Intris – footer with GSAP parallax
   ========================================================= */

/* Hide the theme's old footer. Check the class with your browser's Inspect tool
   and change this selector if your theme uses a different one. */
.btSiteFooter,
.btSiteFooterWidgets,
.btSiteFooterCopyMenu { display: none !important; }

.if-footer {
  --if-bg: #1f2125;
  --if-bg-2: #2a2c31;
  --if-ink: #ffffff;
  --if-text: #bcbfc6;
  --if-muted: #8c9099;
  --if-line: rgba(255, 255, 255, .11);
  --if-accent: #ff5c72;
  --if-grad: linear-gradient(90deg, #c41e3a 0%, #692d8e 100%);
  --if-accent-strong: #c41e3a;
  --if-font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --if-font-head: "Sora", "Figtree", system-ui, sans-serif;

  position: relative;
  overflow: hidden;
  background:
    radial-gradient(55% 45% at 88% 0%, rgba(196, 30, 58, .20) 0%, transparent 70%),
    radial-gradient(45% 40% at 5% 100%, rgba(105, 45, 142, .28) 0%, transparent 70%),
    var(--if-bg);
  color: var(--if-text);
  font-family: var(--if-font);
  font-size: 16px;
  line-height: 1.6;
  isolation: isolate;
}
.if-footer *, .if-footer *::before, .if-footer *::after { box-sizing: border-box; }
:where(.if-footer) :is(p, ul, h2, h3) { margin: 0; padding: 0; }
.if-footer ul { list-style: none; }
.if-footer li { margin: 0; padding: 0; }
.if-footer li::before { display: none !important; }
.if-footer a { color: inherit; text-decoration: none; }

.if-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; z-index: 3;
  background: linear-gradient(90deg, #c41e3a, #8e9098 50%, #692d8e);
}
.if-inner { position: relative; will-change: transform; }

/* Rack-grid background layer (moves at its own speed) */
.if-grid-bg {
  position: absolute;
  inset: -20% 0 -20% 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
  will-change: transform;
}

.if-wrap {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

/* ---------- CTA ---------- */
.if-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px 48px;
  padding: clamp(72px, 10vw, 128px) 0 clamp(48px, 6vw, 72px);
  border-bottom: 1px solid var(--if-line);
}
.if-cta__title {
  flex: 1 1 560px;
  max-width: 900px;
  font-family: var(--if-font-head);
  font-size: clamp(28px, 3.6vw, 48px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--if-ink);
}
.if-line { display: block; overflow: hidden; padding-bottom: .06em; }
.if-line > span { display: block; will-change: transform; }

.if-cta__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.if-btn {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  padding: 0 32px;
  border-radius: 999px;
  background: #c41e3a;
  color: #fff !important;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 10px 28px -12px rgba(196, 30, 58, .7);
  transition: background-color .15s, transform .15s;
}
.if-btn:hover { background: #692d8e; transform: translateY(-1px); }
.if-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.if-cta__phone { font-size: 15px; color: var(--if-text); }
.if-cta__phone:hover { color: #fff; text-decoration: underline; }

/* ---------- Columns ---------- */
.if-cols {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr) 1.2fr;
  gap: 40px 32px;
  padding: clamp(48px, 6vw, 72px) 0;
}
.if-logo { display: inline-block; margin-bottom: 18px; }
.if-logo img { display: block; height: 44px; width: auto; filter: brightness(0) invert(1); } /* white logo on dark */
.if-brand__text { max-width: 32ch; font-size: 15px; margin-bottom: 22px; }

.if-social { display: flex; gap: 10px; }
.if-social a {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border: 1px solid var(--if-line);
  border-radius: 50%;
  color: var(--if-ink);
  transition: border-color .15s, color .15s, background-color .15s;
}
.if-social a:hover { border-color: #692d8e; background: #692d8e; color: #fff; }
.if-social svg { width: 18px; height: 18px; }

.if-col__title {
  margin-bottom: 16px !important;
  font-family: var(--if-font-head);
  font-size: 15px;
  font-weight: 600;
  color: var(--if-ink);
}
.if-col__title a:hover { color: var(--if-accent); }
.if-col ul { display: grid; gap: 10px; }
.if-col li a { font-size: 15px; color: var(--if-text); transition: color .15s; }
.if-col li a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.if-contact li:first-child a { font-family: var(--if-font-head); font-size: 18px; font-weight: 600; color: #fff; }
.if-muted { color: var(--if-muted); font-size: 14px; }

.if-footer a:focus-visible,
.if-footer button:focus-visible { outline: 2px solid var(--if-accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Bottom bar ---------- */
.if-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  padding: 22px 0;
  border-top: 1px solid var(--if-line);
  font-size: 14px;
  color: var(--if-muted);
}
.if-legal { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.if-legal a:hover { color: #fff; }
.if-top {
  margin-left: auto;
  padding: 8px 0;
  background: none;
  border: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--if-ink);
  cursor: pointer;
}
.if-top:hover { color: var(--if-accent); }

/* ---------- Giant wordmark ---------- */
.if-wordmark {
  position: relative;
  z-index: 1;
  margin-top: -2vw;
  line-height: .78;
  text-align: center;
  pointer-events: none;
  user-select: none;
}
.if-wordmark span {
  display: inline-block;
  font-family: var(--if-font-head);
  font-weight: 700;
  font-size: clamp(120px, 27vw, 420px);
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .14);
  background: linear-gradient(180deg, rgba(196,30,58,.34) 0%, rgba(105,45,142,.22) 45%, rgba(142,144,152,0) 80%);
  -webkit-background-clip: text;
          background-clip: text;
  will-change: transform;
  transform: translateY(8%);
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .if-cols { grid-template-columns: repeat(3, 1fr); }
  .if-col--brand { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px 32px; }
  .if-col--brand .if-logo, .if-col--brand .if-brand__text { margin: 0; }
}
@media (max-width: 720px) {
  .if-cols { grid-template-columns: 1fr 1fr; }
  .if-col--brand { display: block; }
  .if-col--brand .if-logo { margin-bottom: 16px; }
  .if-col--brand .if-brand__text { margin-bottom: 20px; }
  .if-col--contact { grid-column: 1 / -1; }
  .if-cta__actions, .if-btn { width: 100%; }
  .if-btn { justify-content: center; }
  .if-top { margin-left: 0; }
}
@media (max-width: 520px) {
  .if-cta__title { font-size: clamp(21px, 6.2vw, 28px); line-height: 1.15; }
}
@media (max-width: 420px) {
  .if-cols { grid-template-columns: 1fr; }
}
