/* ==========================================================================
   Site footer (templates/webapp/include/footer.html)
   Dark in both themes; light mode shifts it to a cooler charcoal.
   ========================================================================== */

.ft {
  --ft-bg:     #0A0A08;
  --ft-bg-2:   #121210;
  --ft-line:   rgba(245, 240, 232, .09);
  --ft-text:   rgba(245, 240, 232, .66);
  --ft-head:   #FFFFFF;
  --ft-muted:  rgba(245, 240, 232, .45);
  --ft-gold:   #C9A84C;
  --ft-gold-hi:#E8C97A;
  --ft-red:    #E06A76;
  --ft-sans:   'Jost', var(--ff-body, 'DM Sans'), system-ui, sans-serif;
  --ft-serif:  var(--ff-display, 'Cormorant Garamond'), Georgia, serif;
  --ft-ease:   cubic-bezier(.22, .61, .36, 1);

  position: relative;
  margin-top: 80px;
  padding: 0;
  overflow: hidden;
  background: var(--ft-bg);
  color: var(--ft-text);
  font-family: var(--ft-sans);
  border-top: 1px solid rgba(201, 168, 76, .25);
}

html[data-theme="light"] .ft {
  --ft-bg:   #14171B;
  --ft-bg-2: #1B1F24;
  --ft-line: rgba(255, 255, 255, .09);
  --ft-text: rgba(236, 239, 242, .68);
  --ft-muted:rgba(236, 239, 242, .45);
}

/* soft gold glow in the top-left corner */
.ft::before {
  content: '';
  position: absolute;
  top: -260px;
  left: -200px;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(201, 168, 76, .10), transparent 65%);
  pointer-events: none;
}

.ft .container { position: relative; width: min(100%, 1240px); }

.ft a { color: inherit; text-decoration: none; }

.ft-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ft-gold);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.ft-eyebrow::before { content: ''; width: 32px; height: 1px; background: currentColor; opacity: .7; }

/* ── Project band (inner pages) ───────────────────────────────────── */
.ft-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 36px 0;
  border-bottom: 1px solid var(--ft-line);
}

.ft-band h2 {
  margin: 10px 0 0;
  max-width: 640px;
  font-family: var(--ft-serif);
  font-size: clamp(26px, 2.8vw, 38px);
  font-weight: 500;
  line-height: 1.08;
  color: var(--ft-head);
}

.ft-band h2 em { color: var(--ft-gold-hi); font-style: italic; }

.ft-band__actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }

.ft-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}

.ft-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s ease; }
.ft .ft-btn--gold { background: var(--ft-gold); color: #0D0D0B; }
.ft .ft-btn--gold:hover { background: var(--ft-gold-hi); }
.ft-btn--gold:hover svg { transform: translateX(4px); }
.ft .ft-btn--line { border-color: rgba(255, 255, 255, .25); color: var(--ft-head); }
.ft .ft-btn--line:hover { border-color: var(--ft-gold); color: var(--ft-gold-hi); }

/* ── Columns ──────────────────────────────────────────────────────── */
.ft-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1.15fr);
  gap: clamp(28px, 4vw, 56px);
  padding: 44px 0 34px;
}

.ft-logo { display: inline-flex; align-items: center; gap: 14px; }
.ft-logo img { height: 42px; width: auto; }
.ft-logo span { display: grid; line-height: 1; }
.ft-logo strong { font-family: var(--ft-serif); font-size: 21px; font-weight: 600; color: var(--ft-head); }
.ft-logo small { margin-top: 6px; font-size: 9.5px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--ft-gold); }

.ft-brand p {
  max-width: 380px;
  margin: 16px 0 18px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
}

.ft-social { display: flex; gap: 10px; }

.ft-social a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ft-line);
  border-radius: 50%;
  transition: background .25s ease, border-color .25s ease, transform .25s var(--ft-ease);
}

