/**
 * Site header and footer, shared by the ring builder and every customizer page.
 * Self-contained: it sets its own type, colour and spacing so page styles cannot leak in.
 */

@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/figtree.woff2') format('woff2');
}

.fbc-header, .fbc-footer {
  --fbc-ink: #14161A;
  --fbc-text: #3A3D44;
  --fbc-muted: #7A7E87;
  --fbc-line: #E7E5E1;
  --fbc-paper: #FFFFFF;
  --fbc-sand: #F7F6F3;
  --fbc-accent: #2F4FD8;
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--fbc-text);
  -webkit-font-smoothing: antialiased;
}
.fbc-header *, .fbc-footer * { box-sizing: border-box; }
.fbc-header a, .fbc-footer a { color: inherit; text-decoration: none; }
.fbc-header svg, .fbc-footer svg { display: block; fill: none; stroke: currentColor; }
.fbc-header a:focus-visible, .fbc-header button:focus-visible, .fbc-footer a:focus-visible {
  outline: 2px solid var(--fbc-accent);
  outline-offset: 3px;
}

/* ---------- header ---------- */

.fbc-header {
  position: relative;
  z-index: 50;
  background: var(--fbc-paper);
  border-bottom: 1px solid var(--fbc-line);
}
.fbc-strip {
  margin: 0;
  padding: 9px 16px;
  background: var(--fbc-ink);
  color: #E9E7E2;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-align: center;
}
.fbc-strip a { margin-left: 4px; color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.fbc-strip a:hover { color: #C9D4FF; }
.fbc-demo {
  display: inline-block;
  margin-right: 12px;
  padding: 1px 9px;
  border: 1px solid #6F7480;
  border-radius: 20px;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  vertical-align: 1px;
}

.fbc-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 40px;
}
.fbc-logo { justify-self: start; display: block; padding: 14px 0; }
.fbc-logo img { display: block; width: auto; height: 44px; max-width: none; }

.fbc-nav { position: static; display: flex; gap: 44px; }
.fbc-nav a {
  position: relative;
  padding: 28px 0;
  color: var(--fbc-text);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.2s;
}
.fbc-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--fbc-ink);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.fbc-nav a:hover, .fbc-nav a.active { color: var(--fbc-ink); }
.fbc-nav a:hover::after, .fbc-nav a.active::after { transform: scaleX(1); }
.fbc-nav a.active { font-weight: 600; }

.fbc-tools { justify-self: end; display: flex; align-items: center; gap: 22px; }
.fbc-tool {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--fbc-text);
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s;
}
.fbc-tool:hover { color: var(--fbc-ink); }
.fbc-count {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--fbc-ink);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  letter-spacing: 0;
  text-align: center;
}

@media (max-width: 1280px) {
  .fbc-bar { padding: 0 24px; }
  .fbc-nav { gap: 30px; }
  .fbc-tool-label { display: none; }
}
@media (max-width: 900px) {
  .fbc-strip { padding: 8px 14px; font-size: 12px; }
  .fbc-bar { grid-template-columns: 1fr auto; gap: 0 16px; padding: 0 16px; }
  .fbc-logo { padding: 10px 0; }
  .fbc-logo img { height: 36px; }
  .fbc-tools { grid-column: 2; grid-row: 1; }
  .fbc-nav {
    grid-column: 1 / -1;
    gap: 26px;
    margin: 0 -16px;
    padding: 0 16px;
    border-top: 1px solid var(--fbc-line);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .fbc-nav::-webkit-scrollbar { display: none; }
  .fbc-nav a { padding: 14px 0; font-size: 12px; letter-spacing: 0.12em; }
}

/* ---------- footer ---------- */

.fbc-footer {
  margin-top: 56px;
  background: var(--fbc-sand);
  border-top: 1px solid var(--fbc-line);
}
/* Demo notice: who built this and how to reach them */
.fbc-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px 40px;
  flex-wrap: wrap;
  padding: 44px max(40px, calc((100% - 1240px) / 2));
  background: var(--fbc-ink);
  color: #C9CBD1;
}
.fbc-cta-kicker {
  margin: 0 0 10px;
  color: #9AA0AC;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.fbc-cta-title {
  margin: 0 0 8px;
  padding: 0;
  color: #fff;
  font-family: inherit;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.fbc-cta-text { max-width: 560px; margin: 0; color: #C9CBD1; font-family: inherit; font-size: 15px; line-height: 1.6; }
.fbc-footer a.fbc-cta-btn {
  flex: none;
  padding: 14px 26px;
  border-radius: 40px;
  background: #fff;
  color: var(--fbc-ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: background-color 0.2s;
}
.fbc-footer a.fbc-cta-btn:hover { background: #E4E9FB; color: var(--fbc-ink); }

.fbc-footer-inner {
  display: grid;
  grid-template-columns: minmax(260px, 1.6fr) repeat(3, minmax(140px, 1fr));
  gap: 48px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 64px 40px 52px;
}
.fbc-footer-brand img { display: block; width: auto; height: 48px; max-width: none; }
.fbc-footer-brand p {
  max-width: 340px;
  margin: 20px 0 0;
  color: var(--fbc-muted);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.65;
}
.fbc-footer-title {
  margin: 0 0 18px;
  padding: 0;
  color: var(--fbc-ink);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.fbc-footer-list { margin: 0; padding: 0; list-style: none; }
.fbc-footer-list li { margin: 0 0 11px; padding: 0; color: var(--fbc-text); font-size: 15px; line-height: 1.5; }
.fbc-footer-list a { transition: color 0.2s; }
.fbc-footer-list a:hover { color: var(--fbc-accent); }

.fbc-footer-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  flex-wrap: wrap;
  max-width: 1320px;
  margin: 0 auto;
  padding: 22px 40px 26px;
  border-top: 1px solid var(--fbc-line);
  color: var(--fbc-muted);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.fbc-footer-base a { display: inline-flex; align-items: center; gap: 8px; transition: color 0.2s; }
.fbc-footer-base a:hover { color: var(--fbc-ink); }

@media (max-width: 900px) {
  .fbc-footer { margin-top: 40px; }
  .fbc-cta { padding: 36px 20px; }
  .fbc-cta-title { font-size: 22px; }
  .fbc-footer a.fbc-cta-btn { width: 100%; text-align: center; }
  .fbc-footer-inner { grid-template-columns: 1fr 1fr; gap: 36px 24px; padding: 44px 20px 36px; }
  .fbc-footer-brand { grid-column: 1 / -1; }
  .fbc-footer-base { padding: 18px 20px 22px; }
}

/* Admin live preview shows the viewer alone */
.ec-embed .fbc-header, .ec-embed .fbc-footer { display: none; }
