/* ============================================================
   MODDING CAFE — FOOTER REBUILD (mockup parity)
   Loaded AFTER public.css / responsive.css / lang-vi.css / enhance.css
   so it overrides all earlier rules cleanly.
   ============================================================ */

.home-cta {
  background: var(--color-bg, #090b0c);
  border-top: 1px solid var(--color-border, rgba(255,255,255,0.12));
  padding: 56px 0 48px;
}

/* ===== 4-column grid (matches mockup) =====
   Width MUST match the main sections (--container-wide = 1440px) so the
   footer doesn't look "bị thu vào" / narrower than the content above it. */
.home-cta__row {
  display: grid;
  /* Workshop column +12%: 1.4fr → 1.6fr; col 1 thu nhỏ (less weight) */
  grid-template-columns: minmax(260px, 0.85fr) minmax(420px, 1.6fr) minmax(240px, 0.85fr) auto;
  gap: 44px;
  align-items: center;
  width: 100%;
  max-width: var(--container-wide, 1440px);
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 1100px) {
  .home-cta__row {
    grid-template-columns: 1fr 1fr;
    gap: 36px 32px;
  }
  .home-cta__col1     { grid-column: 1 / 2; }
  .home-cta__workshop { grid-column: 2 / 3; }
  .home-cta__socials  { grid-column: 1 / 2; }
  .home-cta__glyph    { grid-column: 2 / 3; justify-self: end; }
}
@media (max-width: 700px) {
  .home-cta__row { grid-template-columns: 1fr; gap: 28px; padding: 0 20px; }
  .home-cta__col1, .home-cta__workshop, .home-cta__socials, .home-cta__glyph {
    grid-column: 1 / 2;
    justify-self: stretch;
  }
  .home-cta__glyph { justify-self: center; }
}

/* ============================================================
   COL 1 — Title (2 màu) + Description + Button
   ============================================================ */
.home-cta__col1 { align-self: center; }

.home-cta__title {
  font-family: "Smooch Sans", sans-serif !important;
  font-weight: 700 !important;
  font-size: clamp(22px, 2vw, 32px) !important;       /* Barlow Condensed reads narrower → can stay slightly larger */
  line-height: 1.05 !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase !important;
  margin: 0 0 14px !important;
  white-space: normal !important;
}
.home-cta__title .home-cta__title-line {
  display: block;
  color: var(--color-text, #f5f5f5);
}
.home-cta__title .home-cta__title-accent {
  display: block;
  color: var(--color-orange, #FF6347);
  margin-top: 4px;
}
/* Backward-compat for legacy markup ".accent" inside title */
.home-cta__title .accent {
  display: block;
  color: var(--color-orange, #FF6347);
  white-space: normal !important;
  margin-top: 4px;
}

.home-cta__desc {
  font-family: "Barlow Condensed", sans-serif !important;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-dim, #b5b5b5);
  margin: 0 0 22px;
  max-width: 320px;
}

.home-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 22px;
  font-family: "Smooch Sans", sans-serif !important;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--color-orange, #FF6347);
  color: var(--color-orange, #FF6347);
  background: transparent;
  border-radius: 3px;
  transition: background .15s, color .15s;
}
.home-cta__btn:hover {
  background: var(--color-orange, #FF6347);
  color: #fff;
}

/* ============================================================
   COL 2 — Workshop image (LARGE + 4-side fade)
   ============================================================ */
.home-cta__workshop {
  position: relative;
  background-color: transparent;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 0 !important;
  border-radius: 6px;
  width: 100%;
  /* Larger visual presence (≈ +12%) — but capped so it never overlaps text/social */
  aspect-ratio: 16 / 9;
  min-height: 250px;
  max-height: 360px;

  /* 4-side fade via mask intersection */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image:
    linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 10%, #000 90%, transparent 100%);
          mask-composite: intersect;
}

/* Pseudo-overlay fallback — visible only if mask-composite not supported */
.home-cta__workshop::before,
.home-cta__workshop::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.home-cta__workshop::before {
  background:
    linear-gradient(to right, var(--color-bg, #090b0c) 0%, transparent 12%, transparent 88%, var(--color-bg, #090b0c) 100%);
}
.home-cta__workshop::after {
  background:
    linear-gradient(to bottom, var(--color-bg, #090b0c) 0%, transparent 12%, transparent 88%, var(--color-bg, #090b0c) 100%);
}

@media (min-width: 1100px) {
  .home-cta__workshop { max-height: 380px; }
}
@media (max-width: 700px) {
  .home-cta__workshop { min-height: 200px; max-height: 270px; }
}

/* ============================================================
   COL 3 — Socials (label / value aligned, no overflow)
   ============================================================ */
.home-cta__socials {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: center;
}
.home-cta__socials li {
  display: grid;
  grid-template-columns: 22px 1fr;
  column-gap: 14px;
  align-items: center;
}
.home-cta__social-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: color .15s;
}
a.home-cta__social-link:hover .label { color: var(--color-orange, #FF6347); }
a.home-cta__social-link:hover .val   { color: var(--color-orange, #FF6347); }
.home-cta__socials .ico {
  grid-row: 1 / span 2;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  color: var(--color-orange, #FF6347);
}
.home-cta__socials .ico svg { width: 18px; height: 18px; }
.home-cta__socials .label {
  font-family: "Smooch Sans", sans-serif !important;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--color-text-dim, #b5b5b5);
  text-transform: uppercase;
  line-height: 1.2;
}
.home-cta__socials .val {
  font-family: "Barlow Condensed", sans-serif !important;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text, #f5f5f5);
  line-height: 1.4;
  /* Constrain long values so social column never breaks the grid */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.home-cta__socials .val strong { font-weight: 700; }

/* ============================================================
   COL 4 — Logo glyph (Modding Cafe mark)
   ============================================================ */
.home-cta__glyph {
  width: clamp(120px, 11vw, 180px);
  align-self: center;
  justify-self: end;
}
.home-cta__glyph img,
.home-cta__glyph svg {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.95;
}

/* ============================================================
   FOOTER BOTTOM — copyright + privacy/terms
   ============================================================ */
.home-bottom {
  border-top: 1px solid var(--color-border, rgba(255,255,255,0.12));
  padding: 20px 40px;
  background: var(--color-bg, #090b0c);
}
.home-bottom__inner {
  width: 100%;
  max-width: var(--container-wide, 1440px);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: "Barlow Condensed", sans-serif !important;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-text-dim, #b5b5b5);
}
.home-bottom__inner .right { display: flex; gap: 20px; }
.home-bottom__inner a {
  color: var(--color-text-dim, #b5b5b5);
  text-decoration: none;
  transition: color .15s;
}
.home-bottom__inner a:hover { color: var(--color-orange, #FF6347); }

@media (max-width: 700px) {
  .home-bottom { padding: 18px 20px; }
  .home-bottom__inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .home-bottom__inner .right { gap: 14px; }
}