.ft-social svg { width: 15px; height: 15px; fill: var(--ft-text); transition: fill .25s ease; }
.ft-social a:hover { background: var(--ft-gold); border-color: var(--ft-gold); transform: translateY(-3px); }
.ft-social a:hover svg { fill: #0D0D0B; }

.ft-col h4 {
  margin: 0 0 16px;
  color: var(--ft-head);
  font-family: var(--ft-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.ft-col ul { margin: 0; padding: 0; list-style: none; }
.ft .ft-col--split ul { display: grid; grid-template-columns: repeat(2, max-content); column-gap: 36px; row-gap: 8px; }
.ft .ft-col--split li + li { margin-top: 0; }
.ft-col li { line-height: 1.5; }
.ft-col li + li { margin-top: 8px; }

.ft-col nav a,
.ft-col > ul a {
  position: relative;
  display: inline-block;
  font-size: 14px;
  transition: color .25s ease, transform .3s var(--ft-ease);
}

.ft-col > ul a::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 50%;
  width: 8px;
  height: 1px;
  background: var(--ft-gold);
  opacity: 0;
  transition: opacity .25s ease;
}

.ft-col > ul a:hover { color: var(--ft-head); transform: translateX(14px); }
.ft-col > ul a:hover::before { opacity: 1; }

/* contact list */
.ft .ft-contact__list li { display: flex; gap: 14px; align-items: flex-start; }
.ft .ft-contact__list li + li { margin-top: 12px; }
.ft .ft-contact__list a:hover { color: var(--ft-gold-hi); transform: none; }
.ft .ft-contact__list a::before { display: none; }

.ft-ico {
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid rgba(201, 168, 76, .3);
  border-radius: 50%;
}

.ft-ico svg { width: 14px; height: 14px; fill: none; stroke: var(--ft-gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.ft-contact__list small {
  display: block;
  margin-bottom: 2px;
  color: var(--ft-muted);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.ft-contact__list span { font-size: 14px; line-height: 1.45; color: var(--ft-text); }

.ft-blood {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 10px 14px;
  border: 1px solid rgba(224, 106, 118, .28);
  background: rgba(224, 106, 118, .06);
  transition: background .25s ease, border-color .25s ease;
}

.ft-blood svg { width: 22px; height: 22px; flex: none; fill: var(--ft-red); }
.ft-blood strong { display: block; color: var(--ft-head); font-size: 14px; font-weight: 500; }
.ft-blood small { display: block; color: var(--ft-muted); font-size: 12px; }
.ft-blood:hover { background: rgba(224, 106, 118, .14); border-color: var(--ft-red); }

/* ── Big wordmark ─────────────────────────────────────────────────── */
.ft-wordmark {
  margin: 0;
  padding: 0 16px 18px;
  font-family: var(--ft-serif);
  font-size: clamp(22px, 4.3vw, 64px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.01em;
  text-align: center;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 168, 76, .16);
  background: linear-gradient(180deg, rgba(201, 168, 76, .10), transparent 85%);
  -webkit-background-clip: text;
  background-clip: text;
  user-select: none;
  pointer-events: none;
}

/* ── Bottom bar ───────────────────────────────────────────────────── */
.ft-bottom {
  position: relative;
  border-top: 1px solid var(--ft-line);
  background: var(--ft-bg-2);
}

.ft-bottom__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 50px;
}

.ft-bottom p { margin: 0; font-size: 13px; color: var(--ft-muted); }
.ft-credit {
  padding-left: 24px;
  border-left: 1px solid var(--ft-line);
}
.ft-credit strong {
  color: var(--ft-gold);
  font-weight: 500;
  letter-spacing: .02em;
}

.ft-legal { display: flex; flex-wrap: wrap; gap: 26px; margin-left: auto; }
.ft-legal a { font-size: 13px; color: var(--ft-muted); transition: color .25s ease; }
.ft-legal a:hover { color: var(--ft-gold-hi); }

.ft-top {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid rgba(201, 168, 76, .4);
  transition: background .25s ease, transform .25s var(--ft-ease);
}

.ft-top svg { width: 16px; height: 16px; fill: none; stroke: var(--ft-gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ft-top:hover { background: var(--ft-gold); transform: translateY(-3px); }
.ft-top:hover svg { stroke: #0D0D0B; }

.ft a:focus-visible { outline: 2px solid var(--ft-gold); outline-offset: 3px; }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .ft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ft-band { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .ft { margin-top: 56px; }
  .ft-grid { grid-template-columns: 1fr 1fr; padding: 40px 0 28px; gap: 32px 20px; }
  .ft-brand, .ft-contact { grid-column: 1 / -1; }
  .ft-band { padding: 32px 0; }
  .ft-band__actions, .ft-btn { width: 100%; justify-content: center; }
  .ft-bottom__inner { flex-wrap: wrap; justify-content: center; text-align: center; padding: 18px 0; }
  .ft-legal { margin-left: 0; justify-content: center; gap: 18px; }
  .ft-credit { padding-left: 0; border-left: 0; width: 100%; }
  .ft-copy { width: 100%; }
  .ft-top { display: none; }
  .ft-wordmark { white-space: normal; font-size: 30px; line-height: 1.05; padding: 0 20px 18px; }
}
